Skip to content

Commit 702bcfd

Browse files
authored
Ignore inconsistencies in genhtml
Work around a data race in gcov that leads to inconsistent data. Signed-off-by: Ulrich Huber <ulrich.uh.huber@bmw.de>
1 parent 09dc5dc commit 702bcfd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/coverage_report.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ jobs:
5454
bazel coverage //... --build_tests_only
5555
5656
- name: Generate HTML Coverage Report
57+
# FIXME: "--ignore-errors inconsistent" is a workaround to cope with gcov messing up hit counts because of internal data races
5758
run: |
5859
genhtml "$(bazel info output_path)/_coverage/_coverage_report.dat" \
5960
-o=cpp_coverage \
6061
--show-details \
6162
--legend \
6263
--function-coverage \
63-
--branch-coverage
64+
--branch-coverage \
65+
--ignore-errors inconsistent
6466
6567
- name: Create archive of test report
6668
run: |

0 commit comments

Comments
 (0)