Skip to content

fix(release): wait for npm publication verification - #6

Merged
agalwood merged 1 commit into
mainfrom
fix/sdk_release_verification_20261012
Oct 12, 2026
Merged

agalwood merged 1 commit into
mainfrom
fix/sdk_release_verification_20261012

Conversation

@agalwood

Copy link
Copy Markdown
Member

The SDK release command could upload a package successfully, then stop the batch because its fixed 15-read verification loop exhausted after roughly 28 seconds. The report left the package as publishing, and the silent wait looked like a hung upload.

Poll fresh registry metadata with a five-minute deadline, bounded exponential backoff, transient-read retries and visible progress. Record successful uploads as verifying until their SHA-512 integrity is confirmed. Authentication errors and integrity conflicts still stop immediately; uploads are never retried automatically and later packages remain blocked until verification succeeds. Update both release guides with the verification states and pnpm-specific authentication steps.

Validation: pnpm run release passes lint, facade checks, build, typecheck, 40 release-script tests plus 128 SDK tests (two existing skips), and all four archive checks. Regression cases cover delayed visibility, cache keys, Retry-After, time limits, transient reads, authentication failures, integrity conflicts and unchanged upload ordering. Read-only checks against npm also verified all four published 2.2.0 tarballs against the prepared SHA-512 values; package contents are unchanged.

@agalwood
agalwood merged commit 0b30237 into main Oct 12, 2026
6 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