Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait before retrying tests via --rerun-failed flag #333

Open
yay14 opened this issue May 29, 2023 · 1 comment
Open

Wait before retrying tests via --rerun-failed flag #333

yay14 opened this issue May 29, 2023 · 1 comment

Comments

@yay14
Copy link

yay14 commented May 29, 2023

Is there a feature available to specify a wait time before retrying tests? This feature could potentially help mitigate failures caused by resource contention in services. Implementing an exponential wait time can be particularly effective in such scenarios, reducing the likelihood of failures.

@dnephin
Copy link
Member

dnephin commented Jun 12, 2023

Hello, thanks for the feature request! There's no way to do that today. Generally the --rerun-fails option is to deal with flaky tests, but I've never encountered a situation where the tests required extra wait time between attempts.

Could you elaborate on the scenario where extra delay would help? If the test is failing to acquire some resource, maybe it could implement some retry before failing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants