Repository navigation
Conversation
npm's read replicas lag a successful publish by tens of seconds. On 0.9.0 (run 32844937782) the `npm view pseudonym-mcp@$VERSION version` guard ran straight after `changeset publish` and got `404 No match found for version 0.9.0`, so a healthy release was marked failed and the registry publish was skipped — it had to be recovered by hand with a `publish_registry=true` dispatch. The lookup now retries up to 6 times, 10s apart, and still fails loudly if npm genuinely does not have the version after that: the guard exists to stop the registry pointing at something npm never published, and it keeps doing that. The server.json sync check above stays immediate — waiting cannot fix a stale manifest. Co-Authored-By: Claude Opus 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.
Problem
publish-registryverifies the release withnpm view "pseudonym-mcp@$VERSION" versionimmediately after thereleasejob finisheschangeset publish. npm's read replicas lag a successful publish by tens of seconds, so that lookup can 404 on a version that was just published.That is what happened on 0.9.0 (run 32844937782):
npm error 404 No match found for version 0.9.0although the publish had succeeded. The whole Release run went red, the registry publish was skipped, and it had to be recovered manually withgh workflow run release.yml --ref master -f publish_registry=true.Fix
The
npm viewcall is now a bounded retry — up to 6 attempts, 10s apart, roughly a minute of grace — and only then fails the step. The guard is unchanged in intent: if npm genuinely does not have the version after the retries, the step still fails loudly rather than letting the registry point at a version npm never published.The
server.jsonsync check above it stays immediate and non-retried: a stale manifest is not something waiting can fix.Verification
release.ymlround-trips through a YAML parser unchanged.bash -n, and was run underbash -eagainst a stubbednpm/sleepin three cases: available immediately (1 lookup, exit 0), available on the 3rd attempt (exit 0, no spurious failure), never available (6 attempts, then exit 1 with the loud message).🤖 Generated with Claude Code