-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should limit console output of unit test #3361
Comments
+1 do you have any plan how to do this? |
There are many logs printed to console by I am trying to make And the corresponding Travis log As you can see, after this tweak, the Travis log dropped to about 1.51MB. |
In this way, if there is some error, are we able to check the file for detailed exception? |
for Travis environmentWe can output all the unit test log to one local file maybe
I simulated a test failure, and the Travis log is https://api.travis-ci.org/v3/job/485746697/log.txt
for local environmentWe 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 |
@biyuhao Thanks for the explanation. That's what I want! |
Tweak unit test log location fix apache#3361
Environment
Steps to reproduce this issue
Travis-cli has a 4MB hard limit of log size [1].
Currently, our Travis log[2] is about 3.98MB, we are almost there.
We can reduce some trivial log in the console output, but keep a full log in the local file.
For example, test case
org.apache.dubbo.rpc.validation.�ValidationTest�
eats about 1.3MB in travis log. We can start from here.[1]. https://docs.travis-ci.com/user/common-build-problems/#log-length-exceeded
[2]. https://api.travis-ci.org/v3/job/484750418/log.txt
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
What do you expected from the above steps?
Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
The text was updated successfully, but these errors were encountered: