From 9579e5197e34e4e8efd99036c5df7cc7b2a7db7f Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Tue, 13 Dec 2022 10:49:52 -0800 Subject: [PATCH] add failure logs to github workflows (#186) Signed-off-by: Subhobrata Dey --- .github/workflows/ci.yml | 21 +++++++++++++++++++ .../workflows/multi-node-test-workflow.yml | 6 ++++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6158fb59d..c2ab4d407 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,27 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: ${{ failure() && matrix.os == 'ubuntu-latest' }} + with: + name: logs-ubuntu + path: build/testclusters/integTest-*/logs/* + + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: ${{ failure() && matrix.os == 'macos-latest' }} + with: + name: logs-mac + path: build/testclusters/integTest-*/logs/* + + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: ${{ failure() && matrix.os == 'windows-latest' }} + with: + name: logs-windows + path: build\testclusters\integTest-*\logs\* + - name: Upload Artifacts uses: actions/upload-artifact@v1 with: diff --git a/.github/workflows/multi-node-test-workflow.yml b/.github/workflows/multi-node-test-workflow.yml index 1cab69173..d7c4a1a0c 100644 --- a/.github/workflows/multi-node-test-workflow.yml +++ b/.github/workflows/multi-node-test-workflow.yml @@ -28,3 +28,9 @@ jobs: uses: actions/checkout@v2 - name: Run integration tests with multi node config run: ./gradlew integTest -PnumNodes=3 + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: failure() + with: + name: logs + path: build/testclusters/integTest-*/logs/* \ No newline at end of file