Bug 2367782 - python-botocore fails to build with Python 3.14: test_lru_cache_weakref: AssertionError: assert getrefcount(cls1) == 2
Summary: python-botocore fails to build with Python 3.14: test_lru_cache_weakref: Asse...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: python-botocore
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Duncan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-05-21 13:00 UTC by Karolina Surma
Modified: 2025-05-21 17:58 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
log (1.52 MB, text/plain)
2025-05-21 17:57 UTC, Gwyn Ciesla
no flags Details

Description Karolina Surma 2025-05-21 13:00:44 UTC
python-botocore fails to build with Python 3.14.0b1.

____________________________ test_lru_cache_weakref ____________________________
[gw1] linux -- Python 3.14.0 /usr/bin/python3

    def test_lru_cache_weakref():
        class ClassWithCachedMethod:
            @lru_cache_weakref(maxsize=10)
            def cached_fn(self, a, b):
                return a + b
    
        cls1 = ClassWithCachedMethod()
        cls2 = ClassWithCachedMethod()
    
        assert cls1.cached_fn.cache_info().currsize == 0
>       assert getrefcount(cls1) == 2
E       assert 1 == 2
E        +  where 1 = getrefcount(<tests.unit.test_utils.test_lru_cache_weakref.<locals>.ClassWithCachedMethod object at 0x7fc77cb28d70>)


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/09066412-python-botocore/

For all our attempts to build python-botocore with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/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.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.

Comment 1 Gwyn Ciesla 2025-05-21 17:57:48 UTC
Created attachment 2091059 [details]
log

Comment 2 Gwyn Ciesla 2025-05-21 17:58:17 UTC
Mock build of 1.38.20 from this morning gives a python segfault at pylint execution...


Note You need to log in before you can comment on or make changes to this bug.