Skip to content

Commit aafca0c

Browse files
committed
ci: Implement test limitations and update Rust toolchain
- Added a new 'limited' test group to improve testing efficiency, ensuring maximum of 4 threads for specific test runs. - Implemented an override to the Continuous Integration (CI) profile to filter and apply the 'limited' test group on `test(syscall::precompiles)`. - Upgraded Rust toolchain from a 'nightly' to a 'stable' version for improved reliability and stability.
1 parent ecdbeb2 commit aafca0c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.config/nextest.toml

+7
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ fail-fast = false
1010
slow-timeout = { period = "300s", terminate-after = 4 }
1111
# Retry failed tests once, marked flaky if test then passes
1212
retries = 1
13+
14+
[test-groups]
15+
limited = { max-threads = 4 }
16+
17+
[[profile.ci.overrides]]
18+
filter = 'test(syscall::precompiles)'
19+
test-group = 'limited'

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
cargo nextest run -p wp1-core --release --profile ci
3434
- name: Run cargo test on wp1-recursion-compiler, wp1-recursion-program, wp1-recursion-circuit
3535
run: |
36-
cargo nextest run -p wp1-recursion-compiler --release --profile ci
36+
cargo nextest run -p wp1-recursion-compiler -p wp1-recursion-program -p wp1-recursion-circuit --release --profile ci
3737
- name: Run cargo test with no default features
3838
run: |
3939
cargo nextest run -p wp1-core --release --profile ci --no-default-features --features debug -- cpu::trace::tests::generate_trace

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2024-01-25"
2+
channel = "stable"
33
profile = "default"
44
components = ["llvm-tools", "rustc-dev"]

0 commit comments

Comments
 (0)