Skip to content

Commit 901bd5f

Browse files
committed
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.
1 parent 62d34df commit 901bd5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: install gcovr
6161
run: sudo apt-get install -y gcovr
6262
- name: gcovr
63-
run: cd build && gcovr -r ..
63+
run: cd build && gcovr -r .. --gcov-ignore-parse-errors negative_hits.warn_once_per_file
6464
- name: Upload coverage to Codecov
6565
uses: codecov/codecov-action@v5
6666
with:

0 commit comments

Comments
 (0)