Conversation
Codecov Report
@@ Coverage Diff @@
## main #794 +/- ##
==========================================
- Coverage 92.13% 92.07% -0.07%
==========================================
Files 34 34
Lines 1170 1173 +3
Branches 238 240 +2
==========================================
+ Hits 1078 1080 +2
- Misses 62 63 +1
Partials 30 30
Flags with carried forward coverage won't be shown. Click here to find out more.
|
| } | ||
| return runExternalProgram('gcov', ['-pb', ...gcovArgs, ...files]); | ||
| if (gcovExecutable == 'gcov') { | ||
| gcovArgs.unshift('-pb') |
There was a problem hiding this comment.
Where does -pb come from?
There was a problem hiding this comment.
tl;dr preserve full paths and collect branch coverage
-p: Preserve complete path information in the names of generated .gcov files. Without this option, just the filename component is used. With this option, all directories are used, with ‘/’ characters translated to ‘#’ characters, . directory components removed and unremoveable .. components renamed to ‘^’. This is useful if sourcefiles are in several different directories.
-b: Write branch frequencies to the output file, and write branch summary info to the standard output. This option allows you to see how often each branch in your program was taken. Unconditional branches will not be shown, unless the -u option is given.
There was a problem hiding this comment.
Thanks, Tom. I thought -pb was being removed from the array rather than added to it.
I clearly need to brush up on my JavaScript!
Co-authored-by: Mitchell Borrego <[email protected]>
|
Hi, is there a chance this PR will be merged? :-) |
|
From https://en.wikipedia.org/wiki/Gcov#Coverage_summaries
Why would a customer use |
In our case it wasn't |
In that case, since you are calling |
Oh no, we never call if [[ ${clang_used} -gt 0 ]]; then
gcovexe="llvm-cov gcov"
else
gcovexe="gcov"
fi
/opt/scripts/codecov -c -F ${1} -Z -x "${gcovexe}" "gcovout"right now, with the new uploader, we just ignore that parameter, because it's missing 😉 /opt/scripts/codecov --flags ${1} --nonZero --gcov --rootDir . --cleanWe never confirmed what the reason was, but since the day we started using the new uploader, our coverage dropped by ~6% (the only difference we noticed for sure, was missing clang builds coverage reports). |
Ah, makes sens now. Thanks, @lukaszstolarczuk , sorry for the confusion. |
fixes #786