Skip to content

Conversation

@CagriYonca
Copy link
Contributor

I'm taking the initiative and proposing the pytest-rerunfailures package for flaky tests. Only thing we should do is to add the line just before flaky tests:

    @pytest.mark.flaky(reruns=3, reruns_delay=2)   <-- ONLY THIS
    def test_flaky_test(self):
        ...

@CagriYonca CagriYonca self-assigned this May 2, 2025
@pvital pvital added the WIP work in progress label May 7, 2025
@CagriYonca CagriYonca added the do NOT merge Depends on another PR or WIP label May 7, 2025
@CagriYonca CagriYonca force-pushed the ci/rerun-flaky-tests branch from 5d2bdb1 to b0d5688 Compare May 7, 2025 10:23
Signed-off-by: Cagri Yonca <cagri@ibm.com>
@CagriYonca CagriYonca force-pushed the ci/rerun-flaky-tests branch from b0d5688 to cb67c01 Compare May 7, 2025 10:24
@CagriYonca CagriYonca closed this May 7, 2025
@CagriYonca CagriYonca deleted the ci/rerun-flaky-tests branch November 3, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do NOT merge Depends on another PR or WIP enhancement WIP work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants