Created attachment 1561546 [details]
Full log from Copr
pcs 0.10.1-5.fc31 fails %check with Python 3.8:
FAIL: testAndOrExpression (pcs.test.test_rule.CibBuilderTest)
Traceback (most recent call last):
File "/builddir/build/BUILD/pcs-0.10.1/pcs/test/test_rule.py", line 1014, in testAndOrExpression
File "/builddir/build/BUILD/pcs-0.10.1/pcs/test/test_rule.py", line 1246, in assertExpressionXml
File "/builddir/build/BUILD/pcs-0.10.1/pcs/test/tools/assertions.py", line 28, in ac
AssertionError: strings not equal:
- <rule boolean-op="and" id="location-dummy-rule">
+ <rule id="location-dummy-rule" boolean-op="and">
- <expression attribute="#uname" id="location-dummy-rule-expr" operation="ne" value="node1"/>
+ <expression id="location-dummy-rule-expr" operation="ne" attribute="#uname" value="node1"/>
- <expression attribute="#uname" id="location-dummy-rule-expr-1" operation="ne" value="node2"/>
+ <expression id="location-dummy-rule-expr-1" operation="ne" attribute="#uname" value="node2"/>
And more... full log attached.
The problem is, XML attribute are no longer sorted. See https://bugs.python.org/issue34160
Thanks for filling this bz. I was looking into this issue few weeks ago and I can confirm that the issue is in export into XML. There is already mechanism in pcs test suite for comparison of XMLs which doesn't depend on an order of XML attributes. We just need to use this mechanism everywhere in the pcs test suite. Till now, we did't have time to fix this, but we are planning to do so in the following weeks.
Let me know if you need anything else.
Thanks for the update. Please keep me posted and don't fall back to silence.
Ondrej Mular: It's a backward incompatible change of Python 3.8. You can find a recipe to sort XML attributes here:
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.
The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.
If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:
on branch master:
$ fedpkg build --target=f32-python
To wait for a build to show up in the side tag, do:
$ koji wait-repo f32-python --build=<nvr>
Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.
An updated mock config is posted at:
Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.
Thanks. Let us know if you need up to date info, or if you have any questions.
PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:
on branch f31:
$ fedpkg build
The f32-python side tag has been merged. In order to rebuild the package, do it in regular rawhide, but please wait until python3-3.8 is tagged:
$ koji wait-repo f32-build --build python3-3.8.0~b3-3.fc32
If your built already started in f32-python, after it is finished, please tag it to rawhide with:
$ koji tag-build f32-pending <nvr>
$ koji tag-build f32-pending libreoffice-188.8.131.52-3.fc32
(This comment is mass posted to all bugzillas blocking the PYTHON38 tracking bug.)
(Python 3.8 has landed in the rawhide buildroot.)
This was rebuild with Python 3.8 and I'm closing it in bulk.
In case you wanted to keep this bugzilla open because the fix is not ideal, please reopen. Thanks.