From e3d5fcb4600ba5dc14e1be3851a8dc5406c22137 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Tue, 23 Jul 2024 13:02:24 +0000 Subject: [PATCH] compatible(integration_test_charm.yaml): Add `jhack tail` to logs (#212) --- .github/workflows/integration_test_charm.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/integration_test_charm.yaml b/.github/workflows/integration_test_charm.yaml index 12b30f29..e6f9628e 100644 --- a/.github/workflows/integration_test_charm.yaml +++ b/.github/workflows/integration_test_charm.yaml @@ -396,6 +396,7 @@ jobs: juju set-model-constraints arch='${{ inputs.architecture }}' pipx install tox pipx install poetry + pipx install git+https://github.com/canonical/jhack - name: lxc image list timeout-minutes: 1 if: ${{ inputs.cloud == 'lxd' }} @@ -461,6 +462,13 @@ jobs: timeout-minutes: 3 if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }} run: tee-log-for-all-models --log-command 'juju debug-log --color --replay --no-tail' --log-file-name juju-debug-log.txt + - name: jhack tail + timeout-minutes: 3 + if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }} + run: tee-log-for-all-models --log-command 'jhack tail --color 256 --replay --length=50000 --no-watch' --log-file-name jhack-tail.txt + env: + # Increase table width + COLUMNS: 120 - name: Upload logs timeout-minutes: 5 if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }}