Skip to content

Commit

Permalink
Added gdb call in test_linux as a separate step
Browse files Browse the repository at this point in the history
This calls crashing test_tensor_elementwise under gdb in batch mode
in CI. gdb call exit code is ignored
  • Loading branch information
oleksandr-pavlyk committed May 16, 2023
1 parent 95a8142 commit b1495a2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,20 @@ jobs:
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test_dpctl
python -c "import dpctl; dpctl.lsplatform()"
python -c "import dpctl; dpctl.lsplatform(verbosity=2)"
- name: Install gdb
run: |
sudo apt-get install -y gdb
- name: Run test_elementwise under gdb
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test_dpctl
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_tensor_elementwise::test_cos_order -vv || true
- name: Run tests
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test_dpctl
# clinfo -l
python -m pytest --pyargs $MODULE_NAME
python -m pytest -v --pyargs $MODULE_NAME
test_windows:
needs: build_windows
Expand Down

0 comments on commit b1495a2

Please sign in to comment.