Repository navigation
Pin setup-envtest to a fixed version - #7151
Conversation
The operator integration tests install setup-envtest with `@release-0.22`, a branch query on the nested sigs.k8s.io/controller-runtime/tools/setup-envtest module. Since 2026-11-16 the Go module proxy answers that query with 404 "not found: temporarily unavailable". Go then falls back to the root controller-runtime module, which does not contain the package, so every run of operator-test-integration fails before any test starts. Pin the pseudo-version that release-0.22 resolved to before the outage (the branch head, commit a19ec76a3c5d). Exact versions resolve through the proxy, and the tool no longer changes under us when the branch moves. Co-authored-by: Mecatl <[email protected]>
rdimitrov
left a comment
There was a problem hiding this comment.
Approving: the pin is correct and makes the install deterministic.
Design: setup-envtest is installed and used in exactly one place, operator-test-integration in cmd/thv-operator/Taskfile.yml, and the pin is made there. CI reaches it only through that task. The pseudo-version resolves on the Go proxy and is the same commit @release-0.22 resolves to today, so contributors and CI get an identical binary and use 1.31.0 returns the same assets. Nothing changes for users; this is a dev/CI-only task.
Not blocking: Renovate has no manager for Taskfile go install lines, so this pin (like ogen and swag) will go stale unless someone bumps it by hand. A one-line "manually maintained" note next to the pin would help. A tagged version (e.g. v0.25.x, which also builds) would read better than a pseudo-version, but it is not required.
🤖 Reviewed with Claude Code
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7151 +/- ##
=======================================
Coverage 81.30% 81.30%
=======================================
Files 883 883
Lines 90108 90108
=======================================
+ Hits 73259 73264 +5
+ Misses 16844 16839 -5
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
The operator integration tests started failing on every PR at setup, before any test runs:
setup-envtestis a nested module. Since about 10:30 UTC today the Go module proxy answers the branch querytools/setup-envtest/@v/release-0.22.infowith 404 "not found: temporarily unavailable", while the root module's branch query and exact-version queries still work. On a 404 Go falls back to the shorter module path, lands on the rootcontroller-runtimemodule, and fails. Nothing changed upstream:release-0.22is still at the same January commit and resolving withGOPROXY=directstill finds the nested module.setup-envtesttov0.0.0-20260125163108-a19ec76a3c5d, which is exactly what@release-0.22resolved to in the last passing run (branch head a19ec76a3c5d), so the tool binary is unchanged.Type of change
Test plan
Installed the pinned version into a scratch
GOBINthrough proxy.golang.org;setup-envtest versionreportsv0.0.0-20260125163108-a19ec76a3c5dandsetup-envtest use 1.31.0 -p pathresolves the envtest assets. The Operator Tests Integration job on this PR exercises the full task.