Skip to content

fix(ci): 900s compile-test timeout is too tight on a cache miss and reports a false failure #161

Open

Description

@KooshaPari

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), job Build & Test (desk-linux), job id 118974171983.
  • The rust-cache restore 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 Build step alone took 2453s cold versus 520s warm (a ~4.7x ratio).
  • The Compile library and binary tests step ran cargo test --lib --bins --no-run under run_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:

  1. 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 (Build cold 2453 + Compile cold 2400 + downstream ~1500 + overhead) is ~6900s = 115m, inside the job-level timeout-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.
  2. Add cache-all-crates: "true" to the build job's rust-cache invocation. The quality, windows-build-test, and windows-cross-check jobs already do this; the build job 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.yml is the only file changed.
  • The quality, fmt, typescript-sdk, windows-*, and setup-friction jobs are untouched.
  • The workflow YAML still parses.
  • No test step is deleted or skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions