#### for Travis environment We can output all the unit test log to one local file maybe `PROJECT_ROOT/dubbo.log`. If there is some error, use Travis `after_failure` to print last information of `dubbo.log`. ``` after_failure: - if [ -f dubbo.log ]; then echo "------TAIL of dubbo.log------"; tail -n 1000 dubbo.log; echo "------END of dubbo.log------"; fi ```
I simulated a test failure, and the Travis log is https://api.travis-ci.org/v3/job/485746697/log.txt ``` travis_time:end:238f76ac:start=1548741013072176158,finish=1548741024298622064,duration=11226445906 [0Ktravis_fold:end:cache.2 [0K travis_fold:start:after_failure [0Ktravis_time:start:2672b980 [0K$ if [ -f dubbo.log ]; then echo "------TAIL of dubbo.log------"; tail -n 1000 dubbo.log; echo "------END of dubbo.log------";fi ------TAIL of dubbo.log------ at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: TestService at java.net.URLClassLoader.findClass(URLClassLoader.java:381) // SOME STACK INFO HERE ... 27 more 2019-01-29 05:50:12,177 WARN [org.apache.dubbo.remoting.transport.AbstractServer:disconnected] - [DUBBO] All clients has disconnected from /172.17.0.1:34644. You can graceful shutdown now., dubbo version: 2.7.1-SNAPSHOT, current host: 172.17.0.1 ------END of dubbo.log------ travis_time:end:2672b980:start=1548741024303108412,finish=1548741024308579986,duration=5471574 [0Ktravis_fold:end:after_failure [0K Done. Your build exited with 1. ``` #### for local environment We can always check the full content of the local file log. If everything is fine, the Travis log will be like https://api.travis-ci.org/v3/job/485755453/log.txt And the full view of the commit https://github.com/biyuhao/incubator-dubbo/commit/1a103d1e8c956e8981aa415bde1710a3f0063011 [ Full content available at: https://github.com/apache/incubator-dubbo/issues/3361 ] This message was relayed via gitbox.apache.org for [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
