Skip to content

fix: make pnpm cache steps non-fatal on Windows - #21

Merged
Boshen merged 1 commit into
oxc-project:mainfrom
fengmk2:fix/windows-cache-fastfail
Jun 8, 2026
Merged

Boshen merged 1 commit into
oxc-project:mainfrom
fengmk2:fix/windows-cache-fastfail

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Problem

actions/cache (Node) intermittently hard-crashes on Windows runners with STATUS_STACK_BUFFER_OVERRUN (exit code 0xC0000409 / -1073740791), dying with no error message and failing this composite action. Captured via step-debug logs: actions/setup-node finishes fine (Node downloads and extracts), then the pnpm cache restore step crashes right after GetCacheEntryDownloadURL to the cache service v2 backend.

This is a GitHub Windows-runner / Node fast-fail, not a bug here: see actions/cache#1754 (same crash, continue-on-error is the documented workaround) and pnpm/action-setup#260 (same 0xC0000409 in a different Node action).

Fix

Caching is a non-essential optimization, so mark both pnpm cache steps continue-on-error: true. When the crash hits, the job keeps a cold store and proceeds to pnpm install instead of failing.

Ref: actions/cache#1754

actions/cache (Node) intermittently hard-crashes on Windows runners with
STATUS_STACK_BUFFER_OVERRUN (exit code 0xC0000409), dying with no error
message and failing the whole composite action. The Node tarball download
is unaffected; the crash lands on the cache restore/save step.

Caching is a non-essential optimization, so mark both cache steps
continue-on-error rather than fail the job.

Ref: actions/cache#1754
@fengmk2
fengmk2 marked this pull request as draft June 8, 2026 14:18
@fengmk2
fengmk2 marked this pull request as ready for review June 8, 2026 14:20
@Boshen
Boshen merged commit 09f9bbe into oxc-project:main Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants