- Notifications
You must be signed in to change notification settings - Fork5.7k
Closed
Description
It rather frequently happens that a handful of tests fail in the CI due to flakyness (even though Harshil always puts admirable effort in trying to stabalize that away :D). Rerunning the failing jobs usually fixes that, but it requires manual work.
Pytest comes with the--lf
feature, i.e. it allows to re-run only the failing tests. I suggest to make use of featurer in our workflow definition by runningpytest --lf
one (or maybe even twice). For tests failing due to flakyness, this hopefully reduces the number of failing jobs. For tests that fail due to systematic problems, this will not affect the outcome.