Skip to content

fix(publish): keep npm pack JSON parseable and publish the rest after npm - #2147

Open
eersnington wants to merge 1 commit into
mainfrom
fix/publish-npm-pack-json
Open

eersnington wants to merge 1 commit into
mainfrom
fix/publish-npm-pack-json

Conversation

@eersnington

@eersnington eersnington commented Nov 26, 2026 •

Copy link
Copy Markdown
Member
  • prepare-packed-npm parses npm pack --json stdout. The @rivet-dev/agentos prepack script (copy-wasm-commands.mjs) logged "Copied N WASM command binaries" to stdout, so the parse failed and the 0.5.0-rc.6 publish stopped before npm. The script now logs to stderr.
  • release-assets and publish-crates did not depend on npm, so rc.6 reached crates.io and GitHub releases without npm packages or a software mirror. Both now run only after publish-npm and publish-software-mirror succeed. Order: npm → software mirror → GitHub release and R2 sidecars → crates.
  • Verified by replaying the prepare-npm job locally with the rc.6 CI artifacts: unfixed main fails with the rc.6 error; with this change all 10 tarballs pack, match the rc.5 file lists, and pass npm publish --dry-run --tag rc.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📟 Pip-Boy · 0b34e9e

📦 Packages

Skipped: this PR doesn't change any published package.

🧹 Rust dependencies

Skipped: this PR doesn't change any Rust code or dependencies.

🦀 Binaries

Skipped: this PR doesn't change any Rust code.

⏱ Timing

job wall time slowest step
changes 25s checkout · 22s
zizmor 9s checkout · 3s
report 27s setup-node · 10s
⏭ hygiene — skipped
⏭ footprint — skipped
⏭ native · ${{ matrix.platform }} — skipped
⏭ self-test — skipped
⏭ execute · ${{ matrix.platform }} — skipped
🔭 Full CI trace for this commit

One OpenTelemetry trace of CI and Pip-Boy for 0b34e9e: every job and step, with the sizes above attached. Run after CI finishes.

pnpm install --frozen-lockfile --filter 'pipboy...'
pnpm --filter pipboy pipboy trace --sha 0b34e9e37c487aea6ba6161b0417b880e00ff524

Add --otlp <url> to send it to any OTLP/HTTP collector.

Agent instruction: From a rivet-dev/agentos checkout, run the commands above, then read the trace file the last command prints. List the slowest jobs and steps and explain where CI time went.

… npm

The prepack script logged to stdout, which broke the JSON that
prepare-packed-npm parses from npm pack --json. Log to stderr instead.

Crates and the GitHub release went out even when npm failed, which left
0.5.0-rc.6 on crates.io without npm packages or a software mirror. Run
release-assets and publish-crates only after npm and the software mirror
succeed.
@eersnington
eersnington force-pushed the fix/publish-npm-pack-json branch from 2f8b3d4 to 0b34e9e Compare November 26, 2026 11:47
@eersnington eersnington changed the title fix(publish): keep npm pack JSON parseable and publish crates after npm fix(publish): keep npm pack JSON parseable and publish the rest after npm Nov 26, 2026

This branch has not been deployed

No deployments
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