Skip to content

Commit 59d1f84

Browse files
committed
Fix nextest config loading and timeout keys
1 parent 2545fae commit 59d1f84

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

nextest.toml renamed to .config/nextest.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33

44
[profile.default]
55
# Set timeout to 10 minutes per test (Veilid network operations can be slow)
6-
test-timeout = "600s"
6+
# Terminate after 10 periods of 60s.
7+
slow-timeout = { period = "60s", terminate-after = 10 }
78

89
# Retry flaky tests with exponential backoff to give Veilid time to connect
910
retries = { backoff = "exponential", count = 3, delay = "5s", max-delay = "30s" }
1011

1112
# Run tests serially to avoid Veilid network conflicts
1213
test-threads = 1
1314

14-
# Mark tests slow after 60s (informational)
15-
slow-timeout = "60s"
16-
1715
# P2P tests are flaky in CI, but very high retry counts can stretch failures to >1h.
1816
# Keep retries moderate so truly broken runs fail fast.
1917
[[profile.default.overrides]]
@@ -23,4 +21,4 @@ retries = { backoff = "exponential", count = 4, delay = "8s", max-delay = "45s",
2321
[[profile.default.overrides]]
2422
filter = 'test(test_refresh_joined_group)'
2523
retries = { backoff = "exponential", count = 2, delay = "8s", max-delay = "30s", jitter = true }
26-
test-timeout = "300s"
24+
slow-timeout = { period = "60s", terminate-after = 5 }

.github/workflows/lint_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
- name: Run tests with retries
3333
env:
3434
RUST_MIN_STACK: 8388608
35-
# Retries configured in nextest.toml (no CLI override)
35+
# Retries configured in .config/nextest.toml (nextest default path)
3636
# --no-fail-fast: run all tests even when some fail, so we see full results
3737
run: cargo nextest run --test-threads=1 --no-fail-fast

0 commit comments

Comments
 (0)