Skip to content

Commit 3667bd6

Browse files
ci: cargo nextest setup
1 parent d01b395 commit 3667bd6

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.config/nextest.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[profile.default]
2+
slow-timeout = { period = "60s", terminate-after = 2 }
3+
4+
[test-groups.serialized]
5+
max-threads = 1
6+
7+
# serialized tests (mostly integration tests)
8+
[[profile.default.overrides]]
9+
# TODO(victork): evaluate whether these are indeed required to run sequentially
10+
filter = '(package(apollo_integration_tests) & kind(test)) | package(apollo_infra) | package(apollo_network) | (package(apollo_l1_provider) & kind(test))'
11+
test-group = 'serialized'
12+
13+
# slow test exception whitelist
14+
[[profile.default.overrides]]
15+
filter = 'none()'
16+
slow-timeout = { period = "120s", terminate-after = 2 }

.github/actions/install_rust/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
with:
1818
cache-base: main(-v[0-9].*)?
1919
inherit-toolchain: true
20-
bins: taplo-cli@0.9.3, cargo-machete
20+
bins: taplo-cli@0.9.3, cargo-machete, cargo-nextest@0.9.113
2121
# Install additional non-default toolchains (for rustfmt for example), NOP if input omitted.
2222
channel: ${{ inputs.extra_rust_toolchains }}
2323
env:

scripts/local_presubmit.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ setup_env_variables_from_yml() {
7171

7272
install_dependencies() {
7373
# List of crate names to check/install
74-
CRATES=("taplo-cli" "cargo-machete")
74+
# TODO(victork): make cargo-nextest a common installation tool instead of burying it in this utility script
75+
CRATES=("taplo-cli" "cargo-machete" "cargo-nextest")
7576

7677
# Get the list of installed crates
7778
INSTALLED_CRATES=$(cargo install --list | grep -Eo '^[^ ]+')

0 commit comments

Comments
 (0)