Bug 2251916 - python-asyncssh fails to build with Python 3.13: Test suite failed: FAILED (failures=1, errors=18, skipped=53)
Summary: python-asyncssh fails to build with Python 3.13: Test suite failed: FAILED (f...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-asyncssh
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Georg Sauthoff
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-28 12:07 UTC by Karolina Surma
Modified: 2024-02-17 21:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-11-28 12:07:48 UTC
python-asyncssh fails to build with Python 3.13.0a2.

This report is automated and not very verbose, but we'll try to get back here with details.


======================================================================
ERROR: test_add_keys_failure (tests.test_agent._TestAgent.test_add_keys_failure)
Test failure adding keys to the agent
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 52, in agent_wrapper
    await func(self, agent)
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 303, in test_add_keys_failure
    await mock_agent.stop()
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop
    os.remove(self._path)
FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent'

======================================================================
ERROR: test_add_remove_smartcard_keys (tests.test_agent._TestAgent.test_add_remove_smartcard_keys)
Test adding and removing smart card keys
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 361, in test_add_remove_smartcard_keys
    await mock_agent.stop()
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop
    os.remove(self._path)
FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent'

======================================================================
ERROR: test_errors (tests.test_agent._TestAgent.test_errors)
Test getting error responses from SSH agent
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 497, in test_errors
    await mock_agent.stop()
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop
    os.remove(self._path)
FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent'

======================================================================
ERROR: test_query_extensions (tests.test_agent._TestAgent.test_query_extensions)
Test query of supported extensions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 427, in test_query_extensions
    await mock_agent.stop()
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop
    os.remove(self._path)
FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent'

======================================================================
ERROR: test_forward_local_path_to_port (tests.test_forward._TestAsyncTCPForwarding.test_forward_local_path_to_port)
Test forwarding of a local UNIX domain path to a remote TCP port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 654, in test_forward_local_path_to_port
    os.remove('local')
FileNotFoundError: [Errno 2] No such file or directory: 'local'

======================================================================
ERROR: test_forward_remote_port_to_path (tests.test_forward._TestAsyncTCPForwarding.test_forward_remote_port_to_path)
Test forwarding of a remote port to a local UNIX domain socket
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 801, in test_forward_remote_port_to_path
    os.remove('local')
FileNotFoundError: [Errno 2] No such file or directory: 'local'

======================================================================
ERROR: test_forward_local_path (tests.test_forward._TestAsyncUNIXForwarding.test_forward_local_path)
Test forwarding of a local UNIX domain path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1074, in test_forward_local_path
    os.remove('local')
FileNotFoundError: [Errno 2] No such file or directory: 'local'

======================================================================
ERROR: test_forward_remote_path (tests.test_forward._TestAsyncUNIXForwarding.test_forward_remote_path)
Test forwarding of a remote UNIX domain path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1152, in test_forward_remote_path
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
ERROR: test_forward_remote_path_to_port (tests.test_forward._TestAsyncUNIXForwarding.test_forward_remote_path_to_port)
Test forwarding of a remote UNIX domain path to a local TCP port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1170, in test_forward_remote_path_to_port
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
ERROR: test_unix_server (tests.test_forward._TestAsyncUNIXForwarding.test_unix_server)
Test creating a remote UNIX listener
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1023, in test_unix_server
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
ERROR: test_unix_server_non_async (tests.test_forward._TestAsyncUNIXForwarding.test_unix_server_non_async)
Test creating a remote UNIX listener using non-async handler
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1056, in test_unix_server_non_async
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
ERROR: test_forward_local_path_to_port (tests.test_forward._TestTCPForwarding.test_forward_local_path_to_port)
Test forwarding of a local UNIX domain path to a remote TCP port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 654, in test_forward_local_path_to_port
    os.remove('local')
FileNotFoundError: [Errno 2] No such file or directory: 'local'

======================================================================
ERROR: test_forward_remote_port_to_path (tests.test_forward._TestTCPForwarding.test_forward_remote_port_to_path)
Test forwarding of a remote port to a local UNIX domain socket
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 801, in test_forward_remote_port_to_path
    os.remove('local')
FileNotFoundError: [Errno 2] No such file or directory: 'local'

======================================================================
ERROR: test_forward_local_path (tests.test_forward._TestUNIXForwarding.test_forward_local_path)
Test forwarding of a local UNIX domain path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1074, in test_forward_local_path
    os.remove('local')
FileNotFoundError: [Errno 2] No such file or directory: 'local'

======================================================================
ERROR: test_forward_remote_path (tests.test_forward._TestUNIXForwarding.test_forward_remote_path)
Test forwarding of a remote UNIX domain path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1152, in test_forward_remote_path
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
ERROR: test_forward_remote_path_to_port (tests.test_forward._TestUNIXForwarding.test_forward_remote_path_to_port)
Test forwarding of a remote UNIX domain path to a local TCP port
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1170, in test_forward_remote_path_to_port
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
ERROR: test_unix_server (tests.test_forward._TestUNIXForwarding.test_unix_server)
Test creating a remote UNIX listener
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1023, in test_unix_server
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
ERROR: test_unix_server_non_async (tests.test_forward._TestUNIXForwarding.test_unix_server_non_async)
Test creating a remote UNIX listener using non-async handler
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1056, in test_unix_server_non_async
    os.remove('echo')
FileNotFoundError: [Errno 2] No such file or directory: 'echo'

======================================================================
FAIL: test_add_remove_keys (tests.test_agent._TestAgent.test_add_remove_keys)
Test adding and removing keys
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper
    return self.loop.run_until_complete(coro(self, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 52, in agent_wrapper
    await func(self, agent)
  File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 243, in test_add_remove_keys
    self.assertEqual(len(agent_keys), 0)
AssertionError: 1 != 0

----------------------------------------------------------------------
Ran 1471 tests in 247.850s

FAILED (failures=1, errors=18, skipped=53)

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692164-python-asyncssh/

For all our attempts to build python-asyncssh with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-asyncssh/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Georg Sauthoff 2023-12-23 17:29:06 UTC
Upstream identified the root cause:

https://github.com/ronf/asyncssh/issues/616#issuecomment-1867101643

i.e. the asyncio library changed its behavior when closing unix domain, i.e. it now also removes them - such that existing cleanup code in users of the library fails, unless it anticipates the socket already being removed, as a possibility.

Comment 2 Aoife Moloney 2024-02-15 23:06:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 3 Georg Sauthoff 2024-02-17 21:59:47 UTC
This was reported against Python 3.13 which is slated for Fedora 41, thus, reassigning to rawhide.

Meanwhile upstream integrate a fix for this and we'll likely see a new asynssh release before Rawhide switches to Python 3.13.


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