From 901bd5fd7ac28d840279111ccae8338af3b58907 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Fri, 7 Mar 2025 06:41:45 +0100 Subject: [PATCH] Configure gcovr to ignore negative hits as errors This seems to be an error in gcov and this occasionally makes our pipelines fail. As a consequence, we just re-run the job hoping that doesn't show up as it doesn't seem to be completely deterministic. Instead we could just ignore that particular error. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0ac9d4a..d116bdb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: - name: install gcovr run: sudo apt-get install -y gcovr - name: gcovr - run: cd build && gcovr -r .. + run: cd build && gcovr -r .. --gcov-ignore-parse-errors negative_hits.warn_once_per_file - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 with: