Skip to content

fix(release): wait for a just-published version before moving latest - #281

Merged
jasdeepkhalsa merged 1 commit into
masterfrom
fix/npm-latest-waits
Oct 26, 2026
Merged

jasdeepkhalsa merged 1 commit into
masterfrom
fix/npm-latest-waits

Conversation

@jasdeepkhalsa

Copy link
Copy Markdown
Member

Right after a release publishes, a new version can take a few minutes to show up in registry reads. The release's `latest` step checked every package straight away, found one platform package missing, and stopped. That left `latest` on an older version, though the `rc` tag had moved.

  • `scripts/npm-promote-latest.sh` now checks each package again every 15 seconds, for up to about 5 minutes, before giving up. It reads with `--prefer-online`, so a cached miss doesn't count.
  • If a version is still missing after that, nothing moves, as before.
  • `NPM_PROMOTE_ATTEMPTS` and `NPM_PROMOTE_WAIT` override the defaults.

This applies to every release, and so to the MySQL and Postgres binaries alike; no change to diffing.

Tested with a stub `npm`: when the version is missing twice and then appears, all nine tags move. When it never appears, the script exits 1 and moves nothing.

🤖 Generated with Claude Code

Right after publishing, a version can take a few minutes to be readable from
the registry, so the release's tag move found a platform package missing and
stopped, leaving latest behind. It now checks each package again for a few
minutes before giving up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added bug mysql Related to Mysql postgres Related to Postgres labels Oct 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

@jasdeepkhalsa
jasdeepkhalsa merged commit d2e77a9 into master Oct 26, 2026
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug mysql Related to Mysql postgres Related to Postgres

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant