Skip to content

Wait for npm registry propagation after publishing - #54

Merged
yuichkun merged 1 commit into
mainfrom
codex/npm-registry-propagation
Oct 9, 2026
Merged

yuichkun merged 1 commit into
mainfrom
codex/npm-registry-propagation

Conversation

@yuichkun

@yuichkun yuichkun commented Oct 9, 2026

Copy link
Copy Markdown
Owner

npm accepted the initial 0.1.0 publication and warned that processing could take a few minutes. The workflow checked metadata immediately, failed because the version was not yet visible, and skipped GitHub Release creation. Retrying the original run after propagation completed successfully and skipped republishing the identical tarball.

Post-publication verification now polls every 10 seconds for up to 5 minutes (plus at most 30 seconds for an in-flight request). It retries only a missing version; conflicting tarballs, newer versions, package identity mismatches and registry errors still fail immediately. The pre-publication check stays immediate. The release guide documents the bounded wait.

Validation: typecheck and all 18 release-tooling/packed-consumer tests passed, including delayed visibility, timeout, immediate success, conflicting/newer versions and lookup failures. Full PR CI is pending.

This PR does not change the package version or publish another release.

@vercel

vercel Bot commented Oct 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
den Ready Ready Preview Oct 9, 2026 1:14pm UTC

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 037b994d2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +49 to +50
await wait(Math.min(intervalMs, remaining));
} while (now() < deadline);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Check the registry after the final wait

When every lookup before the deadline misses but the version becomes visible during the final shortened sleep, this condition exits the loop without another lookup. With the production defaults, the last fast lookup occurs around 4:50, followed by a 10-second wait that can never observe propagation, so the release workflow can falsely fail verification even though npm exposed the expected tarball within the documented five-minute window; perform a final lookup at the deadline or avoid the unobserved final sleep.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T13:18:40.577018Z 037b994 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@yuichkun
yuichkun merged commit 5e4bbb9 into main Oct 9, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 037b994d Deployed Oct 9, 2026 by vercel[bot]
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