publish-siblings.sh gives up before npm finishes processing a publish and cannot resume after a partial publish

Open
#9,446 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
bash, node.js

Research direction

Start with scripts/publish-siblings.sh, especially wait_for_registry, the publish precondition, and the npm invocation. Add or locate the stubbed npm view and tarball checks, then verify delayed success, timeout, skipped-package shasum matching, and early non-TTY refusal. Update docs/release/npm-publish.md with resume behavior and sign-in timing.

Written by the indexing model from the issue text.

Description

bug

Description

Publishing v0.11.11 to npm on 2026-12-01 exposed three problems in scripts/publish-siblings.sh. They made the documented one-command publish end as a partial release, which then had to be finished by hand.

  1. The registry wait is too short.
    • wait_for_registry polls npm view <pkg>@<ver> version 30 times, 4 s apart, about 2 minutes in all, then exits 1.
    • @chroxy/[email protected] was accepted at about 20:33Z and only resolved at 20:35Z. The script had already given up by then, so store-core and server were left unpublished.
    • @chroxy/server (about 3 MB) took about 8 minutes before its metadata appeared. Its tarball URL then returned 404 for about 4 more minutes, so an install still failed after npm view succeeded.
    • npm itself now prints "Your package is being processed and may take a few minutes to become available".
  2. There is no resume after a partial publish.
    • The precondition refuses to run when any of the three packages is already published at the version.
    • After the step-1 exit, protocol was live, so the script could no longer publish store-core and server. They had to be published with the runbook's manual commands.
  3. Sign-ins expire, and the script can't publish without a terminal.
    • With 2FA, each npm publish opens a browser sign-in that expires after about 4 minutes. On a normal run that sign-in only appears after the artifact verification, which takes several minutes. Two runs expired unapproved that way.
    • Run without a TTY, npm publish fails with EOTP instead of offering the browser sign-in.

Acceptance Criteria

  • wait_for_registry waits long enough for npm's processing: a bounded wait of about 15 minutes with progress output. It treats a package as live only when both the version metadata and the tarball URL return success.
  • Prove the wait: a stubbed npm view and tarball check that turns live after N polls passes. One that never turns live fails with the existing message.
  • Re-running after a partial publish resumes. Packages already live at the version are skipped, in dependency order, after verifying that each skipped package's published shasum matches the locally packed tarball. A mismatch refuses.
  • The script says up front that each publish opens a browser sign-in that expires in about 4 minutes. With no TTY, it refuses early with a clear message rather than reaching npm's EOTP.
  • docs/release/npm-publish.md describes the resume and the sign-in timing.
Dominant language
JavaScript
Stars
7
Forks
1
Avg merge
2h 3m
Merged PRs (30d)
333

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blamechris/chroxy

All issues in blamechris/chroxy

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.