adoroszlai opened a new pull request, #5913:
URL: https://github.com/apache/ozone/pull/5913

   ## What changes were proposed in this pull request?
   
   HDDS-10013 removed dependency on `junit` from modules which do not have 
tests.  Now `unit` check finishes with success in 1 minute instead of running 
unit tests:
   
   ```
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   ...
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on 
project hdds-annotation-processing: groups/excludedGroups require TestNG, 
JUnit48+ or JUnit 5 (a specific engine required on classpath) on project test 
classpath -> [Help 1]
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on 
project hdds-hadoop-dependency-client: groups/excludedGroups require TestNG, 
JUnit48+ or JUnit 5 (a specific engine required on classpath) on project test 
classpath -> [Help 1]
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on 
project hdds-hadoop-dependency-server: groups/excludedGroups require TestNG, 
JUnit48+ or JUnit 5 (a specific engine required on classpath) on project test 
classpath -> [Help 1]
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on 
project hdds-interface-client: groups/excludedGroups require TestNG, JUnit48+ 
or JUnit 5 (a specific engine required on classpath) on project test classpath 
-> [Help 1]
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on 
project hdds-docs: groups/excludedGroups require TestNG, JUnit48+ or JUnit 5 (a 
specific engine required on classpath) on project test classpath -> [Help 1]
   ```
   
   This change adds `maven.test.skip=true` in such modules to prevent the 
problem.
   
   It also tweaks `junit.sh` (run by `unit` check) to look for errors other 
than test failures in Maven output to avoid silent failure of the check.
   
   https://issues.apache.org/jira/browse/HDDS-10056
   
   ## How was this patch tested?
   
   Ran `unit` check locally (restricted to a single test for quick results):
   
   ```
   $ hadoop-ozone/dev-support/checks/unit.sh 
-Dtest='TestOzoneManagerDoubleBufferWithOMResponse'
   ```
   
   Also verified that the fix in `junit.sh` without the POM changes catches the 
failure:
   
   ```
   $ hadoop-ozone/dev-support/checks/unit.sh 
-Dtest='TestOzoneManagerDoubleBufferWithOMResponse' > /dev/null 2>&1
   $ echo $?
   $ bash hadoop-ozone/dev-support/checks/_summary.sh target/unit/summary.txt
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on 
project hdds-annotation-processing: groups/excludedGroups require TestNG, 
JUnit48+ or JUnit 5 (a specific engine required on classpath) on project test 
classpath -> [Help 1]
   $ echo $?
   1
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to