From 040641bf42226fd7a26ac77286cbb2a46ec960ac Mon Sep 17 00:00:00 2001 From: Daniel Savu <23065004+daniel-savu@users.noreply.github.com> Date: Mon, 8 Apr 2024 22:06:57 +0100 Subject: [PATCH] chore: rust ci tests with full backtraces enabled (#3564) ### Description Currently there's no way to know exactly where a panic occurred in rust e2e. This adds full backtraces to show where the task `.join` that caused the panic was. For example, this line isn't visible in the regular backtrace and it shows that the panic happened when spawning the anvil task (if you check out commit `0cc48e164379d08a8f4c3703eaab79bb86e271d6`): ``` at [...]/hyperlane-monorepo/rust/utils/run-locally/src/main.rs:321:22 ``` ### Drive-by changes ### Related issues ### Backward compatibility ### Testing --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6e720885..88b60b064 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -200,7 +200,7 @@ jobs: if: matrix.e2e-type == 'cosmwasm' working-directory: ./rust env: - RUST_BACKTRACE: 1 + RUST_BACKTRACE: 'full' - name: agent tests excluding CosmWasm run: cargo run --release --bin run-locally @@ -210,6 +210,7 @@ jobs: E2E_CI_MODE: 'true' E2E_CI_TIMEOUT_SEC: '600' E2E_KATHY_MESSAGES: '20' + RUST_BACKTRACE: 'full' e2e: runs-on: ubuntu-latest