Repository navigation
fix(dev): audit --family installs again when the registry drops the connection - #679
Merged
Merged
Conversation
…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>
Merged
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
cli-dev audit --family(pnpm audit:commands, acli-dev readyrow and a release check of every CLI) installs the published family with onenpm install. About half the runs failed withnpm 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 6retries 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:checkpass.npm error networkline too, and wait between attempts.🤖 Generated with Claude Code