-
Notifications
You must be signed in to change notification settings - Fork 2
Add --continue_on_fail flag to run_multi_gpu.py #114
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
Conversation
1859b56 to
e2df213
Compare
|
I tested both cases locally, |
gulsumgudukbay
left a comment
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.
Additionally, the pytest command should be modified to reflect the continue_on_fail logic.
if continue_on_fail is not set, -x should be used in the pytest command
Thank you for catching this, I did not realized pytest has its own flag. In this case, we can remove break in the loop? |
Depends. So the loop traverses the test files. pytest's -x flag stops the test file execution if any unit test within a file fails. However the loop traverses the files and it stops **traversing the files ** after any test within a file fails. Depending on the use case, if you want the loop to halt, you can keep the break statement. If you do not want the loop to halt but you want the test file execution to halt, you can remove the break statement. |
I tested this and |
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.
I approve, but we will need another person to review as well since I pushed changes to this PR.
zahiqbal
left a comment
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.
Looks good,
Add
--continue_on_failflag, similar to run_single_gpu.py. It will be used in nightly runs.