New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add git timeout #14914
feat: add git timeout #14914
Conversation
@viceice if this is good so far I will go on to setting this config value to the places where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are other files which should also use this value, it's ideal if we include them in this PR. If not then let's document which are unsupported and have an issue for each
…3957-git-timeout
@viceice wdyt of the changes ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some small test fixes required 😉
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
🎉 This PR is included in version 32.26.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
||
To handle the case where the underlying Git processes appear to hang, configure the timeout with the number of milliseconds to wait after last received content on either `stdOut` or `stdErr` streams before sending a `SIGINT` kill message. | ||
|
||
The value must be between `2000` and `6000` (milliseconds) inclusive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value is outside these values. How does that work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its a typo in the text it should be 60000
Changes
Added a 10 seconds timeout for git tasks based on https://github.com/steveukx/git-js/blob/main/docs/PLUGIN-TIMEOUT.md
Context
Closes #13957
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: