diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2dd0769a25d..bfca88fb323 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,8 @@ on: env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: full + RUST_LIB_BACKTRACE: full + COLORBT_SHOW_HIDDEN: '1' jobs: test: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 76ee40f1e52..3f46c053522 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -31,6 +31,8 @@ on: env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: full + RUST_LIB_BACKTRACE: full + COLORBT_SHOW_HIDDEN: '1' jobs: coverage: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9cae2d9f6a9..7f57dacad54 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,6 +19,8 @@ on: env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: full + RUST_LIB_BACKTRACE: full + COLORBT_SHOW_HIDDEN: '1' jobs: clippy: diff --git a/.github/workflows/test-full-sync.yml b/.github/workflows/test-full-sync.yml index c62572f5906..02bacc8c588 100644 --- a/.github/workflows/test-full-sync.yml +++ b/.github/workflows/test-full-sync.yml @@ -25,6 +25,9 @@ on: env: CARGO_INCREMENTAL: '1' ZEBRA_SKIP_IPV6_TESTS: "1" + RUST_BACKTRACE: full + RUST_LIB_BACKTRACE: full + COLORBT_SHOW_HIDDEN: '1' NETWORK: Mainnet PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} GAR_BASE: us-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/zebra @@ -101,7 +104,9 @@ jobs: build-args: | NETWORK=${{ github.event.inputs.network || env.NETWORK }} SHORT_SHA=${{ env.GITHUB_SHA_SHORT }} - RUST_BACKTRACE=full + RUST_BACKTRACE=${{ env.RUST_BACKTRACE }} + RUST_LIB_BACKTRACE=${{ env.RUST_LIB_BACKTRACE }} + COLORBT_SHOW_HIDDEN=${{ env.COLORBT_SHOW_HIDDEN }} ZEBRA_SKIP_NETWORK_TESTS="1" CHECKPOINT_SYNC=${{ github.event.inputs.checkpoint_sync || true }} RUST_LOG=debug diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f02ac944af..bb7eaca921c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,9 @@ on: env: CARGO_INCREMENTAL: '1' ZEBRA_SKIP_IPV6_TESTS: "1" + RUST_BACKTRACE: full + RUST_LIB_BACKTRACE: full + COLORBT_SHOW_HIDDEN: '1' NETWORK: Mainnet PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} GAR_BASE: us-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/zebra @@ -102,7 +105,9 @@ jobs: build-args: | NETWORK=${{ github.event.inputs.network || env.NETWORK }} SHORT_SHA=${{ env.GITHUB_SHA_SHORT }} - RUST_BACKTRACE=full + RUST_BACKTRACE=${{ env.RUST_BACKTRACE }} + RUST_LIB_BACKTRACE=${{ env.RUST_LIB_BACKTRACE }} + COLORBT_SHOW_HIDDEN=${{ env.COLORBT_SHOW_HIDDEN }} ZEBRA_SKIP_NETWORK_TESTS="1" CHECKPOINT_SYNC=${{ github.event.inputs.checkpoint_sync || true }} RUST_LOG=debug diff --git a/docker/Dockerfile b/docker/Dockerfile index dfa8f4e2e14..f2e034a2b30 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -53,7 +53,13 @@ ENV CARGO_HOME /app/.cargo/ RUN cargo chef cook --release --features enable-sentry --recipe-path recipe.json ARG RUST_BACKTRACE -ENV RUST_BACKTRACE ${RUST_BACKTRACE:-1} +ENV RUST_BACKTRACE ${RUST_BACKTRACE:-0} + +ARG RUST_LIB_BACKTRACE +ENV RUST_LIB_BACKTRACE ${RUST_LIB_BACKTRACE:-0} + +ARG COLORBT_SHOW_HIDDEN +ENV COLORBT_SHOW_HIDDEN ${COLORBT_SHOW_HIDDEN:-0} # Skip IPv6 tests by default, as some CI environment don't have IPv6 available ARG ZEBRA_SKIP_IPV6_TESTS diff --git a/docker/zcash-params/Dockerfile b/docker/zcash-params/Dockerfile index 13d86691f68..495d94c4760 100644 --- a/docker/zcash-params/Dockerfile +++ b/docker/zcash-params/Dockerfile @@ -28,9 +28,15 @@ ENV CARGO_HOME /app/.cargo/ # Build dependencies - this is the caching Docker layer! RUN cargo chef cook --release --features enable-sentry --recipe-path recipe.json -ARG RUST_BACKTRACE=1 +ARG RUST_BACKTRACE=0 ENV RUST_BACKTRACE ${RUST_BACKTRACE} +ARG RUST_LIB_BACKTRACE=0 +ENV RUST_LIB_BACKTRACE ${RUST_LIB_BACKTRACE} + +ARG COLORBT_SHOW_HIDDEN=0 +ENV COLORBT_SHOW_HIDDEN ${COLORBT_SHOW_HIDDEN} + COPY . . # Pre-download Zcash Sprout and Sapling parameters RUN cargo run --locked --release --features enable-sentry --bin zebrad download