Skip to content

fix(scripts): route prepare-release logs to stderr#17986

Merged
wackerow merged 2 commits into
devfrom
fix/prepare-release-stdout-leak
Apr 20, 2026
Merged

fix(scripts): route prepare-release logs to stderr#17986
wackerow merged 2 commits into
devfrom
fix/prepare-release-stdout-leak

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented Apr 17, 2026

Summary

  • All log_* functions in src/scripts/prepare-release.sh now write to stderr
  • cmd_version redirects pnpm version and git push output to stderr too
  • End result: VERSION=$(./src/scripts/prepare-release.sh version minor) cleanly captures just 11.4.0 — no log noise contaminating the value

Why

During the v11.4.0 release today, VERSION in the /prepare-release flow captured log output alongside the bare version. When passed to publish "$VERSION", the script prepended v and produced the tag vv11.4.0. The release had to be deleted and recreated manually via gh release create v11.4.0.

With this fix, only echo "$NEW_VERSION" hits stdout from cmd_version, so command substitution captures the value the downstream commands expect.

Test plan

  • Run ./src/scripts/prepare-release.sh --dry-run version patch and confirm stdout contains only the bare version string (X.Y.Z)
  • Run ./src/scripts/prepare-release.sh --dry-run preflight and confirm logs still render with colors in the terminal
  • Verify on next real release that the publish step produces a single-v tag

log_info/warn/error/dry now write to stderr, and cmd_version redirects
pnpm/git push output to stderr. This keeps `VERSION=$(... version minor)`
clean so the captured value is just `11.4.0`, not log noise. Previously
that noise propagated into the publish step and produced a double-v tag
(vv11.4.0).
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit fcd1cb4
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69e2123e2b3fb100093b13a9
😎 Deploy Preview https://deploy-preview-17986.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 57 (🔴 down 2 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (🔴 down 1 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Apr 17, 2026
@wackerow wackerow merged commit e8fe0a9 into dev Apr 20, 2026
10 checks passed
@wackerow wackerow deleted the fix/prepare-release-stdout-leak branch April 20, 2026 17:57
@wackerow wackerow mentioned this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants