Skip to content

Commit

Permalink
debug core dump
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Aug 25, 2022
1 parent bedb29a commit 5c4991f
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.10"]
edgedb-version: [stable , nightly]
os: [ubuntu-latest, macos-latest, windows-2019]
loop: [asyncio, uvloop]
os: [ubuntu-latest]
loop: [asyncio]
exclude:
# uvloop does not support windows
- loop: uvloop
Expand Down Expand Up @@ -69,29 +69,49 @@ jobs:
with:
server-version: ${{ matrix.edgedb-version }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
if: steps.release.outputs.version == 0
with:
python-version: ${{ matrix.python-version }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# if: steps.release.outputs.version == 0
# with:
# python-version: ${{ matrix.python-version }}

- name: Install Python Deps
if: steps.release.outputs.version == 0
env:
EDGEDB_DEBUG: 1
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install -e .[test]
sudo apt update
sudo apt install -y apport gdb python3-dev
python3 -m pip install --upgrade setuptools pip wheel cython
python3 -m pip install -e .[test]
- name: Test
if: steps.release.outputs.version == 0
env:
LOOP_IMPL: ${{ matrix.loop }}
run: |
ulimit -c unlimited # Enable core dumps to be captured (must be in same run block)
if [ "${LOOP_IMPL}" = "uvloop" ]; then
env USE_UVLOOP=1 python -m unittest -v tests.suite
env USE_UVLOOP=1 python3 -m unittest -v tests.suite
else
python -m unittest -v tests.suite
python3 -m unittest -v tests.suite
fi
- name: chmod
if: always()
continue-on-error: true
run: |
sudo chmod -R +rwx /var/crash/* # Enable access to core dumps (doesn't need to be in same run block)
mkdir /tmp/xx
apport-unpack /var/crash/*unittest*.crash /tmp/xx
gdb -c /tmp/xx/CoreDump -batch -ex "bt"
- uses: actions/upload-artifact@master # capture all crashes as build artifacts
if: always()
with:
name: crashes
path: /var/crash

# This job exists solely to act as the test job aggregate to be
# targeted by branch policies.
regression-tests:
Expand Down

0 comments on commit 5c4991f

Please sign in to comment.