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): rust-cache restore hangs 25+ min on the quality/windows jobs and starves the whole CI queue #195
The Swatinem/rust-cache@v2 RESTORE step hangs for 25+ minutes on a large cache blob, and while it hangs it occupies the self-hosted runner, starving the entire CI queue.
Observed hang
CI job 121317250103 (PR fix(cli): honor explicit provider identity when attaching to a running daemon #186 branch, runner desk-kcode-1) sat in step Run Swatinem/rust-cache@v2 from 01:08:17 for 26 minutes with no cargo/rustc running anywhere on the host (load average only ~8). The runner's child was the rust-cache node process sitting idle.
The runner was blocked for the whole duration, so all other KCode runs stayed queued.
These blobs are dominated by the workspace target/ directory, which the Swatinem/rust-cache action caches by default.
Existing partial fix
PR #183 (fix/ci-cold-cache-build-green) already fixes the Build job by using a NEW cache key plus cache-targets: "false", so its restore misses fast ("No cache found" in ~55s) instead of downloading the ~2.02 GB target/ blob:
That fix works for the Build job. PR #183 does not touch the other jobs, so quality, windows-build-test and windows-cross-check still restore the oversized blobs and hang the same way.
Scope
Extend the same -notarget key + cache-targets: "false" treatment to the remaining jobs that still use a big cache:
quality (key: quality-ubuntu)
windows-build-test (key: windows-latest)
windows-cross-check (key: windows-cross-check)
Note: cache-all-crates: "true" is kept as-is in those jobs. It only affects WHICH crates are cached, not the target/ blob size.
Activity