ElementsProject / ElementsProject/lightning
CI flake `test_websocket` on macos
- Dominant language
- C
- Stars
- 3.1k
- Forks
- 1k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 13
Description
this test is still flaky after https://github.com/ElementsProject/lightning/pull/9148:
```
node_factory =
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 = , 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.