Repository navigation
ci: build hosted test shards one memory-heavy crate at a time - #12704
Conversation
The ripr lib test and xtask bin test compiles (about 9-11 GB each) overlapped inside cargo nextest's workspace build on 16 GB hosted runners, ending shards with a runner shutdown signal (exit 143) or lost communication. Build the workspace without xtask first, then add xtask, and log a memory trace. Nextest command, verifier and Result are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2V8kCE8LReycVLHP
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 54 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2V8kCE8LReycVLHP
|
Review of record, head 3dfabd1 Angles: (1) correctness and fail-closed, (2) build semantics, (3) spec/contract conformance. Done by an independent reviewer agent against the exact head, plus the hosted run 41523357447 (Result green, all four shards and Findings, none blocking:
Resolution: merged on the green exact-head Result. Generated by Claude Code |
Requested by Steven · project thread
Governing issue or accepted claim: #12703
Acceptance delta (one sentence): Hosted test shards no longer compile the
riprlib test andxtaskbin test at the same time, removing the memory spike that ended shards with a runner shutdown signal (exit 143).Cause
Of 23 failed hosted shard jobs since 11-01, 14 ended with "The runner has received a shutdown signal" (exit 143), always 10-13 min into the job, inside the test-profile compile of
cargo nextest run --workspace. Examples: runs 41490865359 (shard 2), 41473728937 (shard 2), 41494005737, 41495107332, 41499224675. Successful shards spend 6.5 min in that compile (xtask test alone); the lost ones die in it.Reproduction on a 4 CPU / 16 GB box with
cargo test --workspace --no-runand CARGO_INCREMENTAL=0: peak 15.1 GB used, rustc sum 13.4 GB, kernel OOM-killedxtask(bin test) andripr(lib test), with single rustc at 11.4 GB and 9.5 GB. Compiling-p xtaskalone peaks at 7.3 GB.CARGO_PROFILE_DEV_DEBUG=0did not help (peak 15.4 GB), so it is not in this PR.Change
New step builds
--workspace --exclude xtask, then--workspace, so the two heavy compiles are serialised (jobs capped at 3), with a memory trace in the log. The nextest command, shard verifier and Result are untouched; a build failure fails the shard.Not proven
My local disk quota stopped a clean before/after of the split itself, so this run is the measurement: check the "peak memory sample" line in the new step. The split assumes
--exclude xtaskyields identical unit fingerprints for the second build (no recompilation); the step log will show it. Residual infra loss still costs a fresh run, see #12703.cargo xtask check-workflowspasses locally.precommitcould not run (shallow clone, no merge base, then timed out); hosted gates will.Generated by Claude Code