From d85096714c555a031a3ee3fd1a6edb22306d4096 Mon Sep 17 00:00:00 2001 From: Javier de la Puente Date: Fri, 7 Feb 2025 09:55:37 +0100 Subject: [PATCH] Dump debug logs on failure --- .github/workflows/integration_test_run.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/integration_test_run.yaml b/.github/workflows/integration_test_run.yaml index d1c62289..13136083 100644 --- a/.github/workflows/integration_test_run.yaml +++ b/.github/workflows/integration_test_run.yaml @@ -404,6 +404,14 @@ jobs: with: app: ${{ env.CHARM_NAME }} model: testing + - name: Juju debug-log + if: failure() + run: | + juju models + for model in $(juju models --format json | jq -r '.models[].name'); + do + echo DEBUG-LOG IN MODEL: $model; + juju debug-log --replay --no-tail -m $model; - name: Install k6s if: ${{ inputs.load-test-enabled }} run: sudo snap install k6