Skip to content

Commit d87be57

Browse files
committed
ci: use ci-virtual nextest profile for PR runs
1 parent 385e67c commit d87be57

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.config/nextest.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,19 @@ retries = { backoff = "exponential", count = 4, delay = "8s", max-delay = "45s",
2222
filter = 'test(test_refresh_joined_group)'
2323
retries = { backoff = "exponential", count = 2, delay = "8s", max-delay = "30s", jitter = true }
2424
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 }

.github/workflows/lint_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
lint_and_test:
1111
runs-on: ubuntu-latest
12-
timeout-minutes: 120
12+
timeout-minutes: 75
1313

1414
steps:
1515
- name: Set up Rust toolchain
@@ -39,6 +39,6 @@ jobs:
3939
# Exclude long P2P network convergence tests from PR CI; run them in dedicated/nightly workflows.
4040
run: >
4141
cargo nextest run
42-
--test-threads=1
42+
--profile ci-virtual
4343
--no-fail-fast
4444
-E 'not (test(test_join_group) | test(test_replicate_group) | test(test_refresh_joined_group) | test(test_idempotent_create_repo_after_join))'

0 commit comments

Comments
 (0)