Skip to content

CI test speed - #15

Merged
zancas merged 1 commit into
mainfrom
ci_test_opt_level
Nov 9, 2026
Merged

zancas merged 1 commit into
mainfrom
ci_test_opt_level

Conversation

@elicbarbieri

Copy link
Copy Markdown
Collaborator

Fixes:

CI's Test step spent 4m19s of ~4m50s compiling the 22 workspace test binaries at opt-level 3; the tests themselves ran in 26s

  • CI sets CARGO_PROFILE_TEST_OPT_LEVEL=0: workspace crates compile unoptimized (sccache can't cache test binaries, so they rebuild every run)
  • [profile.test.package."*"] opt-level = 3: deps stay optimized (crypto-heavy, and still served from rust-cache)
  • Local builds unchanged (opt-level 3), so the heavy proptest run keeps its speed

Measured locally (20 cores): workspace rebuild 64s → 16s, test run 9s → 23s, 610/610 pass. Expected on CI: Test step ~4m50s → ~2m15s; this PR's own run is the before/after.

Test binaries are uncacheable by sccache, so every run rebuilt them at opt-level 3. Deps stay at 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zancas
zancas merged commit 36c2286 into main Nov 9, 2026
6 checks passed
@zancas
zancas deleted the ci_test_opt_level branch November 9, 2026 22:07
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.

2 participants