Skip to content

release publish: the reveal waits for the registry to serve every published version (#4244) - #4247

Merged
lex00 merged 1 commit into
mainfrom
release/4244-reveal-waits
Oct 21, 2026
Merged

lex00 merged 1 commit into
mainfrom
release/4244-reveal-waits

Conversation

@lex00

@lex00 lex00 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Closes #4244.

npm accepts a publish before npm view and npm install find it. Publishing 0.124.35 uploaded all 24 packages, then failed the reveal's install check twice, on ERESOLVE and then ETARGET, until the registry caught up.

  • packages/core/src/lifecycle/publish-npm.ts: before installing what it published, the audit runs npm view <name>@<version> version for each package every 10 s until all answer. After registryWait seconds (new on the npm declaration, default 600) it stops with publish-npm-not-served, naming the packages still missing, before any install. An install that fails with ETARGET or ERESOLVE waits, checks again, and installs once more.
  • PublishDeps takes sleep and now, so the tests never wait.
  • The fake npm takes FAKE_NPM_LAG (a version is not served for the next n views after its publish) and FAKE_NPM_INSTALL_ETARGET.
  • reference/publish-targets: the registryWait row and the wait.

Tests: five new cases in publish-targets.test.ts (served at once, served late, never served, ETARGET then success, a second ETARGET fails the audit). The publish unit suites pass (40), scripts/ passes (239), release-publish-targets.e2e passes with its call list updated for the views, and the docs prose and citation lints pass.

…lished version before its install check (#4244)

npm accepts a publish minutes before npm view and npm install find it, and the
0.124.35 reveal failed twice on that lag. The audit now polls npm view for each
version until all answer, up to registryWait seconds (default 600), naming the
ones still missing when it gives up, and installs once more after an ETARGET or
ERESOLVE.
@lex00
lex00 merged commit 6216111 into main Oct 21, 2026
4 checks passed
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.

release publish: the reveal check waits for the registry to serve every published package

1 participant