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 possible bugs in jvm coverage report generation #11553

Closed
wants to merge 3 commits into from

Conversation

arthurscchan
Copy link
Contributor

In #10906, the logic has skipped the removal of duplication for the fuzzer classes in the base directory because fuzzer classes don't have duplication in the jar files. But in some projects, fuzzer classes could also contain duplicates from different fuzzers if they share some common base classes. In this situation, the duplication of the fuzzer classes will still crash the Jacoco report generation and merging. This PR fixes that by reverting the changes in #10906 to remove all duplicate classes first. Then an additional line of logic is added to copy the fuzzer classes from the $OUT directory to ensure only one copy of the same fuzzer class exists in the dump directory. This could avoid duplication of fuzzer-related classes that crash the Jacoco report generation process.

@arthurscchan arthurscchan reopened this Jan 30, 2024
@arthurscchan arthurscchan marked this pull request as ready for review January 30, 2024 09:08
@jonathanmetzman
Copy link
Contributor

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

@jonathanmetzman
Copy link
Contributor

Is this PR still relevant?

@jonathanmetzman
Copy link
Contributor

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

@arthurscchan arthurscchan marked this pull request as draft May 20, 2024 10:50
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