Skip to content

CI flake test_websocket on macos #9323

Description

@daywalker90

this test is still flaky after #9148:

node_factory = <pyln.testing.utils.NodeFactory object at 0x104d55000>

    def test_websocket(node_factory):
        ws_port = node_factory.get_unused_port()
        port = node_factory.get_unused_port()
>       l1, l2 = node_factory.line_graph(2,
                                         opts=[{'addr': ':' + str(port),
                                                'bind-addr': 'ws:127.0.0.1: ' + str(ws_port),
                                                'dev-allow-localhost': None},
                                               {'dev-allow-localhost': None}],
                                         wait_for_announce=True)

tests/test_connection.py:3924: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
contrib/pyln-testing/pyln/testing/utils.py:1971: in line_graph
    self.join_nodes(nodes, fundchannel, fundamount, wait_for_announce, announce_channels)
contrib/pyln-testing/pyln/testing/utils.py:1935: in join_nodes
    txids.append(src.rpc.fundchannel(dst.info['id'], fundamount, announce=announce_channels)['txid'])
contrib/pyln-client/pyln/client/lightning.py:807: in fundchannel
    return self.call("fundchannel", payload)
contrib/pyln-testing/pyln/testing/utils.py:922: in call
    res = LightningRpc.call(self, method, payload, cmdprefix, filter)
contrib/pyln-client/pyln/client/lightning.py:404: in call
    resp, buf = self._readobj(sock, buf)
contrib/pyln-client/pyln/client/lightning.py:321: in _readobj
    b = sock.recv(max(1024, len(buff)))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pyln.client.lightning.UnixSocket object at 0x103962b60>, length = 1024

    def recv(self, length: int) -> bytes:
        if self.sock is None:
            raise socket.error("not connected")
    
>       return self.sock.recv(length)
E       Failed: Timeout (>1800.0s) from pytest-timeout.

contrib/pyln-client/pyln/client/lightning.py:290: Failed

interesting log entries:

connectd: Created listener on [::]:49311
connectd: Failed to connect 30 socket: No route to host
connectd: Created listener on 0.0.0.0:49311

full run example:
https://github.com/ElementsProject/lightning/actions/runs/29491200333/job/87597479663?pr=9188

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions