Skip to content

ci: partition crate-checks into 3 parallel jobs#14054

Closed
decofe wants to merge 1 commit intofoundry-rs:masterfrom
tempoxyz:zerosnacks/ci-partition-crate-checks
Closed

ci: partition crate-checks into 3 parallel jobs#14054
decofe wants to merge 1 commit intofoundry-rs:masterfrom
tempoxyz:zerosnacks/ci-partition-crate-checks

Conversation

@decofe
Copy link
Copy Markdown
Contributor

@decofe decofe commented Apr 1, 2026

Split crate-checks into 3 parallel matrix jobs using cargo hack check --workspace --partition M/N, matching the pattern used by reth.

Motivation

crate-checks runs cargo hack check sequentially across all 36 workspace crates. On fork PRs (which get no sccache or rust-cache), this takes ~16 min. Partitioning into 3 parallel jobs cuts wall-clock time by ~3x.

Changes

  • Split into 3 matrix partitions via cargo hack check --workspace --partition 1/3
  • Add fail-fast: false so one failing partition doesn't cancel the others
  • Add cache-on-failure: true to rust-cache so failed runs still populate cache
  • Add partition-specific rust-cache key to avoid save races between matrix legs

Prompted by: zerosnacks

Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
@decofe decofe requested a review from 0xrusowsky as a code owner April 1, 2026 14:17
@zerosnacks zerosnacks marked this pull request as draft April 1, 2026 14:23
@zerosnacks zerosnacks closed this Apr 30, 2026
@github-project-automation github-project-automation Bot moved this to Done in Foundry Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants