prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.07k stars 5.38k forks source link

mvn install -DskipTests failed #15046

Closed darmac closed 1 year ago

darmac commented 4 years ago

mvn install -DskipTests failed on my platform.

[INFO] Skipping presto-spark-classloader-interface
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for presto-root 0.239:
[INFO]
[INFO] presto-root ........................................ SUCCESS [ 10.955 s]
[INFO] presto-common ...................................... FAILURE [  6.657 s]
[INFO] presto-spi ......................................... SKIPPED
[INFO] presto-plugin-toolkit .............................. SKIPPED
[INFO] presto-client ...................................... SKIPPED
[INFO] presto-parser ...................................... SKIPPED
[INFO] presto-array ....................................... SKIPPED
[INFO] presto-geospatial-toolkit .......................... SKIPPED
[INFO] presto-bytecode .................................... SKIPPED
[INFO] presto-matching .................................... SKIPPED
[INFO] presto-memory-context .............................. SKIPPED
[INFO] presto-expressions ................................. SKIPPED
[INFO] presto-tpch ........................................ SKIPPED
[INFO] presto-function-namespace-managers ................. SKIPPED
[INFO] presto-main ........................................ SKIPPED
[INFO] presto-resource-group-managers ..................... SKIPPED
[INFO] presto-tests ....................................... SKIPPED
[INFO] presto-atop ........................................ SKIPPED
[INFO] presto-hive-common ................................. SKIPPED
[INFO] presto-cache ....................................... SKIPPED
[INFO] presto-jmx ......................................... SKIPPED
[INFO] presto-record-decoder .............................. SKIPPED
[INFO] presto-kafka ....................................... SKIPPED
[INFO] presto-redis ....................................... SKIPPED
[INFO] presto-accumulo .................................... SKIPPED
[INFO] presto-cassandra ................................... SKIPPED
[INFO] presto-blackhole ................................... SKIPPED
[INFO] presto-memory ...................................... SKIPPED
[INFO] presto-orc ......................................... SKIPPED
[INFO] presto-benchmark ................................... SKIPPED
[INFO] presto-parquet ..................................... SKIPPED
[INFO] presto-rcfile ...................................... SKIPPED
[INFO] presto-hive-metastore .............................. SKIPPED
[INFO] presto-hive ........................................ SKIPPED
[INFO] presto-hive-hadoop2 ................................ SKIPPED
[INFO] presto-i18n-functions .............................. SKIPPED
[INFO] presto-teradata-functions .......................... SKIPPED
[INFO] presto-example-http ................................ SKIPPED
[INFO] presto-local-file .................................. SKIPPED
[INFO] presto-tpcds ....................................... SKIPPED
[INFO] presto-raptor ...................................... SKIPPED
[INFO] presto-base-jdbc ................................... SKIPPED
[INFO] presto-testing-docker .............................. SKIPPED
[INFO] presto-mysql ....................................... SKIPPED
[INFO] presto-postgresql .................................. SKIPPED
[INFO] presto-redshift .................................... SKIPPED
[INFO] presto-sqlserver ................................... SKIPPED
[INFO] presto-mongodb ..................................... SKIPPED
[INFO] presto-ml .......................................... SKIPPED
[INFO] presto-geospatial .................................. SKIPPED
[INFO] presto-jdbc ........................................ SKIPPED
[INFO] presto-cli ......................................... SKIPPED
[INFO] presto-product-tests ............................... SKIPPED
[INFO] presto-pinot-toolkit ............................... SKIPPED
[INFO] presto-pinot ....................................... SKIPPED
[INFO] presto-benchmark-driver ............................ SKIPPED
[INFO] presto-password-authenticators ..................... SKIPPED
[INFO] presto-session-property-managers ................... SKIPPED
[INFO] presto-kudu ........................................ SKIPPED
[INFO] presto-thrift-connector-api ........................ SKIPPED
[INFO] presto-thrift-testing-server ....................... SKIPPED
[INFO] presto-thrift-connector ............................ SKIPPED
[INFO] presto-elasticsearch ............................... SKIPPED
[INFO] presto-druid ....................................... SKIPPED
[INFO] presto-server ...................................... SKIPPED
[INFO] presto-server-rpm .................................. SKIPPED
[INFO] presto-docs ........................................ SKIPPED
[INFO] presto-verifier .................................... SKIPPED
[INFO] presto-testing-server-launcher ..................... SKIPPED
[INFO] presto-benchto-benchmarks .......................... SKIPPED
[INFO] presto-proxy ....................................... SKIPPED
[INFO] presto-benchmark-runner ............................ SKIPPED
[INFO] presto-spark-classloader-interface ................. SKIPPED
[INFO] presto-spark-base .................................. SKIPPED
[INFO] presto-spark ....................................... SKIPPED
[INFO] presto-spark-package ............................... SKIPPED
[INFO] presto-spark-launcher .............................. SKIPPED
[INFO] presto-spark-testing ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  20.159 s
[INFO] Finished at: 2020-08-18T20:13:52+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.13:revision (default) on project presto-common: .git directory could not be found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :presto-common
==> Error: ProcessError: Command exited with status 1:

And I tried fix this error by using this patch

diff --git a/pom.xml b/pom.xml
index d8c2bbe..ca36fcd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1716,6 +1716,14 @@
                     <version>3.1.1</version>
                 </plugin>

+                <plugin>
+                    <groupId>pl.project13.maven</groupId>
+                    <artifactId>git-commit-id-plugin</artifactId>
+                    <configuration>
+                    <skip>true</skip>
+                    </configuration>
+                </plugin>
+
                 <plugin>
                     <groupId>org.skife.maven</groupId>
                     <artifactId>really-executable-jar-maven-plugin</artifactId>

Is that patch can merge to the upstream?

mbasmanova commented 4 years ago

@darmac What was the error message and how is this patch fixing it?

darmac commented 4 years ago

Error log is that:

[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.13:revision (default) on project presto-common: .git directory could not be found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :presto-common

and this patch add a git-commit-id plugin for presto

mbasmanova commented 4 years ago

Hmm.... do you have any local changes that trigger this error? The project builds in Travis and in my local environment as is.

darmac commented 4 years ago

I'm not sure, I run this at CentOS 7.6 and Maven 3.6.3 and openjdk 11.0 with aarch64 platform. I didn't change the presto code and maven configure.

wanglinsong commented 1 year ago

./mvnw install -DskipTests -B -T C1 -P ci -pl !presto-docs --fail-at-end The above command works well. Please check this Jenkins job for more details. https://ci.ahana.dev/job/prestodb/job/presto/job/master/