Repository navigation
Description
Problem
The build job in .github/workflows/ci.yml times out on a cache miss, reporting a false failure for a build that would have succeeded.
Evidence
- Failing run: GitHub Actions run
39523965735(2026-10-21), jobBuild & Test (desk-linux), job id118974171983. - The
rust-cacherestore step logged:Failed to restore: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. - The job therefore ran fully cold. The preceding
Buildstep alone took 2453s cold versus 520s warm (a ~4.7x ratio). - The
Compile library and binary testsstep rancargo test --lib --bins --no-rununderrun_with_timeout.py 900, was killed at ~909s with exit code 124 while still compiling transitive dependencies (last logged crate:crypto-bigint v0.5.5), and the job reported failure.
Why 900s is provably too tight
On the last green master run (39390720989, 2026-10-21), the same step took 634s against the 900s cap — 70.4% utilization, leaving under 30% headroom for a step that also builds every crate's --lib and --bins test harness. Applying the observed 4.7x cold:warm ratio from the Build step, the cold-cache cost of this step is comfortably in excess of 900s. The 900s budget was therefore never sufficient on a cache miss, and the failure is a timeout, not a compile error.
Fix
Two surgical edits to .github/workflows/ci.yml, touching only the build job:
-
Raise the step timeout from 900s to 2400s. This is a timeout relaxation for a provably-too-tight budget, not a gate weakening:
- 2400s is ~3.8x the warm-cache cost (634s) and is consistent with the observed 4.7x cold:warm ratio.
- Worst-case job wall clock (
Buildcold 2453 +Compilecold 2400 + downstream ~1500 + overhead) is ~6900s = 115m, inside the job-leveltimeout-minutes: 120(= 7200s). - The step still aborts the job on exit 124 if the compile genuinely hangs. No assertion, gate, or test step is removed, skipped, or weakened.
-
Add
cache-all-crates: "true"to thebuildjob'srust-cacheinvocation. Thequality,windows-build-test, andwindows-cross-checkjobs already do this; thebuildjob was the odd one out. This is defense in depth: after a transient cache miss the job rehydrates more aggressively instead of re-downloading 200+ registry crates on every cold run.
Explicitly NOT done
RUSTC_WRAPPER=sccache is not re-exported. The existing comment at the Build step documents that sccache emitted artifacts stamped <unknown rustc version> that the non-sccache test compile then rejected with E0514. That comment is preserved verbatim.
Acceptance
.github/workflows/ci.ymlis the only file changed.- The
quality,fmt,typescript-sdk,windows-*, andsetup-frictionjobs are untouched. - The workflow YAML still parses.
- No test step is deleted or skipped.
Activity
fix(ci): size the build job budget for a cold cache including the cac…
ci(build): persist Cargo targets per runner (#235)