Skip to content

Commit 01b655c

Browse files
authored
test(ci): fail-fast and retry the flaky mainnet sync tests (#10860)
`integration::sync::sync_one_checkpoint_mainnet` and `restart_stop_at_height` sync mainnet to genesis from live peers and normally finish in ~10-30s, but a slow/unreachable peer occasionally stalls them toward the 30m hard limit (15m x 2), flaking on timeout. Lower the slow-timeout to 10m (still far above the ~30s norm) so a stall fails in minutes, and add retries so the transient stall recovers -- mirroring the existing disconnects_from_misbehaving_peers override.
1 parent 8d90981 commit 01b655c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.config/nextest.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ filter = 'test(=integration::network::disconnects_from_misbehaving_peers)'
3535
retries = 2
3636
slow-timeout = { period = "5m", terminate-after = 2 }
3737

38+
# These tests sync mainnet to genesis from live peers; they normally finish in
39+
# ~10-30s, but a slow/unreachable peer can stall them. Fail fast after 10m and
40+
# retry instead of hanging near the old 30m hard limit, where they flaked.
3841
[[profile.ci.overrides]]
3942
filter = 'test(=integration::sync::sync_one_checkpoint_mainnet) or test(=integration::sync::restart_stop_at_height)'
40-
slow-timeout = { period = "15m", terminate-after = 2 }
43+
slow-timeout = { period = "5m", terminate-after = 2 }
44+
retries = 2
4145

4246
[[profile.ci.overrides]]
4347
filter = "test(=peer_set::set::tests::vectors::peer_set_ready_multiple_connections) or test(=peer_set::set::tests::vectors::peer_set_ready_single_connection) or test(=peer_set::set::tests::vectors::peer_set_rejects_connections_past_per_ip_limit) or test(=peer_set::set::tests::vectors::peer_set_route_inv_advertised_registry)"

0 commit comments

Comments
 (0)