Skip to content

fix(ci): wait up to 10 minutes for npm to serve a published version - #101

Merged
gregory-boch-prisma merged 1 commit into
mainfrom
fix/release-verify-fresh-npm
Dec 1, 2026
Merged

gregory-boch-prisma merged 1 commit into
mainfrom
fix/release-verify-fresh-npm

Conversation

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor

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 npm at 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 -e against a stub npm:

  • every version visible at once → passes with no waits;
  • create-db visible on try 25 (about 4 min) → passes;
  • visible on try 60 → passes;
  • visible on try 61, or never → ::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

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>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary by CodeRabbit

  • Bug Fixes
    • Release verification now allows additional time for a newly published version to become available before reporting a mismatch. This reduces the chance that a release is incorrectly reported as unsuccessful because the published version has not appeared yet. If the version still does not match after the extended verification period, the existing failure behavior remains unchanged.

Walkthrough

The release workflow now allows up to 60 npm queries when checking the published package version, instead of 6. It logs the current attempt while waiting and stops when npm reports the expected version. The existing failure check remains unchanged.

Merge Risk: Minimal · up to a878e

The release workflow now waits up to about 10 minutes for npm to serve a newly published version before failing. Versions that are already visible pass without waiting. No actionable merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the Verify Published Versions step now waits up to 10 minutes for npm to serve a published version. It matches the raw summary (retries raised from 6 to 60, 10-second …
Description check Passed The description states the problem (the 60 s verify window is too short because npm can take one to four minutes to serve a new version), gives the 1.4.1 timeline, describes the polling change (60 x 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the Verify Published Versions step now waits up to 10 minutes for npm to serve a published version. It matches the raw summary (retries raised from 6 to 60, 10-second intervals) and the PR objectives. The title uses the conventional commit prefix and a specific description.

Full details: Description check

Explanation

The description states the problem (the 60 s verify window is too short because npm can take one to four minutes to serve a new version), gives the 1.4.1 timeline, describes the polling change (60 x 10 s), and lists the stub-npm test cases. It also notes a remaining rerun caveat. This relates directly to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: ad1dbaec-2803-478b-a3d2-d75fc2ea5cf0
Commits

Reviewing files that changed from the base of the PR and between 4650c41 and a878e7f.

Files selected for processing: 1

  • .github/workflows/release.yml

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

✅ Preview CLIs & Workers are live!

Test the CLIs locally under tag pr101-fix-release-verify-fresh-npm-46656354746:

npx create-db@pr101
npx create-pg@pr101
npx create-postgres@pr101

Worker URLs
• Create-DB Worker: https://create-db-temp.prisma.io
• Claim-DB Worker: https://create-db.prisma.io

These will live as long as this PR exists under tag pr101-fix-release-verify-fresh-npm-46656354746.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
create-db-worker a878e7f Dec 01 2026, 01:27 PM

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor Author

@prisma-gizmo review

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@gregory-boch-prisma
gregory-boch-prisma merged commit 64ae2cb into main Dec 1, 2026
9 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.

1 participant