sofastack / sofa-rpc

SOFARPC is a high-performance, high-extensibility, production-level Java RPC framework.
https://www.sofastack.tech/sofa-rpc/docs/Home
Apache License 2.0
3.81k stars 1.17k forks source link

Build failing on Ubuntu destros #982

Closed ghost closed 3 years ago

ghost commented 3 years ago

I am building sofa-rpc on latest ubuntu AMD64 system. After cloning, I installed openjdk-8-jdk and set JAVA_HOME...and ran 'mvn clean install' command. The build is failing on 'sofa-rpc-codec-jackson' target, and this test case fails ( testSofaRequest(com.alipay.sofa.rpc.codec.jackson.JacksonSerializerTest)) .

Here are the logs:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.alipay.sofa.rpc.codec.jackson.JacksonSerializerTest
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.456 sec <<< FAILURE!

Results :

Failed tests:
  testSofaRequest(com.alipay.sofa.rpc.codec.jackson.JacksonSerializerTest)

Tests run: 7, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for [SOFA] - RPC Framework 5.7.6:
[INFO]
[INFO] [SOFA] - RPC Framework ............................. SUCCESS [  2.865 s]
[INFO] sofa-rpc-core ...................................... SUCCESS [  0.253 s]
[INFO] sofa-rpc-exception ................................. SUCCESS [  1.940 s]
[INFO] sofa-rpc-common .................................... SUCCESS [  5.500 s]
[INFO] sofa-rpc-api ....................................... SUCCESS [  8.450 s]
[INFO] sofa-rpc-core-impl ................................. SUCCESS [  0.093 s]
[INFO] sofa-rpc-log ....................................... SUCCESS [  0.528 s]
[INFO] sofa-rpc-client .................................... SUCCESS [  7.272 s]
[INFO] sofa-rpc-codec ..................................... SUCCESS [  0.125 s]
[INFO] sofa-rpc-codec-api ................................. SUCCESS [  0.735 s]
[INFO] sofa-rpc-filter .................................... SUCCESS [  0.544 s]
[INFO] sofa-rpc-proxy ..................................... SUCCESS [  1.177 s]
[INFO] sofa-rpc-transport ................................. SUCCESS [  0.314 s]
[INFO] sofa-rpc-api-compatible ............................ SUCCESS [  0.392 s]
[INFO] sofa-rpc-log-common-tools .......................... SUCCESS [  0.641 s]
[INFO] sofa-rpc-bootstrap ................................. SUCCESS [  0.084 s]
[INFO] sofa-rpc-bootstrap-api ............................. SUCCESS [  0.726 s]
[INFO] sofa-rpc-bootstrap-bolt ............................ SUCCESS [  0.625 s]
[INFO] sofa-rpc-test ...................................... SUCCESS [  0.143 s]
[INFO] sofa-rpc-test-common ............................... SUCCESS [  0.320 s]
[INFO] sofa-rpc-bootstrap-dubbo ........................... SUCCESS [ 11.998 s]
[INFO] sofa-rpc-bootstrap-grpc ............................ SUCCESS [  2.173 s]
[INFO] sofa-rpc-bootstrap-http ............................ SUCCESS [  0.296 s]
[INFO] sofa-rpc-bootstrap-rest ............................ SUCCESS [  0.302 s]
[INFO] sofa-rpc-codec-sofa-hessian ........................ SUCCESS [  0.813 s]
[INFO] sofa-rpc-codec-protobuf ............................ SUCCESS [  0.725 s]
[INFO] sofa-rpc-codec-protostuff .......................... SUCCESS [  0.662 s]
[INFO] sofa-rpc-codec-msgpack ............................. SUCCESS [  0.794 s]
[INFO] sofa-rpc-codec-jackson ............................. FAILURE [  0.849 s]
[INFO] sofa-rpc-remoting .................................. SKIPPED
[INFO] sofa-rpc-remoting-bolt ............................. SKIPPED
[INFO] sofa-rpc-fault ..................................... SKIPPED
[INFO] sofa-rpc-fault-tolerance ........................... SKIPPED
[INFO] sofa-rpc-fault-hystrix ............................. SKIPPED
[INFO] sofa-rpc-registry .................................. SKIPPED
[INFO] sofa-rpc-registry-consul ........................... SKIPPED
[INFO] sofa-rpc-registry-local ............................ SKIPPED
[INFO] sofa-rpc-registry-zk ............................... SKIPPED
[INFO] sofa-rpc-registry-nacos ............................ SKIPPED
[INFO] sofa-rpc-registry-mesh ............................. SKIPPED
[INFO] sofa-rpc-registry-multicast ........................ SKIPPED
[INFO] sofa-rpc-registry-sofa ............................. SKIPPED
[INFO] sofa-rpc-remoting-http ............................. SKIPPED
[INFO] sofa-rpc-remoting-resteasy ......................... SKIPPED
[INFO] sofa-rpc-remoting-triple ........................... SKIPPED
[INFO] sofa-rpc-tracer .................................... SKIPPED
[INFO] sofa-rpc-tracer-opentracing ........................ SKIPPED
[INFO] sofa-rpc-tracer-opentracing-resteasy ............... SKIPPED
[INFO] sofa-rpc-tracer-opentracing-triple ................. SKIPPED
[INFO] sofa-rpc-metrics ................................... SKIPPED
[INFO] sofa-rpc-metrics-lookout ........................... SKIPPED
[INFO] sofa-rpc-metrics-micrometer ........................ SKIPPED
[INFO] sofa-rpc-doc-swagger ............................... SKIPPED
[INFO] sofa-rpc-config .................................... SKIPPED
[INFO] sofa-rpc-config-apollo ............................. SKIPPED
[INFO] com.alipay.sofa:sofa-rpc-all ....................... SKIPPED
[INFO] sofa-rpc-bom ....................................... SKIPPED
[INFO] sofa-rpc-example ................................... SKIPPED
[INFO] sofa-rpc-test-integration .......................... SKIPPED
[INFO] sofa-rpc-test-integration-3rd ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  52.248 s
[INFO] Finished at: 2020-09-28T13:30:04Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8.1:test (default-test) on project sofa-rpc-codec-jackson: There are test failures.
[ERROR]
[ERROR] Please refer to /buzo/sofa-rpc/codec/codec-jackson/target/surefire-reports for the individual test results.
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :sofa-rpc-codec-jackson

Any suggestions on what could be wrong here? Is it the JDK I am using, or something else? ....as I can see that your CI is passing well.

    **ENVIRONMENT DETAILS:**

$ uname -a Linux 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ java -version openjdk version "1.8.0_265" OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~18.04-b01) OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)

$ mvn --version Apache Maven 3.6.0 Maven home: /usr/share/maven Java version: 11.0.8, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "5.0.0-23-generic", arch: "amd64", family: "unix"

ghost commented 3 years ago

Also, I have checked that this test case is failing 2 times in your Travis CI and passing in the 3rd attempt. But I seriously can't determine why it is failing locally then. Are you able to replicate this issue? Please ping me if you require some more information regarding my test environment.

OrezzerO commented 3 years ago

One related pr: #983