Repository navigation
Description
Part of #85
What is wrong: Local CI reports a job as passed when act did not run it. act-ci.sh maps only the runner label ubuntu-latest to the local image. The jobs api-contract and manifests of .github/workflows/ci.yml have runs-on: ubuntu-24.04. act skips such a job with one log line and exits 0, and act-ci.sh writes exit=0 for it. So the merge gate "each job exits 0" passes for a job that ran no step.
Where: ~/.claude/skills/setup-local-ci/act-ci.sh (the copy that PR #165 adds as ci/local/act-ci.sh): the -P ubuntu-latest=<image> argument of the act call. The workflow is .github/workflows/ci.yml, jobs api-contract and manifests.
How to prove it: Run act-ci.sh -r <clone> -b <base> -o <logs> -j api-contract. status.txt says api-contract exit=0 after 1 second, and api-contract.log ends with "Skipping unsupported platform -- Try running with -P ubuntu-24.04=...".
Measured or inferred: Measured on 2026-11-13 on this Mac, act 0.2.89, Podman, run r261113152209p54750 on 9101c47: api-contract start 15:25:08, api-contract exit=0 15:25:09, and the log line above. The skill's gotcha table has no row for it.
Severity: Medium. The gate can pass a change that the job would refuse.
What must hold after the fix: Each runs-on label of the workflow maps to the runner image, or the script fails for a label that it cannot map. A job that act skips is never exit=0: the script reads the log for the skip line, or counts the steps that ran. A test of the script holds both.
Research: act's documentation of -P <platform>=<image> and of its exit status for a skipped job.
Solution (inline, not applied): Read the runs-on values of the workflow with yq, pass one -P for each, and fail the job when its log has "Skipping unsupported platform".
Class: INV. The defect is in the new local CI gate, which is not merged yet (PR #165).
Activity
ci/local/act-ci.sh: the fix of #169 from diagram-kit
ephico2real2 commentedon Nov 13, 2026
In-QA: fixed at the source, diagram-kit pull request 62 (branch fix/act-ci-skipped-job-is-not-a-pass): one
-Pfor each plainruns-onlabel, and exit 0 counts only with act's "Job succeeded"; a skipped job isexit=3. Three new tests failed before and 16 pass after;shellcheck -S styleis clean. Copied onto cmapi branch local-ci (PR #165) as commit 18d1f63 withsetup.sh -f. A real act run with the fixed script is running on PR #163's head.