From eeb467bdc29ecae3c53645c1a409bf9eaae4a1a6 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 13 Jun 2024 16:44:56 +0000 Subject: [PATCH] gha: Do not fail when collecting artifacts This PR will avoid the failures when collecting artifacts for the gha. This will ensure that we collect and archive system's data for the purpose of debugging. Signed-off-by: Gabriela Cervantes --- .github/workflows/basic-ci-amd64.yaml | 2 ++ .github/workflows/run-k8s-tests-on-garm.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/basic-ci-amd64.yaml b/.github/workflows/basic-ci-amd64.yaml index 51f755fc1242..c42f65b98015 100644 --- a/.github/workflows/basic-ci-amd64.yaml +++ b/.github/workflows/basic-ci-amd64.yaml @@ -333,7 +333,9 @@ jobs: run: bash tests/integration/nerdctl/gha-run.sh run - name: Collect artifacts ${{ matrix.vmm }} + if: always() run: bash tests/integration/nerdctl/gha-run.sh collect-artifacts + continue-on-error: true - name: Archive artifacts ${{ matrix.vmm }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/run-k8s-tests-on-garm.yaml b/.github/workflows/run-k8s-tests-on-garm.yaml index e17dc88289a5..4736baa07f49 100644 --- a/.github/workflows/run-k8s-tests-on-garm.yaml +++ b/.github/workflows/run-k8s-tests-on-garm.yaml @@ -86,7 +86,9 @@ jobs: run: bash tests/integration/kubernetes/gha-run.sh run-tests - name: Collect artifacts ${{ matrix.vmm }} + if: always() run: bash tests/integration/kubernetes/gha-run.sh collect-artifacts + continue-on-error: true - name: Archive artifacts ${{ matrix.vmm }} uses: actions/upload-artifact@v4