Skip to content

Commit

Permalink
Add more triaging steps
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed Dec 25, 2024
1 parent ba0bdbc commit 04b6629
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ jobs:
. $CONDA/etc/profile.d/conda.sh
conda activate ${{ env.TEST_ENV_NAME }}
python -c "import dpctl; dpctl.lsplatform(verbosity=2)"
- name: Create test temp dir
# create temporary empty folder to runs tests from
# https://github.com/pytest-dev/pytest/issues/11904
run: mkdir -p ${GITHUB_WORKSPACE}/test_tmp

- name: Install gdb
run: |
sudo apt-get update --fix-missing
Expand All @@ -218,10 +223,18 @@ jobs:
conda activate ${{ env.TEST_ENV_NAME }}
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_usm_ndarray_sorting dpctl.tests.test_usm_ndarray_unique dpctl.tests.test_usm_ndarray_top_k -vv || true
- name: Create test temp dir
# create temporary empty folder to runs tests from
# https://github.com/pytest-dev/pytest/issues/11904
run: mkdir -p ${GITHUB_WORKSPACE}/test_tmp
- name: Run test_usm_ndarray_top_k under gdb 2
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate ${{ env.TEST_ENV_NAME }}
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_usm_ndarray_sorting dpctl.tests.test_usm_ndarray_top_k -vv || true
- name: Run test_usm_ndarray_top_k under gdb 2
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate ${{ env.TEST_ENV_NAME }}
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_usm_ndarray_top_k -vv || true
- name: Run tests
working-directory: ${{ github.workspace }}/test_tmp
env:
Expand Down

0 comments on commit 04b6629

Please sign in to comment.