Skip to content
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

Fix coverage calculation for JVM projects #1607

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

arthurscchan
Copy link
Contributor

@arthurscchan arthurscchan commented Jun 17, 2024

It is found that the code coverage report calculation for JVM does not reflect the real data correctly. After some analysis of the code, it is believed that the current coverage calculation and extraction from the jacoco.xml only consider items in terms of source files but not methods. This cause separate methods inherit a wrong coverage calculation. This PR proposes a revamp on the coverage calculation for JVM projects to consider cov_map on separate methods instead of the whole source files. This is necessary to retrieve correct coverage information for each methods and that information is needed for further post-processing and the candidate choosing process for oss-fuzz-gen.

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
@arthurscchan arthurscchan force-pushed the fix-coverage-report branch 3 times, most recently from 27f30a7 to dfdefa0 Compare July 17, 2024 15:57
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
@arthurscchan arthurscchan marked this pull request as ready for review July 17, 2024 19:22
@DavidKorczynski DavidKorczynski merged commit 8a7a23e into ossf:main Jul 18, 2024
11 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.

None yet

2 participants