From 5c4663772c8f7258a5ec5f329d2c6f4a60b1153a Mon Sep 17 00:00:00 2001 From: Anatoliy Bilenko Date: Tue, 27 Aug 2024 10:20:56 +0000 Subject: [PATCH 1/2] Added failure hook to discover https://github.com/canonical/dqlite/actions/runs/10565558010/job/29270343969 --- .github/workflows/build-and-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d79b6a27f..665f85d55 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -50,6 +50,13 @@ jobs: run: | make check || (cat ./test-suite.log && false) + - name: OnTestFailure + if: ${{ failure() }} + uses: actions/upload-artifact@v3 + with: + name: test-suite.log + path: test-suite.log + - name: Coverage env: CC: ${{ matrix.compiler }} From 27eeeaf23622c138d4f1121c6ceb1116375c01ca Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Tue, 27 Aug 2024 14:55:23 -0400 Subject: [PATCH 2/2] Make sure test output is captured Signed-off-by: Cole Miller --- .github/workflows/build-and-test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 665f85d55..31da63589 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -48,14 +48,20 @@ jobs: CC: ${{ matrix.compiler }} LIBDQLITE_TRACE: 1 run: | - make check || (cat ./test-suite.log && false) + for bin in unit-test integration-test \ + raft-core-fuzzy-test raft-core-integration-test \ + raft-core-unit-test raft-uv-integration-test \ + raft-uv-unit-test + do ./$bin || touch any-failed + done 2>&1 | tee -a test-suite.log + test '!' -e any-failed - name: OnTestFailure if: ${{ failure() }} uses: actions/upload-artifact@v3 with: - name: test-suite.log - path: test-suite.log + name: test-suite.log + path: test-suite.log - name: Coverage env: