Control: retitle -1 meson: FTBFS: test_junit_valid_gtest: Element 'testcase', attribute 'file': The attribute 'file' is not allowed Control: forwarded -1 https://github.com/mesonbuild/meson/pull/10634 Control: tags -1 + patch upstream
On Sat, 16 Jul 2022 at 20:55:02 +0200, Lucas Nussbaum wrote: > The script I use to extract the failure from the log might have guessed > badly indeed, however the build still fails ... > However looking at the log I don't really understand why the > override_dh_auto_test target fails. I think it's probably this: > debian/rules override_dh_auto_test > make[1]: Entering directory '/<<PKGBUILDDIR>>' > ./run_tests.py ... > FAIL: test_junit_valid_gtest (unittests.allplatformstests.AllPlatformTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/<<PKGBUILDDIR>>/unittests/allplatformstests.py", line 3382, in > _test_junit > schema.assertValid(junit) > File "src/lxml/etree.pyx", line 3638, in lxml.etree._Validator.assertValid > lxml.etree.DocumentInvalid: Element 'testcase', attribute 'file': The > attribute 'file' is not allowed., line 3 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/<<PKGBUILDDIR>>/unittests/allplatformstests.py", line 3393, in > test_junit_valid_gtest > self._test_junit(os.path.join(self.framework_test_dir, '2 gtest')) > File "/<<PKGBUILDDIR>>/unittests/allplatformstests.py", line 3384, in > _test_junit > self.fail(e.error_log) > AssertionError: > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:3:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'file': The attribute 'file' is not allowed. > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:3:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'line': The attribute 'line' is not allowed. > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:4:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'file': The attribute 'file' is not allowed. > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:4:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'line': The attribute 'line' is not allowed. > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:7:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'file': The attribute 'file' is not allowed. > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:7:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'line': The attribute 'line' is not allowed. > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:8:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'file': The attribute 'file' is not allowed. > /<<PKGBUILDDIR>>/tmp30xzcj0v/meson-logs/testlog.junit.xml:8:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_1: > Element 'testcase', attribute 'line': The attribute 'line' is not allowed. ... > Ran 471 tests in 629.165s > > FAILED (failures=1, skipped=59) Ubuntu's meson package has this change vs. Debian which is probably the solution: * googletest 1.12.1 started to emit additional JUnit4 schema invalid testcase attributes, delete them when generating meson junit test result. Fixing FTBFS with new googletest. which seems to be the same change they sent upstream as <https://github.com/mesonbuild/meson/pull/10634>. Ubuntu's meson package also applies patches to fix the regression #1014417. http://launchpadlibrarian.net/614996822/meson_0.63.0-1_0.63.0-1ubuntu3.diff.gz smcv