Bug 2424584
| Summary: | python-botocore fails to build with Python 3.15: AssertionError: At index 8 diff: b'\x00' != b'\x02' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-botocore | Assignee: | David Duncan <davdunc> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | davdunc, gholms, gwync, ksurma, lkundrak, me, mhroncok |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | 2412434 | ||
python-botocore fails to build with Python 3.15.0a3. ___________________________ test_only_compress_once ____________________________ [gw1] linux -- Python 3.15.0 /usr/bin/python3 @mock.patch.object(botocore.compress, 'gzip_compress', static_compress) @mock.patch.object(botocore.compress, 'COMPRESSION_MAPPING', MOCK_COMPRESSION) @pytest.mark.skipif( sys.version_info < (3, 8), reason='requires python3.8 or higher' ) def test_only_compress_once(): request_dict = _request_dict() maybe_compress_request( COMPRESSION_CONFIG_128_BYTES, request_dict, OP_MULTIPLE_COMPRESSIONS, ) > assert_request_compressed(request_dict, REQUEST_BODY_COMPRESSED) tests/unit/test_compress.py:322: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_compress.py:139: in assert_request_compressed _assert_compression_body(request_dict['body'], expected_body) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ compressed_body = b'\x1f\x8b\x08\x00\x01\x00\x00\x00\x00\xffsL.\xc9\xcc\xcf\xb3\r(-\xf1M-)\xcaLvI,IT\x0bK-*\x06\x89\x1a\x19\x18\x1a\xe8\...\\0\x13\xab\xaa\xd0\xbc\xcc\x12[\xa7\xca\x92\xd4b\xac\xd2a\x899\xa5\xa9\xb6\x86F\x16\x00\x1e\xdd\t\xfd\x9e\x00\x00\x00' expected_body = b'\x1f\x8b\x08\x00\x01\x00\x00\x00\x02\xffsL.\xc9\xcc\xcf\xb3\r(-\xf1M-)\xcaLvI,IT\x0bK-*\x06\x89\x1a\x19\x18\x1a\xe8\...\\0\x13\xab\xaa\xd0\xbc\xcc\x12[\xa7\xca\x92\xd4b\xac\xd2a\x899\xa5\xa9\xb6\x86F\x16\x00\x1e\xdd\t\xfd\x9e\x00\x00\x00' def _assert_compression_body(compressed_body, expected_body): data = compressed_body if hasattr(compressed_body, 'read'): data = compressed_body.read() > assert data == expected_body E AssertionError: assert b'\x1f\x8b\x0...e\x00\x00\x00' == b'\x1f\x8b\x0...e\x00\x00\x00' E E At index 8 diff: b'\x00' != b'\x02' E Use -v to get more diff FAILED tests/unit/test_compress.py::test_compression[request_dict0-operation_model0] FAILED tests/unit/test_compress.py::test_compression[request_dict1-operation_model1] FAILED tests/unit/test_compress.py::test_compression[request_dict2-operation_model2] FAILED tests/unit/test_compress.py::test_compression[request_dict3-operation_model3] FAILED tests/unit/test_compress.py::test_compression[request_dict4-operation_model4] FAILED tests/unit/test_compress.py::test_compression[request_dict5-operation_model5] FAILED tests/unit/test_compress.py::test_compression[request_dict6-operation_model6] FAILED tests/unit/test_compress.py::test_compression[request_dict7-operation_model7] FAILED tests/unit/test_compress.py::test_compression[request_dict8-operation_model8] FAILED tests/unit/test_compress.py::test_compression[request_dict9-operation_model9] FAILED tests/unit/test_compress.py::test_dict_compression[operation_model0-\x1f\x8b\x08\x00\x01\x00\x00\x00\x02\xffK\xcb\xcf\xb7MJ,\x02\x00v\x8e5\x1c\x07\x00\x00\x00] FAILED tests/unit/test_compress.py::test_body_streams_position_reset - Assert... FAILED tests/unit/test_compress.py::test_only_compress_once - AssertionError:... https://docs.python.org/3.15/whatsnew/3.15.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09935295-python-botocore/ For all our attempts to build python-botocore with Python 3.15, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-botocore/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.15: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/ Let us know here if you have any questions. Python 3.15 is planned to be included in Fedora 45. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.