Skip to content

Commit 89cc1c2

Browse files
authored
chore: remove flaky settings since flaky=True is now the default for all tests (#9016)
Since 6cee23b all tests are automatically retried on failure (up to 3 times). When a test attempt passes after having failed in a previous attempt the test run will be considered flaky. This allows us to detect and fix flakiness ASAP without it being hidden. This means the `flaky = True` settings are no longer necessary and can be removed.
1 parent 8297465 commit 89cc1c2

File tree

17 files changed

+0
-54
lines changed

17 files changed

+0
-54
lines changed

bazel/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -283,18 +283,6 @@ Bazel provides several tools to **mitigate** and **resolve** flaky tests.
283283

284284
## Mitigation
285285

286-
Mark the test as **flaky** to make Bazel will retry the test up to three times.
287-
288-
```bash
289-
rust_test(
290-
name = "foo_test",
291-
# lines omitted
292-
flaky = True", # flakiness rate of $f% over the last month on $date.
293-
)
294-
```
295-
296-
Where you can retrieve the flakiness rate $f from Superset.
297-
298286
Instruct rust to only run one test in parallel - this can help when multiple
299287
concurrent test cases collide but may greatly increase the runtime of the tests.
300288

packages/pocket-ic/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ rust_test(
7070
"SSL_CERT_FILE": "$(rootpath @mozilla_root_ca_store//file)",
7171
"TEST_WASM": "$(rootpath //packages/pocket-ic/test_canister:test_canister.wasm.gz)",
7272
},
73-
flaky = True,
7473
tags = [
7574
"cpu:16",
7675
# TODO: remove 'requires-network' tag when the root cause for sporadic error below on Apple Silicon is identified and fixed.
@@ -125,7 +124,6 @@ rust_test(
125124
"SSL_CERT_FILE": "$(rootpath @mozilla_root_ca_store//file)",
126125
"TEST_WASM": "$(rootpath //packages/pocket-ic/test_canister:test_canister.wasm.gz)",
127126
},
128-
flaky = True,
129127
tags = [
130128
"cpu:16",
131129
# TODO: remove 'requires-network' tag when the root cause for sporadic error below on Apple Silicon is identified and fixed.

rs/bitcoin/adapter/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ rust_test(
137137
"RUST_TEST_THREADS": "4",
138138
"RUST_TEST_NOCAPTURE": "1",
139139
},
140-
flaky = True,
141140
tags = [
142141
"cpu:4",
143142
],

rs/nns/integration_tests/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ rust_ic_test_suite_with_extra_srcs(
279279
"JAVABASE": "$(JAVABASE)",
280280
},
281281
extra_srcs = ["src/lib.rs"],
282-
flaky = True, # flakiness rate of 1.29% over the month from 2025-02-11 till 2025-03-11 for the "governance_time_warp" test
283282
proc_macro_deps = MACRO_DEPENDENCIES + MACRO_DEV_DEPENDENCIES,
284283
toolchains = ["@bazel_tools//tools/jdk:current_java_runtime"], # for TLA/Apalache
285284
deps = DEPENDENCIES_WITH_TEST_FEATURES + DEV_DEPENDENCIES,

rs/rosetta-api/icp/tests/integration_tests/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ rust_test_suite(
6666
},
6767
# The test is critical to get resources timely and therefore fails sometimes when run on heavily loaded node.
6868
# TODO(IDX-2225): reconsider when we will use Remote Execution.
69-
flaky = True, # flakiness rate of over 2% over the month from 2025-02-11 till 2025-03-11.
7069
proc_macro_deps = [
7170
],
7271
tags = ["cpu:4"],

rs/rosetta-api/icrc1/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ rust_test_suite_with_extra_srcs(
180180
extra_srcs = glob([
181181
"tests/common/*.rs",
182182
]),
183-
flaky = True,
184183
proc_macro_deps = MACRO_DEV_DEPENDENCIES,
185184
deps = DEV_DEPENDENCIES + DEPENDENCIES,
186185
)
@@ -204,7 +203,6 @@ rust_test_suite_with_extra_srcs(
204203
extra_srcs = glob([
205204
"tests/common/*.rs",
206205
]),
207-
flaky = True,
208206
proc_macro_deps = MACRO_DEV_DEPENDENCIES,
209207
tags = ["cpu:4"],
210208
deps = DEV_DEPENDENCIES + DEPENDENCIES,

rs/sns/integration_tests/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ rust_ic_test_suite_with_extra_srcs(
212212
data = DATA_DEPS,
213213
env = ENV,
214214
extra_srcs = [],
215-
flaky = True, # flakiness rate of over 1% for the "proposals" and "upgrade_canister" tests over the month from 2025-02-11 till 2025-03-11.
216215
proc_macro_deps = MACRO_DEPENDENCIES + MACRO_DEV_DEPENDENCIES,
217216
tags = ["cpu:8"],
218217
deps = DEPENDENCIES_WITH_TEST_FEATURES + TEST_DEV_DEPENDENCIES,
@@ -229,7 +228,6 @@ rust_ic_test(
229228
crate_features = ["test"],
230229
data = DATA_DEPS,
231230
env = ENV,
232-
flaky = True, # flakiness rate of over 1% over the month from 2025-02-11 till 2025-03-11.
233231
#proc_macro_deps = MACRO_DEPENDENCIES + MACRO_DEV_DEPENDENCIES,
234232
tags = [
235233
"cpu:8",

rs/tests/consensus/orchestrator/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ system_test_nns(
103103

104104
system_test_nns(
105105
name = "unstuck_subnet_test",
106-
flaky = True, # flakiness rate of over 2.1% over the month from 2025-02-11 till 2025-03-11.
107106
guestos_update = "test",
108107
tags = [
109108
"long_test",

rs/tests/consensus/subnet_recovery/BUILD.bazel

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ system_test_nns(
7676

7777
system_test_nns(
7878
name = "sr_app_same_nodes_enable_chain_keys_test",
79-
flaky = True, # flakiness rate of over 3.33% over the month from 2025-02-11 till 2025-03-11.
8079
guestos_update = "test",
8180
tags = [
8281
"colocate",
@@ -128,7 +127,6 @@ system_test_nns(
128127

129128
system_test_nns(
130129
name = "sr_app_failover_nodes_enable_chain_keys_test",
131-
flaky = True, # flakiness rate of over 1.67% over the month from 2025-02-11 till 2025-03-11.
132130
guestos_update = "test",
133131
tags = [
134132
"colocate",
@@ -146,7 +144,6 @@ system_test_nns(
146144

147145
system_test_nns(
148146
name = "sr_app_failover_nodes_with_chain_keys_test",
149-
flaky = True, # flakiness rate of 3.33% over the month from 2025-02-11 till 2025-03-11.
150147
guestos_update = "test",
151148
tags = [
152149
"colocate",
@@ -215,7 +212,6 @@ system_test_nns(
215212

216213
system_test_nns(
217214
name = "sr_app_no_upgrade_with_chain_keys_test",
218-
flaky = True, # flakiness rate of over 6% over the month from 2025-02-11 till 2025-03-11 (only for //rs/tests/consensus/subnet_recovery:sr_app_no_upgrade_with_chain_keys_test_head_nns_colocate).
219215
guestos_update = "test",
220216
tags = [
221217
"colocate",
@@ -234,7 +230,6 @@ system_test_nns(
234230
system_test_nns(
235231
name = "sr_app_large_no_upgrade_with_chain_keys_test",
236232
enable_head_nns_variant = False, # Let's not run this expensive test against the HEAD NNS canisters to save resources.
237-
flaky = True, # flakiness rate of over 2.21% over the month from 2025-02-11 till 2025-03-11.
238233
guestos_update = "test",
239234
tags = [
240235
"colocate",

rs/tests/consensus/tecdsa/BUILD.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ system_test_nns(
132132

133133
system_test_nns(
134134
name = "tecdsa_signature_fails_without_cycles_test",
135-
flaky = True, # flakiness rate of over 1.05% over the month from 2025-02-11 till 2025-03-11.
136135
tags = [
137136
"long_test",
138137
],
@@ -154,7 +153,6 @@ system_test_nns(
154153

155154
system_test_nns(
156155
name = "tecdsa_signature_from_nns_without_cycles_test",
157-
flaky = True, # flakiness rate of over 1.67% over the month from 2025-02-11 till 2025-03-11 only for the //rs/tests/consensus/tecdsa:tecdsa_signature_from_nns_without_cycles_test_head_nns variant.
158156
tags = [
159157
"long_test",
160158
],
@@ -215,7 +213,6 @@ system_test_nns(
215213
system_test_nns(
216214
name = "tecdsa_signature_life_cycle_test",
217215
# Remove when CON-937 is resolved
218-
flaky = True, # flakiness rate of 1.57% over the month from 2025-02-11 till 2025-03-11
219216
tags = [
220217
"long_test", # since it takes longer than 5 minutes.
221218
],

0 commit comments

Comments
 (0)