Bug 2368970

Summary: python-curio fails to build with Python 3.14: AssertionError: assert [10, 9, 8, 7, 6, 5, 4, 3, 2, ('fib', 14930352), 1] == [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, ('fib', 14930352)]
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-curioAssignee: Carl George 🤠 <carl>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: carl, ksurma, mhroncok, python-packagers-sig
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: 2322407    

Description Karolina Surma 2025-05-28 14:45:41 UTC
python-curio fails to build with Python 3.14.0b2.

___________________________________ test_cpu ___________________________________

kernel = <curio.kernel.Kernel object at 0x7f33792ffa80>

    def test_cpu(kernel):
        results = []
    
        async def spin(n):
            while n > 0:
                results.append(n)
                await sleep(0.1)
                n -= 1
    
        async def cpu_bound(n):
            r = await run_in_process(fib, n)
            results.append(('fib', r))
    
        async def main():
            async with TaskGroup() as g:
                await g.spawn(spin, 10)
                await g.spawn(cpu_bound, 36)
    
        kernel.run(main())
    
>       assert results == [
            10, 9, 8, 7, 6, 5, 4, 3, 2, 1,
            ('fib', 14930352)
        ]
E       AssertionError: assert [10, 9, 8, 7, 6, 5, 4, 3, 2, ('fib', 14930352), 1] == [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, ('fib', 14930352)]
E         
E         At index 9 diff: ('fib', 14930352) != 1
E         
E         Full diff:
E           [
E               10,
E               9,
E               8,
E               7,
E               6,
E               5,
E               4,
E               3,
E               2,
E         -     1,
E               (
E                   'fib',
E                   14930352,
E               ),
E         +     1,
E           ]

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09093280-python-curio/

For all our attempts to build python-curio with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-curio/

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

Let us know here if you have any questions.

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