Repository navigation
Guard the guard's own plumbing: mktemp/cat failures degrade instead of killing the step (#2309 follow-up) - #2313
Conversation
…f killing the step (#2309 follow-up)
|
Reviewed the diff in Traced the four failure combinations by hand against the new code in
In all four cases the exit status feeding into One minor observation, not a defect: the No correctness, security, or performance issues found. LGTM. |
Follow-up to #2311, addressing the review's residual finding that landed minutes before the merge:
errfile=$(mktemp)anderr=$(cat ...)were themselves plain assignments underset -e, so the helper's own plumbing could still kill the step with none of the warning/summary/exit-0 handling it exists to provide.Now: a failed
mktempdegrades to/dev/null(stderr detail is lost, the verdict path survives — commented in place), thecatis|| true-tolerant, and thermnever fires at/dev/null. Verified with a four-case stub matrix: gh-fails, noisy-success, mktemp-fails-with-clean-gh, and both-fail — every path either reaches the verdict or exits 0 with the warning; none can die raw. YAML parses and the extracted script passesbash -n.🤖 Generated with Claude Code