Repository navigation
Give the npm verification in post_publish 15 minutes instead of 3 - #60248
Open
gabrieldonadel wants to merge 1 commit into
Open
gabrieldonadel wants to merge 1 commit into
gabrieldonadel wants to merge 1 commit into
Conversation
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.
This branch has not been deployed
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.
Summary:
Every
Create releaserun from 0.88.0-rc.4 to 0.89.0-rc.2 went red inpost_publisheven though the package was published. Seven of the eight runs timed out onVerify Release is on NPM; 0.88.0 timed out one step earlier onWait for template to be published. In each run the version was on npm, but thenext(orlatest) dist-tag still named the previous release for the whole 3-minute budget.npm's recorded publish time lags the moment
npm publishreturns 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 npmlog 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_publishhides real failures: the step has not passed since at least 0.88.0-rc.4, and when it times out on the template step thern-diff-purgedispatch 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.ymlparses as YAML.Create releaserun should passpost_publishon its own, since every lag measured so far is under 13 minutes.