Skip to content

Commit

Permalink
Add feature flag for slow tests (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmilson committed Aug 21, 2024
1 parent c5a0fdc commit d1e6267
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: jetli/[email protected]
with:
version: 'latest'
version: "latest"
- run: cd crates/prover && wasm-pack test --node
env:
RUSTFLAGS: -C target-feature=+simd128
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
with:
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly-2024-01-04 test --release -- --ignored
- run: cargo +nightly-2024-01-04 test --release --features="slow-tests"

udeps:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions crates/prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition.workspace = true

[features]
parallel = ["rayon"]
slow-tests = []

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion crates/prover/src/examples/blake/air.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ mod tests {
use crate::examples::blake::air::{prove_blake, verify_blake};

// Note: this test is slow. Only run in release.
#[ignore]
#[cfg_attr(not(feature = "slow-tests"), ignore)]
#[test_log::test]
fn test_simd_blake_prove() {
// Note: To see time measurement, run test with
Expand Down
2 changes: 1 addition & 1 deletion crates/prover/src/trace_generation/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ mod tests {

// Ignored because it takes too long and too much memory (in the CI) to run.
#[test]
#[ignore]
#[cfg_attr(not(feature = "slow-tests"), ignore)]
fn test_trace_too_big() {
const LOG_DOMAIN_SIZE: u32 = MAX_CIRCLE_DOMAIN_LOG_SIZE;
let air = TestAir {
Expand Down

0 comments on commit d1e6267

Please sign in to comment.