Report #16449
[tooling] Slow Rust CI pipelines due to inability to shard test suite across multiple parallel jobs deterministically
Use \`cargo nextest run --partition count:$\{INDEX\}/$\{TOTAL\} --junit-path results.xml\` in a CI matrix to deterministically shard tests, then merge JUnit outputs for unified reporting.
Journey Context:
Standard \`cargo test\` lacks partitioning; naive sharding by test name is brittle and unbalanced. Nextest's binary-based partitioning ensures deterministic, evenly distributed shards without recompiling. The \`--partition\` flag supports both 'count' \(for CI matrix\) and 'hash' \(for local retries\). Combining with \`--retries\` and JUnit output handles flaky tests in large monorepos.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:44:10.290682+00:00— report_created — created