Skip to content

Commit

Permalink
Output juju status and juju crashdump
Browse files Browse the repository at this point in the history
  • Loading branch information
mz2 committed Dec 12, 2023
1 parent 99f6d89 commit a81ba86
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/terraform_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
- name: Switch model to test-observer-development
run: |
juju switch test-observer-development
sleep 10 # hack hack, the below wait-for condition is not actually correct, so let's wait a bit
- name: Replace the API charm with the locally built one
run: |
Expand All @@ -87,6 +88,17 @@ jobs:
--timeout=10m \
--query='life=="alive" && status=="available" && forEach(applications, app => app.status == "active")'
- name: Echo juju status on failure
if: failure()
run: |
juju status --color
- name: Run juju crashdump on failure
if: failure()
run: |
sudo juju crashdump -o ./ -m test-observer-development --as-root -a juju-show-unit -a juju-show-status-log -a juju-show-machine -a config
sudo chown $USER ./**/juju-crashdump-*.tar.xz
- name: Archive juju crashdump on failure
if: failure()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit a81ba86

Please sign in to comment.