Repository navigation
Description
Observed failure
Run 39672218586, job 119472777140 (PR #168, branch fix/ci-build-cache-blob-size, head b24ec59031709802e54c6d17628b357c622bb15d):
- name: Run deterministic retention-readiness cohort
##[error]Command exceeded timeout after 600s
Process completed with exit code 124
Root cause
The step is:
- name: Run deterministic retention-readiness cohort
shell: bash
run: |
# A cold jcode-app-core test harness compiles heavy optional provider
# dependencies and can exceed three minutes on hosted runners. The
# cohort itself runs in under a second once the lib test is built.
python3 .github/scripts/run_with_timeout.py 600 "$(rustup which cargo)" test --target ${{ matrix.target }} -p jcode-app-core --lib retention_readiness -- --nocapturecargo test -p jcode-app-core --lib ... is not only running the cohort: on a
cold target directory it first has to compile the jcode-app-core lib-test
harness and its heavy optional provider dependencies. That one-time cold
compile is what the 600s budget has to absorb, and on a cache miss it does
not fit. The 600s value was sized for the warm-cache reality, where the cohort
itself runs in under a second.
Measured evidence (run 39672218586, job 119472777140)
| Step | Result |
|---|---|
Swatinem/rust-cache@v2 restore |
No cache found. in ~55s (cold) |
Build |
PASSED |
Compile library and binary tests |
PASSED, Finished \test` profile [unoptimized] target(s) in 23m 07s` |
Run deterministic retention-readiness cohort |
FAILED, Command exceeded timeout after 600s, exit 124 |
The sibling compile step needed 23m07s for the FULL workspace on this same cold
cache, which is the direct evidence that 600s cannot cover a cold compile.
Fix
Raise the cohort's run_with_timeout.py budget from 600 to 1800 (30 min),
and raise the Build job's timeout-minutes from 120 to 240 so the sum of
the per-step budgets fits inside the job ceiling. Refresh the stale step comment
(it claimed "can exceed three minutes", which understates the observed cost).
This is the same class of defect as #161 (a timeout sized for warm cache that
reports a false failure on a cache miss), but a different step, so it is
tracked separately.
Scope
Only .github/workflows/ci.yml. No change to the cache key, cache-targets,
or the compile-step budget.
Activity