From bf8a8300e2facaba9764f45628d625ec6ee3078b Mon Sep 17 00:00:00 2001 From: zzuljin Date: Fri, 1 Nov 2024 13:58:15 +0200 Subject: [PATCH 1/6] Updating tests --- hadoop/hadoop-common-stable/pom.xml | 47 ++++++++++++++++++++++++++--- zookeeper/stable-client/pom.xml | 33 ++++++++++++++------ 2 files changed, 66 insertions(+), 14 deletions(-) diff --git a/hadoop/hadoop-common-stable/pom.xml b/hadoop/hadoop-common-stable/pom.xml index 1ac6027..413e8c8 100644 --- a/hadoop/hadoop-common-stable/pom.xml +++ b/hadoop/hadoop-common-stable/pom.xml @@ -570,18 +570,18 @@ io.dropwizard.metrics metrics-core - io.mishmash.apache.zookeeper - mmio-zookeeper-stable-client + mmio-zookeeper-stable ${zookeeper.stable.version}-mmio.${zookeeper.stable.mishmash.io.patch} - test-jar test io.mishmash.apache.zookeeper - mmio-zookeeper-stable-server + mmio-zookeeper-stable ${zookeeper.stable.version}-mmio.${zookeeper.stable.mishmash.io.patch} + tests + test org.apache.commons @@ -826,6 +826,45 @@ + + org.apache.avro + avro-maven-plugin + 1.12.0 + + + generate-avro-test-sources + generate-test-sources + + schema + + + + + ${project.build.directory}/hadoop-rel-release-${hadoop.stable.version}/hadoop-common-project/hadoop-common/src/test/avro + ${project.build.directory}/generated-test-sources/java + + + + org.apache.maven.plugins + maven-compiler-plugin + + + default-testCompile + test-compile + + testCompile + + + + + **/TestProtoBufRpc.java + + + + + org.apache.maven.plugins maven-jar-plugin diff --git a/zookeeper/stable-client/pom.xml b/zookeeper/stable-client/pom.xml index 74a93ec..3bf9a46 100644 --- a/zookeeper/stable-client/pom.xml +++ b/zookeeper/stable-client/pom.xml @@ -115,6 +115,22 @@ io.netty netty-transport-native-epoll + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.mockito + mockito-core + test + @@ -157,7 +173,6 @@ org.apache.zookeeper zookeeper-jute ${zookeeper.stable.version} - jar sources false @@ -174,7 +189,7 @@ org.apache.maven.plugins maven-dependency-plugin - + From 17f7f3ca6d6297eb2141e3656c81289aebfe6152 Mon Sep 17 00:00:00 2001 From: zzuljin Date: Sat, 9 Nov 2024 12:30:36 +0200 Subject: [PATCH 2/6] Upgrading hadoop common tests --- hadoop/hadoop-common-stable/pom.xml | 36 +++++++++++++++++------------ 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/hadoop/hadoop-common-stable/pom.xml b/hadoop/hadoop-common-stable/pom.xml index 413e8c8..12c6517 100644 --- a/hadoop/hadoop-common-stable/pom.xml +++ b/hadoop/hadoop-common-stable/pom.xml @@ -419,8 +419,19 @@ compile - junit - junit + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.jupiter + junit-jupiter-params + test + + + org.junit.platform + junit-platform-console + ${junit-platform.version} test @@ -469,6 +480,12 @@ mockito-core test + + org.mockito + mockito-junit-jupiter + ${mockito.version} + test + org.apache.avro avro @@ -611,7 +628,8 @@ com.squareup.okhttp3 - mockwebserver + mockwebserver3-junit5 + 5.0.0-alpha.14 test @@ -815,9 +833,6 @@ generate-test-sources ${project.build.directory}/hadoop-rel-release-${hadoop.stable.version}/hadoop-common-project/hadoop-common/src/test/proto - - *legacy.proto - ${project.build.directory}/generated-test-sources/protobuf/java @@ -855,12 +870,6 @@ testCompile - - - **/TestProtoBufRpc.java - @@ -877,9 +886,6 @@ **/Test*.java - - **/Test*$*.java - From a4b4261f11e9c52259ee7903d701a9a35a684fe7 Mon Sep 17 00:00:00 2001 From: zzuljin Date: Sat, 9 Nov 2024 12:31:13 +0200 Subject: [PATCH 3/6] Upgrading hadoop common tests --- pom.xml | 7 +++++++ zookeeper/stable/pom.xml | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index fe16508..17f2255 100644 --- a/pom.xml +++ b/pom.xml @@ -100,6 +100,7 @@ 4.8.6 5.11.0 + 1.11.3 5.13.0 3.0 @@ -259,6 +260,12 @@ ${junit.version} test + + org.junit.jupiter + junit-jupiter-params + ${junit.version} + test + org.junit.jupiter junit-jupiter-engine diff --git a/zookeeper/stable/pom.xml b/zookeeper/stable/pom.xml index 5073e51..a9824b1 100644 --- a/zookeeper/stable/pom.xml +++ b/zookeeper/stable/pom.xml @@ -85,7 +85,6 @@ 1.5.8 0.15.0 1.49 - 1.11.0 2.14.6 0.26.2 @@ -125,12 +124,6 @@ ${jmockit.version} test - - org.junit.jupiter - junit-jupiter-params - ${junit.version} - test - org.junit.platform junit-platform-suite-api From 6a3ef89564dfec4ad96edf5650c4711c734ee22c Mon Sep 17 00:00:00 2001 From: zzuljin Date: Sat, 9 Nov 2024 13:59:33 +0200 Subject: [PATCH 4/6] Updating hadoop common tests --- hadoop/hadoop-common-stable/pom.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hadoop/hadoop-common-stable/pom.xml b/hadoop/hadoop-common-stable/pom.xml index 12c6517..05f6c66 100644 --- a/hadoop/hadoop-common-stable/pom.xml +++ b/hadoop/hadoop-common-stable/pom.xml @@ -801,6 +801,24 @@ + + add-test-resources + generate-test-resources + + add-test-resource + + + + + ${project.build.directory}/hadoop-rel-release-${hadoop.stable.version}/hadoop-common-project/hadoop-common/src/test/resources + + + + ${project.build.directory}/hadoop-rel-release-${hadoop.stable.version}/hadoop-common-project/hadoop-common/src/main/resources + + + + @@ -883,6 +901,7 @@ maven-surefire-plugin false + -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError **/Test*.java From d51c7668ce0a4376525a64d593ee5c65979ec68c Mon Sep 17 00:00:00 2001 From: zzuljin Date: Mon, 11 Nov 2024 13:27:34 +0200 Subject: [PATCH 5/6] Upgrading tests --- hadoop/hadoop-common-stable/pom.xml | 93 ++++++++++++++++++++++++++--- 1 file changed, 84 insertions(+), 9 deletions(-) diff --git a/hadoop/hadoop-common-stable/pom.xml b/hadoop/hadoop-common-stable/pom.xml index 05f6c66..73cb11d 100644 --- a/hadoop/hadoop-common-stable/pom.xml +++ b/hadoop/hadoop-common-stable/pom.xml @@ -84,6 +84,16 @@ 2.2.5.Final 4.0.0 + 3.1.9 + + ${project.build.directory} + ${project.build.directory}/log + ${project.build.directory}/tmp + file:///dev/urandom + ${project.build.directory}/test-dir + ${test.build.dir} + ${project.build.directory}/test-classes + ${project.build.directory}/test-classes/webapps @@ -224,6 +234,12 @@ 1.2.0 test + + org.apache.ftpserver + ftplet-api + 1.2.0 + test + org.codehaus.woodstox stax2-api @@ -275,7 +291,13 @@ org.glassfish.jersey.containers jersey-container-servlet - 3.1.9 + ${jersey.version} + compile + + + org.glassfish.jersey.inject + jersey-hk2 + ${jersey.version} compile @@ -287,10 +309,6 @@ hadoop-annotations compile - - org.apache.hadoop.thirdparty - hadoop-shaded-guava - com.google.guava @@ -338,8 +356,9 @@ compile - javax.servlet - javax.servlet-api + jakarta.servlet + jakarta.servlet-api + ${jakarta-servlet.version} compile @@ -413,6 +432,11 @@ jersey-container-servlet compile + + org.glassfish.jersey.inject + jersey-hk2 + compile + ch.qos.reload4j reload4j @@ -486,6 +510,11 @@ ${mockito.version} test + + org.hamcrest + hamcrest + test + org.apache.avro avro @@ -527,8 +556,9 @@ test - org.apache.hadoop - hadoop-minikdc + io.mishmash.apache.hadoop + mmio-hadoop-minikdc-stable + ${project.version} test @@ -746,6 +776,28 @@ + + create-log-dir + process-test-resources + + run + + + + + + + + + + + + + + @@ -902,6 +954,29 @@ false -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError + + ${hadoop.common.build.dir} + + ${hadoop.common.build.dir} + ${env.LD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib + ${env.DYLD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib + 4 + + + ${hadoop.log.dir} + ${hadoop.tmp.dir} + + ${test.build.dir} + ${test.build.data} + ${test.build.webapps} + ${test.cache.data} + ${project.build.directory}/test-classes + + true + ${project.build.directory}/test-classes/krb5.conf + ${java.security.egd} + + **/Test*.java From a14fab7b356aca933d784d65c3418382a2498d9c Mon Sep 17 00:00:00 2001 From: Andrey Rusev Date: Mon, 11 Nov 2024 14:37:37 +0200 Subject: [PATCH 6/6] Update github workflow --- .github/workflows/maven.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 09dbb35..6f850ad 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,6 +24,14 @@ jobs: contents: write pull-requests: write + services: + otel-to-parquet: + image: mishmashio/opentelemetry-parquet-server + ports: + - 4317:4317 + - 4318:4318 + volumes: + - /tmp/tests-parquet:/parquet steps: - uses: actions/checkout@v4 - name: Set up JDK 17 @@ -34,6 +42,14 @@ jobs: cache: maven - name: Build with Maven run: mvn -Dsurefire.rerunFailingTestsCount=2 -B package --file pom.xml + + - name: Upload telemetry + uses: actions/upload-artifact@v4 + if: always() + continue-on-error: true + with: + name: build-telemetry + path: /tmp/tests-parquet/*.parquet # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph