Repository navigation
ci(e2e): run the conformance jobs on the repository's Go pin (#1283) - #1294
Merged
Merged
Conversation
bpalermo
force-pushed
the
upgrade/e2e-pinned-go
branch
2 times, most recently
from
October 6, 2026 00:42
eadd249 to
a71a701
Compare
`gateway-http` and `mesh-http` ran `go install sigs.k8s.io/cloud-provider-kind` and `go test` on whatever Go the runner image carried; a runner image update silently changed the toolchain the conformance suites built with. They were the only CI steps running a bare `go`: everything else goes through Bazel's SDK (`bazel run @rules_go//go`). - Both jobs set Go up with actions/setup-go v7.0.0 (SHA-pinned), `go-version-file: go.mod`, cache off. setup-go also exports GOTOOLCHAIN=local, so neither gateway-api's nor cloud-provider-kind's go.mod (both `go 1.26.0`) can switch to a downloaded toolchain. - Authoritative pin: MODULE.bazel `go_sdk.download` (the SDK that builds and tests everything Bazel ships; scripts/go-deps-audit.sh already treats it that way). go.mod's `go 1.27.1` equals it today, and setup-go reads go.mod, so the new //e2e:go_pin_test keeps the two equal. - //e2e:go_pin_test (a sibling of kind_pin_test). It fails when go.mod's effective version (a `toolchain` line, which setup-go prefers, else the `go` line) is not a full X.Y.Z equal to go_sdk.download. It fails when a setup-go step is not SHA-pinned, does not read go.mod, sets a literal `go-version`, or sets `check-latest: true`. It fails when a workflow job or composite action runs `go <cmd>` without a setup-go step before it. Every check was seen red on a deliberate drift. - Runbook: "Bumping Go". Closes #1283 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
upgrade/e2e-pinned-go
branch
from
October 6, 2026 01:04
a71a701 to
8556721
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bottom of a two-PR stack: this PR, then the composite-action refactor (#1286) on top.
Problem
gateway-httpandmesh-httpine2e.yamlrango install sigs.k8s.io/[email protected]andgo teston whatever Go the runner image carried. Nothing tied that Go to the repository's pin, so a runner image update silently changed the toolchain the conformance suites were built with.Other jobs: I checked every workflow, every composite action and every script they call. These two jobs were the only places a bare
goruns. Everything else uses Bazel's SDK:bazel run @rules_go//go(deps-audit,go get) or rules_go builds.Which pin is authoritative
MODULE.bazel
go_sdk.download(version = "1.27.1"). It is the SDK rules_go downloads, and it builds and tests everything Bazel ships.scripts/go-deps-audit.shalready treats it that way and calls go.mod'sgoline a language floor. go.mod'sgo 1.27.1matches it today, with notoolchainline. A workflow cannot read MODULE.bazel, so setup-go reads go.mod (go-version-file: go.mod), and the new test keeps the two files equal.Change
actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0withgo-version-file: go.modandcache: false. The cache is off because the suite builds from the gateway-api checkout, which this repository's go.sum does not describe; that also keeps it out of the repository-cache quota. setup-go v7 exportsGOTOOLCHAIN=local(src/main.tssetGoToolchain). As a result, neither gateway-api v1.6.2's nor cloud-provider-kind v0.12.0's go.mod (bothgo 1.26.0) can switch to a downloaded toolchain.//e2e:go_pin_testis a new sibling ofkind_pin_testand is hermetic: it reads only MODULE.bazel, go.mod, the workflows and the composite actions. It fails when:X.Y.Zequal togo_sdk.download. Atoolchain goX.Y.Zline counts first, because setup-go prefers it; otherwise thegoline.actions/setup-gostep is not SHA-pinned, does not readgo-version-file: go.mod, sets a literalgo-version, or setscheck-latest: true.go <cmd>without a setup-go step before its first such command.//:MODULE.bazeland//:go.modare exported to//e2e. Runbook section "Bumping Go".Proof
Before the workflow change, on unchanged main workflows:
Every check driven red once, one break per run, then restored:
All of these pass locally:
make actionlint: clean.bazel test //e2e/... //bazel/...: 12/12.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...make format-checkThe nightly dispatch is reported on the top PR of the stack, which carries the same Go setup inside
run-conformance.Closes #1283
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr