From 801967b75fa9ee8a2dd508c06e043dbfbbb15a6e Mon Sep 17 00:00:00 2001 From: Vishesh Garg Date: Thu, 7 Dec 2023 15:34:23 +0530 Subject: [PATCH] Add test logs zipping and archival steps for failures in Static Checks Github Actions (#15506) Add test logs zipping and archival steps for failures in Static Checks Github Actions --- .github/workflows/static-checks.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index 49cd516f5cae..28535b334b08 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -183,3 +183,14 @@ jobs: web-console/script/druid start (cd web-console && npm run test-e2e) web-console/script/druid stop + + - name: Tar druid logs + if: ${{ failure() }} + run: tar cvzf ./druid-logs.tgz -C ./distribution/target/apache-druid-*-SNAPSHOT/ logs + + - name: Upload druid logs to GitHub + if: ${{ failure() }} + uses: actions/upload-artifact@master + with: + name: Druid logs web-checks + path: druid-logs.tgz