Skip to content

Commit 5b672cd

Browse files
committed
coverage: ignore lcov errors temporarily
problem: we seem to get spurious branch merge mismatch errors in CI, and ensuring atomicity has not helped solution: ignore all lcov errors with GCOV_ERROR_FILE=/dev/null We can't ignore that specific class of errors with `--ignore-errors mismatch` because our lcov version is too low, and increasing the version is not an easy option in el8. fixes #6078
1 parent 06d893e commit 5b672cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ CODE_COVERAGE_IGNORE_PATTERN = \
3636
"*/common/libccan/*" \
3737
"*/common/libmissing/*"
3838

39+
# ignore lcov errors to avoid merge mismatch issue since lcov < 2 doesn't offer
40+
# an option to just ignore this error, we use this env var to ignore all, see:
41+
# https://github.com/flux-framework/flux-core/issues/6078
42+
export GCOV_ERROR_FILE=/dev/null
3943
CODE_COVERAGE_LCOV_OPTIONS =
4044
@CODE_COVERAGE_RULES@
4145

0 commit comments

Comments
 (0)