Skip to content

fix(release): wait for a cached npm tarball 404 after publish - #69

Merged
kochetkov-ma merged 1 commit into
mainfrom
fix/npm-tarball-cache-race
Oct 19, 2026
Merged

kochetkov-ma merged 1 commit into
mainfrom
fix/npm-tarball-cache-race

Conversation

@kochetkov-ma

Copy link
Copy Markdown
Owner

The v0.7.0 release failed in npm-publish. The npm CDN briefly served a cached 404 for the just-published Linux tarball, and build_npm.py raised on that 404 instead of waiting, as it already does for the version metadata. Both registry reads now share one helper, which turns a 404 into "not visible yet" inside the existing 1,200 s visibility deadline. Other HTTP errors still fail at once, and the byte and integrity checks are unchanged.

Validation: a new regression reproduces the stale-404 sequence (it failed before the fix with the same HTTPError), and a second test keeps a tarball 500 failing immediately. tests/test_npm_distribution.py: 98 passed. tests/test_release_assets.py: 127 passed.

@kochetkov-ma
kochetkov-ma merged commit 292480f into main Oct 19, 2026
11 checks passed
@kochetkov-ma
kochetkov-ma deleted the fix/npm-tarball-cache-race branch October 19, 2026 19:20
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