Repository navigation
fix(ci): wait up to 10 minutes for npm to serve a published version - #101
Merged
Merged
Conversation
npm accepts a publish one to four minutes before it serves the new version (about 80 s for 1.4.0, up to 4 min for create-db 1.4.1). The verify step gave up after 60 s, so the 1.4.1 release went red although all three CLIs had published, and the job had to be re-run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
✅ Preview CLIs & Workers are live! Test the CLIs locally under tag npx create-db@pr101
npx create-pg@pr101
npx create-postgres@pr101Worker URLs
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
create-db-worker | a878e7f | Dec 01 2026, 01:27 PM |
Contributor
Author
|
@prisma-gizmo review |
Contributor
Author
|
@coderabbitai review |
Action performed
|
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.
The "Verify Published Versions" step from #89 gives up after 60 s. That isn't long enough: npm accepts a publish one to four minutes before it serves the new version.
What happened on 1.4.1. The first attempt published all three CLIs between 11:40:57 and 11:41:07 UTC. The verify step then failed with
create-db@1.4.1 is not on npmat 11:42:09. The registry's own publish times are 11:42:24 (create-postgres), 11:43:08 (create-pg) and 11:45:04 (create-db), and a re-run at 11:45 passed. 1.4.0 showed the same gap, about 80 s, but its release ran before #89 added the step.Change. Poll for up to 10 minutes (60 × 10 s) instead of 60 s, and log each wait. When the version is already visible the step still finishes in seconds. A version that never shows up still fails the job.
Tested by running the extracted step under
bash -eagainst a stubnpm:::error::… is not on npm, exit 1.No package changes, so there's no changeset.
One thing this doesn't change: re-running the job within a few minutes of a publish can still fail, because the skip check doesn't see the new version yet, so the job tries to publish again and npm rejects it. Wait for the version to show up before re-running.
🤖 Generated with Claude Code