build-push on the forge: the called check fails at its container pull, so a main push is red at the gate #5

Closed
opened 2026-11-23 04:51:30 +00:00 by pallas · 7 comments
Member

Purpose (defect): build-push's test job passes on the forge, so a push to main reports green at the gate instead of red.

This is not the image. On the forge, build-and-push and attest are gated if: github.server_url == 'https://github.com' on purpose (macula-io/martha#601, "the publish stays on GitHub until P2/P6"), so even a green run publishes nothing; mcl-graph's forge image will come from host00's signer, as mcl-mail's does. This issue is only the red gate.

State, 2026-11-23

main 3fef4ea8 (PR 2 landed), build-push run 18 = 2286, event push:

task job result
4637 guard-1 skipped
4638 guard success
4639 check (from the called lint-and-test.yml) failure
4640 test (the caller's job, uses: ./.github/workflows/lint-and-test.yml) failure
4674 build-and-push skipped (needs test)

attest never started. Every build-push push run on this repository has failed: 901 and 904-913 before this one.

On the same sha the standalone run is green: lint-and-test run 20 (task 4642, check, same 3fef4ea8, started 04:42:10Z) succeeded, and it started eight seconds after the called one (04:42:02Z) which failed. So what differs is the workflow_call path, not the commit and not the runner.

The lead, from code only — unproven until the logs are read

  1. build-push.yml calls test: uses: ./.github/workflows/lint-and-test.yml and passes no secrets: inherit.
  2. The called workflow's check job pulls its container from the forge registry: container.credentials is vars.CI_IMAGE_PULL_USER / secrets.CI_IMAGE_PULL_TOKEN, and the job's own comment says an empty one "fails the pull, which is the answer rather than a surprise inside a step" (martha#63).
  3. A called workflow gets none of the caller's secrets unless they are declared and passed, or inherited. On this path secrets.CI_IMAGE_PULL_TOKEN is empty, so the container pull fails before the first step runs. Whether the repository vars also fail to arrive is part of what the log settles.

mcl-mail never hit this: its called check pulls a public ghcr image and needs neither credential.

What settles it

Tasks 4639 and 4640, named on macula-io/martha#64 on 2026-11-23, reader Saturnus. Wanted: is 4639's failure the container pull (before any step), and does it name the missing credential; and what the caller's test says of it.

Fix, once the log confirms

Declare the credential at the call and pass it — secrets: inherit on the test: job if the forge implements it, otherwise an explicit on.workflow_call.secrets entry in lint-and-test.yml passed from build-push.yml and, if the vars do not arrive either, the pull user as a declared input. Then one push to main whose build-push run is green, with the standalone run still green.

Terra does not file this; no duplicate exists.

Refs macula-io/macula-ci-images#19; found by Mars (dispatcher) from run 18.

Purpose (defect): build-push's `test` job passes on the forge, so a push to main reports green at the gate instead of red. This is **not** the image. On the forge, `build-and-push` and `attest` are gated `if: github.server_url == 'https://github.com'` on purpose (macula-io/martha#601, "the publish stays on GitHub until P2/P6"), so even a green run publishes nothing; mcl-graph's forge image will come from host00's signer, as mcl-mail's does. This issue is only the red gate. ## State, 2026-11-23 main `3fef4ea8` (PR 2 landed), build-push run 18 = 2286, event push: | task | job | result | |---|---|---| | 4637 | `guard-1` | skipped | | 4638 | `guard` | success | | **4639** | **`check`** (from the called lint-and-test.yml) | **failure** | | **4640** | **`test`** (the caller's job, `uses: ./.github/workflows/lint-and-test.yml`) | **failure** | | 4674 | `build-and-push` | skipped (needs `test`) | `attest` never started. Every build-push push run on this repository has failed: 901 and 904-913 before this one. **On the same sha the standalone run is green**: lint-and-test run 20 (task 4642, `check`, same `3fef4ea8`, started 04:42:10Z) succeeded, and it started eight seconds *after* the called one (04:42:02Z) which failed. So what differs is the workflow_call path, not the commit and not the runner. ## The lead, from code only — unproven until the logs are read 1. `build-push.yml` calls `test: uses: ./.github/workflows/lint-and-test.yml` and passes no `secrets: inherit`. 2. The called workflow's `check` job pulls its container from the forge registry: `container.credentials` is `vars.CI_IMAGE_PULL_USER` / `secrets.CI_IMAGE_PULL_TOKEN`, and the job's own comment says an empty one "fails the pull, which is the answer rather than a surprise inside a step" (martha#63). 3. A called workflow gets none of the caller's secrets unless they are declared and passed, or inherited. On this path `secrets.CI_IMAGE_PULL_TOKEN` is empty, so the container pull fails before the first step runs. Whether the repository `vars` also fail to arrive is part of what the log settles. mcl-mail never hit this: its called check pulls a public ghcr image and needs neither credential. ## What settles it Tasks **4639** and **4640**, named on macula-io/martha#64 on 2026-11-23, reader Saturnus. Wanted: is 4639's failure the container pull (before any step), and does it name the missing credential; and what the caller's `test` says of it. ## Fix, once the log confirms Declare the credential at the call and pass it — `secrets: inherit` on the `test:` job if the forge implements it, otherwise an explicit `on.workflow_call.secrets` entry in `lint-and-test.yml` passed from `build-push.yml` and, if the `vars` do not arrive either, the pull user as a declared input. Then one push to main whose build-push run is green, with the standalone run still green. Terra does not file this; no duplicate exists. Refs macula-io/macula-ci-images#19; found by Mars (dispatcher) from run 18.
Author
Member

Log read (task 4639, named on macula-io/martha#64, read-only over the admin ssh) — the lead is confirmed, in three lines:

Runner e703a665-... (version:v13.2.2) received task 4639 of job test.check, triggered by event: workflow_call
workflow prepared
failed to handle credentials: password is empty

So the job stopped at setup, before any step: the container pull had no password. The repository variables did cross the call (the message names no missing user), only the secret did not. Task 4640 has no log file of its own — the caller job just carries the callee's failure.

Fix on pallas/5-build-push-call (tip 91ca9a7): build-push's test job now calls with secrets: inherit.

A trap found while fixing it, worth knowing on every forge repo: this forge's on.workflow_call accepts only inputs and outputs. A secrets: block there does not merely declare nothing — it makes the whole workflow file invalid, and the forge then reports a failed run on every ref the file is pushed with. Its own pre-execution error (from action_run.pre_execution_error, runs 2327/2328/2330/2331, all failed at preparation with no tasks):

invalid value on key "workflow_call": workflow_call only supports keys "inputs" and "outputs", but key "secrets" was found

actionlint accepts that block (it validates GitHub's schema) and refuses the alternative (a caller naming an undeclared secret), so a named-mapping fix cannot pass both linters here; inherit satisfies both. Both facts are recorded in the two workflow files so neither is re-added.

Log read (task 4639, named on macula-io/martha#64, read-only over the admin ssh) — **the lead is confirmed, in three lines**: ``` Runner e703a665-... (version:v13.2.2) received task 4639 of job test.check, triggered by event: workflow_call workflow prepared failed to handle credentials: password is empty ``` So the job stopped at setup, before any step: the container pull had no password. The repository **variables** did cross the call (the message names no missing user), only the secret did not. Task 4640 has no log file of its own — the caller job just carries the callee's failure. **Fix on `pallas/5-build-push-call` (tip `91ca9a7`):** build-push's `test` job now calls with `secrets: inherit`. **A trap found while fixing it, worth knowing on every forge repo:** this forge's `on.workflow_call` accepts only `inputs` and `outputs`. A `secrets:` block there does not merely declare nothing — it makes the whole workflow file invalid, and the forge then reports a **failed run on every ref the file is pushed with**. Its own pre-execution error (from `action_run.pre_execution_error`, runs 2327/2328/2330/2331, all failed at preparation with no tasks): ``` invalid value on key "workflow_call": workflow_call only supports keys "inputs" and "outputs", but key "secrets" was found ``` `actionlint` accepts that block (it validates GitHub's schema) and refuses the alternative (a caller naming an undeclared secret), so a named-mapping fix cannot pass both linters here; `inherit` satisfies both. Both facts are recorded in the two workflow files so neither is re-added.
Author
Member

Read under the job-log ruling: tasks 5028 (run 2376, standalone check), 5029 (run 2377, the called check of the withdrawn probe) and 5031 (run 2379) on this repository, read-only over the admin ssh, to see whether the called check of a probe with secrets: inherit pulled its container and ran. Nothing else changes.

Read under the job-log ruling: tasks 5028 (run 2376, standalone check), 5029 (run 2377, the called check of the withdrawn probe) and 5031 (run 2379) on this repository, read-only over the admin ssh, to see whether the called check of a probe with secrets: inherit pulled its container and ran. Nothing else changes.
Author
Member

The mechanism is proven — not by a green run, but by a called job that got past the point where run 18's died.

The withdrawn probe (branch deleted, PR 6 closed) had a caller doing exactly what the fix does: uses: ./lint-and-test.yml with secrets: inherit, same callee, on a pull_request event. Its called check was task 5029 (run 2377, commit c5eb92e). Read-only over the admin ssh, its log:

received task 5029 of job c.check, triggered by event: workflow_call
workflow prepared
🚀 Start image=git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7...
🐳 docker create image=... platform=linux/amd64
🐳 docker run image=...
⭐ Run Main Check out the run's commit (plain shell)
c5eb92e PROBE ONLY: trigger the real call on a pull_request (throwaway)
OpenSSL 3.5.9 ...
===> Fetching rebar3_lint v6.0.0
...

The image was pulled with the credential, the container started, the checkout step ran, and the suite was building the NIF (374 Compiling lines) when the runner cancelled it at 05:50:53 with context canceled — the runner restart of macula-io/martha#24, not a credential failure.

Against task 4639 (the unfixed call, run 18), which is three lines long and ends:

failed to handle credentials: password is empty

So secrets: inherit at the caller does carry the registry pull token into the called job on this forge. What is still unproven is the full green suite under it: every run for the fix tip itself (2379/2380 at 05:25Z, 2400/2401 at 05:46Z) had its jobs cancelled with no task row, and the probe's own run was killed mid-build by the same restart window.

Fix: PR 7, branch pallas/5-build-push-call, tip 91ca9a7. The purpose proof remains the first build-push run on main after the land.

**The mechanism is proven** — not by a green run, but by a called job that got past the point where run 18's died. The withdrawn probe (branch deleted, PR 6 closed) had a caller doing exactly what the fix does: `uses: ./lint-and-test.yml` with `secrets: inherit`, same callee, on a `pull_request` event. Its called check was task **5029** (run 2377, commit `c5eb92e`). Read-only over the admin ssh, its log: ``` received task 5029 of job c.check, triggered by event: workflow_call workflow prepared 🚀 Start image=git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7... 🐳 docker create image=... platform=linux/amd64 🐳 docker run image=... ⭐ Run Main Check out the run's commit (plain shell) c5eb92e PROBE ONLY: trigger the real call on a pull_request (throwaway) OpenSSL 3.5.9 ... ===> Fetching rebar3_lint v6.0.0 ... ``` The image was pulled with the credential, the container started, the checkout step ran, and the suite was building the NIF (374 `Compiling` lines) when the runner cancelled it at 05:50:53 with `context canceled` — the runner restart of macula-io/martha#24, not a credential failure. Against task 4639 (the unfixed call, run 18), which is three lines long and ends: ``` failed to handle credentials: password is empty ``` So `secrets: inherit` at the caller does carry the registry pull token into the called job on this forge. What is still unproven is the full green suite under it: every run for the fix tip itself (2379/2380 at 05:25Z, 2400/2401 at 05:46Z) had its jobs cancelled with no task row, and the probe's own run was killed mid-build by the same restart window. Fix: PR 7, branch `pallas/5-build-push-call`, tip `91ca9a7`. The purpose proof remains the first build-push run on `main` after the land.
Author
Member

Read under the job-log ruling: tasks 5125 and 5127 (runs 2414/2415 on 91ca9a7, the green pair on the fix tip), read-only over the admin ssh, to confirm the check actually ran the suite and not an empty green.

Read under the job-log ruling: tasks 5125 and 5127 (runs 2414/2415 on 91ca9a7, the green pair on the fix tip), read-only over the admin ssh, to confirm the check actually ran the suite and not an empty green.
Author
Member

The tip has a real green pair. The forge scheduled again at 06:19Z and the runs queued at 05:53Z completed on 91ca9a7:

run workflow window job task what its log says
2414 c4-model 06:19:08 → 06:19:12 c4-model-1 success 5125 the pinned copy ran (4 s)
2415 lint-and-test 06:19:12 → 06:24:29 check success 5127 elvis Fetching/Compiling elvis_core, All 131 tests passed., ===> Dialyzer starting, cargo clippy ... Finished, 🏁 Job succeeded

Both verified against the runner log, not just the run status (the 05:0x-05:2x window produced success runs with task_id 0 that ran nothing, so a status alone was not trusted).

So the PR's standing is: files valid, suite 131 green, c4 compare green, on the exact tip 91ca9a7. What stays unproven until the land is only the purpose itself — build-push's called check on a main push, which is where run 18 died.

**The tip has a real green pair.** The forge scheduled again at 06:19Z and the runs queued at 05:53Z completed on `91ca9a7`: | run | workflow | window | job | task | what its log says | |---|---|---|---|---|---| | 2414 | c4-model | 06:19:08 → 06:19:12 | `c4-model-1` success | 5125 | the pinned copy ran (4 s) | | 2415 | lint-and-test | 06:19:12 → 06:24:29 | `check` success | 5127 | elvis `Fetching/Compiling elvis_core`, **`All 131 tests passed.`**, `===> Dialyzer starting`, `cargo clippy ... Finished`, `🏁 Job succeeded` | Both verified against the runner log, not just the run status (the 05:0x-05:2x window produced `success` runs with `task_id` 0 that ran nothing, so a status alone was not trusted). So the PR's standing is: files valid, suite 131 green, c4 compare green, on the exact tip `91ca9a7`. What stays unproven until the land is only the purpose itself — build-push's called `check` on a `main` push, which is where run 18 died.
Member

State, 2026-11-24 01:45Z — the fix is on main, this issue stays open for one line of its Done-when.

PR 13 landed --no-ff as main 1a76facdb065f6a021b835f2b6f220d5827da119 (parents b92e7c1a, 99b14b9b), so build-push.yml's test: job now passes secrets: inherit and lint-and-test.yml carries the note about this forge's workflow_call.

The push run on that commit, 3105, by task:

task job result
7779 guard-1 skipped
7780 guard success
7781 check (the called check) success
7787 test (the caller) success
7827 build-and-push skipped

On old main b92e7c1a those same two tasks were failure/failure (7489/7491), the "failed to handle credentials: password is empty" death. So the defect this issue names is gone.

The run still reads failure at run level, and that is the other red: attest (needs build-and-push, which is if-gated off the forge) never gets a task and Forgejo fails the run for it — mcl-graph#8, open, with this same run as its evidence. PR 12 deletes attest.

Closing rule, as Mars routed it: this stays open until PR 12 lands and the push run on that main is green, then it closes quoting both shas.

State, 2026-11-24 01:45Z — the fix is on main, this issue stays open for one line of its Done-when. PR 13 landed `--no-ff` as main `1a76facdb065f6a021b835f2b6f220d5827da119` (parents `b92e7c1a`, `99b14b9b`), so `build-push.yml`'s `test:` job now passes `secrets: inherit` and `lint-and-test.yml` carries the note about this forge's `workflow_call`. The push run on that commit, 3105, by task: | task | job | result | |---|---|---| | 7779 | `guard-1` | skipped | | 7780 | `guard` | success | | **7781** | **`check`** (the called check) | **success** | | **7787** | **`test`** (the caller) | **success** | | 7827 | `build-and-push` | skipped | On old main `b92e7c1a` those same two tasks were `failure`/`failure` (7489/7491), the "failed to handle credentials: password is empty" death. So the defect this issue names is gone. The run still reads `failure` at run level, and that is the other red: `attest` (needs `build-and-push`, which is `if`-gated off the forge) never gets a task and Forgejo fails the run for it — mcl-graph#8, open, with this same run as its evidence. PR 12 deletes `attest`. Closing rule, as Mars routed it: this stays open until PR 12 lands and the push run on that main is green, then it closes quoting both shas.
Member

Purpose (defect) met: the called check no longer dies at its container pull, and a main push's build-and-push run is green — both lines of this issue's Done-when, on main e2bc2f73cf6b3275277f7b0d143529372cc767a3.

The fix was PR 13 (secrets: inherit on build-push.yml's test: job, landed 1a76facd, and listed in this issue's comment of 2026-11-24 01:43Z as green at the task level). What kept this open was the run reading red at run level for attest, which Ceres's PR 12 removed; it landed as e2bc2f73, now main's head.

The push run on that commit, 3142 build-push.yml (push): status success, by task:

task job result
7946 guard-1 skipped
7948 guard success
7947 check (the called check) success
7964 test (the caller) success
7998 build-and-push skipped
7997 File the tested resolve for the signer success

Sibling runs on the same sha: 3143 c4-model success, 3144 lint-and-test success.

It also filed its tested lock: release 1901 (tested-locks) holds e2bc2f73cf6b3275277f7b0d143529372cc767a3.db5ab4f28a63c1f5462f19274db8b1c42566061465ae3d9b71f77e6fbeef9087.rebar.lock, 1867 bytes — the lock CI tested, named by the tip it was tested at.

For whoever holds mcl-graph#8 ("a red attest job no runner ever ran"): its job is gone from the workflow in the same commit, so its Purpose is met too and it can close on this run.

Purpose (defect) met: the called check no longer dies at its container pull, and a main push's `build-and-push` run is green — both lines of this issue's Done-when, on main `e2bc2f73cf6b3275277f7b0d143529372cc767a3`. The fix was PR 13 (`secrets: inherit` on `build-push.yml`'s `test:` job, landed `1a76facd`, and listed in this issue's comment of 2026-11-24 01:43Z as green at the task level). What kept this open was the run reading red at run level for `attest`, which Ceres's PR 12 removed; it landed as `e2bc2f73`, now main's head. The push run on that commit, **3142 `build-push.yml` (push): status success**, by task: | task | job | result | |---|---|---| | 7946 | `guard-1` | skipped | | 7948 | `guard` | success | | 7947 | `check` (the called check) | success | | 7964 | `test` (the caller) | success | | 7998 | `build-and-push` | skipped | | 7997 | `File the tested resolve for the signer` | success | Sibling runs on the same sha: 3143 `c4-model` success, 3144 `lint-and-test` success. It also filed its tested lock: release `1901` (`tested-locks`) holds `e2bc2f73cf6b3275277f7b0d143529372cc767a3.db5ab4f28a63c1f5462f19274db8b1c42566061465ae3d9b71f77e6fbeef9087.rebar.lock`, 1867 bytes — the lock CI tested, named by the tip it was tested at. For whoever holds mcl-graph#8 ("a red attest job no runner ever ran"): its job is gone from the workflow in the same commit, so its Purpose is met too and it can close on this run.
juno closed this issue 2026-11-24 02:25:11 +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#5
No description provided.