diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 18171f7f93..4cd4d5ca6f 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -46,6 +46,15 @@ jobs: - name: Test run: cd tests/integration && WITH_COVERAGE=1 make test-${{ matrix.type }} + - name: Show sccache log + if: failure() + run: | + if [ -f target/integration-coverage/sccache.log ]; then + cat target/integration-coverage/sccache.log + else + echo "No sccache log was produced." + fi + - name: Build report run: | cd tests/integration diff --git a/tests/integration/Makefile b/tests/integration/Makefile index c3463f7bf1..90369f5e94 100644 --- a/tests/integration/Makefile +++ b/tests/integration/Makefile @@ -159,6 +159,7 @@ test-%: build clean-% $(call group,Testing $*) @echo "Testing $*..." @docker compose $(call profiles,$*) up --quiet-pull -d $(SERVICES_$*) + @rm -f $(COVERAGE_DIR)/sccache.log @docker compose $(call profiles,$*) run --quiet-pull --rm test-$* @docker compose $(call profiles,$*) down @echo "$* test completed" diff --git a/tests/integration/docker-compose.yml b/tests/integration/docker-compose.yml index 4e1a657435..f2c7d33e61 100644 --- a/tests/integration/docker-compose.yml +++ b/tests/integration/docker-compose.yml @@ -2,6 +2,8 @@ x-common-env: &common-env RUST_BACKTRACE: full RUSTC_WRAPPER: ${SCCACHE_PATH:-/sccache/target/debug/sccache} RUST_LOG: debug + SCCACHE_LOG: "sccache=debug" + SCCACHE_ERROR_LOG: /coverage/sccache.log SCCACHE_PATH: ${SCCACHE_PATH:-/sccache/target/debug/sccache} LLVM_PROFILE_FILE: ${LLVM_PROFILE_FILE:-}