Skip to content

fix(website): retry npm ci to dodge 'Exit handler never called!' crash#48

Merged
heggria merged 1 commit into
mainfrom
fix/deploy-npm-retry
Jul 6, 2026
Merged

fix(website): retry npm ci to dodge 'Exit handler never called!' crash#48
heggria merged 1 commit into
mainfrom
fix/deploy-npm-retry

Conversation

@heggria

@heggria heggria commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Problem

The Deploy Website workflow has failed twice in a row with:

npm error Exit handler never called!
npm error This is an error with npm itself.

This is a known npm bug triggered under GitHub Actions runner memory pressure — npm ci downloads for ~8 minutes then segfaults. It is infrastructure-level, not content-level (the docs PR #46 itself passed all checks).

Fix

Wrap the npm ci step in a retry loop (3 attempts with 10s backoff), falling back to npm install on final failure (more tolerant of lockfile state). --ignore-scripts is preserved so postinstall doesn't run.

This is a minimal, self-contained infra fix — no content changes.

Verification

  • YAML is valid
  • Logic: attempt ci → on fail retry → on 3rd fail use npm install

npm ci intermittently crashes with 'Exit handler never called!' — a known
npm bug under GitHub Actions runner memory pressure (8-min download then
segfault). Retry up to 3 times with backoff, falling back to npm install
which is more tolerant of lockfile state.
@heggria heggria merged commit 68ac338 into main Jul 6, 2026
6 checks passed
@heggria heggria deleted the fix/deploy-npm-retry branch July 6, 2026 12:50
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.

1 participant