Bug 2049630

Summary: python-wsproto fails to build with Python 3.11: AssertionError: assert 'H11Handshake..., state=OPEN)' == 'H11Handshake...onState.OPEN)'
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-wsprotoAssignee: Carl George 🤠 <carl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: carl, mhroncok, python-sig, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-wsproto-1.1.0-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-27 22:09:41 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: 2016048, 2045102, 2045109, 2099139    

Description Tomáš Hrnčiar 2022-02-02 13:38:00 UTC
python-wsproto fails to build with Python 3.11.0a4.

=================================== FAILURES ===================================
__________________________ test_successful_handshake ___________________________

    def test_successful_handshake() -> None:
        client = H11Handshake(CLIENT)
        server = H11Handshake(SERVER)
    
        server.receive_data(client.send(Request(host="localhost", target="/")))
        assert isinstance(next(server.events()), Request)
    
        client.receive_data(server.send(AcceptConnection()))
        assert isinstance(next(client.events()), AcceptConnection)
    
        assert client.state is ConnectionState.OPEN
        assert server.state is ConnectionState.OPEN
    
>       assert repr(client) == "H11Handshake(client=True, state=ConnectionState.OPEN)"
E       AssertionError: assert 'H11Handshake..., state=OPEN)' == 'H11Handshake...onState.OPEN)'
E         - H11Handshake(client=True, state=ConnectionState.OPEN)
E         ?                                 ----------------
E         + H11Handshake(client=True, state=OPEN)

test/test_handshake.py:22: AssertionError
=========================== short test summary info ============================
FAILED test/test_handshake.py::test_successful_handshake - AssertionError: as...
======================== 1 failed, 225 passed in 0.53s =========================

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/03272962-python-wsproto/

For all our attempts to build python-wsproto with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-wsproto/

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

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Ben Cotton 2022-02-08 20:20:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Miro Hrončok 2022-06-20 10:20:34 UTC
*** Bug 2099144 has been marked as a duplicate of this bug. ***

Comment 3 Miro Hrončok 2022-06-27 14:53:16 UTC
Hello,

This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs).

If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.

Comment 4 Fedora Update System 2022-06-27 22:08:09 UTC
FEDORA-2022-3c97118f3c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3c97118f3c

Comment 5 Fedora Update System 2022-06-27 22:09:41 UTC
FEDORA-2022-3c97118f3c has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.