You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix timeout implementation and address review feedback
- Kill git process on timeout: use child_process.spawn directly for
timeout-eligible operations so we have a ChildProcess handle to send
SIGTERM (then SIGKILL after 5s). Previously the process was orphaned
because @actions/exec does not expose the child process handle.
- Fix timeout:0 not working: replace falsy || coalescion with explicit
empty-string check so that '0' is not replaced by the default '300'.
Users can now set timeout: 0 to disable timeouts as documented.
- Refactor execGit to use an options object instead of 5 positional
parameters, eliminating error-prone filler args (false, false, {}).
- Clarify retry-max-attempts semantics: total attempts including the
initial attempt (3 = 1 initial + 2 retries), not number of retries.
- Remove Kubernetes probe references from action.yml descriptions and
code comments to avoid confusing non-Kubernetes users.
- Add tests for timeout/retry input parsing (defaults, timeout:0,
custom values, invalid input, backoff clamping) and command manager
configuration (setTimeout, setRetryConfig, fetch dispatch).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments