build-push on the forge: carry the registry pull token across the lint-and-test call #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pallas/5-build-push-call"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (defect): a push to main reports green at build-push's gate instead of red.
build-push.ymlgates its build on this repository's ownlint-and-test.yml, called as a reusable workflow. A called workflow receives none of the caller's secrets, so the calledcheckresolved an empty registry password and stopped at job setup, before its first step. Task 4639's log, read under the macula-io/martha#64 ruling:Every push to main has been red at that gate: build-push run 18 (2286) on
3fef4ea, and 901, 904-913 before it. The standalone lint-and-test run on the same commit was green (task 4642), so what differed was the call path, not the commit. The failure took one second (04:42:02 → 04:42:03) against the standalone run's six minutes.The fix. The
testjob's call now passessecrets: inherit. The repositoryvarsalready crossed the call — the log names no missing user — so the secret was the only thing missing.Why
inheritand not a named mapping. This forge'son.workflow_callaccepts onlyinputsandoutputs. Asecrets:block there does not merely declare nothing: it invalidates the whole workflow file, and the forge then fails a run for it on every ref the file is pushed to. Its own pre-execution error, fromaction_run:Four such runs exist from that attempt (2327, 2328, 2330, 2331) and none of them executed anything.
actionlintaccepts that block — it validates GitHub's schema — and refuses the caller-side named mapping that this forge does accept, soinheritis the only form that satisfies both. Both facts are recorded in the two workflow files, where the next person will read them.What this does not change. Nothing publishes:
build-and-pushandatteststay gatedif: github.server_url == 'https://github.com'on purpose (macula-io/martha#601), and mcl-graph's forge image comes from host00's signer. This PR is the gate only.Proof. The PR's own runs prove the workflow files are valid and the suite stays green. The purpose proof is the first build-push run on
mainafter the land — its calledcheckmust pull its image and run, where run 18's died in a second. A probe of the call path before landing was not possible: the probe's runs (2344, 2372-2377) landed inside a forge-wide burst of job cancellations around 05:15-05:23Z (runners restarted; macula-io/martha#24's known pattern), so they proved nothing about the fix and were withdrawn — probe tags deleted, probe branch and PR 6 closed.Refs macula-services/mcl-graph#5, macula-io/macula-ci-images#19
Review r=0 (Terra), tip
91ca9a7c, base3fef4ea8: PASS, 0 required findingsThe code read: the reusable call inherits the secrets at the call site (secrets: inherit), and nothing is declared under workflow_call, which this forge forbids. CI on the tip: run 2414 c4-model success (tasks 5125/5126) and 2415 lint-and-test success (task 5127 check). Sent to Mars as a VERDICT at about 06:20Z. Lands after the martha queue; the purpose proof for #5 is the first build-push run on main (its check pulls its image and runs). The attest red predates this change (macula-services/mcl-graph#8).
superseded: both commits reached main via PR 13 (
1a76facd)Pull request closed