sonar-groovy
sonar-groovy copied to clipboard
Test method/class name exceeding maximum lengths when test results are being processed.
Users are running into hard limits on filename/test method name length when test results are being processed by this plugin. Can this limit be increased?
Example error with paths removed is below.
2021-11-21T21:58:03.356-0600 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: Fail to parse the Surefire report: <Path redacted to not leak company info> 2021-11-21T21:58:03.356-0600 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: javax.xml.stream.XMLStreamException: Maximum attribute size limit (524288) exceeded
You have method/class names exceeding half a megabyte in size? That sounds... improbable. Could you share a (redacted) sample of the XML file which causes this? (Probably a surefire report going by the error message?!?)
First off, thank you for the quick response. Second, yes, I will work on redacting that file while leaving line lengths intact.