Skip to content

Commit

Permalink
Find and upload any core dumps as artifacts
Browse files Browse the repository at this point in the history
Because:
- Some test code is segfaulting, and this is not reproducible locally.
- Hopefully, the segfaulted process core dumps, so we can maybe get a
  clue as to what's going on.
  • Loading branch information
lunkwill42 committed Jul 30, 2021
1 parent e35058a commit 60e3de3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
- name: "Run tests"
run: |
export DISPLAY=:99
ulimit -c unlimited
sudo sysctl -w kernel.core_pattern=/tmp/core-%e.%p.%h.%t
python -m tox
- name: Upload Selenium driver logs (${{ matrix.python-version }})
Expand All @@ -87,6 +89,14 @@ jobs:
path: |
reports/**/*
- name: Upload core dumps (${{ matrix.python-version }})
if: failure()
uses: actions/upload-artifact@v2
with:
name: core-dumps
path: |
/tmp/core-*
publish-test-results:
name: "Publish test results"
needs: build-and-test
Expand Down

0 comments on commit 60e3de3

Please sign in to comment.