Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use nextest for better test isolation #8207

Merged
merged 5 commits into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ steps:
- label: "cargo test integration-tests*"
command: |
source ~/.cargo/env && set -eux
cargo test --locked -p 'integration-tests'
cargo install cargo-nextest
cargo nextest run --locked -p 'integration-tests'

timeout: 60
agents:
Expand All @@ -28,7 +29,8 @@ steps:
- label: "cargo test not integration-tests*"
command: |
source ~/.cargo/env && set -eux
cargo test --locked --workspace -p '*' --exclude 'integration-tests*'
cargo install cargo-nextest
cargo nextest run --locked --workspace -p '*' --exclude 'integration-tests*'

timeout: 60
agents:
Expand All @@ -38,7 +40,8 @@ steps:
- label: "cargo test nightly integration-tests*"
command: |
source ~/.cargo/env && set -eux
cargo test --features nightly,test_features -p 'integration-tests'
cargo install cargo-nextest
cargo nextest run --features nightly,test_features -p 'integration-tests'

timeout: 60
agents:
Expand All @@ -48,7 +51,8 @@ steps:
- label: "cargo test nightly not integration-tests*"
command: |
source ~/.cargo/env && set -eux
cargo test --workspace --features nightly,test_features,mock_node -p '*' --exclude 'integration-tests*'
cargo install cargo-nextest
cargo nextest run --workspace --features nightly,test_features,mock_node -p '*' --exclude 'integration-tests*'
pompon0 marked this conversation as resolved.
Show resolved Hide resolved

timeout: 60
agents:
Expand Down
2 changes: 2 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[profile.default]
slow-timeout = { period = "60s", terminate-after = 2, grace-period = "0s" }