From 04b6629c297e56daaf01d68c64da8fc89456fb40 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk <21087696+oleksandr-pavlyk@users.noreply.github.com> Date: Wed, 25 Dec 2024 06:42:21 -0600 Subject: [PATCH] Add more triaging steps --- .github/workflows/conda-package.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 7ef606a985..a1d562d27c 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -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 @@ -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: