From f366d65d4b0ff12d63c04df481c184da8a4550e9 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 14 Aug 2023 11:59:23 -0400 Subject: [PATCH] Add RUST_BACKTRACE=1 to .github Should help resolve the coordinator tests, which are failing in the current CI. Presumably a timeout which is too low for the CI's slower runners. --- .github/workflows/coins-tests.yml | 2 +- .github/workflows/common-tests.yml | 2 +- .github/workflows/coordinator-tests.yml | 2 +- .github/workflows/crypto-tests.yml | 2 +- .github/workflows/message-queue-tests.yml | 2 +- .github/workflows/monero-tests.yaml | 8 ++++---- .github/workflows/processor-tests.yml | 2 +- .github/workflows/reproducible-runtime.yml | 2 +- .github/workflows/tests.yml | 6 +++--- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/coins-tests.yml b/.github/workflows/coins-tests.yml index bd5c798a..0a3ccf02 100644 --- a/.github/workflows/coins-tests.yml +++ b/.github/workflows/coins-tests.yml @@ -30,7 +30,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ -p bitcoin-serai \ -p ethereum-serai \ -p monero-generators \ diff --git a/.github/workflows/common-tests.yml b/.github/workflows/common-tests.yml index 87d52d72..023ab283 100644 --- a/.github/workflows/common-tests.yml +++ b/.github/workflows/common-tests.yml @@ -26,7 +26,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ -p std-shims \ -p zalloc \ -p serai-db \ diff --git a/.github/workflows/coordinator-tests.yml b/.github/workflows/coordinator-tests.yml index 1374a552..c4395286 100644 --- a/.github/workflows/coordinator-tests.yml +++ b/.github/workflows/coordinator-tests.yml @@ -41,4 +41,4 @@ jobs: github-token: ${{ inputs.github-token }} - name: Run coordinator Docker tests - run: cd tests/coordinator && GITHUB_CI=true cargo test + run: cd tests/coordinator && GITHUB_CI=true RUST_BACKTRACE=1 cargo test diff --git a/.github/workflows/crypto-tests.yml b/.github/workflows/crypto-tests.yml index d3120a46..cf371f5d 100644 --- a/.github/workflows/crypto-tests.yml +++ b/.github/workflows/crypto-tests.yml @@ -28,7 +28,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ -p flexible-transcript \ -p ff-group-tests \ -p dalek-ff-group \ diff --git a/.github/workflows/message-queue-tests.yml b/.github/workflows/message-queue-tests.yml index da7e65db..a13efc7e 100644 --- a/.github/workflows/message-queue-tests.yml +++ b/.github/workflows/message-queue-tests.yml @@ -35,4 +35,4 @@ jobs: github-token: ${{ inputs.github-token }} - name: Run message-queue Docker tests - run: cd tests/message-queue && GITHUB_CI=true cargo test + run: cd tests/message-queue && GITHUB_CI=true RUST_BACKTRACE=1 cargo test diff --git a/.github/workflows/monero-tests.yaml b/.github/workflows/monero-tests.yaml index f05a0365..6c3aa1e4 100644 --- a/.github/workflows/monero-tests.yaml +++ b/.github/workflows/monero-tests.yaml @@ -28,7 +28,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Run Unit Tests Without Features - run: GITHUB_CI=true cargo test --package monero-serai --lib + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --lib # Doesn't run unit tests with features as the tests workflow will @@ -51,11 +51,11 @@ jobs: - name: Run Integration Tests Without Features # Runs with the binaries feature so the binaries build # https://github.com/rust-lang/cargo/issues/8396 - run: GITHUB_CI=true cargo test --package monero-serai --features binaries --test '*' + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --features binaries --test '*' - name: Run Integration Tests # Don't run if the the tests workflow also will if: ${{ matrix.version != 'v0.18.2.0' }} run: | - GITHUB_CI=true cargo test --package monero-serai --all-features --test '*' - GITHUB_CI=true cargo test --package serai-processor --all-features monero + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --all-features --test '*' + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package serai-processor --all-features monero diff --git a/.github/workflows/processor-tests.yml b/.github/workflows/processor-tests.yml index 672315b6..8c16481d 100644 --- a/.github/workflows/processor-tests.yml +++ b/.github/workflows/processor-tests.yml @@ -41,4 +41,4 @@ jobs: github-token: ${{ inputs.github-token }} - name: Run processor Docker tests - run: cd tests/processor && GITHUB_CI=true cargo test + run: cd tests/processor && GITHUB_CI=true RUST_BACKTRACE=1 cargo test diff --git a/.github/workflows/reproducible-runtime.yml b/.github/workflows/reproducible-runtime.yml index 8c6dccdd..ca3311e2 100644 --- a/.github/workflows/reproducible-runtime.yml +++ b/.github/workflows/reproducible-runtime.yml @@ -35,4 +35,4 @@ jobs: github-token: ${{ inputs.github-token }} - name: Run Reproducible Runtime tests - run: cd tests/reproducible-runtime && GITHUB_CI=true cargo test + run: cd tests/reproducible-runtime && GITHUB_CI=true RUST_BACKTRACE=1 cargo test diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 92b1c3cf..4705652d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ -p serai-message-queue \ -p serai-processor-messages \ -p serai-processor \ @@ -58,7 +58,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ -p serai-primitives \ -p serai-tokens-primitives \ -p serai-tokens-pallet \ @@ -85,4 +85,4 @@ jobs: cargo build - name: Run Tests - run: GITHUB_CI=true cargo test --all-features -p serai-client + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features -p serai-client