Skip to content

Commit 6ca54ed

Browse files
committed
Pre-process coverage report with lcov before uploading
We had several strange issues with the coverage reports when we let Codecov process the raw gcov files, including it for some reason not believing Assert() statements being ran at all and some issues with frontend vs backend code.
1 parent 78c9309 commit 6ca54ed

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,20 @@ jobs:
5555
- name: Run pg_tde tests
5656
run: src/ci_scripts/test.sh
5757

58+
- name: Process coverage
59+
run: |
60+
geninfo -o coverage.info --no-external --rc lcov_branch_coverage=1 -i .
61+
geninfo -o coverage.info --no-external --rc lcov_branch_coverage=1 .
62+
working-directory: src
63+
5864
- name: Upload coverage data to codecov.io
5965
uses: codecov/codecov-action@v5
6066
with:
6167
verbose: true
6268
fail_ci_if_error: true
6369
token: ${{ secrets.CODECOV_TOKEN }}
70+
disable_search: true
71+
files: coverage.info
6472
working-directory: src
6573

6674
- name: Report on test fail

0 commit comments

Comments
 (0)