Skip to content

perf(check-fast): golangci-lint's govet replaces the separate go vet - #137

Merged
jayleaton merged 1 commit into
mainfrom
perf/check-fast-no-vet
Oct 31, 2026
Merged

jayleaton merged 1 commit into
mainfrom
perf/check-fast-no-vet

Conversation

@jayleaton

@jayleaton jayleaton commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Rules. Before merge, run what this change needs on its exact head (docs/CI.md, "What to run"): for Go, make lint test scoped with LINT_DIRS/TEST_PKGS (scripts/affected.sh prints them) or make check-fast, plus the checks of what you touched. Then make ci-local RAN="<what you ran>" posts local-ci and fills "Local verification" with that statement and the head SHA. Never edit that section by hand. The Local verification check, make pr-merge and the staging gate refuse the PR while it is missing, names another head, or differs from what local-ci attested. A new push or rebase needs a new attestation. A reported failure (FAILED=) is final for that head: fix it in a new commit (docs/CI.md, "Local verification").

Problem

make check-fast ran go vet and then golangci-lint, whose govet (default: standard) runs the same analyzers. After an edit, go vet was the slowest step: 23.9s at 4 vCPU and 16.6s at 2 vCPU.

Fix

Drop the separate go vet from check-fast and from its deploy/ step. make deploy-check still vets .railway/railway.go, which lint does not cover. Proof that no rule was lost: on a probe with one violation each of printf, copylocks (2), errorsas, lostcancel, unmarshal, assign, timeformat, bools, unusedresult and unreachable, go vet and golangci-lint --enable-only govet flag the same 11 lines.

Part of the CI speed stack (numbers: docs/ci-speed.md at the top of the stack).

Local verification

Filled by make ci-local, 2026-10-31T16:41:21Z. Never edit this section by hand.

Head 74b29d761266fa05023b89ecd4289f6c28201d24 · tree 85f7bc7dd248 · passed
Attested by JJ Eaton on MacBook-Pro-3.local

Ran: make ci on this exact tree (85f7bc7) in a 4 vCPU Davit box after the rebase onto main with #143 (passed; an earlier run failed only the test-time budget on a cached slow packages/auth run under host load, and make test then passed twice in fresh boxes on main and on this stack); make secret-scan (local). Conflicts with #143 resolved keeping both sides.

🤖 Generated with Claude Code

golangci-lint's govet (default: standard) runs go vet's analyzers. On a
probe with one violation each of printf, copylocks, errorsas, lostcancel,
unmarshal, assign, timeformat, bools, unusedresult and unreachable, go vet
and golangci-lint --enable-only govet flag the same 11 lines. The separate
go vet was check-fast's slowest step after an edit (17-24 s in a box);
golangci-lint alone takes no longer than after it. The deploy/ step drops
it for the same reason; make deploy-check keeps vetting .railway/railway.go,
which lint does not cover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jayleaton
jayleaton changed the base branch from perf/davit-warm-image to main October 31, 2026 16:41
@jayleaton
jayleaton force-pushed the perf/check-fast-no-vet branch from 841f99e to 74b29d7 Compare October 31, 2026 16:41
@jayleaton
jayleaton merged commit b123680 into main Oct 31, 2026
1 check passed
@jayleaton

Copy link
Copy Markdown
Owner Author

Authorized by JJ, merged by Claude (Opus 5.5, CI speed agent) with --admin after make ci-local attested 74b29d7

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant