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
Too loud output #506
Comments
Which version of Gradle are you using? An entry in https://docs.gradle.org/4.2.1/release-notes.html states
|
That's strange. I'm using the latest version, Actually now that I think about it this happens only in our CI server - we're using Hudson and we can see these things in its log. On my machine when I run it I get a much smaller output - something like:
I guess when Gradle is redirecting the output it uses |
I can confirm the issue. Locally the output is very short, on the (Jenkins-)Build-Server the progress is reported. When switching back to FindBugs there is the same output locally and no output on the build server. Looking at the sources it seems that the FindBugs-Gradle-Plug-in got two new properties in the meantime: jvmArgs and showProgress. When adding the "showProgress = true" in the build configuration of the findbugs Task, the progress is shown on the build server again. |
Spotbugs prints multiple lines with \r [1][2]. This looks like a single line for shell commands but will be converted to multiple lines once read by Python. By performing the conversion before the tail command, we will get a consistent line count in Bash and Python. [1] https://github.com/spotbugs/spotbugs/blob/fe8a8d66e97d3ae0b830731461aab0f8b39791f6/spotbugs/src/main/java/edu/umd/cs/findbugs/TextUIProgressCallback.java#L103 [2] spotbugs/spotbugs#506 Bugs closed: AURORA-1961 Reviewed at https://reviews.apache.org/r/64508/
This issue appears to occurs anytime you redirect the Spotbugs output to a file. So it will probably occur on all CI servers. I can personally confirm that it adds 2 log lines per Java class on TeamCity. For a single build that adds 8k log lines making investigating build issue much harder. |
Note: currently this plug-in always adds This option is not documented yet. |
Is there any plan to maintain the FindBugs- and the SpotBugs-Gradle-Plug-ins together to avoid this kind of differences? |
Whenever I run SpotBugs, there's billions of lines like:
Is is possible to somehow suppress this output? This can be seen when using
gradle --console=plain
.The text was updated successfully, but these errors were encountered: