From a2083fc57a60ca59a440abed98697be6ce79e4ef Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 10 Jan 2025 19:08:29 +0000 Subject: [PATCH] HADOOP-19385. S3A: add a hadoop-format-testing module for testing Pom with dependencies Change-Id: I9c01a724b085f8c409ca22fb8e79de484b0273f8 --- .../hadoop-format-testing/pom.xml | 205 ++++++++++++++++++ hadoop-cloud-storage-project/pom.xml | 1 + hadoop-project/pom.xml | 12 + hadoop-tools/hadoop-aws/pom.xml | 6 + 4 files changed, 224 insertions(+) create mode 100644 hadoop-cloud-storage-project/hadoop-format-testing/pom.xml diff --git a/hadoop-cloud-storage-project/hadoop-format-testing/pom.xml b/hadoop-cloud-storage-project/hadoop-format-testing/pom.xml new file mode 100644 index 0000000000000..43e0324c05d9b --- /dev/null +++ b/hadoop-cloud-storage-project/hadoop-format-testing/pom.xml @@ -0,0 +1,205 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 3.5.0-SNAPSHOT + ../../hadoop-project + + hadoop-format-testing + 3.5.0-SNAPSHOT + Apache Hadoop Format Regression Testing + + This module is exclusively for use in regression testing + integration between various file formats and + cloud connectors. + + * It MUST NOT be declared as a dependency by + any external component. + * It MUST NOT be declared as a dependency except + in test scope. + + Consider its status: Private. + + For everyone who does a full stack build of the file + format libraries as well as hadoop, this adds more loops + to the build. However, because it is not a public distributable, + it is safe to use a previous build's artifacts...all that is + lost is the immediate regression testing. + + Note that all test dependencies are declared as of the + production JAR, not the test one. + + This is to simplify use in testing in cloud modules; + import this JAR and get all the transient dependencies + tuned for these tests. + + jar + + + UTF-8 + true + 1.15.0 + + compile + + + + + + org.apache.hadoop + hadoop-common + provided + + + com.google.guava + guava + + + org.checkerframework + checker-qual + + + + + org.apache.hadoop + hadoop-annotations + provided + + + org.apache.hadoop + hadoop-common + test-jar + provided + + + org.apache.hadoop + hadoop-common + + + + + org.junit.jupiter + junit-jupiter-api + ${testing.scope} + + + junit + junit + ${testing.scope} + + + org.junit.jupiter + junit-jupiter-engine + ${testing.scope} + + + org.junit.jupiter + junit-jupiter-params + ${testing.scope} + + + org.junit.vintage + junit-vintage-engine + ${testing.scope} + + + + org.junit.platform + junit-platform-launcher + ${testing.scope} + + + org.assertj + assertj-core + ${testing.scope} + + + org.hamcrest + hamcrest-library + ${testing.scope} + + + + org.apache.parquet + parquet-hadoop + ${parquet.version} + + + + + + + + src/main/resources + true + + + + + src/test/resources + true + + + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + deplist + compile + + list + + + + ${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt + + + + + + + org.apache.maven.plugins + maven-source-plugin + + true + + + + + jar + + + + + + + diff --git a/hadoop-cloud-storage-project/pom.xml b/hadoop-cloud-storage-project/pom.xml index 5746e01896b81..726bbfa5dab2b 100644 --- a/hadoop-cloud-storage-project/pom.xml +++ b/hadoop-cloud-storage-project/pom.xml @@ -32,6 +32,7 @@ hadoop-cloud-storage hadoop-cos + hadoop-format-testing hadoop-huaweicloud diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index b9469bc752372..5b546a6ec8681 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -788,6 +788,18 @@ test-jar + + org.apache.hadoop + hadoop-format-testing + ${hadoop.version} + + + org.apache.hadoop + hadoop-format-testing + ${hadoop.version} + test-jar + + com.google.guava guava diff --git a/hadoop-tools/hadoop-aws/pom.xml b/hadoop-tools/hadoop-aws/pom.xml index 1d04107ff5b48..5fc79609f15b8 100644 --- a/hadoop-tools/hadoop-aws/pom.xml +++ b/hadoop-tools/hadoop-aws/pom.xml @@ -581,5 +581,11 @@ bcpkix-jdk18on test + + + org.apache.hadoop + hadoop-format-testing + test +