Repository navigation
ci: add swap headroom for the hosted shard test build - #12725
Conversation
The ripr lib test rustc holds ~11 GB before codegen and peaks near 14 GB, so build scheduling cannot lower the floor on a 16 GB runner. Add 8 GB of swap and report swap use in the memory trace (#12719). 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 24 minutes. View limit details
CodeRabbit Verify
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…swap file Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2V8kCE8LReycVLHP
…sion-free swap path The previous commit's sed edit mangled the workflow; this restores the file and applies the path change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2V8kCE8LReycVLHP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmr2V8kCE8LReycVLHP
|
Review of record, head e716167 Angles: (1) correctness and fail-closed, (2) evidence honesty, (3) contract/policy. Independent reviewer agent on the exact head, plus hosted run 41553610419: Result green, all four shards and Findings, none blocking:
Resolution: merge on the green exact-head Result. #12719 stays open for the post-merge watch (no exit 143 over the next routed-rust runs) and #12726. Generated by Claude Code |
Requested by Steven · project thread
Governing issue or accepted claim: #12719
Acceptance delta (one sentence): The hosted shard test build gets 8 GB of swap so a memory spike pages out instead of starving the runner, and the trace reports swap use.
Measurements (same 4 CPU / 16 GB shape, CARGO_INCREMENTAL=0)
riprlib test built alone first, then the rest: OOM-killed at 13.9 GB.-Ztime-passesonripr --lib --profile testwith 1 job: the lib test is one rustc over a 1.4M-line crate. About 11.2 GB is resident before codegen starts (frontend 3.7 GB, MIR borrowck +4.3 GB in 122 s, monomorphisation +1.8 GB), then codegen takes it to 13-14 GB.So the floor is the lib test compile itself. Swap is the cheap safety net; the structural fix (a smaller lib test compile) is filed separately.
Change
New step
Add swap headroom for the test build: 8 GB swapfile under/mnt(or/), best effort. If setup fails it logs a::warning::and the build still runs. It adds memory only: no gate, test selection, verifier or Result changes. The memory trace line now also printsswap_used_mb.Not proven
Whether the hosted runner allows
fallocate+swaponand how much disk is free: this run's log shows it. Swap trades an OOM stall for slowness, so check the Rust tests shard wall time too.cargo xtask check-workflowspasses locally.Generated by Claude Code