From e84d88ea5dcce8e59402722ae558b3e7f4d5b85b Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Wed, 2 Oct 2024 16:43:32 +0200 Subject: [PATCH] Unarchive log files before uploading artifacts (#1874) Doing this makes the artifacts easier to use, since it doesn't require unzip and unarchiving the logs separately. It also fixes an error with the benchmark steps, since these expect the perf.json files to be readily accessible. Unfortunately, I wasn't able to do this in ansible, so running the test manually on remote systems still creates archives on the local host. --- .github/workflows/integration-tests-vm-type.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/integration-tests-vm-type.yml b/.github/workflows/integration-tests-vm-type.yml index 276070e720..c3b490bdef 100644 --- a/.github/workflows/integration-tests-vm-type.yml +++ b/.github/workflows/integration-tests-vm-type.yml @@ -121,6 +121,15 @@ jobs: fi make -C "${{ github.workspace }}/ansible" destroy-vms + - name: Unarchive logs + if: always() + run: | + cd ${{ github.workspace }}/integration-tests/ + for file in container-logs/*.tar.gz; do + tar xzf "$file" + rm -f "$file" + done + - name: Store artifacts if: always() uses: actions/upload-artifact@v4