Skip to content

Commit

Permalink
[ci] Update the CI to follow other repositories in running valgrind
Browse files Browse the repository at this point in the history
This was never updated on the backend repo and lags the other repos. This should fix the current failures in the CI on master
  • Loading branch information
aaronj0 authored and vgvassilev committed Sep 19, 2024
1 parent 5406969 commit fbe9888
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,10 @@ jobs:
if [[ "${{ matrix.os }}" == macos-* ]]; then
echo "Skipping Valgrind checks on macOS"
else
if [[ "${{ matrix.clang-runtime }}" == "17" ]]; then
echo "Valgrind reports true for clang-runtime 17, due to memory leaks with LLVM"
valgrind --show-error-list=yes --error-exitcode=1 --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -v || true
else
echo "Running valgrind on passing tests"
valgrind --show-error-list=yes --error-exitcode=1 --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -v
fi
echo "Running valgrind on passing tests"
CLANG_VERSION="${{ matrix.clang-runtime }}"
SUPPRESSION_FILE="../etc/clang${CLANG_VERSION}-valgrind.supp"
valgrind --show-error-list=yes --error-exitcode=1 --track-origins=yes --suppressions="${SUPPRESSION_FILE}" --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -v
fi
export RETCODE=+$?
echo ::endgroup::
Expand Down

0 comments on commit fbe9888

Please sign in to comment.