Repository navigation
fix(npm): Show publish stderr at info level - #877
Merged
Merged
Conversation
Co-Authored-By: David Cramer <david@sentry.io>
dcramer
marked this pull request as ready for review
September 21, 2026 17:38
BYK
approved these changes
Sep 21, 2026
7 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm sends publish notices and warnings to stderr. Craft currently logs that stream only at Trace, so normal Info-level publish runs hide those diagnostics even when npm exits successfully.
showStderroption tospawnProcess, matching the existingshowStdoutbehavior.This exposes future publish output. It cannot recover stderr from earlier runs and does not retry or verify a registry publish. The publishing image must pick up this change after merge/release before it affects runs.
Validation
pnpm buildexited 0 but its optional Sentry upload reported HTTP 413; rebuilding withenv -u SENTRY_AUTH_TOKEN pnpm buildsucceeded without the upload.env -u SENTRY_AUTH_TOKEN pnpm testexits 1: 1,200 passed, three failed, one skipped. The threeprepare-dry-run.e2e.test.tsfailures reportGit author was not set to the Junior identitybecause the fixtures setTest User. Two also encounter GitHub's unresolvedtest-owner/test-repofixture. A snapshot becomes obsolete because the failing test never reaches its assertion. No runtime identity guards or fixture behavior were changed.via David Cramer.
--
View Junior Session [Sentry]