Skip to content

Commit

Permalink
fix(jstzd): disable rollup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huancheng-trili committed Dec 11, 2024
1 parent 26bec48 commit f805962
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/jstzd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rand.workspace = true
tezos_crypto_rs.workspace = true

[features]
ignore-flaky-tests = []
skip-rollup-tests = []

[[bin]]
name = "jstzd"
Expand Down
2 changes: 1 addition & 1 deletion crates/jstzd/tests/jstzd_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub const JSTZ_ROLLUP_OPERATOR_PK: &str =
"edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav";
pub const JSTZ_ROLLUP_OPERATOR_ALIAS: &str = "bootstrap1";

#[cfg_attr(feature = "ignore-flaky-tests", ignore)]
#[cfg_attr(feature = "skip-rollup-tests", ignore)]
#[tokio::test(flavor = "multi_thread")]
async fn jstzd_test() {
let octez_node_rpc_endpoint = Endpoint::localhost(unused_port());
Expand Down
1 change: 1 addition & 0 deletions crates/jstzd/tests/octez_client_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ struct OutputProof {
pub proof: String,
}

#[cfg_attr(feature = "skip-rollup-tests", ignore)]
#[tokio::test(flavor = "multi_thread")]
async fn execute_rollup_outbox_message() {
let rollup_address = "sr1Uuiucg1wk5aovEY2dj1ZBsqjwxndrSaao";
Expand Down
4 changes: 2 additions & 2 deletions nix/crates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ 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 \"ignore-flaky-tests\"";
cargoNextestExtraArgs = "--workspace --test \"*\" --exclude \"jstz_api\" --features \"skip-rollup-tests\"";
});

cargo-llvm-cov = craneLib.cargoLlvmCov (commonWorkspace
// {
buildInputs = commonWorkspace.buildInputs ++ [pkgs.iana-etc octez pkgs.cacert];
# Generate coverage reports for codecov
cargoLlvmCovExtraArgs = "--workspace --exclude-from-test \"jstz_api\" --codecov --output-path $out";
cargoLlvmCovExtraArgs = "--workspace --exclude-from-test \"jstz_api\" --codecov --output-path $out --features \"skip-rollup-tests\"";
});

cargo-clippy = craneLib.cargoClippy (commonWorkspace
Expand Down

0 comments on commit f805962

Please sign in to comment.