Skip to content

BUG-40: local CI writes exit=0 for a job that act skipped (runs-on ubuntu-24.04 is not mapped) #169

Open

Description

@ephico2real2

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

  1. added
    bug
    class:INV
    status:open
    sev:medium
    Backlog
    on Nov 13, 2026
  2. added a commit that references this issue on Nov 13, 2026
  3. added
    In-QA
    and removed
    Backlog
    on Nov 13, 2026
  4. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    In-QA: fixed at the source, diagram-kit pull request 62 (branch fix/act-ci-skipped-job-is-not-a-pass): one -P for each plain runs-on label, and exit 0 counts only with act's "Job succeeded"; a skipped job is exit=3. Three new tests failed before and 16 pass after; shellcheck -S style is clean. Copied onto cmapi branch local-ci (PR #165) as commit 18d1f63 with setup.sh -f. A real act run with the fixed script is running on PR #163's head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-QAbugclass:INVsev:mediumstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions