efegokdemir opened a new pull request, #743:
URL: https://github.com/apache/maven-pmd-plugin/pull/743

   ## Summary
   
   Fixes #656. Parallel Maven builds can leave PMD without a `TimingReport`; 
rendering that null report currently crashes the build with a 
`NullPointerException`.
   
   ## Changes
   
   - Avoid starting the global benchmark tracker twice for one PMD execution.
   - Skip benchmark rendering when concurrent execution provides no timing 
report, while logging a warning instead of failing the build.
   - Add a regression test for the missing-report path.
   
   ## Testing
   
   - `JAVA_HOME=/opt/homebrew/opt/openjdk@21 mvn -q -Dtest=PmdExecutorTest 
test` — passed.
   - `JAVA_HOME=/opt/homebrew/opt/openjdk@21 mvn -q -Prun-its verify` — started 
successfully, but stalled during the repository's site/integration phase and 
was stopped after approximately 5 minutes; no failure attributable to this 
change was reported.
   - `git diff --check` — passed.
   
   No overlapping open PR was found for issue #656 or the benchmark-report null 
handling.
   
   AI assistance was used to investigate, implement, and test this change. The 
submitting human reviewed the complete diff and validation results.
   
   The submitting human acknowledges this contribution under the Apache 
License, Version 2.0.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to