Skip to content

Changed behaviour when used with pytest-rerunfailures #132

Closed

Description

@lukasmasuch

We are using pytest-github-actions-annotate-failures + pytest-rerunfailures with one additional rerun for our e2e tests in https://github.com/streamlit/streamlit. With pytest-github-actions-annotate-failures==0.3.0, annotations are also added for failed tests in the first run. With pytest-github-actions-annotate-failures==0.4.0, the behaviour seems to have changed to only annotate the final test failure. Is this expected?

Activity

  1. edgarrmondragon commented on Mar 6, 2026

    @edgarrmondragon
    Collaborator

    Not expected nor intended. We don't test integration with other pytest plugins, so it's easy to miss regressions like these.

    I've confirmed that the change you're seeing was introduced by #121 to support subtests. In particular, the change to the pytest hook we use from pytest_runtest_makereport to pytest_runtest_logreport.

    I can dive a little deeper, but I don't immediately have any good ideas as to how to support both Pytest 9+ subtests and third-party pytest-rerunfailures, so any suggestions are welcome 🙂.

  2. added
    bug
    on Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions