Skip to content

ops(058): npm publication waits up to 25 minutes per package for registry visibility - #567

Merged
bartekus merged 1 commit into
mainfrom
ops/058-npm-poll-bound
Nov 8, 2026
Merged

bartekus merged 1 commit into
mainfrom
ops/058-npm-poll-bound

Conversation

@bartekus

@bartekus bartekus commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Summary

The v0.6.0 release run's publish-npm failed twice: npm accepted darwin-x64 (attempt 1) and linux-x64-musl (attempt 2) but listed neither within the shared bound of 60 polls at 10 seconds (10 minutes), so 058 3.3.1's visibility check failed the job and each rerun had to wait until the package appeared.

  • Spec 058 3.3.2 now states the bound: after each upload publish-npm polls every 10 seconds for up to 25 minutes; crates.io keeps 10 minutes. Past the bound the job fails and is rerun only once the package is listed, because a rerun publishes any package it still finds absent.
  • tools/rustev-release/src/tagged.rs splits POLLS into CRATE_POLLS (60) and NPM_POLLS (150) at WAIT_SECONDS (10); main.rs publish picks the bound by kind.
  • Workflow unchanged: one package's full 25-minute wait stays within half of publish-npm's 60-minute timeout-minutes, so no .github/workflows/ edit and no review exception.
  • Test: tests/tagged.rs registry_wait_bounds_follow_3_3 pins both bounds and the half-job margin. The existing publish_items tests already cover the poll loop with an injected bound.

First pull request of the 0.7.0 cycle (independent of the version bump).

Verification

  • make gate passes.
  • cargo test -p rustev-release --locked, clippy and fmt: see the follow-up comment or CI.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the four changed files against each other and the governance context.

tagged.rs — POLLS: u32 = 60 is split into CRATE_POLLS: u32 = 60 (unchanged value) and NPM_POLLS: u32 = 150, plus a new WAIT_SECONDS: u64 = 10 that replaces the two hardcoded literal 10s. The arithmetic: 60 × 10 s = 600 s = 10 min; 150 × 10 s = 1500 s = 25 min. Both are exact.

main.rs — The import drops POLLS and picks up the three new names. The branch on kind == "crate" selects CRATE_POLLS; the else branch (npm) selects NPM_POLLS. Both publishers now receive wait_seconds: WAIT_SECONDS (same runtime value as the previous literal 10). No other use of the removed POLLS appears in the shown diff.

tests/tagged.rs — The new test registry_wait_bounds_follow_3_3:

u64::from(60)  * 10 / 60 == 10  ✓
u64::from(150) * 10 / 60 == 25  ✓
25 <= 30                         ✓

Integer division is exact for both. The ≤ 30 assertion pins the "half of the 60-minute job" invariant the spec claims.

spec.md — Normative text added to 3.3.2 matches the code (150 polls, 10 s, 25 min cap). The incident note correctly names the before-state ("shared 60 polls") and the after-state, is internally consistent, and matches the code comment and test name. The spec frontmatter is not touched, so no lifecycle transition is claimed here.

No inconsistencies, arithmetic errors, security concerns, or authority/ratification defects found in the supplied evidence.

{"head": "e69d8d402c3ba0c11eb681c26285550e3b3c715b", "verdict": "no-findings", "findings": []}

Subject: e457670...e69d8d4, diff digest c90f12058103657877434286a5ea2bce81903382754c455dba07b788e8905408, 1 call(s). An AI comment is not an approval.

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