Repository navigation
Leave the pid out of the failure message - #34
Merged
Merged
Conversation
orien
force-pushed
the
exception-message
branch
from
November 29, 2026 13:08
9fe8d31 to
0ec80df
Compare
orien
marked this pull request as ready for review
November 29, 2026 13:10
orien
force-pushed
the
exception-message
branch
4 times, most recently
from
November 29, 2026 13:25
434d8ad to
b6127ec
Compare
The message CommandFailedException composes interpolated the Process::Status, whose to_s starts with the pid: Shell command ["false"] failed with status pid 95983 exit 1 It read as though the pid were the status, and each occurrence of the same failure had a different message, so error trackers and log deduplication could not group them. Compose it from the exit status or the signal instead, keeping the "failed with" prefix: Shell command ["false"] failed with status 1 Shell command ["sh", "-c", "kill -TERM $$"] failed with SIGTERM The pid stays available through the exception's status.
orien
force-pushed
the
exception-message
branch
from
November 29, 2026 14:09
b6127ec to
16b9425
Compare
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.
Context
When
execute!raisesCommandFailedException, the message interpolates theProcess::Status, whoseto_sstarts with the child's pid:It reads as though the pid were the status. Every occurrence of the same failure also has a different message, so error trackers and log deduplication, which group by message, can't group them.
PE-8869
Change
Composes the message from the exit status or the terminating signal, keeping the
failed withprefix:failed with signal 34.Shell command ["false"] failed.Considerations
failed with statusstill matches a non-zero exit, but not a signal.e.status.pid.