Bug 2328020

Summary: python-falcon fails to build with Python 3.14: KeyError: 'partitioned'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-falconAssignee: Carl George 🎩 <carl>
Status: CLOSED ERRATA 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: python-falcon-4.0.2-2.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-28 03:27:19 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: 2322407    

Description Karolina Surma 2024-11-22 11:55:49 UTC
python-falcon fails to build with Python 3.14.0a2.

33 tests failed with KeyError: 'partitioned'


_______________________________ test_cookies_jar _______________________________

    def test_cookies_jar():
        class Foo:
            def on_get(self, req, resp):
                # NOTE(myusko): In the future we shouldn't change the cookie
                #             a test depends on the input.
                # NOTE(kgriffs): This is the only test that uses a single
                #   cookie (vs. multiple) as input; if this input ever changes,
                #   a separate test will need to be added to explicitly verify
                #   this use case.
                resp.set_cookie('has_permission', 'true')
    
            def on_post(self, req, resp):
                if req.cookies['has_permission'] == 'true':
                    resp.status = falcon.HTTP_200
                else:
                    resp.status = falcon.HTTP_403
    
        app = App()
        app.add_route('/jars', Foo())
    
        client = testing.TestClient(app)
    
>       response_one = client.simulate_get('/jars')

tests/test_testing.py:168: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../BUILDROOT/usr/lib64/python3.14/site-packages/falcon/testing/client.py:2110: in simulate_get
    return self.simulate_request('GET', path, **kwargs)
../BUILDROOT/usr/lib64/python3.14/site-packages/falcon/testing/client.py:2173: in simulate_request
    return simulate_request(self.app, *args, **kwargs)
../BUILDROOT/usr/lib64/python3.14/site-packages/falcon/testing/client.py:657: in simulate_request
    return Result(data, srmock.status, srmock.headers)
../BUILDROOT/usr/lib64/python3.14/site-packages/falcon/testing/client.py:340: in __init__
    super().__init__(status, headers)
../BUILDROOT/usr/lib64/python3.14/site-packages/falcon/testing/client.py:232: in __init__
    self._cookies = dict(
../BUILDROOT/usr/lib64/python3.14/site-packages/falcon/testing/client.py:233: in <genexpr>
    (morsel.key, Cookie(morsel)) for morsel in cookies.values()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <falcon.testing.client.Cookie object at 0x7fa648d4b4d0>
morsel = <Morsel: has_permission=true; HttpOnly; Secure>

    def __init__(self, morsel: Morsel) -> None:
        self._name = morsel.key
        self._value = morsel.value
    
        for name in (
            'expires',
            'path',
            'domain',
            'max_age',
            'secure',
            'httponly',
            'samesite',
            'partitioned',
        ):
>           value = morsel[name.replace('_', '-')] or None
E           KeyError: 'partitioned'

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/fedora-rawhide-x86_64/08291522-python-falcon/

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

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/

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 Fedora Update System 2024-11-28 03:23:32 UTC
FEDORA-2024-4c351f1071 (python-falcon-4.0.2-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4c351f1071

Comment 2 Fedora Update System 2024-11-28 03:27:19 UTC
FEDORA-2024-4c351f1071 (python-falcon-4.0.2-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.