Skip to content

Commit

Permalink
ci: terminate slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huancheng-trili committed Dec 19, 2024
1 parent 2758a03 commit 394a886
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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 = 1 }
6 changes: 3 additions & 3 deletions nix/crates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
src = let
# Include all Rust files / cargo related files
# Include all files in the `contracts` and `crates` directories
regexes = [".*\.toml$" ".*\.rs$" "^\.cargo.*$" "^Cargo.lock$" "^crates.*$" "^contracts.*$"];
regexes = [".*\.toml$" ".*\.rs$" "^\.cargo.*$" "^Cargo.lock$" "^crates.*$" "^contracts.*$" "\.config.*$"];
in
lib.sourceByRegex (lib.cleanSource ../.) regexes;

Expand Down Expand Up @@ -151,7 +151,7 @@ in {
# Note: --workspace is required for --exclude. Once --exclude is removed, remove --workspace
# FIXME(https://linear.app/tezos/issue/JSTZ-237):
# Fix tests that only fail in CI/Nix
cargoNextestExtraArgs = "--workspace --test \"*\" --exclude \"jstz_api\" --features \"skip-rollup-tests\"";
cargoNextestExtraArgs = "--workspace --test \"*\" --exclude \"jstz_api\" --features \"skip-rollup-tests\" --config-file ${src}/.config/nextest.toml";
});

cargo-llvm-cov = craneLib.cargoLlvmCov (commonWorkspace
Expand All @@ -160,7 +160,7 @@ in {
# Use nextest for test harness (instead of `cargo test`)
cargoLlvmCovCommand = "nextest";
# Generate coverage reports for codecov
cargoLlvmCovExtraArgs = "--workspace --exclude-from-test \"jstz_api\" --codecov --output-path $out --features \"skip-rollup-tests\"";
cargoLlvmCovExtraArgs = "--workspace --exclude-from-test \"jstz_api\" --codecov --output-path $out --features \"skip-rollup-tests\" --config-file ${src}/.config/nextest.toml";
});

cargo-clippy = craneLib.cargoClippy (commonWorkspace
Expand Down

0 comments on commit 394a886

Please sign in to comment.