Skip to content

runtests: add retry option to reduce flakiness #17091

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

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 17, 2025

Add --retry=<num> option to tell runtests to retry the first <num>
tests that failed. Retries aren't run right away, but added to the end
of the test queue. Once all retry slots are used, test fail as normal.

In CI, typically a single test fails for flakiness, and rarely over 5.

Make the ci-test targets default to --retry=5.

runtests.pl: skip retry for torture tests

runtests.pl: count retries and fail if any (temp)

runtests.pl: count total (without retries) vs executed (with retries)

runtests.pl: count retries and fail if any, stop failing
@vszakats vszakats added tests CI Continuous Integration labels Apr 17, 2025
@vszakats vszakats closed this in 3f297f1 Apr 19, 2025
@vszakats vszakats deleted the t-retry branch April 19, 2025 08:42
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Add `--retry=<num>` option to tell runtests to retry the first `<num>`
tests that failed. Retries aren't run right away, but added to the end
of the test queue. Once all retry slots are used, test fail as normal.

In CI, typically a single test fails for flakiness, and rarely over 5.

Make the `ci-test` targets default to `--retry=5`.

Closes curl#17091
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Add `--retry=<num>` option to tell runtests to retry the first `<num>`
tests that failed. Retries aren't run right away, but added to the end
of the test queue. Once all retry slots are used, test fail as normal.

In CI, typically a single test fails for flakiness, and rarely over 5.

Make the `ci-test` targets default to `--retry=5`.

Closes curl#17091
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration tests
Development

Successfully merging this pull request may close these issues.

1 participant