Skip to content

Commit

Permalink
Add Linux core dump collection in CI (#3155)
Browse files Browse the repository at this point in the history
  • Loading branch information
externl authored Nov 22, 2024
1 parent 6954acd commit f47efb9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ runs:
working-directory: ${{ inputs.working_directory }}
run: python3 allTests.py --debug --all --continue --workers=4 --export-xml=test-report.xml ${{ inputs.flags }}
shell: bash
if: runner.os == 'macOS' || runner.os == 'Linux'
if: runner.os == 'macOS'

- name: Test
working-directory: ${{ inputs.working_directory }}
run: |
ulimit -c unlimited
python3 allTests.py --debug --all --continue --workers=4 --export-xml=test-report.xml ${{ inputs.flags }}
shell: bash
if: runner.os == 'Linux'

- name: Test
working-directory: ${{ inputs.working_directory }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ jobs:
if-no-files-found: ignore
if: always()

- name: Upload Linux core dumps
uses: actions/upload-artifact@v4
with:
name: core-dumps-${{ matrix.config }}-${{ matrix.os }}
path: /var/lib/apport/coredump/*
if-no-files-found: ignore
if: runner.os == 'Linux' && always()

- name: Upload macOS crash diagnostics
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f47efb9

Please sign in to comment.