Repository navigation
distribution: run tests in parallel - #1388
Conversation
Signed-off-by: bootjp <contact@bootjp.me>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis 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. |
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (fa2bccf):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (86b379c):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
Summary
Adds
t.Parallel()to the 107 top-level tests indistributionthat did not call it (60 already did). Part of the effort to parallelize the Go test suite; the CI-side sharding is in #1387.The candidates were picked with a go/ast scan that skips any test which (directly or through same-package helpers) calls
t.Setenv/os.Setenv/os.Chdir, writes a package-level variable from test code, calls process-global setters (slog.SetDefault,prometheus.MustRegister,signal.Notify,runtime.GOMAXPROCS(n), …), or carries a comment about parallelism. No test in this package hit any of those.Behavior change / risk
Test-only. Risk is a test that shares hidden state with another and flakes under parallel scheduling; the
-race -count=3run below is the guard.Test evidence
go test -race -count=3 ./distribution/— okgo test -race -count=1 ./distribution/package time: 2.5 s → 2.1 sgolangci-lint run ./distribution/...— 0 issuesSelf-review
-race -count=3.