fix(ci): keep the job-local cache alive during long compilations #464

Merged
buildagent merged 1 commit from codex/compiler-cache-active-requests into master 2026-10-25 09:54:42 +01:00
Member

Long compilations can outlast sccache 0.15's idle timer, causing an active request to lose its server and compile again through fallback. Disable that timer before starting the job-local server and carry the setting into subsequent CI steps. Disposable job containers bound its lifetime; fallback and backend credential redaction remain intact.

Validation: all 22 Python CI controls pass, including three executed cache-setup controls. The new timeout control fails with the old setup. In the pinned CI image, a real GCC compilation through the actual setup script reproduces the baseline shutdown and duplicate compilation (27.024s), while the candidate compiles once (15.036s) and returns a warm hit in 0.005s with the same object hash. This isolates the idle-timeout mechanism; the historical CI server exit reasons remain unmeasured.

Fixes #437.

Long compilations can outlast sccache 0.15's idle timer, causing an active request to lose its server and compile again through fallback. Disable that timer before starting the job-local server and carry the setting into subsequent CI steps. Disposable job containers bound its lifetime; fallback and backend credential redaction remain intact. Validation: all 22 Python CI controls pass, including three executed cache-setup controls. The new timeout control fails with the old setup. In the pinned CI image, a real GCC compilation through the actual setup script reproduces the baseline shutdown and duplicate compilation (27.024s), while the candidate compiles once (15.036s) and returns a warm hit in 0.005s with the same object hash. This isolates the idle-timeout mechanism; the historical CI server exit reasons remain unmeasured. Fixes #437.
fix(ci): keep job-local compiler cache alive during active builds
All checks were successful
Package CI / package (timeline) (pull_request) Successful in 48s
Package CI / package-corpus (ruby) (pull_request) Successful in 19s
Package CI / package (xaml) (pull_request) Successful in 38s
Package CI / package-corpus (javascript) (pull_request) Successful in 42s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m25s
Package CI / package-corpus (php) (pull_request) Successful in 49s
Package CI / package-corpus (vue) (pull_request) Successful in 19s
Package CI / package-corpus (xaml) (pull_request) Successful in 21s
Package CI / package-corpus (csharp) (pull_request) Successful in 55s
Package CI / package-corpus (python) (pull_request) Successful in 53s
Package CI / package-corpus (rust) (pull_request) Successful in 51s
Package CI / package-corpus (svelte) (pull_request) Successful in 48s
Package CI / package-corpus (typescript) (pull_request) Successful in 49s
Package CI / package-corpus (timeline) (pull_request) Successful in 54s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 1m25s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 1m0s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m8s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / cargo doc (intra-doc links) (pull_request) Successful in 4m44s
CI / cargo deny (pull_request) Successful in 4m53s
CI / cargo clippy (pull_request) Successful in 5m15s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 6m28s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 6m40s
CI / cargo check (windows-gnu) (pull_request) Successful in 7m0s
CI / cargo test (pull_request) Successful in 24m26s
CI / OSS corpus (tier 1) (pull_request) Successful in 31m26s
CI / cargo test (daemon transport) (pull_request) Successful in 8m53s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 43m38s
40fbe0938d
Author
Member

Merged normally after all four exact-head workflows passed on 40fbe0938d: Windows 6675 (44m04s), core 6676 (40m50s), packages 6677, pilots 6678. Fetched merge 047c915a6d; source head is a merged ancestor and both trees equal 18c61c1592. No force merge or qualification waiver. The CI fix now applies to subsequent runs; the runtime release batch is still being validated.

Merged normally after all four exact-head workflows passed on 40fbe0938de054ddc17401eb089615f5ca625228: Windows 6675 (44m04s), core 6676 (40m50s), packages 6677, pilots 6678. Fetched merge 047c915a6dddb266ea39f6d4580ab014d37b8a83; source head is a merged ancestor and both trees equal 18c61c15926a3a36daa753c5028671ea206b3d58. No force merge or qualification waiver. The CI fix now applies to subsequent runs; the runtime release batch is still being validated.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!464
No description provided.