Repository navigation
Open
Description
I'm running into an issue where my Windows runners start randomly dying in action/cache. There doesn't seem to be any info or logging here, just dies with no messages and exits the build. This is using the standard windows-latest as of May 8 2026.
The workaround is setting continue-on-error for the actions/cache step, but it's a very strange failure.
Run actions/cache@v5
with:
path: ~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: 2-Windows-cargo-nightly-e97b13b011c1ac01445c1af4f0f08dbde7bb36c1054a4f00050f6b2978bc56f8
restore-keys: 2-Windows-cargo-nightly-
enableCrossOsArchive: false
fail-on-cache-miss: false
lookup-only: false
save-always: false
env:
CARGO_TERM_COLOR: always
CACHE_KEY: 2
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
RUST_BACKTRACE: short
RUSTFLAGS: -D warnings
CARGO_UNSTABLE_SPARSE_REGISTRY: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CACHE_ON_FAILURE: true
Cache hit for: 2-Windows-cargo-nightly-e97b13b011c1ac01445c1af4f0f08dbde7bb36c1054a4f00050f6b2978bc56f8
The raw logs don't appear to show anything more interesting, just confirming that about one second after the cache starts restoring, the job exits:
2026-05-08T21:53:54.3339230Z env:
2026-05-08T21:53:54.3339485Z CARGO_TERM_COLOR: always
2026-05-08T21:53:54.3339802Z CACHE_KEY: 2
2026-05-08T21:53:54.3340077Z CARGO_INCREMENTAL: 0
2026-05-08T21:53:54.3340397Z CARGO_PROFILE_DEV_DEBUG: 0
2026-05-08T21:53:54.3340736Z RUST_BACKTRACE: short
2026-05-08T21:53:54.3341057Z RUSTFLAGS: -D warnings
2026-05-08T21:53:54.3341443Z CARGO_UNSTABLE_SPARSE_REGISTRY: true
2026-05-08T21:53:54.3341900Z CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
2026-05-08T21:53:54.3342337Z CACHE_ON_FAILURE: true
2026-05-08T21:53:54.3342643Z ##[endgroup]
2026-05-08T21:53:54.7638812Z Cache hit for: 2-Windows-cargo-nightly-e97b13b011c1ac01445c1af4f0f08dbde7bb36c1054a4f00050f6b2978bc56f8
2026-05-08T21:53:55.3402022Z Post job cleanup.
2026-05-08T21:53:55.3590617Z Post job cleanup.
2026-05-08T21:53:55.7159737Z Cache up-to-date.
2026-05-08T21:53:55.7164287Z (node:1288) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2026-05-08T21:53:55.7165604Z (Use `node --trace-deprecation ...` to show where the warning was created)
2026-05-08T21:53:55.8635363Z Post job cleanup.
Reacted by Shahar Naveh, Mathieu Westphal, Michael MIGLIORE, Nick Colley, Liza Chevalier, Brad Keryan and MK (fengmk2)
Metadata
Metadata
Assignees
Labels
No labels
Activity
Don't fail build if cache fails (#448)
ShaharNaveh commentedon May 9, 2026
We are also seeing it
https://github.com/RustPython/RustPython/actions/runs/25602326720/job/75158259406?pr=7808
https://github.com/RustPython/RustPython/actions/runs/25602555972/job/75158867828?pr=7811
mwestphal commentedon May 14, 2026
Same here:
Always on cache/restore for us, with caches that are available.
We are using windows-2022 (for unrelated reasons) .
fix(ci): make Bun cache step non-fatal to work around Windows runner …
ci: work around actions/cache windows flakiness
ci: work around actions/cache windows flakiness
ci: work around actions/cache windows flakiness (#8584)
NickColley commentedon May 22, 2026
We're also seeing this, our windows builds have failed on an average of 5% in the last month instead of 2%
xzpix commentedon May 28, 2026
pin actions/cache back to v4 to dodge v5 windows crash
fix: make pnpm cache steps non-fatal on Windows (#21)
ci: work around actions/cache windows flakiness (DataDog#8584)