You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use pytest-rerunfailures to re-run our flakey tests. These failures that get re-run and eventually succeed will still get annotated in GHA which causes some confusion for us. Would you be willing to add support for the rerun plugin?
I'm able to get it working using this:
try:
# If we have the pytest_rerunfailures plugin,# and there are still retries to be run,# then do not return the errorimportpytest_rerunfailuresifitem.execution_count<=pytest_rerunfailures.get_reruns_count(item):
returnexceptImportError:
pass
Activity
test(ci): Ignore annotation for pytest retries
utgwkk commentedon Jul 31, 2021
👍 (I didn't know
pytest-rerunfailuresplugin.)test(ci): Ignore annotation for pytest retries (#27870)
utgwkk commentedon Oct 24, 2021
I've just released version 0.1.4 containing #40 (fix of this issue). Thank you for your contribution! @billyvg
utgwkk commentedon Oct 25, 2021
Reopened due to #42
edgarrmondragon commentedon Jan 17, 2025
#42 (comment)