Skip to content

fix(dev): audit --family installs again when the registry drops the connection - #679

Merged
leemour merged 1 commit into
mainfrom
fix/family-install-retry
Nov 21, 2026
Merged

leemour merged 1 commit into
mainfrom
fix/family-install-retry

Conversation

@leemour

@leemour leemour commented Nov 21, 2026

Copy link
Copy Markdown
Member

Why

cli-dev audit --family (pnpm audit:commands, a cli-dev ready row and a release check of every CLI) installs the published family with one npm install. About half the runs failed with npm error code ECONNRESET / network read ECONNRESET: twice in linear-cli's first release on 2026-11-19 and twice in a row on 2026-11-21. npm's --fetch-retries 6 retries a refused request, not a download cut off midway.

What

  • src/dev/family.ts: when the install fails with a network error (npm error network, or ECONNRESET, ETIMEDOUT, EAI_AGAIN, ECONNREFUSED, EPIPE, ENETUNREACH), it runs the same install again, up to three times, 3 s apart. Any other error, such as a package npm does not have, fails at once as before. The spawn and the wait can be injected for the test.
  • src/dev/audit.test.ts: a dropped connection installs again, E404 does not, and three dropped connections give up with npm's error.
  • changes/fix-family-install-retry.md.

Testing

  • pnpm vitest run src/dev/audit.test.ts: 38 passed. pnpm typecheck, biome, pnpm docs:check pass.
  • Reviewed by a fresh agent: no bugs. Its suggestions are in: match npm's npm error network line too, and wait between attempts.

🤖 Generated with Claude Code

…onnection

npm's --fetch-retries does not cover a download cut off midway, and
about half the family installs of eight CLIs failed with read
ECONNRESET (2026-11-19, 2026-11-21). A network error now tries the same
install up to three times, 3 s apart; any other error fails at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 362b725 into main Nov 21, 2026
10 checks passed
@leemour
leemour deleted the fix/family-install-retry branch November 21, 2026 01:56
@leemour leemour mentioned this pull request Nov 21, 2026
leemour added a commit that referenced this pull request Nov 21, 2026
Dates #679 (`cli-dev audit --family` retries an install the registry cut
off) as 0.125.3. Fixed only, so a patch.

`bin/release` did not collect `changes/` and renamed the published
0.125.2 heading (#680, closed). This folds the fragment by hand, as
0.125.0 did.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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