-
Notifications
You must be signed in to change notification settings - Fork 380
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
ci: Rerun pytest tests on main
in case of failures
#3769
ci: Rerun pytest tests on main
in case of failures
#3769
Conversation
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
As it may be very convenient to not restart failed tests manually, I don't think it's always due to network issues in our case. I guess this PR is opened due to the multiple recent tests failures that we are encountering, but in my opinion, we should rather investigate the root cause (as it seems to abort IIRC or terminate unexpectedly) and rerunning tests automatically after failure will prevent us from doing that thoroughly. |
This could be done on the main branch once the PR has been merged though (I don't know if there is an easy way to do that). |
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz> Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
99053b8
to
b88d551
Compare
main
in case of failures
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz> Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz> Co-authored-by: Johan Mabille <johan.mabille@gmail.com> Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
Sporadic test failures due to reasons we cannot control (e.g. network) make an entire workflow fail.
This workflow need to be rerun manually, which takes extra time (up to 40 minutes) and distracts from work.
This proposes to automatically rerun test if they fail up to 3 times thanks to
pytest-rerunfailures
.