Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CI flake `test_websocket` on macos

未关闭
#9,323 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@nGoline 已经在做这个了。

开始于 2026年7月17日。

评估

这个 Issue 还没有评估数据。

描述

this test is still flaky after https://github.com/ElementsProject/lightning/pull/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

主要语言
C
星标
3.1k
派生
1k
平均合并
3 天 10 小时
30 天内合并 PR
40

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ElementsProject/lightning 的其他 Issue

查看 ElementsProject/lightning 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。