Bug 47821 - ucs-test JUnit output no longer accepted by XUnit
ucs-test JUnit output no longer accepted by XUnit
Status: RESOLVED WORKSFORME
Product: UCS Test
Classification: Unclassified
Component: Framework
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-09-14 17:31 CEST by Philipp Hahn
Modified: 2023-07-26 15:07 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2018-09-14 17:31:35 CEST
xunit-2.1 no longer accepts "invalid" Junit.xml:

<http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-5/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/1/console>:

> 10:15:54 INFO: [JUnit] - 1029 test report file(s) were found with the pattern '**/test-reports/**/*.xml' relative to '/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master' for the testing framework 'JUnit'.
> 10:15:54 WARNING: The file '/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master/test/test-reports/00_checks/01_univention_system_check.xml' is an invalid file.
> 10:15:54 WARNING: At line 2 of file:/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master/test/test-reports/00_checks/01_univention_system_check.xml:cvc-complex-type.3.2.2: Attribut "disabled" darf nicht in Element "testsuite" vorkommen.
> 10:15:54 ERROR: The plugin hasn't been performed correctly: The result file '/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master/test/test-reports/00_checks/01_univention_system_check.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
> 10:15:54 Build step 'Publish xUnit test result report' changed build result to FAILURE

Upstream refused to be more lenient:
<https://issues.jenkins-ci.org/browse/JENKINS-51920>
<https://issues.jenkins-ci.org/browse/JENKINS-52392>
Comment 1 Philipp Hahn univentionstaff 2023-07-26 15:07:14 CEST
We no longer use XUnit but JUnit again: <https://git.knut.univention.de/univention/dist/jenkins/-/commit/705011c09529e740b2f6aecc68b53e3c9eaba907>