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

[infra] Fix jacoco_report_converter.py #12026

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

arthurscchan
Copy link
Contributor

@arthurscchan arthurscchan commented Jun 4, 2024

There are 2 bugs in the jacoco_report_converter.py in which the src_file and src_path are redefined and overwritten in the loop. These bugs cause both of them to empty after the first iteration. This makes the resulting JSON report summary only contain the first filename to process. This has been mentioned in #11966.
This PR proposes a fix by changing the name of the needed variables. Also, this PR adds in a filter to exclude fuzzer classes in the coverage information as they are not part of the projects. The updated script will include the coverage information for each class that existed in the project source directory (/out/src) in the summary tag of the resulting summary.json report.

@arthurscchan arthurscchan marked this pull request as ready for review June 4, 2024 16:06
@DavidKorczynski
Copy link
Collaborator

/gcbrun trial_build.py jvm --fuzzing-engines libfuzzer --sanitizers coverage

@DavidKorczynski
Copy link
Collaborator

The failed java projects in the trial run are not due to the changes of this PR. This is good to go.

@DavidKorczynski DavidKorczynski merged commit 0406dd5 into google:master Jun 5, 2024
18 of 19 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