From 29d0c748e301c212ff132a0137582aa69cc3bafb Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 6 Jun 2024 07:42:29 +1000 Subject: [PATCH] ci: make output of `cargo test` smaller (#5219) When the `tunnel_test` fails, it generates a lot of output because it keeps printing the backtrace over and over. This makes it difficult to access the input seed to the test. Copying this seed into a local environment is the first step in debugging this, at which point the backtrace can be enabled locally. We also disable the `verbose: 1` config option. Users can always set that using the `PROPTEST_VERBOSE` env variable. --- .github/workflows/_rust.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/_rust.yml b/.github/workflows/_rust.yml index a57de6e8a..a4b5a14cf 100644 --- a/.github/workflows/_rust.yml +++ b/.github/workflows/_rust.yml @@ -70,7 +70,6 @@ jobs: # # Needed to create tunnel interfaces in unit tests CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sudo --preserve-env" - RUST_BACKTRACE: full PROPTEST_VERBOSE: 0 # Otherwise the output is very long. CARGO_PROFILE_TEST_OPT_LEVEL: 1 # Otherwise proptests take forever. name: "cargo test"