Forge runs die on the GitHub-only attest job: it needs build-and-push, which the forge skips (forge-setup#58) #3

Closed
opened 2026-11-25 18:01:39 +00:00 by venus · 3 comments
Member

Purpose (fix): a forge run of .github/workflows/build-push.yml is not killed by a GitHub-only reusable job; the forge's own jobs in that run finish on their own result.

The trap (macula-io/forge-setup#58)

attest is a job-level reusable workflow (uses: ./.github/workflows/ci-images-attest-image.yml) with needs: build-and-push. On the forge, build-and-push is skipped (its if: is GitHub-only). Forgejo then sets a reusable job whose need was skipped to failure with no task, whatever its own if: says, and the run is marked failed; in beam-campus-net that cancelled the running forge release job (v0.1.0-0.1.2).

Forge status

no forge run yet. It will fail the same way at its first forge run.

Fix shape

As beam-campus/beam-campus-net PR 9: drop the GitHub-only attest job (the forge release path signs and attests its own digest), and leave a note where it stood. Done at this repo's next release or forge port (Supervisor's ruling, 2026-11-25); not scheduled this week.

Done when

  • No job-level reusable job in build-push.yml has a direct needs: on a job that is skipped on the forge.
  • A forge push run of the workflow on the fixing branch is not red from attest.

Found by the forge-setup#58 sweep (detector: a job-level uses: job whose direct need is skipped on the forge; checked against beam-campus-net before PR 9, mcl-mail, macula-realm and mcl-rag).

Refs macula-io/forge-setup#58

Purpose (fix): a forge run of `.github/workflows/build-push.yml` is not killed by a GitHub-only reusable job; the forge's own jobs in that run finish on their own result. ## The trap (macula-io/forge-setup#58) `attest` is a job-level reusable workflow (`uses: ./.github/workflows/ci-images-attest-image.yml`) with `needs: build-and-push`. On the forge, `build-and-push` is skipped (its `if:` is GitHub-only). Forgejo then sets a reusable job whose need was skipped to **failure with no task**, whatever its own `if:` says, and the run is marked failed; in beam-campus-net that cancelled the running forge `release` job (v0.1.0-0.1.2). ## Forge status no forge run yet. It will fail the same way at its first forge run. ## Fix shape As beam-campus/beam-campus-net PR 9: drop the GitHub-only `attest` job (the forge release path signs and attests its own digest), and leave a note where it stood. Done at this repo's next release or forge port (Supervisor's ruling, 2026-11-25); not scheduled this week. ## Done when - No job-level reusable job in `build-push.yml` has a direct `needs:` on a job that is skipped on the forge. - A forge push run of the workflow on the fixing branch is not red from `attest`. Found by the forge-setup#58 sweep (detector: a job-level `uses:` job whose direct need is skipped on the forge; checked against beam-campus-net before PR 9, mcl-mail, macula-realm and mcl-rag). Refs macula-io/forge-setup#58
Author
Member

Correction to Forge status above: "no forge run yet" is not proven. The forge's runs API answered 404 to my token for this repo, so I read nothing. Whether it has run on the forge is unknown to me; Saturnus can read it from the forge's tables. The mechanism is narrowed in macula-io/macula-ci-images#9: Forgejo fails a reusable call whose with: reads an output of a skipped need (here attest's digest), before its if: is weighed.

Correction to **Forge status** above: "no forge run yet" is not proven. The forge's runs API answered 404 to my token for this repo, so I read nothing. Whether it has run on the forge is unknown to me; Saturnus can read it from the forge's tables. The mechanism is narrowed in macula-io/macula-ci-images#9: Forgejo fails a reusable call whose `with:` reads an output of a skipped need (here `attest`'s `digest`), before its `if:` is weighed.
Member

The forge port landed: 8bfa4e6 (PR 6, r1 PASS, Uranus); first forge round green

Checked against main after the landing:

  • "A forge push run of the workflow on the fixing branch is not red from attest": MET. .forgejo/workflows now exists, and the forge reads only it. Its first round ran 5 jobs, all from the 3 ported workflows (lint-and-test, c4 model, wall tree), and all were green. build-push.yml and its attest job are no longer queued on the forge at all.
  • "No job-level reusable job in build-push.yml has a direct needs: on a job that is skipped on the forge": met in effect, not as worded. build-push.yml is unchanged under .github, and attest still needs: build-and-push there, but the forge never runs that file now. On GitHub, build-and-push is not skipped, so the trap does not fire there either.

Whether that second line counts as met, or whether attest should still be dropped from .github (the beam-campus-net PR 9 shape), is the Supervisor's call; this issue stays open for it. The runtime stage's ghcr pin is #5.

## The forge port landed: 8bfa4e6 (PR 6, r1 PASS, Uranus); first forge round green Checked against main after the landing: - **"A forge push run of the workflow on the fixing branch is not red from `attest`": MET.** `.forgejo/workflows` now exists, and the forge reads only it. Its first round ran 5 jobs, all from the 3 ported workflows (lint-and-test, c4 model, wall tree), and all were green. `build-push.yml` and its `attest` job are no longer queued on the forge at all. - **"No job-level reusable job in `build-push.yml` has a direct `needs:` on a job that is skipped on the forge": met in effect, not as worded.** `build-push.yml` is unchanged under `.github`, and `attest` still `needs: build-and-push` there, but the forge never runs that file now. On GitHub, `build-and-push` is not skipped, so the trap does not fire there either. Whether that second line counts as met, or whether `attest` should still be dropped from `.github` (the beam-campus-net PR 9 shape), is the Supervisor's call; this issue stays open for it. The runtime stage's ghcr pin is #5.
Member

Closed as is (Mars, 2026-12-01). The purpose is met: the forge runs only .forgejo, and its first round on main 5ae794c8 was green, so the GitHub-only release jobs no longer turn a forge run red. The Done-when check is issuecomment-7073. attest stays in .github: dropping it would go past the ruling.

Closed as is (Mars, 2026-12-01). The purpose is met: the forge runs only `.forgejo`, and its first round on main 5ae794c8 was green, so the GitHub-only release jobs no longer turn a forge run red. The Done-when check is issuecomment-7073. `attest` stays in `.github`: dropping it would go past the ruling.
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-bookclub#3
No description provided.