|
| 1 | +# Nextest configuration for save-rust |
| 2 | +# Veilid/DHT tests can be slow and flaky due to P2P peer discovery and network setup. |
| 3 | + |
| 4 | +[profile.default] |
| 5 | +# Set timeout to 10 minutes per test (Veilid network operations can be slow) |
| 6 | +# Terminate after 10 periods of 60s. |
| 7 | +slow-timeout = { period = "60s", terminate-after = 10 } |
| 8 | + |
| 9 | +# Retry flaky tests with exponential backoff to give Veilid time to connect |
| 10 | +retries = { backoff = "exponential", count = 3, delay = "5s", max-delay = "30s" } |
| 11 | + |
| 12 | +# Run tests serially to avoid Veilid network conflicts |
| 13 | +test-threads = 1 |
| 14 | + |
| 15 | +# P2P tests are flaky in CI, but very high retry counts can stretch failures to >1h. |
| 16 | +# Keep retries moderate so truly broken runs fail fast. |
| 17 | +[[profile.default.overrides]] |
| 18 | +filter = 'test(test_replicate_group) | test(test_join_group)' |
| 19 | +retries = { backoff = "exponential", count = 4, delay = "8s", max-delay = "45s", jitter = true } |
| 20 | + |
| 21 | +[[profile.default.overrides]] |
| 22 | +filter = 'test(test_refresh_joined_group)' |
| 23 | +retries = { backoff = "exponential", count = 2, delay = "8s", max-delay = "30s", jitter = true } |
| 24 | +slow-timeout = { period = "60s", terminate-after = 5 } |
| 25 | + |
| 26 | +# Faster CI profile used for PR runs. |
| 27 | +[profile.ci-virtual] |
| 28 | +slow-timeout = { period = "30s", terminate-after = 4 } |
| 29 | +retries = { backoff = "exponential", count = 1, delay = "3s", max-delay = "10s", jitter = true } |
| 30 | +test-threads = 1 |
| 31 | + |
| 32 | +[[profile.ci-virtual.overrides]] |
| 33 | +filter = 'test(test_replicate_group) | test(test_join_group)' |
| 34 | +retries = { backoff = "exponential", count = 2, delay = "5s", max-delay = "20s", jitter = true } |
| 35 | +slow-timeout = { period = "45s", terminate-after = 4 } |
| 36 | + |
| 37 | +[[profile.ci-virtual.overrides]] |
| 38 | +filter = 'test(test_refresh_joined_group)' |
| 39 | +retries = { backoff = "exponential", count = 1, delay = "5s", max-delay = "15s", jitter = true } |
| 40 | +slow-timeout = { period = "45s", terminate-after = 4 } |
0 commit comments