Fixed: Jenkins false node failures: 'Content is not allowed in trailing section.'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fixed: Jenkins false node failures: 'Content is not allowed in trailing section.'

Sven Gothel
Administrator
https://github.com/sgothel/jenkins/commit/18f89e7946ba40c51810e7e55e6721bc3f622bed

~Sven

+++++++

Workaround for false negative junit test failures due to corrupted XML result files: 'Content is not allowed in trailing section.'

We have observed a lot of the following node failures:

https://jogamp.org/chuck/job/gluegen/294/label=linux-x86_32-nvidia/console

+++

Caused by: org.xml.sax.SAXParseException: Content is not allowed in trailing section.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)

+++

The XML result was corrupted on the remote node (ant, junit, .. ?)
and has a trailing '>':

+++

</testsuite>
>

+++

We were not yet able to identify the culprit and have observed that this bug
is visible for around 3 years ? (hudson mailinglist)

This patch introduces an XML ErrorHandler, which ignores the SAXException:

    XERCES - FatalError - Content is not allowed in trailing section

A private build is alive at https://jogamp.org/chuck/