Skip to content

fix: apply exec-timeout to external --exec command via CommandContext#47

Closed
jonbaldie wants to merge 1 commit into
avito-tech:masterfrom
jonbaldie:fix/external-exec-timeout
Closed

fix: apply exec-timeout to external --exec command via CommandContext#47
jonbaldie wants to merge 1 commit into
avito-tech:masterfrom
jonbaldie:fix/external-exec-timeout

Conversation

@jonbaldie
Copy link
Copy Markdown

The external --exec path used Start() + Wait() with a // TODO timeout here comment and no actual timeout, so a hung test script would block go-mutesting forever; this replaces it with exec.CommandContext so the process is killed after --exec-timeout seconds, returning exit code 2 (skip) to the caller.

The external --exec path called Start()+Wait() with no timeout, so a
hung test script would block go-mutesting forever; now it uses
exec.CommandContext and returns exit code 2 (skip) when the deadline
is exceeded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jonbaldie
Copy link
Copy Markdown
Author

Superseded by #52 which combines this with the panic fixes and also handles the Timeout=0 edge case and tmpDir leak.

@jonbaldie jonbaldie closed this May 14, 2026
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