Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 2196739

Summary: python-fastbencode fails to build with Python 3.12: AssertionError: RuntimeError not raised by bdecode
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-fastbencodeAssignee: Ondřej Pohořelský <opohorel>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fti-bugs, mhroncok, opohorel, python-packagers-sig, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-11 11:29:32 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: 2168842, 2168845, 2135404, 2219952, 2219955, 2219990, 2220016, 2220200    

Description Tomáš Hrnčiar 2023-05-10 06:11:34 UTC
python-fastbencode fails to build with Python 3.12.0a7.

======================================================================
FAIL: test_list_deepnested (fastbencode.tests.test_bencode.TestBencodeDecode.test_list_deepnested)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/fastbencode-0.0.9/fastbencode/tests/test_bencode.py", line 297, in test_list_deepnested
    self._run_check_error(RuntimeError, (b"l" * 100) + (b"e" * 100))
  File "/builddir/build/BUILD/fastbencode-0.0.9/fastbencode/tests/test_bencode.py", line 238, in _run_check_error
    self.assertRaises(exc, self.module.bdecode, bad)
AssertionError: RuntimeError not raised by bdecode

https://docs.python.org/3.12/whatsnew/3.12.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05901695-python-fastbencode/

For all our attempts to build python-fastbencode with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-fastbencode/

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.12:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
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.

Comment 1 Miro Hrončok 2023-07-06 08:03:44 UTC
*** Bug 2220219 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Fails To Install 2023-07-11 11:29:32 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 39.

Thanks for taking care of it!