Skip to content

Support pytest-rerunfailures? #30

Closed

Description

@billyvg

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 error
        import pytest_rerunfailures
        if item.execution_count <= pytest_rerunfailures.get_reruns_count(item):
            return
    except ImportError:
        pass

Activity

  1. utgwkk commented on Jul 31, 2021

    @utgwkk
    Member

    👍 (I didn't know pytest-rerunfailures plugin.)

  2. utgwkk commented on Oct 24, 2021

    @utgwkk
    Member

    I've just released version 0.1.4 containing #40 (fix of this issue). Thank you for your contribution! @billyvg

  3. reopened this on Oct 25, 2021
  4. utgwkk commented on Oct 25, 2021

    @utgwkk
    Member

    Reopened due to #42

  5. edgarrmondragon commented on Jan 17, 2025

    @edgarrmondragon
    Collaborator
  6. added
    enhancement
    on Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions