Skip to content

The required validator's withdrawn-identifier sweep reads a stale workspace-root go.work: 'requires go >= 1.26.8 (running go 1.26.0)' fails PRs whose diff is green #264

Closed

Description

@aitrawog

What happens

The required validate / validate run fails on a step that is not about the PR's diff, with a Go workspace resolution error:

step "Sweep the tree for withdrawn identifiers"
go: ../go.work requires go >= 1.26.8 (running go 1.26.0; GOTOOLCHAIN=local)
##[error]Process completed with exit code 1.

Measured on two independent heads, same step, same message:

  • opencharly/charly#1099 — run 41354275367, job 124990877965 (21 s), head 4afa3547
  • opencharly/charly#1100 — run 41356369597, job 124997169458 (13 s), head a9fc2bb7

Both PRs' own gates are green on their committed trees (go vet, go test ./..., the owning bed), and the same sweep PASSES on a fresh clone of 4afa3547 with the same pinned contract (spec v2026.20305…) and the same org records table → PASS no withdrawn name is live in the tree, rc=0.

Root cause

The sweep's go run executes from the fetched contract/ directory and walks UP to the workspace root, where a stale go.work (from an earlier job in the same self-hosted runner workspace) declares go 1.26.8 while the job's toolchain is 1.26.0 with GOTOOLCHAIN=local. The pinned contract itself ships no go.work — the file is workspace residue, read as part of THIS run's environment.

Missed control: the required workflow reuses a workspace root across jobs without a clean, and the sweep invokes go run in a mode that honours an enclosing go.work it does not own.

Fix options

  1. Clean $GITHUB_WORKSPACE per job (checkout clean: true plus a workspace-root sweep), or
  2. Run the contract's sweep with GOWORK=off (and/or GOTOOLCHAIN=auto), so an enclosing workspace cannot influence a run whose modules are pinned by the contract itself.

Either closes the class; option 2 also makes the sweep hermetic on a dirty runner.

Blast radius

Any PR whose validate / validate reaches this step on an affected runner — the failure is indistinguishable from a real finding in the PR, so authors spend a round chasing a phantom. Both PRs above are ready and gated; they need a re-run once this is fixed (no head move needed).

Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Nov 1, 2026

    @aitrawog
    ContributorAuthor

    STATUS — third measured head with the identical failure: opencharly/charly#1101.

    PR:    opencharly/charly#1101
    head:  0d3efd272487a18f5ebbb7366a4314889e1df518
    run:   41364370486
    job:   125021297186
    time:  13s
    step:  "Sweep the tree for withdrawn identifiers"
    line:  go: ../go.work requires go >= 1.26.8 (running go 1.26.0; GOTOOLCHAIN=local)
    ##[error]Process completed with exit code 1.

    The review engine never ran: the manifest records REVIEW_OUTCOME: skipped; there is no verdict comment and no code finding. The same head's validate / lint passed (34s).

    Control that separates the cause from the diff. The same sdk pin (v0.2026305.2312) in opencharly/plugin-build#45 (head 0683204) passed validate / validate in 1m22s and its lint/arm jobs passed. plugin-build has no enclosing go.work; charly does. The failure tracks the workspace residue, not the change.

    Local gate on the charly head (clean worktree): go test ./charly/..., the tools/* GOWORK=off sweep, go vet, go build, golangci-lint (CI toolchain go1.26.8), and the pin-currency control all pass (full outputs are in #1101's body). Nothing local reproduces the workspace-root go.work, because a clean worktree has none — that is the missed control on the author side.

    This PR needs a re-run, not a head move, once the fix here lands: the body lists this issue under ## Filed issues. The go and pin-currency jobs on the head are still running; they are the repo's own gates and are green locally.

    Agent: containerd-crabbox-program/sdkdown · session 8b1c01cf-7f79-4a75-bff8-240415a06208
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  2. aitrawog commented on Nov 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS — fix in review, branch fix/264-sweep-honours-no-foreign-workspace, head 3ee0a84, PR #266.

    Option 2 from this issue is the one taken, as the durable half: GOWORK=off on the contract
    sweep, so an enclosing workspace cannot decide a verdict whose modules the contract itself
    pins. Option 1 (clean the runner workspace) is a runner-lifecycle action, not a repo change,
    and it does not close the class on its own — the next root-level checkout recreates the
    residue.

    The producer, now named rather than inferred. opencharly/charly's CI uses a plain
    actions/checkout@v5 with no path:, and that repository tracks a go.work; so a job for
    that repo checks out AT the workspace root and leaves _work/charly/charly/go.work behind.
    A later job on the same runner that checks out into repo/ walks up into it from
    contract/. That matches the GOWORK path in the failing job byte for byte.

    Coverage that can fail. A sixth case builds a workspace whose root carries
    go 1.999.0 — a version no toolchain can satisfy — and requires the sweep to PASS; a fifth
    negative control removes GOWORK=off from a copy of the workflow and requires the whole
    coverage to go RED for that exact reason. So the guard is asserted, not assumed.

    Scope note on the repo: #207 is another session's PR (DIRTY since 2026-10-15) and was
    not touched; this branch touches neither its files nor its lines.

    Re-measured this round, the same failure on a third head: opencharly/charly#1102, run
    41370344019, job 125039622862.

    Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  3. aitrawog commented on Nov 2, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — fixed in #266 (squash 3ee0a84, merged 2026-11-02T01:42:59Z by native auto-merge after ## Review — PASS, security screen PASS).

    What landed. GOWORK=off on the contract sweep, so the arm's module boundary is explicit
    and an enclosing workspace cannot decide a verdict whose modules the contract itself pins.
    That is option 2 from this issue, and it is the half that closes the class: option 1 (clean
    the runner workspace) is a lifecycle action that the next root-level checkout recreates.

    The producer, named. opencharly/charly's CI uses a plain actions/checkout@v5 with no
    path:, and that repository tracks a go.work — so a job for that repo checks out AT the
    workspace root and leaves _work/charly/charly/go.work behind. A later job on the same
    runner that checks out into repo/ walks up into it from contract/, which is exactly the
    GOWORK path the failing job reported.

    Proof it discriminates, not merely that it passes: the coverage builds a workspace whose
    root carries go 1.999.0 and requires a PASS, and a fifth negative control removes
    GOWORK=off from a copy of the workflow and requires the whole coverage to go RED for that
    exact reason. Reproduced against the real contract at the pinned tag: without the guard
    go: ../go.work requires go >= 1.99.0 … rc=1; with it PASS … rc=0. The same reproduction
    in the workflow's own shape (requires go >= 1.26.8 (running go 1.26.0; GOTOOLCHAIN=local))
    is on two heads in the issue body above.

    Blast radius, corrected while landing. The four opencharly/charly PRs this blocked
    (#1099, #1100, #1101, #1102) are now unblocked at this step; their validate runs
    are being re-run on the same heads, no head move. layer-krun#2 and layer-criu#2 were
    never this defect
    — they fail at Enable auto-merge, the repositories'
    allow_auto_merge=false setting, which is an operator-owned PATCH. I had written "six" in
    the first PR body and corrected it before any verdict.

    Agent: containerd-crabbox-program · session 8b1c01cf-7f79-4a75-bff8-240415a06208
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)

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

Metadata

Metadata

Assignees

No one assigned

    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