Bug 2281671

Summary: python-stack-data fails to build with Python 3.13: multiple AssertionErrors in the test suite
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-stack-dataAssignee: Lumír Balhar <lbalhar>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: low    
Version: rawhideCC: epel-packagers-sig, ksurma, lbalhar, mhroncok, michel, torsava
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-stack-data-0.6.3-11.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-03 17:16:29 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: 2244836    

Description Karolina Surma 2024-05-20 11:26:28 UTC
python-stack-data fails to build with Python 3.13.0b1.

=========================== short test summary info ============================
FAILED tests/test_core.py::test_variables - AssertionError: assert None == <a...
FAILED tests/test_core.py::test_skipping_frames - AssertionError
FAILED tests/test_core.py::test_example - AssertionError
FAILED tests/test_core.py::test_pygments_example - AssertionError
FAILED tests/test_formatter.py::test_example - AssertionError
FAILED tests/test_serializer.py::test_example - AssertionError
========================= 6 failed, 15 passed in 0.94s =========================

Reported upstream: https://github.com/alexmojaki/stack_data/issues/56

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/07454172-python-stack-data/

For all our attempts to build python-stack-data with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-stack-data/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 2024-06-02 22:24:03 UTC
Fedora PR to deselect the failing tests in order to unlock the rebuild: https://src.fedoraproject.org/rpms/python-stack-data/pull-request/14

Comment 2 Michel Lind 2024-07-01 20:29:16 UTC
This has succeeded since Miro's PR is merged and built, I guess we can close this?

https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-stack-data/

Comment 3 Miro Hrončok 2024-07-01 22:28:22 UTC
I intentionally left this open to track the ugly workaround removal.

Comment 4 Fedora Update System 2024-09-03 17:13:06 UTC
FEDORA-2024-acaa746064 (python-stack-data-0.6.3-11.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-acaa746064

Comment 5 Fedora Update System 2024-09-03 17:16:29 UTC
FEDORA-2024-acaa746064 (python-stack-data-0.6.3-11.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Lumír Balhar 2024-09-03 18:44:08 UTC
No more workarounds present in the package.