Repository navigation
ci(go): run go vet and the contract checks beside Go lint - #3931
Conversation
Go lint ran whole-tree go vet, golangci-lint on the changed lines, the router-recovery rule over the whole tree, and the contract checks one after another, and it was the last job to finish in about a third of pull request runs. A pull request that changed go.mod took over 15 minutes in that step. A new Go vet and contracts job runs whole-tree go vet, the contract checks, and govulncheck on main and the schedule; Go lint keeps gofmt and the two golangci-lint runs. The vet job has its own build cache, which the cache pruning on main now keeps one of. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 59 minutes. View limit details
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: N/A
Validation tasks: none
Go lint is the job that holds up CI most often: it finished last in a third of passing pull request runs, at a median of 8.3 minutes and a p90 of 19 minutes from the start of the run. It ran whole-tree
go vet, golangci-lint on the changed lines, the router-recovery rule over the whole tree, and the contract checks one after another. This change movesgo vet, the contract checks and govulncheck into a new job that runs beside it.Approach
The new
Go vet and contractsjob runs whole-treego vet, the contract checks and, onmainand the schedule, govulncheck.Go lintkeeps gofmt and the two golangci-lint runs. The vet job has its own build cache, which the cache pruning onmainnow keeps one of, and it is in the job list theCI resultcheck requires.Go lint's step took a median of 377 s, about 150 s of it in
go vet. A pull request that changesgo.modorgo.sumwill still spend about 14 minutes in Go lint, because both golangci-lint runs re-analyse the whole tree when the dependency set changes.This adds one job per run; #3930 removes three.
CI runs
trusted-linux-ci.ymland the CI tools frommain, so this pull request's own checks still run the old layout. The change takes effect after merge. #3199 and #3200 also editgo-checks.mk; expect a small conflict for whichever lands second.Validation
Measurements behind this change (Nov 3–10, 479 passing pull request runs)
Finish time from run start, p50 / p90: Go lint 497 s / 1145 s, Go test 456 s / 903 s, Go DB pins 424 s / 920 s.
The 16 runs where Go lint's step took over 15 minutes all changed
go.mod/go.sum:go vetabout 3.5 min, lint-changed on the full tree about 5 min, router recovery about 9 min.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3931/
Risks
mainsaves a vet cache, pull request runs of the new job start cold.Go vet and contractsis new;Go lintno longer runs vet or the contracts. Merges are gated onCI result.Checklist
AI Disclosure
🤖 Generated with Claude Code