-
Notifications
You must be signed in to change notification settings - Fork 593
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
mavenExecute (go) breaks build when output is too long #1474
Comments
#1432 will clear the log statements to only show the message. Not sure if it will solve the "token too long" issue. Could you please provide more information about which mvn command you are going to run. Looks like this command generates to much output. |
Switch back to the version before this piper-lib-os@b335387eac3de9f7c68290503beebe2988644d5f "solves" the issue. We will see if the #1432 is merged in master - is there an time line for? |
@daniel-kurzynski see #sap-piper-users on Slack for a link, I mentioned you. |
To me, it looks like this issue: sirupsen/logrus#564, i.e. it isn't specific to mavenExecute, but could happen to any step, as they all redirect the stdout of an executed command to the logging framework. But of course we'll need to fix it. The linked ticket provides some pointers. |
@stippi2 that could really be it. What I am wondering about though is that the root of the issue seems to be input without line endings. What could cause such long lines in a Maven execution? Do we have an example of a Maven output which is now broken (before-after)? |
From the build log, it seems to be WireMock, and in particular a class called |
To be fair: at least for our case we very (if at all) rarely look at this very long WireMock log output. However so far no one was bothered enough by it to do something about it. I think that maven and Jenkins/ |
A solution for that could be not to route log output from underlying tools (here: maven) through the log-framework but route it directly to |
okay, that means we have a case with Wiremock output and thus rather specific to a dedicated tool used in the maven build cycle and not a general issue with a typical maven build which is good. When reading that the log is basically not used, what about adding an option to not write the log at all? Polluting the log generates also other issues, e.g. display issues in Jenkins which are independent of using a logging framework or not ... I don't know the step well enough to judge where the error appears. I would expect the error message to be wrapped with something from the Piper step ... |
after a short discussion with @nevskrem we should ideally go with an own writer instead of using the default logrus writer. |
The fix was merged. Could you please check whether the issue is solved? |
Thanks, issue is solved now |
Our maven test execution is broken since mavenExecute is using go to execute maven.
Also it seems that all maven output is now wrapped in go log statements, can this be reverted and the maven output displayed "as is" again?
The text was updated successfully, but these errors were encountered: