YARN-11939. UT TestAuxServices breaking on Clover#8351
YARN-11939. UT TestAuxServices breaking on Clover#8351ferdelyi wants to merge 1 commit intoapache:trunkfrom
Conversation
Disable OpenClover for the hadoop-yarn-server-nodemanager module.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
does upgrading work? |
it's better to provide a copy-pastable command, so that reviewers are easy to verify that. |
@pan3793 thank you for your feedback, you are right. Updated the PR description with the below: java -version |
@pan3793 thank you for your question, I've tried bumping up the OpenClover version number to 4.5.2., but I'm hitting the same issue. |
Disable OpenClover for **/TestAuxServices.java in the hadoop-yarn-server-nodemanager, as OpenClover implementation in the UT TestAuxServices breaks on Java 17
Hadoop currently uses clover-maven-plugin.version 4.4.1. (no Java 17 support).
Description of PR
In OpenClover 4.5. Java 17 is experimental as of the latest release:https://openclover.org/doc/openclover-4.5.2-release-notes.html
There was an earlier suggestion to use Jacoco instead of Unit Test.
HADOOP-15190 “Use Jacoco to generate Unit Test coverage reports”
How was this patch tested?
Manually tested on my local machine if UT runs OK with Java 17 after the exlusion:
java -version
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
cd hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager
mvn clean clover:setup test -Dtest=TestAuxServices
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?AI Tooling
If an AI tool was used:
where is the name of the AI tool used.
https://www.apache.org/legal/generative-tooling.html