Closed DilumAluthge closed 3 years ago
It seems like some of the jobs are just not generating the .jl.XXX.cov
files. That seems like it might be a bug in the julia-runtest
action.
Even so, all jobs should execute almost the same code so it should still show things as covered?
Even so, all jobs should execute almost the same code so it should still show things as covered?
Correct.
There's one (or more) suspicious things going on here.
The lcov.info
files that are being generated on CI just seem.... incorrect.
Okay, here is a breakthrough:
It's not just the lcov.info
file that is incorrect. The .jl.XXX.cov
files are also incorrect, at least on Julia 1.0.
Look at one of the Julia 1.0 jobs that does have .jl.XXX.cov
files. Look at the parsers.jl.XXX.cov
, and specifically at the same place we've been looking, i.e. the reinit!
function on line 121. That coverage information is incorrect:
From https://github.com/JuliaLang/TOML.jl/pull/26/checks?check_run_id=2747983477
- function reinit!(p::Parser, str::String; filepath::Union{Nothing, String}=nothing)
32 p.str = str
20 p.current_char = EOF_CHAR
20 p.pos = firstindex(str)
20 p.prevpos = 0
20 p.column = 0
20 p.line = 1
20 p.marker = 0
20 p.root = TOMLDict()
- p.active_table = p.root
- empty!(p.dotted_keys)
- empty!(p.chunks)
- empty!(p.inline_tables)
- empty!(p.static_arrays)
- empty!(p.defined_tables)
- p.filepath = filepath
20 startup(p)
20 return p
- end
But how would coverage generation be broken on Julia 1.0? We haven't even made a new release of Julia 1.0.x recently.
Codecov Report
93.75% <0.00%> (+24.94%)
95.32% <0.00%> (+29.78%)
Continue to review full report at Codecov.