Skip to content

Fix npm release staging#147

Merged
alphaqiu merged 1 commit into
masterfrom
develop
Jun 1, 2026
Merged

Fix npm release staging#147
alphaqiu merged 1 commit into
masterfrom
develop

Conversation

@alphaqiu

@alphaqiu alphaqiu commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix the npm publishing failure from Release run 26762519392.

Root cause

The Stage binaries step failed before npm publish. npm/stage-binaries.sh used a tar listing pipeline where awk exited immediately after finding the ok binary. Under set -o pipefail, tar can receive SIGPIPE while still listing later archive entries and fail with tar: stdout: write error.

Fix

The awk command now records the first ok path but consumes the full tar listing before exiting.

Verification

  • bash tests/scripts/stage_binaries_test.sh
  • bash -n npm/stage-binaries.sh tests/scripts/stage_binaries_test.sh
  • ruby YAML parse for CI workflow
  • git diff --check

The new shell regression test is wired into CI so develop-to-master PRs catch this before release tags.

@alphaqiu alphaqiu merged commit f7ca4b6 into master Jun 1, 2026
2 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