-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requesting code coverage for a specific path misses lines #44593
Comments
I'm failing to find anywhere that the code introduced in #44359 differs for Things I can confirm from studying the coverage tests, where path mode does miss some lines:
It seems like the skipping/missing is happening earlier Another datapoint. All of the missing lines went through this branch in Line 7159 in 98b4b06
Another: the first Line 6989 in 98b4b06
and the same values further up via jl_array_len(src->linetable) Line 6344 in 98b4b06
|
@c42f I wondered whether you have any advice here given it looks like you've fixed similar issues before? My debugging is based on https://github.com/IanButterworth/julia/tree/ib/cov_debug
|
My current theory is that #44359 didn't introduce the bug, but that the bug existed for Line 294 in 98b4b06
Perhaps it's something like an indexing issue, and because there's fewer lines visited here, more of the lines of interest are missed. |
Hmm, I can't remember facing this. Do you have a particular prior issue in mind? |
AFAICT none of the code in I can't find anywhere outside of @vtjnash does anything jump out to you here? |
inference calls |
Ah! yes, that's it #44625 |
The option to track code coverage for files in a given path (#44359) appears to miss a significant number of lines compared to
--code-coverage=user
.As seen in this Octavian CI run on julia nightly
JuliaLinearAlgebra/Octavian.jl#143
The text was updated successfully, but these errors were encountered: