Bug 2038848
Summary: | python3.7 fails to build on s390x: test_pair and test_speech128 (test.test_zlib.CompressTestCase) fail | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python3.7 | Assignee: | Karolina Surma <ksurma> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cstratak, mhroncok, python-maint, python-sig, thrnciar, torsava, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python3.7-3.7.12-7.fc36 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-02-03 12:13:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 467765, 1992484, 2044291 |
Description
Miro Hrončok
2022-01-10 10:07:31 UTC
The same test failures have been reported on RHEL8 and the issue was closed as "NOT A BUG". See the issues for details: https://bugzilla.redhat.com/show_bug.cgi?id=1974658 > python3.7 fails to build on s390x: test_pair and test_speech128 (test.test_zlib.CompressTestCase) fail
The s390x has a hardware accelerator for gzip. Depending if the hardware accelerator is used or not, the output is different.
Also, test_zlib compress data in two different ways and then expect the same output. It works with the sofware implementation which creates a single block. It doesn't work with the hardware implementation which creates multiple blocks. Maybe the hardware implementation has a shorter buffer or doesn't implement the optimization avoiding the creation of multiple blocks.
Full arch scratch build with libffi 3.1: https://koji.fedoraproject.org/koji/taskinfo?taskID=81058354 It shows the same error, so this is not libffi related. The previous scratch build with libffi 3.4 has finished, it shows that this is s390x specific. Let's solve this by skipping these two tests on s390x. I proposed a PR upstream to skip test_pair() and test_speech128() on s390x: * https://bugs.python.org/issue46623 * https://github.com/python/cpython/pull/31096 FEDORA-2022-f550633b7d has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f550633b7d FEDORA-2022-f550633b7d has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. FYI I made a similar change in Python 3.11 upstream: * https://github.com/python/cpython/commit/9475dc0b8d2a0db40278bbcb88a89b1265a77ec9 * https://bugs.python.org/issue46623#msg413939 |