Skip to content

release-binary has failed on every run since 2026-10-22: the self-hosted runner's build step has no go on PATH #1063

Closed

Description

@aitrawog

Every release-binary run on this repo's main has failed since 2026-10-22 17:10 UTC, and the failure is the same every time: the build step cannot find go.

What happens

release-binary checks out the release tag and runs the release build:

Run cd charly && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -buildvcs=false \
    -ldflags "-s -w -X main.BuildCalVer=${CALVER}" -o ../bin/charly-linux-amd64 .

The step dies with:

/home/ubuntu/actions-runner/1/_work/_temp/5456285c-…sh: line 1: go: command not found
##[error]Process completed with exit code 127.

/home/ubuntu/actions-runner/1/_work/… is the self-hosted runner. The go toolchain is not on that runner's PATH for this step, so the release binary is never built.

The measured extent

  • Last successful release-binary run: 39820313221, 2026-10-22 17:10 UTC, head 9fd74793.
  • Every run since then fails: 40049439183, 40049460618, 40072497908 (head 695b463b), 40116316174, 40116332578 (head 6f62efbf), 40127658941, 40127678196, 40133437398 (head 1ca8b401).
  • The failure is identical on every one of them — same step, same go: command not found, same exit code 127. It is not load-dependent and not a flake.

Why this is filed rather than fixed here

It is not caused by the change that surfaced it. The change that surfaced it is a one-gitlink pin advance in #1055, whose own gate (the pin-currency control) is green; this workflow runs on main's head and is red there before and after that change. The two are genuinely separable, so it is filed rather than fixed in that PR.

Where the fix belongs

The runner's Go toolchain provisioning — the self-hosted runner image or the workflow's toolchain setup step — not a repo source change. Note #806 ("move ci/release-binary/tag-on-merge to the self-hosted runner") is the change that put this workflow on that runner; it is closed, and this is what that move left behind.

Two things to settle, and the RCA should name which:

  1. Does the self-hosted runner have Go installed at all, and is it on PATH for a non-interactive bash -e step? A runner that resolves go in an interactive shell but not in a workflow step is a PATH provisioning defect, not a missing toolchain.
  2. Does the ci workflow on the same runner install Go explicitly (actions/setup-go or equivalent)? If ci does and release-binary does not, the fix is to give release-binary the same setup step; if neither does, the fix is in the runner image.

Acceptance

  • release-binary runs green on main's head.
  • The go build step's log shows the toolchain it used, so the next reader does not have to re-derive it.
  • The fix is proved by a run on main — not by a local build.

Activity

  1. aitrawog commented on Oct 24, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — I am taking this issue; it surfaced on my PR's round and it is unassigned.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)

    What I read from the issue. Every release-binary run on main since 2026-10-22 17:10 fails the same way: the release build step dies with go: command not found (exit 127) on the self-hosted runner. Last success: 39820313221.

    Why I am filing it here and not fixing it in my PR. The change that surfaced it is a one-gitlink pin advance (#1055) whose own gate — the pin-currency control — is green on the final tree. This workflow is red on main's head, before and after that change, so the two are genuinely separable: it is filed, and my PR's body lists it under ## Filed issues.

    What I have not done. I have not touched the runner, the workflow, or main. The RCA in the issue names the two settlements it needs — the runner's PATH provisioning versus a missing setup-go step in this workflow — and both live outside the one-gitlink diff I am landing.

    Next update. I will read the failure's own history and the ci workflow's toolchain setup on this repo, and post what the RCA says, with the evidence. If it turns out to be separable from anything else in flight, I will take the fix in this repo's own PR; if it is a runner-image change, it belongs to the runner's owner and I will say so on the thread.

  2. self-assigned this
    on Oct 24, 2026
  3. aitrawog commented on Oct 24, 2026

    @aitrawog
    ContributorAuthor

    RCA — the release-binary build step has no go on PATH, and the mechanism is a
    runner-fleet switch that this workflow never noticed because it never declared
    the toolchain it needs.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)

    The symptom, exactly. Every run fails in the FIRST step that shells out to
    go — Build amd64 charly (native) — with
    /home/ubuntu/actions-runner/1/_work/_temp/76f8377d-….sh: line 1: go: command not found
    and ##[error]Process completed with exit code 127. The steps before it are
    green: the checkout resolves the submodules, the tag-resolution step runs. The
    network, the runner and the checkout are all healthy. The toolchain is simply
    absent.

    The mechanism. release-binary.yml never provisions Go. It has no
    actions/setup-go step, and every go it invokes is expected to find the
    compiler already on PATH. That expectation was inherited from the GitHub-HOSTED
    ubuntu-latest image, and the workflow's own header still says so:
    "Pure Go cross-compilation (CGO_ENABLED=0), so this runs on a stock
    ubuntu-latest runner — no distro-native tooling, no self-hosted host."
    That
    sentence is now false. runs-on is
    ${{ vars.CI_RUNNER_LABEL || 'ubuntu-latest' }}, and CI_RUNNER_LABEL now
    resolves to the self-hosted fleet.

    The trigger, dated to the run. The org variable was switched between the
    last green run and the first red one:

    when runner label result
    2026-10-22 17:10:22Z charly-githubrunner-no-4 opencharly success (last green)
    2026-10-22 23:10:09Z charly-ci-vmi3-4 opencharly-ubuntu failure (first red)

    Every run before the switch is green and every run after it is red — 49 failures
    so far, all with the same exit 127 — and the fleet after the switch is a
    different one: charly-ci-vmi*, charly-ci-{2,4,8,16,32}vcpu-*, label
    opencharly-ubuntu, against charly-githubrunner-no-* and label opencharly
    before it. The switch happened outside this repo, in the org's runner
    configuration.

    The decisive control — this is what was missed. The same repo, the same
    commit, the same fleet, the same checkout, and the go job PASSES:

    • ci.yml provisions Go explicitly — actions/setup-go@v5 with
      go-version-file: charly/go.mod — and its go job is success on
      charly-ci-4vcpu-8-1 (label opencharly-ubuntu) at 1ca8b401.
    • pin-currency.yml provisions it the same way (actions/setup-go@v5,
      go-version-file: charly/go.mod) and is green on that fleet.
    • release-binary.yml does not, and is red on that fleet.

    So the fleet is not broken, the network is not broken, the module cache is not
    broken, and Go itself is not broken. The ONE difference between the green path
    and the red path is a step that declares the toolchain, and the red path does
    not have it.

    The missed control, named. Each workflow declared its toolchain by
    INHERITANCE from the runner image instead of by DECLARATION, and the release
    workflow is not on the PR path at all — it fires on a tag push or on
    workflow_run of tag-on-merge, never on pull_request — so its failure
    never lands on a PR's check and never blocks a merge. That is why 49 red runs
    accumulated unnoticed. And no diff can have caught it: the difference between
    the two workflows is not in the repository's history, it is in an operator's
    runner image. The control that was missing is the one that says a workflow
    declares the tools it uses, instead of inheriting them.

    The two settlements, and what each one is.

    1. Declare the toolchain in release-binary.yml — add the SAME
      actions/setup-go@v5 step, with the SAME go-version-file: charly/go.mod,
      that ci.yml and pin-currency.yml already use. The toolchain becomes a
      property of the workflow rather than of the image, and the release binary is
      built with the Go version the module itself declares instead of whatever the
      image happened to carry. This is the root fix, and it is also the
      duplicate-free shape: one canonical step, used the same way in every
      workflow, with no per-workflow improvisation.
    2. Point vars.CI_RUNNER_LABEL back at opencharly — the fleet that
      carried Go, and the lever that is the operator's rather than the repo's. It
      restores the release build immediately, and it leaves the latent defect
      exactly where it is: the build's toolchain is still incidental, so the next
      fleet change breaks it again, and the release binary's Go version is still
      unpinned and invisible to the repo.

    There is a third move worth naming so it is not chosen by accident:
    installing Go on the opencharly-ubuntu fleet images would remove the
    symptom and it is the fleet's own business, but it leaves the release build's
    Go version unpinned and unversioned by the repo, so the binary's toolchain
    drifts without a trace. It complements (1); it does not replace it.

    What I am doing about it. This issue is mine — it was CLAIMed at
    2026-10-24 21:17:33Z. I am landing the fix as its own small change in this
    repo, on its own branch, and it will carry a LIVE proof: the workflow is
    dispatched on the fix branch (workflow_dispatch is already a trigger of
    release-binary.yml), and the run has to build the amd64, arm64 and armv7
    binaries and their welded plugins for real. A green PR check is not the proof
    here — the release path does not run on PRs — so the dispatched run is.

    The header comment is part of the same finding. The workflow's first
    paragraph still claims it runs on a stock ubuntu-latest runner and no
    self-hosted host, and that sentence is what kept the implicit toolchain
    believable. It goes in the same change, because a stale comment about the
    runner is the documentation half of the same defect.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)

  4. aitrawog commented on Oct 24, 2026

    @aitrawog
    ContributorAuthor

    Agent: charly

    RCA — a correction to my 21:36 comment on this issue. Two sentences in that
    comment are wrong, and both were about the history rather than the mechanism. The
    mechanism, the decisive control and the fix are unaffected; the history is not, so
    it is corrected here.

    The wrong claim, verbatim. "Every run before the switch is green and every
    run after it is red — 49 failures so far, all with the same exit 127."

    Both halves of it are false.

    1. Not every run before the switch is green. There are four failures
      before the switch.
    2. Not all 49 failures share the exit-127 mechanism. Only 45 do. The
      other four fail at a later step, with a different mechanism and a
      different exit code.

    The corrected figures, measured over every failed release-binary run.

    $ gh api "repos/opencharly/charly/actions/workflows/release-binary.yml/runs?per_page=100" \
        --jq '.workflow_runs[] | select(.conclusion=="failure") | .id'      # 49 runs
    $ for RUN in <those 49>; do gh api repos/opencharly/charly/actions/runs/$RUN/jobs \
        --jq '.jobs[0] | "\(.runner_name) labels=\(.labels|join(",")) steps=\(.steps[]|select(.conclusion=="failure")|"\(.number):\(.name)")"'; done
    

    49 failures, in exactly two classes:

    class count when runner pool failing step exit
    missing toolchain 45 2026-10-22T23:10:09Z → 2026-10-24T21:33:32Z, unbroken opencharly-ubuntu (charly-ci-*) 4: Build amd64 charly (native) — the first go invocation 127
    runner disk exhausted 4 2026-10-22 04:18:57Z, 04:19:14Z, 07:55:32Z, 07:55:49Z opencharly (charly-githubrunner-no-*) 7: arm64 plugin build / 9: armv7 plugin build — i.e. after the amd64 build had succeeded 1

    The 45 are 45 consecutive failures: from the first red of that class to the
    last one before this comment, there is no green run in between. The 4 disk
    failures are interleaved among the greens of 2026-10-22 (the greens at 00:34,
    00:35, 03:24, 12:46, 16:11, 16:45, 17:10).

    The disk class's own log line, in all four (run 39721687110, job 119636363161):

    2026-10-22T04:22:44.4116733Z /usr/lib/go/pkg/tool/linux_amd64/link: mapping output file failed: no space left on device
    2026-10-22T04:22:44.4226060Z ##[error]Process completed with exit code 1.
    

    The switch boundary is unchanged, and it is exact. Last green
    39820313221 at 2026-10-22 17:10:22Z on charly-githubrunner-no-4 (label
    opencharly); first red of the missing-toolchain class 39869994051 at
    2026-10-22 23:10:09Z on charly-ci-vmi3-4 (label opencharly-ubuntu). The four
    disk failures sit on both sides of that boundary, which is why "every run
    before the switch is green" could not be true.

    One thing the corrected history strengthens. The disk-failure logs name
    /usr/lib/go/pkg/tool/linux_amd64/link — the old fleet image's Go, at
    /usr/lib/go. The old image carried Go in the image; the new one does not (its
    own recipe says so: "Go is deliberately NOT here: every workflow that needs it
    uses actions/setup-go"
    ). So the corrected history is independent evidence for
    the mechanism, not against it: the fleet swap moved the toolchain from inherited
    to absent, and only the workflow that never declared it broke.

    What the correction does not change. The decisive control stands
    (ci.yml and pin-currency.yml declare actions/setup-go@v5 with
    go-version-file: charly/go.mod; release-binary.yml did not), the missed
    control stands (the toolchain was inherited from an image instead of declared by
    the workflow, and the release path is not on the PR path, so its failure never
    gated a merge), and the fix stands (declare the toolchain, in the same form the
    two healthy workflows use).

    The disk class is a different defect, and it is filed, not fixed here. It is
    separable from the toolchain defect: a missing toolchain and a full disk are
    different mechanisms, and a workflow cannot fix a full disk without hiding it
    behind a workaround. FILED as
    opencharly/distro-ubuntu#62
    — the fleet runner image GC-times the docker store but never prunes the Actions
    runner's _work tree or the GOMODCACHE the image pins to a persistent path, so
    a release build can exhaust the runner's disk and the failure arrives as a
    build error that names no disk.

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

  5. aitrawog commented on Oct 24, 2026

    @aitrawog
    ContributorAuthor

    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)

  6. aitrawog commented on Oct 24, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the release build declares the toolchain it always assumed, and the fleet that broke it is green.

    The merge. PR #1067 merged as 4a19da38d7a32bcd1c8f7475a828368b33ecc2d7 (head
    aebba4896334f302094e6b366e3f5e4502564a68) at 2026-10-24T22:23:25Z. The merge-time tag
    v2026.297.2223 points at that commit, and CHANGELOG/2026.297.2223.md is on main.

    What the RCA named, and what this change did about it. The mechanism was that the
    opencharly-ubuntu fleet image deliberately ships without Go — its own recipe says so
    ("every workflow that needs it uses actions/setup-go…") — and release-binary.yml was
    the one workflow in the repo that assumed an inherited toolchain. The trigger was the
    2026-10-22 fleet switch: the last green release build was 2026-10-22 17:10:22Z on
    charly-githubrunner-no-4 (opencharly), and the first red was 2026-10-22 23:10:09Z on
    the opencharly-ubuntu pool. The fix declares the toolchain in the one step every build
    below it uses — actions/setup-go@v5 with go-version-file: charly/go.mod and
    cache-dependency-path: charly/go.sum, the same step ci.yml and pin-currency.yml
    already carry — and corrects the header sentence that named a stock hosted runner.

    The proof, on the fleet that broke it. The negative control is run 40134751798 on
    main: the first go invocation dies with go: command not found, exit 127, on the
    opencharly-ubuntu fleet, with every step before it green. The positive control is a
    workflow_dispatch of the branch on that same fleet: run 40135994088,
    charly-ci-4vcpu-9-1, conclusion: success — every build step green (amd64, the 12
    welded plugins, arm64, armv7), the CalVer check green at 2026.297.2150, and the strip
    check green ("All release binaries are stripped (no symbol table, no DWARF)"). The
    release-upload step is skipped, because a dispatch carries no RELEASE_TAG: the run
    proved the BUILD path, and it published nothing.

    The correction this thread already carries. The first version of the RCA claimed that
    every pre-switch run was green and that all 49 failures were exit 127. That was wrong, and
    the correction is on this thread: 45 of them are exit 127 at the first go invocation on
    the opencharly-ubuntu fleet (2026-10-22T23:10:09Z → 2026-10-24T21:33:32Z, unbroken),
    and the other 4 are a different mechanism — a full runner disk at the link step
    (mapping output file failed: no space left on device, exit 1) on the old pool,
    before the switch. Those four are FILED, not fixed here: opencharly/distro-ubuntu#62,
    because a workflow cannot fix a full disk without hiding it behind a workaround.

    What is not filed away.

    • The control that would have CAUGHT the violation is still missing — the release path
      never runs on a pull request, so its build is exercised for the first time only when a
      tag is pushed, which is how 45 consecutive red runs went unnoticed for two days while
      ci.yml stayed green. FILED as the release-binary build path has no pull-request coverage, and the fleet's toolchain contract is enforced by nothing: a workflow that runs go without declaring it is discovered only when it runs #1066.
    • The validator's one non-blocking observation — the action is pinned to the floating
      major tag @v5 rather than a digest — is accepted as a real, separate, repo-wide
      hardening item and is NOT acted on inside a one-file fix: the remedy the observation
      names (pin by digest repo-wide) would create a second declaration form for the
      same action in a repo that declares it three times already. The rebuttal, with the
      evidence, is on the PR thread.
    • The issue's own history: the RCA and its correction are the record; this comment is the
      settlement.

    Next update due: when the umbrella's next wave lands the charly pin that carries
    this change, or when the operator says otherwise.

    Agent: charly

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions