Skip to content

chore: retry all tests sans some exclusions#8995

Merged
basvandijk merged 3 commits intomasterfrom
basvandijk/retry-all-tests-except-for-exclusions
Feb 23, 2026
Merged

chore: retry all tests sans some exclusions#8995
basvandijk merged 3 commits intomasterfrom
basvandijk/retry-all-tests-except-for-exclusions

Conversation

@basvandijk
Copy link
Collaborator

@basvandijk basvandijk commented Feb 22, 2026

Flaky tests should be detected ASAP such that they can be fixed ASAP.

At the moment only system-tests (//rs/tests/.*) and some specifically flagged tests (flaky=True) are automatically retried on failure (up to 3 times) to detect if they're flaky.

We recently had some tests that were failing or timing out often that we expect are actually flaky. So we had to flag them with flaky=True such that after some period we have gathered enough data to know whether they're flaky or not. This process causes manual labour, is time consuming and prevents us from fixing flakiness ASAP.

So this commit moves --flaky_test_attempts from a whitelist approach, where only a selected number of tests where automatically retried, to a blacklist approach, where all tests are retried except for the //pre-commit/... tests since they have never been flaky (and we intend to move them out of bazel test).

After running with this for a while we'll remove all flaky = True settings from our targets.

@github-actions github-actions bot added the chore label Feb 22, 2026
@basvandijk basvandijk marked this pull request as ready for review February 23, 2026 11:06
@basvandijk basvandijk requested a review from a team as a code owner February 23, 2026 11:06
@github-actions github-actions bot added the @idx label Feb 23, 2026
@basvandijk basvandijk added this pull request to the merge queue Feb 23, 2026
Merged via the queue into master with commit 6cee23b Feb 23, 2026
39 checks passed
@basvandijk basvandijk deleted the basvandijk/retry-all-tests-except-for-exclusions branch February 23, 2026 16:00
pietrodimarco-dfinity pushed a commit that referenced this pull request Feb 28, 2026
Flaky tests should be detected ASAP such that they can be fixed ASAP.

At the moment only system-tests (`//rs/tests/.*`) and some specifically
flagged tests (`flaky=True`) are automatically retried on failure (up to
3 times) to detect if they're flaky.

We recently had some tests that were failing or timing out often that we
expect are actually flaky. So we had to flag them with `flaky=True` such
that after some period we have gathered enough data to know whether
they're flaky or not. This process causes manual labour, is time
consuming and prevents us from fixing flakiness ASAP.

So this commit moves `--flaky_test_attempts` from a whitelist approach,
where only a selected number of tests where automatically retried, to a
blacklist approach, where all tests are retried except for the
`//pre-commit/...` tests since they have never been flaky (and we intend
to move them out of `bazel test`).

After running with this for a while we'll remove all [`flaky =
True`](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/dfinity/ic%24+%22flaky+%3D+True%22&patternType=keyword&sm=0)
settings from our targets.
pietrodimarco-dfinity pushed a commit that referenced this pull request Feb 28, 2026
Flaky tests should be detected ASAP such that they can be fixed ASAP.

At the moment only system-tests (`//rs/tests/.*`) and some specifically
flagged tests (`flaky=True`) are automatically retried on failure (up to
3 times) to detect if they're flaky.

We recently had some tests that were failing or timing out often that we
expect are actually flaky. So we had to flag them with `flaky=True` such
that after some period we have gathered enough data to know whether
they're flaky or not. This process causes manual labour, is time
consuming and prevents us from fixing flakiness ASAP.

So this commit moves `--flaky_test_attempts` from a whitelist approach,
where only a selected number of tests where automatically retried, to a
blacklist approach, where all tests are retried except for the
`//pre-commit/...` tests since they have never been flaky (and we intend
to move them out of `bazel test`).

After running with this for a while we'll remove all [`flaky =
True`](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/dfinity/ic%24+%22flaky+%3D+True%22&patternType=keyword&sm=0)
settings from our targets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants