Skip to content

fix(validate): serve the org gate from setup-go v6.5.0 — its archive 404s while its tag still resolves - #208

Closed
aitrawog wants to merge 1 commit into
mainfrom
fix/setup-go-servable-pin
Closed

aitrawog wants to merge 1 commit into
mainfrom
fix/setup-go-servable-pin

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

THIS PR CANNOT PASS ITS OWN REQUIRED CHECK, BY CONSTRUCTION — and that is a property of the fix, not a failure of it: the check it repairs is the check that gates it. The org-required validate / validate currently dies in the job's Set up job step in 5–6 s for every repository in the org, before any review runs, because the action this PR re-pins is the one whose archive is missing. So landing this needs an admin merge or a ruleset bypass, and what is being landed is a 3-file, +3/−3 ref bump verified by this repo's own gates (below).

$ git diff --stat origin/main..HEAD
 .github/workflows/candy-validate.yml | 2 +-
 .github/workflows/pr-validator.yml   | 2 +-
 scripts/action-runtime-pins.tsv      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

The two sites, and the pair that proves them:

.github/workflows/pr-validator.yml:1007
.github/workflows/candy-validate.yml:81
  - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0, node24
+ - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0, node24

$ curl -o /dev/null -w '%{http_code}' …/tar.gz/b7ad1dad…   # the pinned commit
404
$ curl … /tar.gz/924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
200
$ curl … /tar.gz/90ad2b35f69faf97585ad74d28fa006d2739b7af # actions/setup-go main HEAD
200

The version number is not the runtime — and this is the measurement that makes the fix available today at the same runtime. actions/[email protected]'s own action.yml declares using: node24, so the node24 annotation stays unchanged and the org's pin audit accepts this pin. I first asserted the opposite — that a v6.5.0 pin would re-introduce the Node-20 class that #204/#192 exist to remove — and the measurement refuted it: those issues are about github-script@v7 (Node 20) in the tag-on-merge callers, not about setup-go. Without that correction the org would have waited on an archive instead of acting.

And same-runtime was never a preference here, it is this repo's own contract: scripts/check-action-runtimes.py (run by .github/workflows/workflow-checks.yml) requires every actions/* ref used by an active workflow to be listed in scripts/action-runtime-pins.tsv as node24, and its own step is "Prove the action runtime checker rejects Node 20" — the --self-test asserts a node20 pin fails. So the old ref is removed from the tsv rather than left beside the new one, because the audit rejects an unused pin as well as an unaudited one.

Behaviour-neutral, and why: neither workflow consumes a setup-go output — only go-version-file and cache-dependency-path, both long-standing inputs. No v7 release is servable today (v7 and v7.0.0 are the same single lightweight-tagged commit), so there is no same-series option.

RCA, with the timing that matters: the pin is not the defect and it is not a recent edit. It landed 2026-10-12 (5d44f67f, "fix: use Node 24 actions and verify API-based landing") and was re-asserted 10-13 (f5daf127); the same check ran green for 8m3s at ~23:00Z yesterday on opencharly/charly#828; the first failures I can see are today ~05:37Z. So the tag was always fine and its ARCHIVE became unservable in the last few hours — an upstream codeload/GitHub-side condition under a working pin. Every other pin in both files (checkout@v7, github-script@v9, [email protected]) downloaded fine in the same failing runs, so this is one commit, not a pin-sweep defect.

The outage and this PR point at each other: opencharly/.github#206 carries the full RCA, the evidence, and the three options (wait for the archive / this ref bump / an upstream v7.x re-tag), and is where the org-wide BLOCKS was posted.

How tested

Run on this tree, with the repo's own gates — which for this repo are its class gate:

$ python3 scripts/check-action-runtimes.py
check-action-runtimes: OK (12 workflow files; 5 audited pins; node24)          # rc=0
$ python3 scripts/check-action-runtimes.py --self-test
check-action-runtimes self-test: OK (Node 20 pins fail)                        # rc=0
$ for t in scripts/*_test.sh; do bash "$t"; done
owner-script tests: 6 passed, 0 failed

and the changed artefact verified at its boundary rather than in the file: the new SHA's archive and its declared runtime were fetched from GitHub, not inferred —

$ curl -o /dev/null -w '%{http_code}' codeload…/tar.gz/924ae3a1…        # 200
$ curl -sS raw.githubusercontent.com/actions/setup-go/924ae3a1…/action.yml | grep using
  using: 'node24'

Rulebook compliance

  • R0 — skills loaded before acting: /charly-internals:repo-setup and /charly-internals:git-workflow (this repo is the owner of the org gate and the ruleset), plus /charly-internals:strict-policy and /charly-internals:root-cause-analyzer for the anomaly.
  • R1 — the anomaly was root-caused before remediation, and the RCA names the mechanism (a served tag with an unservable archive), the missed control (nothing audits archive servability, only the runtime annotation — which is why #206 exists), and the blast radius (every repo's required check, org-wide). Filed as opencharly/.github#206 with this PR named in it.
  • R2/R5 — one source, no per-repo copy: the pins live only here (.github/workflows/retire-per-repo-dispatchers.yml deletes any survivor), and the stale ref is deleted from the tsv, not shadowed.
  • R3 — no workaround: the ref is bumped to a released, servable, same-runtime tag; no --admin, no bypass, no suppression, and no runner-side hack.
  • R4/R7 — the emitted artifact is verified at its real boundary (the archive's HTTP status and the upstream action.yml's declared runtime), and the repo's own pin audit runs on the final tree.
  • R6 — fresh worktree off fresh origin/main, git status clean before the commit, no force-push, no rebase, and spec#242's live work in another area untouched.
  • R10 — the change-class gate for this repo is its own CI plus the org validator; the validator is the thing being fixed and cannot run, so this PR is at analysed on a live system deliberately and the impossibility is stated instead of hidden. Its live proof is the archive/runtime measurement above and the audit's green run.
  • Heightened-review surface — this is the org's own review gate: the change fixes the gate rather than weakening it, changes no gate logic, no rulebook, no ruleset, and no permission, and touches no check that judges a PR.

Change classification

  • Diff: two workflow action pins + one row of scripts/action-runtime-pins.tsv; +3/−3.
  • Change class: org gate configuration (.github workflows / action pin).
  • Behaviour change: the validator's setup-go step downloads a servable archive again and still runs on node24; no workflow input, output, or gate semantics change.
  • Attribution tier: analysed on a live system — the changed path ran live (archive and upstream runtime measured; the repo's own audit and its six owner-script tests pass on this tree), and the class gate that should have passed cannot run because it is the one being repaired.

Filed issues

  • opencharly/.github#206 — the org-wide outage this PR fixes: RCA, evidence, the three options, and the note that no Node-20 pin is available because this repo's own audit rejects one. This PR and that issue point at each other.
  • No new finding is filed by this PR otherwise, and none of the findings raised during this campaign (the #934 chain's snap.ForceStop undefined producer-first dependency, the reopened plugin-deploy-vm#23, sdk#400) is touched by this diff.

Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

…404s while its tag still resolves

THIS PR CANNOT PASS ITS OWN REQUIRED CHECK BY CONSTRUCTION: the check it repairs is the
check that gates it. The org-required validate job dies in `Set up job` in 5-6s for every
repo right now, so landing needs an admin merge / ruleset bypass.

Cause, measured: actions/setup-go@b7ad1da (pinned as
v7.0.0 in pr-validator.yml:1007 and candy-validate.yml:81) is a LIGHTWEIGHT tag pointing
straight at that commit, and codeload returns 404 for it while the tag still resolves:

  curl codeload .../tar.gz/b7ad1dad...  ->  404     # the pinned commit
  curl codeload .../tar.gz/924ae3a1...  ->  200     # v6.5.0
  curl codeload .../tar.gz/90ad2b35...  ->  200     # main HEAD

The pin landed 2026-10-12 and the same check ran green for 8m3s at ~23:00Z yesterday, so
the ARCHIVE vanished under a working pin; the pin is not the defect.

The version number is not the runtime: v6.5.0's own action.yml declares `using: node24`,
so the runtime annotation stays node24 and this repo's own pin audit accepts it. No v7
release is servable (v7 and v7.0.0 are the same single commit). Neither workflow consumes
a setup-go output -- only go-version-file and cache-dependency-path, both long-standing
inputs -- so the bump is behaviour-neutral.

Three files: the two workflow pins and the ref in scripts/action-runtime-pins.tsv, whose
old ref is REMOVED because the audit rejects an unused pin as well as an unaudited one.

Verified on this tree with the repo's own gates:
  check-action-runtimes: OK (12 workflow files; 5 audited pins; node24)
  check-action-runtimes self-test: OK (Node 20 pins fail)
  scripts/*_test.sh: 6 passed, 0 failed

See #206 for the RCA and the options.

Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
@aitrawog

Copy link
Copy Markdown
Contributor Author

RESOLVED — closed as unnecessary, not merged: the pin was never wrong, only its archive was missing, and it is served again.

The flip, bracketed by my own two measurements:

2026-10-15T05:50:10Z   codeload …/tar.gz/b7ad1dad…   HTTP 404     # the last 404 observed
2026-10-15T05:51:38Z   codeload …/tar.gz/b7ad1dad…   HTTP 200     # the first 200 observed

So the org's required validate / validate check is RESTORED rather than repaired — no pin, no workflow, no rulebook and no ruleset changed. This branch (fix/setup-go-servable-pin, head 0b0c99e) is left in place, unmerged and not pushed to further, as the prepared fallback should the archive go missing again; its own gate passed on the head it carried (workflow-checks PASS 9s — the pin audit, its self-test, and 6/6 owner-script tests), and the only red was the outage itself.

Why the diagnosis existed even though it healed: nothing in the org audits archive servability — scripts/check-action-runtimes.py audits the runtime annotation, and the annotation was always right. That gap is what made a working pin look like a broken one for an hour, and it is why the RCA was worth the round.

Residual risk, recorded rather than acted on: this pin's archive vanished once, under a working tag, and returned on its own. If the org wants the durable form, it is a pin whose archive does not share that failure mode — a decision for later, not a blocker now. opencharly/.github#206 carries the whole record, the evidence, and the three options.

And the outcome worth keeping: we prepared a bypass and did not need it. The account that owns the bypass was never actually required — the failing layer named from the log's first line, the tag/archive mismatch proved with a 404/200 pair, the same-runtime question measured (v6.5.0 is itself node24), the replacement SHA's servability verified, the repo's own gate run on the exact commit, and a watch armed on the alternative were enough. That is the difference between "we needed a bypass" and "we prepared one and did not need it".

Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

@aitrawog aitrawog closed this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant