From a80ab0df09a367961073565c68d5d533f2644d1b Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 7 Jul 2025 17:25:12 +0100 Subject: [PATCH 1/3] HADOOP-19608. Upgrade to Junit 5.13.3 * junit.jupiter and junit.vintage => 5.13.3 * junit.platform => 1.13.3 * Surefire => 3.5.3. Without that tests weren't being found. * cut a duplicate and conflicting import of mockito-jupiter; maven was warning of this. --- hadoop-project/pom.xml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index c2b51d35038a2..81ba85d09e3e6 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -187,7 +187,7 @@ -Xmx4096m -Xss2m -XX:+HeapDumpOnOutOfMemoryError ${extraJavaTestArgs} - 3.0.0-M4 + 3.5.3 ${maven-surefire-plugin.version} ${maven-surefire-plugin.version} @@ -225,9 +225,9 @@ 2.11.0 2.6.1-hadoop3 4.13.2 - 5.8.2 - 5.8.2 - 1.8.2 + 5.13.3 + 5.13.3 + 1.13.3 3.12.2 3.9.0 2.0.9 @@ -1315,11 +1315,6 @@ mockito-all 1.10.19 - - org.mockito - mockito-junit-jupiter - 3.12.4 - org.objenesis objenesis From ffbf3b00f97e764e888fc1b0a66738f17d3dd3bf Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 17 Jul 2025 16:30:17 +0100 Subject: [PATCH 2/3] HADOOP-19608. Upgrade to Junit 5.13.3 Build property trimStackTrace is set to false. This is restores the behavior that any test failure includes a deep stack trace rather than the first two elements. In this version of surefire it also seems to print the full stack of JUnit test execution and the java runtime itself. This is only an issue for when tests fail. Build property surefire.failIfNoSpecifiedTests is set to false. This is required to retain the behavior where the invocation mvn verify -Dtest=unknown will skip the unit tests but still run the integration tests, and a specific property "it.test" can name the specific test to run: mvn verify -Dtest=unknown -Dit.test=ITestConnection --- .../hadoop-client-integration-tests/pom.xml | 1 - .../src/test/resources/test-fake-default.xml | 1 + hadoop-project/pom.xml | 10 +++++++++- hadoop-tools/hadoop-aws/pom.xml | 4 ---- hadoop-tools/hadoop-azure/pom.xml | 8 -------- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/hadoop-client-modules/hadoop-client-integration-tests/pom.xml b/hadoop-client-modules/hadoop-client-integration-tests/pom.xml index db4091a61f9c9..586dc33759c82 100644 --- a/hadoop-client-modules/hadoop-client-integration-tests/pom.xml +++ b/hadoop-client-modules/hadoop-client-integration-tests/pom.xml @@ -164,7 +164,6 @@ verify - false diff --git a/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml b/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml index efbb414e34b77..bc09770c2de59 100644 --- a/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml +++ b/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml @@ -26,4 +26,5 @@ tests.fake-default.value a default value for the "new" key of a deprecated pair. + diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index 81ba85d09e3e6..55deab2a747ea 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -190,6 +190,15 @@ 3.5.3 ${maven-surefire-plugin.version} ${maven-surefire-plugin.version} + + false + + false 3.1.0 2.5.1 @@ -2493,7 +2502,6 @@ ${env.DYLD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib 4 - false ${project.build.directory}/log diff --git a/hadoop-tools/hadoop-aws/pom.xml b/hadoop-tools/hadoop-aws/pom.xml index 629c56e3fa5b5..e675c50f24170 100644 --- a/hadoop-tools/hadoop-aws/pom.xml +++ b/hadoop-tools/hadoop-aws/pom.xml @@ -107,7 +107,6 @@ ${testsThreadCount} false - false ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${testsThreadCount} @@ -141,7 +140,6 @@ false ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${fs.s3a.scale.test.timeout} - false true @@ -202,7 +200,6 @@ ${fs.s3a.scale.test.timeout} - false false @@ -266,7 +263,6 @@ verify - false ${fs.s3a.scale.test.enabled} diff --git a/hadoop-tools/hadoop-azure/pom.xml b/hadoop-tools/hadoop-azure/pom.xml index ea3065a796fb7..6c976f19f2428 100644 --- a/hadoop-tools/hadoop-azure/pom.xml +++ b/hadoop-tools/hadoop-azure/pom.xml @@ -484,7 +484,6 @@ false ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${fs.azure.scale.test.timeout} - false true @@ -525,7 +524,6 @@ ${fs.azure.scale.test.timeout} - false false ${fs.azure.scale.test.enabled} @@ -619,7 +617,6 @@ ${testsThreadCount} ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${fs.azure.scale.test.timeout} - false true @@ -668,7 +665,6 @@ ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${fs.azure.scale.test.timeout} - false true @@ -706,7 +702,6 @@ ${fs.azure.scale.test.timeout} - false false @@ -830,7 +825,6 @@ false ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${fs.azure.scale.test.timeout} - false true @@ -893,7 +887,6 @@ ${fs.azure.scale.test.timeout} - false false ${fs.azure.scale.test.enabled} @@ -956,7 +949,6 @@ ${http.maxConnections} ${fs.azure.scale.test.timeout} - false From c470c01900d0b881a9a1c0e2e9fe3ba2294614c5 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 24 Jul 2025 11:02:16 +0100 Subject: [PATCH 3/3] HADOOP-19608. Remove test trigger change --- .../hadoop-common/src/test/resources/test-fake-default.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml b/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml index bc09770c2de59..efbb414e34b77 100644 --- a/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml +++ b/hadoop-common-project/hadoop-common/src/test/resources/test-fake-default.xml @@ -26,5 +26,4 @@ tests.fake-default.value a default value for the "new" key of a deprecated pair. -