Skip to content

Runner and execution environment ​

Encyclopedia home · Search machine-readable catalog

The broken snippets are deliberate negative examples. Use only in an isolated fixture repository or lab.

F019 ​

Runner label mismatch

Symptom. job stays queued.

Root cause. No runner advertises the requested label.

Broken example

yaml
runs-on: ubuntu-24.04

Corrected example

yaml
runs-on: ubuntu-latest

Verification. Compare exact labels in the server and use the configured one.

Correction validation syntax-validated.

F020 ​

Runner service is stopped

Symptom. runner appears offline.

Root cause. Service state and logs were never checked.

Broken example

bash
systemctl status act_runner

Corrected example

bash
systemctl is-active act_runner
journalctl -u act_runner --since '10 minutes ago' --no-pager

Verification. Diagnose startup and restart only the authorized service.

Correction validation syntax-validated.

F021 ​

Wrong operating-system command

Symptom. apt-get command not found.

Root cause. Linux package manager was used on Windows.

Broken example

yaml
runs-on: windows-latest
steps:
  - run: apt-get --version

Corrected example

yaml
runs-on: ubuntu-latest
steps:
  - run: apt-get --version

Verification. Verify the run logs show Ubuntu.

Correction validation syntax-validated.

F022 ​

Bash syntax executed in sh

Symptom. [[: not found.

Root cause. Double brackets are Bash syntax.

Broken example

yaml
shell: sh
run: '[[ -f README.md ]]'

Corrected example

yaml
shell: bash
run: '[[ -f README.md ]]'

Verification. Check shell selection and exit status.

Correction validation syntax-validated.

F023 ​

Relative path assumes runner workspace root

Symptom. file or directory not found tests.

Root cause. Tests live one subdirectory below checkout.

Broken example

bash
pytest -q tests

Corrected example

bash
cd service
pytest -q tests

Verification. Print pwd and list the test path in context.

Correction validation syntax-validated.

F024 ​

Missing Docker socket access

Symptom. cannot connect to Docker daemon or permissions denied.

Root cause. Docker CLI exists without reachable daemon.

Broken example

bash
docker build .

Corrected example

bash
docker info --format '{{.ServerVersion}}'
docker build .

Verification. Use a trusted builder with intentionally provisioned access.

Correction validation syntax-validated.

F025 ​

Missing executable bit

Symptom. Permission denied.

Root cause. Linux relies on executable mode or an explicit interpreter.

Broken example

bash
./ci/verify.sh

Corrected example

bash
bash ci/verify.sh

Verification. Commit executable mode if direct execution is needed.

Correction validation syntax-validated.

F026 ​

Wrong CPU architecture

Symptom. Exec format error.

Root cause. An arm64 executable cannot run natively on x86-64.

Broken example

bash
./dist/agent-arm64

Corrected example

bash
test "$(uname -m)" = aarch64
./dist/agent-arm64

Verification. Run on an arm64 host or use a matching artifact.

Correction validation syntax-validated.

F027 ​

Job exceeds runner disk capacity

Symptom. no space left on device.

Root cause. Build layers and workspace compete for storage.

Broken example

bash
docker build -t web:ci .

Corrected example

bash
df -h .
docker system df
docker build -t web:ci .

Verification. Use disposable workers or owner-approved cleanup after measuring.

Correction validation syntax-validated.

F028 ​

Host-only name unavailable in job container

Symptom. connection refused.

Root cause. Loopback inside a container refers to the container.

Broken example

bash
curl -fsS http://localhost:3000/api/v1/version

Corrected example

bash
curl -fsS "${GITEA_URL:?}/api/v1/version"

Verification. Supply an approved host name reachable from the job network.

Correction validation syntax-validated.