Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
TST: always set a (long) timeout for subprocess and always use our wrapper#27726
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
If you are using this and really need unbounded timeouts, explicitlypass `timeout=None`
The second commit finally cleans up all of the |
1bfdf4d
toec90d87
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.
Unfortunately, whilesubprocess_run_helper
defaults tocheck=True
,subprocess_run_for_testing
defaults tocheck=False
.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@@ -50,7 +50,7 @@ def setup(): | |||
set_reproducibility_for_testing() | |||
def subprocess_run_for_testing(command, env=None, timeout=None, stdout=None, | |||
def subprocess_run_for_testing(command, env=None, timeout=60, stdout=None, | |||
stderr=None, check=False, text=True, |
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.
stderr=None,check=False,text=True, | |
stderr=None,check=True,text=True, |
Since this is used for testing it seems like we should setcheck=True
by default. It looks like you currently set this in many of the calls. Are there even more tests without setting check?
If you are using this and really need unbounded timeouts, explicitly pass
timeout=None
This is an attempt to avoid azure from hanging and then timing out.