Skip to content

test(ci): Ignore annotation for pytest retries - #27870

Merged
billyvg merged 1 commit into
masterfrom
test/ci/do-not-annotate-pytest-failures-on-retries
Aug 2, 2021
Merged

billyvg merged 1 commit into
masterfrom
test/ci/do-not-annotate-pytest-failures-on-retries

Conversation

@billyvg

@billyvg billyvg commented Jul 30, 2021

Copy link
Copy Markdown
Member

Vendoring the pytest-github-actions-annotate-failures package until pytest-dev/pytest-github-actions-annotate-failures#30 is closed.

We will now ignore failures if there are retries pending. This will get rid of the GHA annotations that appear on test suites that pass.

Vendoring the `pytest-github-actions-annotate-failures` package until pytest-dev/pytest-github-actions-annotate-failures#30 is closed.

We will now ignore failures if there are retries pending. This will get rid of the GHA annotations that appear on test suites that pass.
Comment thread conftest.py
Comment on lines +57 to +66
try:
# If we have the pytest_rerunfailures plugin,
# and there are still retries to be run,
# then do not return the error
import pytest_rerunfailures

if item.execution_count <= pytest_rerunfailures.get_reruns_count(item):
return
except ImportError:
pass

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evanpurkhiser evanpurkhiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks billy

@billyvg
billyvg merged commit 74b6e21 into master Aug 2, 2021
@billyvg
billyvg deleted the test/ci/do-not-annotate-pytest-failures-on-retries branch August 2, 2021 20:24
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 18, 2021

This branch was successfully deployed

2 active deployments
Preview – storybook — 99e01b99 Deployed Jul 30, 2021 by vercel[bot]
Preview – sentry — 99e01b99 Deployed Jul 30, 2021 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants