[MEDIUM] summary/core.py: _shell_runner silently discards non-zero subprocess exit #9
Labels
No labels
bug
code-review
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
foravo/mesh-review-comment-proof-20260519044241#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub issue
M00C1FER/mesh-review#4.Source: https://github.com/M00C1FER/mesh-review/issues/4
Original author: @M00C1FER
Original state: closed
Finding 3 — MEDIUM
File:
src/mesh_review/summary/core.pyFunction:
_shell_runner()Commit fixing this: 834f8d8441226ac383868a9cb8ac5c69b650581e (PR #1)
Description
Identical to the same issue in
review/core.py(Finding 2). Aftersubprocess.run(),proc.returncodeis never checked:A non-zero exit feeds stderr/empty stdout into
_parse_summary, silently producing a malformedSummaryDocwith no error indicated.Impact
SummaryDoc.errorfield exists precisely to communicate this, but it is never populated on subprocess error.Fix Applied
Imported from GitHub issue comment
M00C1FER/mesh-review#4:4362220454.Source: https://github.com/M00C1FER/mesh-review/issues/4#issuecomment-4362220454
Original author: @M00C1FER
Fixed by merged PR #1.