bitsandbytes icon indicating copy to clipboard operation
bitsandbytes copied to clipboard

TESTS: add `is_flaky` decorator on flaky tests

Open younesbelkada opened this issue 1 year ago • 2 comments

What does this PR do?

This PR introduces a new pytest decorator is_flaky that runs tests that have been decorated as being flaky. The decorator will run the test max_attempts times and if the test failed during all these attempts the test will be marked as failed.

Plan forward: identify which tests are flaky and decorate them

cc @Titus-von-Koeller

younesbelkada avatar Apr 23 '24 12:04 younesbelkada

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

github-actions[bot] avatar Apr 23 '24 12:04 github-actions[bot]

You could also use https://pypi.org/project/pytest-retry/...

akx avatar May 28 '24 06:05 akx

Closing this in favor of pytest-retry approach.

Titus-von-Koeller avatar Jul 23 '24 15:07 Titus-von-Koeller