Repository navigation
首次绑定执行机器时复用已探测的 CLI 版本 - #21
Open
Robert0622 wants to merge 1 commit into
Open
Robert0622 wants to merge 1 commit into
Robert0622 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #20
修复
首次绑定时,runner 已经在注册请求中上报本机 CLI 的版本。现在注册成功即可用这份清单建立控制连接。使用已保存身份重启时会重新发现 CLI,首次探测没有得到清单时也会重试。绑定、心跳以及定期重新探测沿用原有流程。
部署实测
两套 runner 先后连接同一套本机发布版平台和 MySQL,均使用一次性绑定码。测试 CLI 仅实现版本查询,每次固定等待 2.5 秒。测量点是平台接受注册时的 HTTP 200 和建立真实 WebSocket 时的 HTTP 101。
这是同一测试环境中的一组对照。新增回归在真实 HTTP 和 WebSocket 上验证探测次数、上报版本和机器身份,避免对机器快慢设定门槛。它在基线上捕获到两次探测,修复后通过。发现问题时超时的 SOP 脚本顺序用例也已在修复版复跑通过。
重启后,设置中的执行机器页面显示修复版测试机在线,并识别到新版本的 CLI。
联合复核
全量首轮 29 个含测试的 Go 包通过 27 个,引擎和执行机器出现超时。引擎整包独立复跑通过,两项接管或重试用例分别连续通过三次。执行机器整包在带源码和浏览器的宿主机单独运行通过。官方 Linux amd64 临时容器使用空的全局 npm 工具目录,按发布布局放置 runner 测试程序及 gate MCP,执行机器整包通过。镜像内缺少 Chromium,对应浏览器用例单独在宿主机核验。合计 29 个包分批通过。安装与升级脚本的 49 项回归全部通过。
在一次额外的引擎串行运行中,临时目录清理也出现过一次竞争,后续的引擎整包和该用例单独三次均通过。容器第一次把测试程序放在系统根目录时,有两个流程找不到随 runner 分发的 gate MCP 辅助程序。在发布目录中,两个流程及整包均通过。两个 PR 配合此前八个产品 PR 无冲突组合。三张截图已从 GitHub 下载,并与本次提交中的 PNG 逐字节核对。与聊天改动的联合验证见 PR #19。
2026-11-20 21:53(北京时间)核对时,GitHub 对此提交返回 0 个检查,分支没有 Actions 运行记录。