ROOT: skip environment lint, matches filter 'lint' .pkg: remove tox env folder /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.pkg py38: install_deps> python -I -m pip install aioresponses coverage pyee pytest pytest-aiohttp pytest-aioresponses python-dateutil /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper .pkg: install_requires> python -I -m pip install 'setuptools>=61.0' .pkg: _optional_hooks> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: get_requires_for_build_sdist> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: get_requires_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: install_requires_for_build_wheel> python -I -m pip install wheel .pkg: freeze> python -m pip freeze --all .pkg: pip==24.0,setuptools==69.1.0,wheel==0.42.0 .pkg: prepare_metadata_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: build_sdist> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta py38: install_package_deps> python -I -m pip install 'crosslab-aiortc>=1.8.0' crosslab-api-client py38: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/2/crosslab_soa_client-0.2.8+dev.ee88c7e5.tar.gz py38: freeze> python -m pip freeze --all py38: aiohttp==3.9.5,aioice==0.9.0,aioresponses==0.7.6,aiosignal==1.3.1,async-timeout==4.0.3,attrs==23.2.0,av==12.3.0,cffi==1.16.0,coverage==7.6.0,crosslab-aiortc==1.9.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/2/crosslab_soa_client-0.2.8%2Bdev.ee88c7e5.tar.gz#sha256=96a8915564932fa601cc607ecd18d7bbb332cfc2271ff0e98ad0313e41dee2ae,cryptography==43.0.0,dnspython==2.6.1,exceptiongroup==1.2.2,frozenlist==1.4.1,google-crc32c==1.5.0,idna==3.7,ifaddr==0.2.0,iniconfig==2.0.0,multidict==6.0.5,packaging==24.1,pip==24.0,pluggy==1.5.0,pycparser==2.22,pyee==11.1.0,pylibsrtp==0.10.0,pyOpenSSL==24.2.1,pytest==8.3.2,pytest-aiohttp==1.0.5,pytest-aioresponses==0.2.0,pytest-asyncio==0.23.8,python-dateutil==2.9.0.post0,setuptools==69.1.0,six==1.16.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,tomli==2.0.1,typing_extensions==4.12.2,wheel==0.42.0,yarl==1.9.4 py38: commands[0]> coverage run --source crosslab.soa_client -m pytest -W error -W ignore:pkg_resources:DeprecationWarning ============================= test session starts ============================== platform linux -- Python 3.8.19, pytest-8.3.2, pluggy-1.5.0 cachedir: .tox/py38/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: setup.cfg plugins: aioresponses-0.2.0, asyncio-0.23.8, aiohttp-1.0.5 asyncio: mode=strict collected 8 items tests/test_device_handler.py .. [ 25%] tests/test_webrtc_connection.py .... [ 75%] tests/test_websocket_connection.py FF [100%] =================================== FAILURES =================================== ____________________ test_webrtc_connection_data_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_data_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } localService = ServiceStub("data", dataChannel=True) remoteService = ServiceStub("data", dataChannel=True) local = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) remote = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker with NoReferenceLeaks("crosslab"): await localService.setupConnection(local, serviceConfig) await remoteService.setupConnection(remote, serviceConfig) messageWait = [ localService.receivedMessageEvent.wait(), remoteService.receivedMessageEvent.wait(), ] await wait([local.connect(), remote.connect()], asyncException) > await wait(messageWait, asyncException) tests/test_websocket_connection.py:74: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py38/lib/python3.8/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_websocket_connection.py:74: in test_webrtc_connection_data_only await wait(messageWait, asyncException) tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.8/asyncio/tasks.py:618: TimeoutError ----------------------------- Captured stdout call ----------------------------- entering handle messages entering handle messages ___________________ test_webrtc_connection_data_only[False] ____________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_data_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } localService = ServiceStub("data", dataChannel=True) remoteService = ServiceStub("data", dataChannel=True) local = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) remote = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker with NoReferenceLeaks("crosslab"): await localService.setupConnection(local, serviceConfig) await remoteService.setupConnection(remote, serviceConfig) messageWait = [ localService.receivedMessageEvent.wait(), remoteService.receivedMessageEvent.wait(), ] await wait([local.connect(), remote.connect()], asyncException) > await wait(messageWait, asyncException) tests/test_websocket_connection.py:74: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py38/lib/python3.8/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_websocket_connection.py:74: in test_webrtc_connection_data_only await wait(messageWait, asyncException) tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.8/asyncio/tasks.py:618: TimeoutError ----------------------------- Captured stdout call ----------------------------- entering handle messages entering handle messages =========================== short test summary info ============================ FAILED tests/test_websocket_connection.py::test_webrtc_connection_data_only[True] FAILED tests/test_websocket_connection.py::test_webrtc_connection_data_only[False] ========================= 2 failed, 6 passed in 29.25s ========================= /usr/lib/python3.8/logging/__init__.py:2126: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection raise exceptions[0] File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect return await fut File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection raise exceptions[0] File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect return await fut File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.8/asyncio/queues.py", line 163, in get File "/usr/lib/python3.8/asyncio/base_events.py", line 719, in call_soon File "/usr/lib/python3.8/asyncio/base_events.py", line 508, in _check_closed RuntimeError: Event loop is closed Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection raise exceptions[0] File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect return await fut File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection raise exceptions[0] File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect return await fut File "/usr/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py38/lib/python3.8/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> py38: exit 1 (29.92 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest -W error -W ignore:pkg_resources:DeprecationWarning pid=4445 py38: FAIL ✖ in 51.18 seconds py39: install_deps> python -I -m pip install aioresponses coverage pyee pytest pytest-aiohttp pytest-aioresponses python-dateutil /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper py39: install_package_deps> python -I -m pip install 'crosslab-aiortc>=1.8.0' crosslab-api-client py39: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/3/crosslab_soa_client-0.2.8+dev.ee88c7e5.tar.gz py39: freeze> python -m pip freeze --all py39: aiohttp==3.9.5,aioice==0.9.0,aioresponses==0.7.6,aiosignal==1.3.1,async-timeout==4.0.3,attrs==23.2.0,av==12.3.0,cffi==1.16.0,coverage==7.6.0,crosslab-aiortc==1.9.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/3/crosslab_soa_client-0.2.8%2Bdev.ee88c7e5.tar.gz#sha256=96a8915564932fa601cc607ecd18d7bbb332cfc2271ff0e98ad0313e41dee2ae,cryptography==43.0.0,dnspython==2.6.1,exceptiongroup==1.2.2,frozenlist==1.4.1,google-crc32c==1.5.0,idna==3.7,ifaddr==0.2.0,iniconfig==2.0.0,multidict==6.0.5,packaging==24.1,pip==24.0,pluggy==1.5.0,pycparser==2.22,pyee==11.1.0,pylibsrtp==0.10.0,pyOpenSSL==24.2.1,pytest==8.3.2,pytest-aiohttp==1.0.5,pytest-aioresponses==0.2.0,pytest-asyncio==0.23.8,python-dateutil==2.9.0.post0,setuptools==69.1.0,six==1.16.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,tomli==2.0.1,typing_extensions==4.12.2,wheel==0.42.0,yarl==1.9.4 py39: commands[0]> coverage run --source crosslab.soa_client -m pytest -W error -W ignore:pkg_resources:DeprecationWarning ============================= test session starts ============================== platform linux -- Python 3.9.19, pytest-8.3.2, pluggy-1.5.0 cachedir: .tox/py39/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: setup.cfg plugins: aioresponses-0.2.0, asyncio-0.23.8, aiohttp-1.0.5 asyncio: mode=strict collected 8 items tests/test_device_handler.py .. [ 25%] tests/test_webrtc_connection.py .... [ 75%] tests/test_websocket_connection.py FF [100%] =================================== FAILURES =================================== ____________________ test_webrtc_connection_data_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_data_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } localService = ServiceStub("data", dataChannel=True) remoteService = ServiceStub("data", dataChannel=True) local = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) remote = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker with NoReferenceLeaks("crosslab"): await localService.setupConnection(local, serviceConfig) await remoteService.setupConnection(remote, serviceConfig) messageWait = [ localService.receivedMessageEvent.wait(), remoteService.receivedMessageEvent.wait(), ] await wait([local.connect(), remote.connect()], asyncException) await wait(messageWait, asyncException) await wait([local.close(), remote.close()], asyncException) await localService.teardownConnection(local) > await remoteService.teardownConnection(remote) tests/test_websocket_connection.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py39/lib/python3.9/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_websocket_connection.py:74: in test_webrtc_connection_data_only await wait(messageWait, asyncException) tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.9/asyncio/tasks.py:610: TimeoutError ----------------------------- Captured stdout call ----------------------------- entering handle messages entering handle messages ___________________ test_webrtc_connection_data_only[False] ____________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_data_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } localService = ServiceStub("data", dataChannel=True) remoteService = ServiceStub("data", dataChannel=True) local = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) remote = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker with NoReferenceLeaks("crosslab"): await localService.setupConnection(local, serviceConfig) await remoteService.setupConnection(remote, serviceConfig) messageWait = [ localService.receivedMessageEvent.wait(), remoteService.receivedMessageEvent.wait(), ] await wait([local.connect(), remote.connect()], asyncException) await wait(messageWait, asyncException) await wait([local.close(), remote.close()], asyncException) await localService.teardownConnection(local) > await remoteService.teardownConnection(remote) tests/test_websocket_connection.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py39/lib/python3.9/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_websocket_connection.py:74: in test_webrtc_connection_data_only await wait(messageWait, asyncException) tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.9/asyncio/tasks.py:610: TimeoutError ----------------------------- Captured stdout call ----------------------------- entering handle messages entering handle messages =========================== short test summary info ============================ FAILED tests/test_websocket_connection.py::test_webrtc_connection_data_only[True] FAILED tests/test_websocket_connection.py::test_webrtc_connection_data_only[False] ========================= 2 failed, 6 passed in 29.97s ========================= /usr/lib/python3.9/logging/__init__.py:2141: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.9/asyncio/base_events.py", line 1065, in create_connection raise exceptions[0] File "/usr/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/lib/python3.9/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.9/asyncio/base_events.py", line 1065, in create_connection raise exceptions[0] File "/usr/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/lib/python3.9/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.9/asyncio/queues.py", line 166, in get File "/usr/lib/python3.9/asyncio/base_events.py", line 751, in call_soon File "/usr/lib/python3.9/asyncio/base_events.py", line 515, in _check_closed RuntimeError: Event loop is closed Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=()]>> Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.9/asyncio/base_events.py", line 1065, in create_connection raise exceptions[0] File "/usr/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/lib/python3.9/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.9/asyncio/base_events.py", line 1065, in create_connection raise exceptions[0] File "/usr/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/lib/python3.9/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> py39: exit 1 (30.67 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest -W error -W ignore:pkg_resources:DeprecationWarning pid=4572 py39: FAIL ✖ in 48.19 seconds py310: install_deps> python -I -m pip install aioresponses coverage pyee pytest pytest-aiohttp pytest-aioresponses python-dateutil /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper py310: install_package_deps> python -I -m pip install 'crosslab-aiortc>=1.8.0' crosslab-api-client py310: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/4/crosslab_soa_client-0.2.8+dev.ee88c7e5.tar.gz py310: freeze> python -m pip freeze --all py310: aiohttp==3.9.5,aioice==0.9.0,aioresponses==0.7.6,aiosignal==1.3.1,async-timeout==4.0.3,attrs==23.2.0,av==12.3.0,cffi==1.16.0,coverage==7.6.0,crosslab-aiortc==1.9.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/4/crosslab_soa_client-0.2.8%2Bdev.ee88c7e5.tar.gz#sha256=96a8915564932fa601cc607ecd18d7bbb332cfc2271ff0e98ad0313e41dee2ae,cryptography==43.0.0,dnspython==2.6.1,exceptiongroup==1.2.2,frozenlist==1.4.1,google-crc32c==1.5.0,idna==3.7,ifaddr==0.2.0,iniconfig==2.0.0,multidict==6.0.5,packaging==24.1,pip==24.0,pluggy==1.5.0,pycparser==2.22,pyee==11.1.0,pylibsrtp==0.10.0,pyOpenSSL==24.2.1,pytest==8.3.2,pytest-aiohttp==1.0.5,pytest-aioresponses==0.2.0,pytest-asyncio==0.23.8,python-dateutil==2.9.0.post0,setuptools==69.1.0,six==1.16.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,tomli==2.0.1,typing_extensions==4.12.2,wheel==0.42.0,yarl==1.9.4 py310: commands[0]> coverage run --source crosslab.soa_client -m pytest -W error -W ignore:pkg_resources:DeprecationWarning ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.3.2, pluggy-1.5.0 cachedir: .tox/py310/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: setup.cfg plugins: aioresponses-0.2.0, asyncio-0.23.8, aiohttp-1.0.5 asyncio: mode=strict collected 8 items tests/test_device_handler.py .. [ 25%] tests/test_webrtc_connection.py .... [ 75%] tests/test_websocket_connection.py FF [100%] =================================== FAILURES =================================== ____________________ test_webrtc_connection_data_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_data_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } localService = ServiceStub("data", dataChannel=True) remoteService = ServiceStub("data", dataChannel=True) local = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) remote = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker > with NoReferenceLeaks("crosslab"): tests/test_websocket_connection.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py310/lib/python3.10/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_websocket_connection.py:74: in test_webrtc_connection_data_only await wait(messageWait, asyncException) tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.10/asyncio/tasks.py:570: TimeoutError ----------------------------- Captured stdout call ----------------------------- entering handle messages entering handle messages ___________________ test_webrtc_connection_data_only[False] ____________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_data_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } localService = ServiceStub("data", dataChannel=True) remoteService = ServiceStub("data", dataChannel=True) local = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) remote = WebSocketPeerconnection( options=WebSocketConnectionOptions(url="ws://localhost") ) local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker > with NoReferenceLeaks("crosslab"): tests/test_websocket_connection.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py310/lib/python3.10/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_websocket_connection.py:74: in test_webrtc_connection_data_only await wait(messageWait, asyncException) tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.10/asyncio/tasks.py:570: TimeoutError ----------------------------- Captured stdout call ----------------------------- entering handle messages entering handle messages =========================== short test summary info ============================ FAILED tests/test_websocket_connection.py::test_webrtc_connection_data_only[True] FAILED tests/test_websocket_connection.py::test_webrtc_connection_data_only[False] ========================= 2 failed, 6 passed in 30.58s ========================= /usr/lib/python3.10/logging/__init__.py:2182: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.10/asyncio/queues.py", line 161, in get File "/usr/lib/python3.10/asyncio/base_events.py", line 753, in call_soon File "/usr/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed RuntimeError: Event loop is closed Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Task was destroyed but it is pending! task: .optionsTimeout() done, defined at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py:89> wait_for=> Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task exception was never retrieved future: exception=ClientConnectorError(ConnectionKey(host='localhost', port=80, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 80)"))> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 80) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/src/crosslab/soa_client/connection_websocket.py", line 68, in _handle_messages self._ws = await self.session.ws_connect(self._connectionOptions["url"]) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 835, in _ws_connect resp = await self.request( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 944, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:80 ssl:default [Connect call failed ('127.0.0.1', 80)] Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> py310: exit 1 (31.27 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest -W error -W ignore:pkg_resources:DeprecationWarning pid=4692 py310: FAIL ✖ in 49.83 seconds coverage: install_deps> python -I -m pip install coverage coverage: freeze> python -m pip freeze --all coverage: coverage==7.6.0,pip==24.0,setuptools==69.1.0,wheel==0.42.0 coverage: commands[0]> coverage combine Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-0.4445.XegREOVx Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-0.4572.XXACDekx Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-0.4692.XJoTNZBx coverage: commands[1]> coverage report Name Stmts Miss Cover ---------------------------------------------------------------------------- src/crosslab/soa_client/__init__.py 0 0 100% src/crosslab/soa_client/connection.py 58 12 79% src/crosslab/soa_client/connection_webrtc.py 203 18 91% src/crosslab/soa_client/connection_websocket.py 91 67 26% src/crosslab/soa_client/device_handler.py 152 69 55% src/crosslab/soa_client/logging.py 45 24 47% src/crosslab/soa_client/media/__init__.py 0 0 100% src/crosslab/soa_client/media/gst_track.py 7 7 0% src/crosslab/soa_client/media/udp_track.py 15 15 0% src/crosslab/soa_client/message_handling.py 0 0 100% src/crosslab/soa_client/messages.py 48 0 100% src/crosslab/soa_client/service.py 17 3 82% src/crosslab/soa_client/test_helper/__init__.py 2 0 100% src/crosslab/soa_client/test_helper/connection_stub.py 28 20 29% src/crosslab/soa_client/test_helper/dummy_track.py 23 1 96% src/crosslab/soa_client/test_helper/service_stub.py 91 0 100% ---------------------------------------------------------------------------- TOTAL 780 236 70% coverage: commands[2]> coverage xml Wrote XML report to coverage.xml py38: FAIL code 1 (51.18=setup[21.26]+cmd[29.92] seconds) py39: FAIL code 1 (48.19=setup[17.52]+cmd[30.67] seconds) py310: FAIL code 1 (49.83=setup[18.56]+cmd[31.27] seconds) coverage: OK (2.67=setup[2.19]+cmd[0.11,0.17,0.20] seconds) evaluation failed :( (151.94 seconds)