Skip to content

Handle zero-bytecode coverage stats#1645

Merged
vjovanov merged 1 commit into
oracle:masterfrom
kimeta:mm/library-coverage-no-bytecode-vs-debug-info
Apr 8, 2026
Merged

Handle zero-bytecode coverage stats#1645
vjovanov merged 1 commit into
oracle:masterfrom
kimeta:mm/library-coverage-no-bytecode-vs-debug-info

Conversation

@kimeta

@kimeta kimeta commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

This fixes how library coverage stats interpret missing JaCoCo counters.

Previously, the stats pipeline treated two different cases the same way and reported all library coverage metrics as N/A:

  • libraries that have no executable bytecode to cover
  • libraries that do have bytecode, but were compiled without line debug information

Changes:

  • when JaCoCo shows there are zero executable methods, library coverage is now recorded as fully covered 0/0 (1.0)
  • when only line coverage is unavailable, instruction and method coverage keep their real values instead of being collapsed to N/A
  • validator and tests were updated to accept and verify the zero-total full-coverage shape

@kimeta kimeta requested review from jormundur00 and vjovanov and removed request for jormundur00 April 8, 2026 14:40
@vjovanov vjovanov merged commit c9be482 into oracle:master Apr 8, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants