ci: build and test against latest and latest-1 Go releases #340
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 200 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.317
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #340"
general
weight: 0.35
dmcgowan
CI was pinned to Go 1.22.x, which has been end-of-life for some time, and every new Go release required a manual bump in two workflows.
Use actions/setup-go's 'stable' and 'oldstable' selectors instead, so the test matrix always covers the latest Go release and the one before it with no ongoing maintenance. This follows the pattern already used by containerd/ttrpc and containerd/plugin. Jobs that only need a single Go version (project checks, linters, cross-compile, CodeQL) use 'stable'.
Also set GOTOOLCHAIN=local so that a go.mod requiring a newer toolchain than the installed one fails loudly instead of silently downloading it.
Tracking the latest Go release requires a linter that supports it, so move off golangci-lint v1.62.0, which is EOL and caps out well below the current Go release. Pin v2.12.2 and migrate .golangci.yml to the v2 schema:
- gofmt and goimports are formatters in v2, not linters
- govet, ineffassign, staticcheck and unused come from the default 'standard' set, so they no longer need to be listed
- issues.exclude-rules moved to linters.exclusions.rules
- the exclusion presets restore the default exclusions that v1 applied implicitly, keeping the effective linter behaviour unchanged
v2's staticcheck subsumes gosimple and stylecheck, which surfaces two new findings; fix both. Drop 'deadcode' from //nolint directives as that linter no longer exists.
Lint now runs in its own job rather than once per test matrix entry. This uses a prebuilt golangci-lint instead of compiling it from source in every job, which offsets the cost of doubling the test matrix.