@@ -615,55 +615,12 @@ jobs:
615615 python -m uv pip install pytest-xdist
616616 python -m uv pip install numba
617617 echo ::endgroup::
618- echo ::group::Run complete test suite
619- set -o pipefail
620- python -m pytest -sv -ra | tee complete_testrun.log 2>&1
621- set +o pipefail
622618 echo ::group::Crashing Test Logs
623- # See if we don't have a crash that went away
624- # Comment out all xfails but the ones that have a run=False condition.
625- find . -name "*.py" -exec sed -i '/run=False/!s/^ *@mark.xfail\(.*\)/#&/' {} \;
626- python -m pytest -n 1 -m "xfail" --runxfail -sv -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true
627- git checkout .
619+ python -m pytest -n 1 -v -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true
628620 echo ::endgroup::
629- echo ::group::XFAIL Test Logs
630- # Rewrite all xfails that have a run clause to skipif. This way we will
631- # avoid conditionally crashing xfails
632- find . -name "*.py" -exec sed -i -E 's/(^ *)@mark.xfail\(run=(.*)/\1@mark.skipif(condition=not \2/g' {} \;
633- # See if we don't have an xfail that went away
634- python -m pytest --runxfail -sv -ra | tee test_xfailed.log 2>&1 || true
635- git checkout .
636- echo ::endgroup::
637- echo ::group::Passing Test Logs
638-
639- # Run the rest of the non-crashing tests.
640- declare -i RETCODE=0
641-
642- set -o pipefail
643-
644- echo "Running valgrind on passing tests"
645- CLANG_VERSION="${{ matrix.clang-runtime }}"
646-
647- if [[ "${{ matrix.os }}" == *"arm"* ]]; then
648- SUPPRESSION_FILE="../etc/clang${CLANG_VERSION}-valgrind_arm.supp"
649- else
650- SUPPRESSION_FILE="../etc/clang${CLANG_VERSION}-valgrind.supp"
651- fi
652-
653- valgrind --show-error-list=yes --error-exitcode=1 --track-origins=yes --gen-suppressions=all --suppressions="${SUPPRESSION_FILE}" --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -sv -ra
654- export RETCODE=+$?
655- echo ::endgroup: :
656-
657- RETCODE=+$?
658621
659- echo "Complete Test Suite Summary : \n"
660- tail -n1 complete_testrun.log
661- echo "Crashing Summary : \n"
622+ echo "Crashing Summary:"
662623 tail -n1 test_crashed.log
663- echo "XFAIL Summary:"
664- tail -n1 test_xfailed.log
665- echo "Return Code : ${RETCODE}"
666- exit $RETCODE
667624
668625 - name : Show debug info
669626 if : ${{ failure() }}
0 commit comments