Source: python-websockets Version: 13.1-2 Severity: serious Tags: FTBFS, patch User: debian-ri...@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-ri...@lists.debian.org
Dear python-websockets Maintainer, The package python-websockets build failed on a lot of architectures.The crucial buildd log below: ``` ERROR: test_client_connect_canceled_during_handshake (tests.legacy.test_client_server.ClientServerTests.test_client_connect_canceled_during_handshake) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.12/asyncio/tasks.py", line 520, in wait_for return await fut ^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_websockets/build/websockets/legacy/server.py", line 823, in wait_closed await asyncio.shield(self.closed_waiter) asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_websockets/build/tests/legacy/test_client_server.py", line 122, in _decorate with manager(self, *args, **kwargs): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__ next(self.gen) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_websockets/build/tests/legacy/test_client_server.py", line 96, in temp_test_server test.stop_server() File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_websockets/build/tests/legacy/test_client_server.py", line 276, in stop_server self.loop.run_until_complete( File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/tasks.py", line 519, in wait_for async with timeouts.timeout(timeout): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__ raise TimeoutError from exc_val TimeoutError ``` The full buildd log is here: https://buildd.debian.org/status/fetch.php?pkg=python-websockets&arch=riscv64&ver=13.1-2&stamp=1728899462&raw=0 My solution to this issue: This error comes from the Python asynchronous test suite, where one of the tests timed out while waiting for an asynchronous operation to complete. We can resolve this test error by increasing the timeout threshold.I have tested that on local,and it works well.The debpatch is in the attachment.Please let me know wheather this solution can be accepted. Gui-Yue Best Regards
fix_python-websockets_TimeOutError.patch
Description: Binary data