Skip to content

fix(signature): handle subprocess timeout without crashing#87

Merged
benner merged 1 commit into
mainfrom
fix/signature-handle-subprocess-timeout
May 4, 2026
Merged

fix(signature): handle subprocess timeout without crashing#87
benner merged 1 commit into
mainfrom
fix/signature-handle-subprocess-timeout

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented May 4, 2026

subprocess.TimeoutExpired inherits from SubprocessError, not TimeoutError,
so when git or gpg ran past the configured timeout it propagated as an
uncaught traceback instead of becoming a clean signature-check failure.
Catch it explicitly with a message that reflects the actual source.

subprocess.TimeoutExpired inherits from SubprocessError, not TimeoutError,
so when git or gpg ran past the configured timeout it propagated as an
uncaught traceback instead of becoming a clean signature-check failure.
Catch it explicitly with a message that reflects the actual source.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@benner benner marked this pull request as ready for review May 4, 2026 02:36
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Coverage

Coverage Report (Δ +0.0%)
FileStmtsMissCoverMissing
src/git_commit_guard
   __init__.py4680100% 
TOTAL4680100% 

@benner benner merged commit 7582348 into main May 4, 2026
7 checks passed
@benner benner deleted the fix/signature-handle-subprocess-timeout branch May 4, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant