Page MenuHomePhabricator

beta-build-scap-deb failing
Closed, ResolvedPublic

Description

This problem started happening today.

https://integration.wikimedia.org/ci/view/Beta/job/beta-build-scap-deb/85/console

...
10:44:32 + set -o pipefail
10:44:32 + /usr/bin/lintian-junit-report --filename lintian-binary.txt scap_4.0.3-1+0~20211115184342.85~1.gbp2039bb.dsc
10:44:32 + tee lintian-binary.xml
10:44:32 Warning: Please use 'profile' in config file; LINTIAN_PROFILE is obsolete.
10:44:32 The tag new-package-should-close-itp-bug was renamed to initial-upload-closes-no-bugs. Please adjust your profile.
10:44:35 <?xml version='1.0'?><testsuite time='3.163811683654785' tests='1' failures='0' skipped='0' errors='0' assertions='0'
10:44:35 ><testcase name='lintian-checks' classname='lintian.&lt;all&gt;' assertions='0' time='3.163811683654785'
10:44:35   /></testsuite
10:44:35 >+ /usr/bin/lintian-junit-report --filename lintian-source.txt scap_4.0.3-1+0~20211115184342.85~1.gbp2039bb_amd64.changes
10:44:35 + tee lintian-source.xml
10:44:35 Warning: Please use 'profile' in config file; LINTIAN_PROFILE is obsolete.
10:44:36 The tag new-package-should-close-itp-bug was renamed to initial-upload-closes-no-bugs. Please adjust your profile.
10:44:39 <?xml version='1.0'?><testsuite time='3.80230712890625' tests='1' failures='0' skipped='0' errors='0' assertions='0'
10:44:40 ><testcase name='lintian-checks' classname='lintian.&lt;all&gt;' assertions='0' time='3.80230712890625'
10:44:40   /></testsuite
10:44:40 >+ set +o pipefail
10:44:40 + echo 1bd9f967a04ff2c2f180263dabf21258e1d41dbe
10:44:40 + echo scap_4.0.3-1+0~20211115184342.85~1.gbp2039bb.dsc
10:44:40 + sed -E -e 's/^scap_(.*)\.dsc$/\1/'
10:44:40 + exit 0
10:44:40 INFO: Processing JUnit
10:44:40 INFO: [JUnit] - 2 test report file(s) were found with the pattern 'lintian-*.xml' relative to '/srv/jenkins/workspace/workspace/beta-build-scap-deb' for the testing framework 'JUnit'.
10:44:41 WARNING: The file '/srv/jenkins/workspace/workspace/beta-build-scap-deb/lintian-binary.xml' is an invalid file.
10:44:41 WARNING: At line 2 of file:/srv/jenkins/workspace/workspace/beta-build-scap-deb/lintian-binary.xml:cvc-pattern-valid: Value '3.163811683654785' is not facet-valid with respect to pattern '(([0-9]{0,3},)*[0-9]{3}|[0-9]{0,3})*(\.[0-9]{0,3})?' for type 'SUREFIRE_TIME'.
10:44:41 WARNING: At line 2 of file:/srv/jenkins/workspace/workspace/beta-build-scap-deb/lintian-binary.xml:cvc-attribute.3: The value '3.163811683654785' of attribute 'time' on element 'testsuite' is not valid with respect to its type, 'SUREFIRE_TIME'.
10:44:41 WARNING: At line 2 of file:/srv/jenkins/workspace/workspace/beta-build-scap-deb/lintian-binary.xml:cvc-complex-type.3.2.2: Attribute 'assertions' is not allowed to appear in element 'testsuite'.
10:44:41 WARNING: At line 2 of file:/srv/jenkins/workspace/workspace/beta-build-scap-deb/lintian-binary.xml:cvc-complex-type.4: Attribute 'name' must appear on element 'testsuite'.
10:44:41 WARNING: At line 3 of file:/srv/jenkins/workspace/workspace/beta-build-scap-deb/lintian-binary.xml:cvc-complex-type.3.2.2: Attribute 'assertions' is not allowed to appear in element 'testcase'.
10:44:41 ERROR: Step ‘Publish xUnit test result report’ failed: The result file '/srv/jenkins/workspace/workspace/beta-build-scap-deb/lintian-binary.xml' for the metric 'JUnit' is not valid. The result file has been skipped.

While waiting for help I'm going to disable Junit data collection in the job configuration.

Event Timeline

Change 738991 had a related patch set uploaded (by Ahmon Dancy; author: Ahmon Dancy):

[integration/config@master] beta-build-scap-deb: Temporarily disable Junit data collection

https://gerrit.wikimedia.org/r/738991

Change 738991 merged by jenkins-bot:

[integration/config@master] beta-build-scap-deb: Temporarily disable Junit data collection

https://gerrit.wikimedia.org/r/738991

Change 739117 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: beta-build-scap-deb should capture any Lintian files

https://gerrit.wikimedia.org/r/739117

Thanks for the rollback @dancy! That is indeed due to the Xunit plugin ( https://plugins.jenkins.io/xunit/ ). We have upgraded from version 1 to 3 and version 2 introduced some XML schema validation which now break.

The Lintian XML reporter comes from Jenkins Debian Glue, specially https://github.com/mika/jenkins-debian-glue/blob/master/scripts/lintian-junit-report

I did make a patch for that reporter which added a name to the <testsuite> element. https://github.com/mika/jenkins-debian-glue/commit/edc8cc906f018f977ec89d066138c4cfee914bd7#diff-0d80f4f16635d9682257f1bebfd2780f22918be866f05dd9f36c944a5d03084b

T194096#6172999 has the glorious details. If we upgrade jenkins-debian-glue to v0.21.0 and switch the Xunit reporter to PHPUnit, it should work.

Change 739138 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: temporarily disable Junit for debian-glue jobs

https://gerrit.wikimedia.org/r/739138

Change 739117 merged by jenkins-bot:

[integration/config@master] jjb: beta-build-scap-deb should capture any Lintian files

https://gerrit.wikimedia.org/r/739117

Change 739138 merged by jenkins-bot:

[integration/config@master] jjb: temporarily disable Junit for debian-glue jobs

https://gerrit.wikimedia.org/r/739138

Change 739141 had a related patch set uploaded (by Hashar; author: Hashar):

[operations/puppet@production] ci: upgrade lintian-junit-report

https://gerrit.wikimedia.org/r/739141

Change 739219 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: allow PATH override for lintian-junit-report

https://gerrit.wikimedia.org/r/739219

Change 739220 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: restore lintian Junit processing

https://gerrit.wikimedia.org/r/739220

Change 739219 merged by jenkins-bot:

[integration/config@master] jjb: allow PATH override for lintian-junit-report

https://gerrit.wikimedia.org/r/739219

Change 739220 merged by jenkins-bot:

[integration/config@master] jjb: restore lintian Junit processing

https://gerrit.wikimedia.org/r/739220

Change 739141 merged by Jcrespo:

[operations/puppet@production] ci: upgrade lintian-junit-report

https://gerrit.wikimedia.org/r/739141