Skip to content

Commit 059c0cf

Browse files
committed
Separate codecov reports out between testing and fuzzing
Its useful to be able to identify what kind of coverage we have for a line - test coverage is very different in nature from fuzzing coverage. Here we pass separate "job names" to codecov uploads to do so.
1 parent 08795f2 commit 059c0cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ jobs:
130130
# Could you use this to fake the coverage report for your PR? Sure.
131131
# Will anyone be impressed by your amazing coverage? No
132132
# Maybe if codecov wasn't broken we wouldn't need to do this...
133-
./codecov --verbose upload-process --disable-search --fail-on-error -f target/codecov.json -t "f421b687-4dc2-4387-ac3d-dc3b2528af57"
133+
./codecov --verbose upload-process --disable-search --fail-on-error -f target/codecov.json -t "f421b687-4dc2-4387-ac3d-dc3b2528af57" -n 'tests'-${{ github.run_id }}
134134
cargo clean
135135
- name: Run fuzz coverage generation
136136
run: |
137137
./contrib/generate_fuzz_coverage.sh --output-dir `pwd` --output-codecov-json
138138
# Could you use this to fake the coverage report for your PR? Sure.
139139
# Will anyone be impressed by your amazing coverage? No
140140
# Maybe if codecov wasn't broken we wouldn't need to do this...
141-
./codecov --verbose upload-process --disable-search --fail-on-error -f fuzz-codecov.json -t "f421b687-4dc2-4387-ac3d-dc3b2528af57"
141+
./codecov --verbose upload-process --disable-search --fail-on-error -f fuzz-codecov.json -t "f421b687-4dc2-4387-ac3d-dc3b2528af57" -n 'fuzzing'-${{ github.run_id }}
142142
143143
benchmark:
144144
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)