Skip to content

Give the npm verification in post_publish 15 minutes instead of 3 - #60248

Open
gabrieldonadel wants to merge 1 commit into
react:mainfrom
gabrieldonadel:@gabrieldonadel/publish-verify-timeout
Open

gabrieldonadel wants to merge 1 commit into
react:mainfrom
gabrieldonadel:@gabrieldonadel/publish-verify-timeout

Conversation

@gabrieldonadel

Copy link
Copy Markdown
Collaborator

Summary:

Every Create release run from 0.88.0-rc.4 to 0.89.0-rc.2 went red in post_publish even though the package was published. Seven of the eight runs timed out on Verify Release is on NPM; 0.88.0 timed out one step earlier on Wait for template to be published. In each run the version was on npm, but the next (or latest) dist-tag still named the previous release for the whole 3-minute budget.

npm's recorded publish time lags the moment npm publish returns by 5 to 12 minutes for react-native (rc.4 6 min, rc.5 11 min, rc.6 10 min, 0.88.0 12 min, 0.88.1 8 min, 0.89.0-rc.0 9 min, rc.1 5 min, rc.2 11 min). The verifier starts about 2 minutes after the publish and gives up 3 minutes later, so it stops polling before npm has moved the tag on every release.

This raises the poll budget to 15 minutes (90 attempts, 10 s apart) in the three scripts that carry it and the two step timeouts to 16 minutes so the step cannot be cut off before the script reports its own timeout. It also moves the 🎉 Found <pkg>@<version> on npm log behind the tag check: it printed as soon as the dist-tag document fetched, before the script knew which version the tag named, which made the failed runs read as if the version had been verified.

A permanent red post_publish hides real failures: the step has not passed since at least 0.88.0-rc.4, and when it times out on the template step the rn-diff-purge dispatch is skipped and the upgrade helper gets no diff.

Changelog:

[INTERNAL] - Give the npm publish verification in post_publish 15 minutes instead of 3

Test Plan:

  • yarn jest .github/workflow-scripts/__tests__/verifyPublishedPackage-test.js .github/workflow-scripts/__tests__/verifyReleaseOnNpm-test.js .github/workflow-scripts/__tests__/publishTemplate-test.js: 16 tests pass. The six retry-count assertions move from 18 to 90.
  • publish-npm.yml parses as YAML.
  • The next Create release run should pass post_publish on its own, since every lag measured so far is under 13 minutes.

Every release publish run from 0.88.0-rc.4 to 0.89.0-rc.2 failed in
post_publish while the package itself was published. npm takes 5 to 12
minutes after `npm publish` returns before the `next` or `latest` dist-tag
names the new version, and the verify steps only waited 3 minutes.

The verifier also logged "Found <pkg>@<version> on npm" as soon as the
dist-tag document fetched, before checking which version the tag named.
That line now only prints for a plain version lookup.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 23, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant