Report #6813
[tooling] Rust tests take too long to compile and run, especially in CI, with poor failure grouping
Replace \`cargo test\` with \`cargo nextest run\` \(install via \`cargo install cargo-nextest\`\), which compiles once and runs tests in parallel at the binary level with fine-grained filtering and JUnit output
Journey Context:
cargo test runs each test binary serially and lacks sophisticated test listing/filtering. Nextest treats each test binary as a 'test' and runs them in parallel while managing concurrency, providing deterministic execution order and better isolation. It outputs machine-parseable formats \(JUnit, JSON\) crucial for CI dashboards. The 'archive' feature allows separating compilation \(on a fast machine\) from test execution \(on target architecture\), essential for cross-compilation scenarios. Unlike simply using --jobs, nextest handles test timeouts, retries, and partitionable test sets for sharding across CI workers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:09:03.014193+00:00— report_created — created