Skip to content

Commit

Permalink
github: Upload crash dumps if present.
Browse files Browse the repository at this point in the history
Upload core-dumps to the CI run artifacts if they are present.
Runs "always" because we would expect the system tests to fail
if there is a crash. The retention is set to 5 days in case this
happens over a weekend. Usually there will be nothing to upload,
so it's worth keeping this in the long-run.

Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Nov 21, 2024
1 parent 722dc6d commit ce6749f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@ jobs:
cd test
sudo --preserve-env=PATH,GOPATH,GOCOVERDIR,GITHUB_ACTIONS,LXD_VERBOSE,LXD_BACKEND,LXD_CEPH_CLUSTER,LXD_CEPH_CEPHFS,LXD_CEPH_CEPHOBJECT_RADOSGW,LXD_OFFLINE,LXD_SKIP_TESTS,LXD_REQUIRED_TESTS, LXD_BACKEND=${{ matrix.backend }} ./main.sh ${{ matrix.suite }}
- name: Upload crash dumps
if: always()
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: crash-dumps-${{ matrix.suite }}-${{ matrix.backend }}
path: |
/var/crash/core-*
retention-days: 5
if-no-files-found: ignore

- name: Upload coverage data
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
Expand Down

0 comments on commit ce6749f

Please sign in to comment.