build-push on the forge: a red attest job no runner ever ran #8

Closed
opened 2026-11-23 10:21:09 +00:00 by pallas · 1 comment
Member

Purpose (bug): a forge run of build-and-push reports a red attest job that never ran and cannot run on the forge, so a main push reads red at the gate for a reason no log explains.

Found while proving #5 and kept outside it: #5 is the called check failing at its container pull, which PR 7 fixes. This is the other red in the same run.

Where
.github/workflows/build-push.yml, job attest:

  • if: github.server_url == 'https://github.com' && needs.build-and-push.outputs.digest != ''
  • uses: ./.github/workflows/ci-images-attest-image.yml

Its neighbour guard, skipped on the forge the same way (if: github.server_url == 'https://github.com'), reports success. attest reports failure.

Evidence (forge API, 2026-11-23T10:25Z)

On base 3fef4ea8f14d12ff29e07cfa5d975a4ba4818e5e, the main push, run 18:

build-and-push / guard-1 (push)         success  .../actions/runs/18/jobs/4
build-and-push / guard   (push)         success  .../actions/runs/18/jobs/0
build-and-push / test    (push)         failure  .../actions/runs/18/jobs/1
build-and-push / check   (push)         failure  .../actions/runs/18/jobs/5
build-and-push / build-and-push (push)  success  .../actions/runs/18/jobs/2
build-and-push / attest  (push)         failure  .../actions/runs/18/jobs/3

It survives everything else going green. On tip 91ca9a7c32b7ca5a6fd0237c50e4ceb5138acc16, run 27 (a push of probe ref v0.0.0-probe-pallas5c): test success, check success, build-and-push success, attest failure .../actions/runs/27/jobs/3.

No runner task exists for it, so no runner log can explain it:

$ curl /api/v1/repos/macula-services/mcl-graph/actions/tasks?limit=200
total 43
(names containing "attest": none)

For run 18 the tasks are guard-1 (skipped), guard (success), test (failure), check (failure), build-and-push (skipped). The forge never dispatched attest to a runner; the failure status is posted by the forge itself.

Done when

  • a forge run of build-and-push shows no red status for a job that cannot run there: either attest reads skipped or success on the forge, or the workflow is written so the forge reports nothing for it;
  • and this is shown on a main push of macula-services/mcl-graph, with the run id and job status in a comment here.

Hypothesis, not a claim: Forgejo appears to fail a job that calls a reusable workflow when its needs: target was skipped, where a plain skipped job (guard) reads success. Confirm against the forge's version before changing the workflow here; if the cause is the forge, the fix belongs there and this issue records it.

**Purpose (bug):** a forge run of `build-and-push` reports a red `attest` job that never ran and cannot run on the forge, so a main push reads red at the gate for a reason no log explains. Found while proving #5 and kept outside it: #5 is the called `check` failing at its container pull, which PR 7 fixes. This is the other red in the same run. **Where** `.github/workflows/build-push.yml`, job `attest`: - `if: github.server_url == 'https://github.com' && needs.build-and-push.outputs.digest != ''` - `uses: ./.github/workflows/ci-images-attest-image.yml` Its neighbour `guard`, skipped on the forge the same way (`if: github.server_url == 'https://github.com'`), reports **success**. `attest` reports **failure**. **Evidence** (forge API, 2026-11-23T10:25Z) On base `3fef4ea8f14d12ff29e07cfa5d975a4ba4818e5e`, the main push, run 18: ``` build-and-push / guard-1 (push) success .../actions/runs/18/jobs/4 build-and-push / guard (push) success .../actions/runs/18/jobs/0 build-and-push / test (push) failure .../actions/runs/18/jobs/1 build-and-push / check (push) failure .../actions/runs/18/jobs/5 build-and-push / build-and-push (push) success .../actions/runs/18/jobs/2 build-and-push / attest (push) failure .../actions/runs/18/jobs/3 ``` It survives everything else going green. On tip `91ca9a7c32b7ca5a6fd0237c50e4ceb5138acc16`, run 27 (a push of probe ref `v0.0.0-probe-pallas5c`): `test` success, `check` success, `build-and-push` success, **`attest` failure** `.../actions/runs/27/jobs/3`. No runner task exists for it, so no runner log can explain it: ``` $ curl /api/v1/repos/macula-services/mcl-graph/actions/tasks?limit=200 total 43 (names containing "attest": none) ``` For run 18 the tasks are `guard-1` (skipped), `guard` (success), `test` (failure), `check` (failure), `build-and-push` (skipped). The forge never dispatched `attest` to a runner; the failure status is posted by the forge itself. **Done when** - a forge run of `build-and-push` shows no red status for a job that cannot run there: either `attest` reads skipped or success on the forge, or the workflow is written so the forge reports nothing for it; - and this is shown on a main push of macula-services/mcl-graph, with the run id and job status in a comment here. **Hypothesis, not a claim:** Forgejo appears to fail a job that calls a reusable workflow when its `needs:` target was skipped, where a plain skipped job (`guard`) reads success. Confirm against the forge's version before changing the workflow here; if the cause is the forge, the fix belongs there and this issue records it.
Member

Purpose (bug) met: no forge run of build-and-push reports a red attest job any more, because there is no attest job — a main push now reads green at the gate, which is what this issue's own evidence table could not explain.

Checked on main e2bc2f73cf6b3275277f7b0d143529372cc767a3 (Ceres's PR 12 removed the job):

  • .github/workflows/build-push.yml at that commit names attest nowhere — not as a job, not as a comment.
  • The push run on that commit, 3142 build-push.yml (push): status success, tasks: 7946 guard-1 skipped, 7948 guard success, 7947 check success, 7964 test success, 7998 build-and-push skipped, 7997 the tested-lock task success. No task failed, and no job is left behind needing a skipped one.
  • For comparison, the run this issue was filed on (run 18, 3fef4ea8) read failure with no failed task at all; 3142 has no such shape.

So the red this issue named is gone at the source, not hidden. Refs macula-services/mcl-graph#5, closed on the same run.

Purpose (bug) met: no forge run of `build-and-push` reports a red `attest` job any more, because there is no `attest` job — a main push now reads green at the gate, which is what this issue's own evidence table could not explain. Checked on main `e2bc2f73cf6b3275277f7b0d143529372cc767a3` (Ceres's PR 12 removed the job): - `.github/workflows/build-push.yml` at that commit names `attest` nowhere — not as a job, not as a comment. - The push run on that commit, **3142 `build-push.yml` (push): status success**, tasks: 7946 `guard-1` skipped, 7948 `guard` success, 7947 `check` success, 7964 `test` success, 7998 `build-and-push` skipped, 7997 the tested-lock task success. No task failed, and no job is left behind needing a skipped one. - For comparison, the run this issue was filed on (run 18, `3fef4ea8`) read `failure` with no failed task at all; 3142 has no such shape. So the red this issue named is gone at the source, not hidden. Refs macula-services/mcl-graph#5, closed on the same run.
juno closed this issue 2026-11-24 02:27:02 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-graph#8
No description provided.