You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): Build & Test (desk-linux) cannot go green on a cold cache: compile budget 900s and retention-cohort budget 600s both too tight #182
The Build & Test (desk-linux) job cannot reach green on a cold cache. Two
steps in the same job run out of budget before the job's own cap, and both die
with exit 124 from .github/scripts/run_with_timeout.py.
Observed failures
Run
Job
Step
Budget
Result
39672218586
119472777140
8. Run deterministic retention-readiness cohort
600s
exit 124
39712124578
119605648638
7. Compile library and binary tests
900s
exit 124
Root cause
A cold cache forces a full rebuild, and the two budgets were sized for a warm
cache.
The compile step.cargo test --lib --bins --no-run was budgeted at 900s,
which does not cover a cold compile of this workspace on this runner. The
measured cold cost of that step is ~2990s, so 900s was off by more than 3x.
The retention cohort. This step is worse than merely tight: it compiles the jcode-app-core lib-test harness itself, cold, on every cache-miss run. That
harness is never pre-built by the compile step immediately above it, because cargo metadata reports workspace_default_members = 1 -- only kcode. The
root Cargo.toml declares no default-members key, so cargo falls back to the
root package alone. cargo test --lib --bins --no-run therefore builds just kcode's lib/bins test targets and never touches the cohort crates'
harnesses.
That is precisely why the retention step pays a cold compile on every cold run,
and why it blew a 600s budget that was only ever meant to cover a cohort whose
own runtime is under a second once the harness exists.
Fix
Raise both budgets so a cold run can finish, and record why each number is what
it is:
The retention budget is 1800s rather than something larger because the cohort
still runs in under a second once its harness is built; 1800s covers the
one-time cold compile of jcode-app-core and nothing more.
Scope is .github/workflows/ci.yml only -- no Rust source, no tests, no Cargo
manifest.
Activity