Description
A coverage report for a C file shows mostly reasonable results. However, a few lines which are clearly code that must have been executed are shown in white, not in green. Yet the gcov data includes them. Soo Codecov seemingly randomly skips some lines in its display.
Commit SHAs
E.g. ff4358f9ab0d01e8e194b2651d62ee6bbd985fed
Repository
CI/CD or Build URL
Uploader
We are using the bash uploader, i.e., https://codecov.io/bash
Codecov Output
If you really need this, I guess we can extract it from the GitHub Action CI logs above (but there are like … 18 or so ?)
Expected Results
For file src/io.c, line 859 should be shown in green.
Actual Results
It is shown in white, i.e. not even as uncovered code. Moreover, inspecting the gcov uploads for that commit, e.g. this, the line is clearly reported as being covered. Here is an excerpt of the relevant part, I marked the relevant line
...
# path=src#io.c.gcov.reduced
-: 0:Source:src/io.c
func
#####:105:
73289723:107:
func
#####:110:
...
34:836:
34:839:
func
#####:851:
#####:853:
branch 0 never executed::
branch 1 never executed::
call 2 never executed::
#####:856:
#####:857:
#####:858:
#####:859: <--- this is the line, reported as covered code like all before and after
#####:860:
#####:861:
#####:862:
#####:863:
#####:864:
#####:867:
#####:870:
func
29:891:
...
There are more examples in that file, e.g. line 1133, 1196, 1197, 1220
Additional Information
None.