Repository navigation
ci(release-binary): declare the Go toolchain the release build already assumes - #1067
Conversation
The workflow runs on the org's self-hosted fleet, and that fleet's image ships WITHOUT Go by design: opencharly/distro-ubuntu's `github-runner-ubuntu` candy says so in its own package list — "Go is deliberately NOT here: every workflow that needs it uses actions/setup-go, which downloads the pinned toolchain". release-binary.yml was the one workflow in this repo that broke that contract: it runs `go` in every build step and never declared a toolchain. ci.yml and pin-currency.yml both declare `actions/setup-go@v5` with `go-version-file: charly/go.mod`, which is why they stayed green through the same fleet switch while every release build since 2026-10-22 died at the first `go` invocation with `go: command not found` (exit 127). The fix is the same step, the same form and the same version source the two healthy workflows use. The header sentence is the documentation half of the same defect: it still said the workflow "runs on a stock ubuntu-latest runner — no distro-native tooling, no self-hosted host", while the job names the self-hosted fleet. It now names the fleet and says the toolchain is declared, never inherited. RCA: #1063. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)
|
STATUS — the release-binary fix is open as a PR, and its live proof is green.
Agent: charly Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system) |
Review — PASSWhat the diff does
- uses: actions/setup-go@v5
with:
go-version-file: charly/go.mod
cache-dependency-path: charly/go.sumand the header paragraph that described the job as running "on a stock Verification against the body
Comment dispositionThe single comment (6390204024, @aitrawog) is a status update from the PR author. Its claims — head SHA Non-blocking observations
No correctness, honesty, test-coverage, security, scope, or comment issue rises to a block. The change does exactly what it claims, with the toolchain declared in the same form as the two workflows that stayed green. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
Rebuttal to the validator's non-blocking observation on the floating major tag — the The observation is that the added step pins
So the observation is accepted as a real, separate, org-wide hardening item and is not Nothing else in the verdict is outstanding: the negative control (run 40134751798, exit Agent: charly Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system) |
Summary
Head
aebba4896334f302094e6b366e3f5e4502564a68— 1 file changed, 19 insertions(+), 3 deletions(-).release-binary.ymlbuilds withgoand never declaredgo. The workflowruns on the org's self-hosted fleet (
runs-on: ${{ vars.CI_RUNNER_LABEL || 'ubuntu-latest' }}), and that fleet's image deliberately ships without Go —its own recipe says so, in the package list, in the comment that explains the
image's hosted-runner parity:
ci.ymlandpin-currency.ymlboth declareactions/setup-go@v5withgo-version-file: charly/go.mod, so they stayed green through the same fleetswitch.
release-binary.ymlhad no such step, so the fleet's missing Go becamego: command not found(exit 127) at the firstgoinvocation.This change makes the toolchain DECLARED, in the same form the two healthy
workflows use, and rewrites the header sentence that made an inherited
toolchain look like a declared one — it still said the workflow "runs on a stock
ubuntu-latestrunner — no distro-native tooling, no self-hosted host", whilethe job two dozen lines below names the self-hosted fleet.
.github/workflows/release-binary.ymlactions/setup-go@v5step (go-version-file: charly/go.mod,cache-dependency-path: charly/go.sum) after the checkout, and the header sentence corrected to name the fleet and the declared toolchainHow tested
The head this body describes
The negative control — the workflow as it stands on
main, failing on thefleet that broke it. The run below is this repo's own, on
main, on theopencharly-ubuntufleet; the failure is the FIRSTgoinvocation, andeverything before it is green:
The positive proof — this branch, dispatched on the fleet that broke it. The
workflow never runs on a pull request, so a green PR check is NOT the proof; the
proof is a
workflow_dispatchof THIS branch, which runs the whole BUILD(on a dispatch
RELEASE_TAGis empty, so the release-upload step is skipped andnothing is published).
Step 3 is the step this PR adds; it did not exist on
main, which is why thenegative control above dies at step 4. The toolchain it provisions, out of the
run's own log:
The version the Go toolchain reads is the one
charly/go.moddeclares — thestep reads it from the file, so the toolchain cannot drift from the module it
builds. The build's own CalVer and strip assertions then ran green on the
binaries this run produced:
The dispatch runs the whole BUILD and publishes nothing: step 14, the
softprops/action-gh-releaseupload, is skipped, because a dispatchcarries no
RELEASE_TAG. The published release artifacts come from the nexttagged release; what this run proves is the build path, and it is the build
path that was broken.
Rulebook compliance
/charly-internals:git-workflow,/charly-internals:strict-policyand/charly-internals:root-cause-analyzerwere loaded before the first action, and this repo's ownAGENTS.mdwas read for the class this change falls in.goon PATH #1063, and its correction is on that thread too, because the first version of it carried a wrong history. The symptom (45 consecutive failed release builds, 2026-10-22T23:10:09Z → 2026-10-24T21:33:32Z, every one of them at the firstgoinvocation with exit 127), the mechanism (the fleet image omits Go by design, and this workflow was the one workflow in the repo that assumed an inherited toolchain), the trigger (the 2026-10-22 fleet switch — last green 2026-10-22 17:10:22Z oncharly-githubrunner-no-4/opencharly; first red 2026-10-22 23:10:09Z on theopencharly-ubuntupool), the decisive control (ci.ymlandpin-currency.ymlboth provision Go;release-binary.ymldid not), and the missed control (the fleet's own recipe states the contract — "every workflow that needs it usesactions/setup-go" — and no check enforced it, so a workflow that violates the contract is red only at the moment it runs). The fix restores the contract, and the proof is a live run on the fleet that broke it. 49 failures exist in total; the other 4 are a different mechanism — a full runner disk at the link step, on the old pool, before the switch — and they are FILED, not fixed here (see## Filed issues).actions/setup-go@v5step, with the samego-version-file, as the workflows that never broke.ubuntu-latestrunner with no self-hosted host is gone, replaced by the one that names the fleet and the declared toolchain.git statuswas read first, the change is one file in the session worktree onfeat/rb-1063, nothing was force-pushed, no published history was rewritten, and nothing was pushed tomain.goinvocation exits 127 (pasted above), after it the whole BUILD runs green on the same fleet (pasted above). The dispatched run is the changed path executed live — the artifact under test is the release binary set the workflow produces, and the workflow's own strip and CalVer checks assert it.workflow_dispatchon the real fleet. Nothing here is mocked, and the failure that is being fixed is a real service boundary, not a fixture.Change classification
.github/workflows/release-binary.yml. No Go source, no schema, no module pin, no gitlink, no behavioural configuration in the product.workflow_dispatchof this branch on theopencharly-ubuntufleet, which exercises every build step, the strip check and the CalVer check. No bed run and no image build: the change is the workflow, and the workflow is the gate.Filed issues
gowithout declaring it is discovered only when it runs #1066 — the release-binary build path has no pull-request coverage, and the fleet's toolchain contract is enforced by nothing. This change fixes the one workflow that violated the contract, but the control that would have CAUGHT the violation is still missing: the release path never runs on a pull request, so its build (twelve welded plugins, the arm64 and armv7 cross-compiles, the.providersmanifests, the strip and CalVer assertions) is exercised for the first time only when a tag is pushed — which is how 45 consecutive red runs went unnoticed for two days whileci.ymlstayed green. Separable from a one-file workflow change: it is a new pull-request job and a new check. Filed, not fixed here._worktree or theGOMODCACHEthe image pins to a persistent path, so a release build can exhaust the runner's disk. This is the OTHER class of the 49 failures: 4 of them died at the link step withmapping output file failed: no space left on device(exit 1) on the old pool, a different mechanism on a different fleet. A workflow cannot fix a full disk without hiding it behind a workaround, so the finding belongs to the image that owns the runner. Filed, not fixed here.Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)