Repository navigation
[v2] 升级 Node 生命周期版本并保留 MCP 执行门禁 - #392
ondesavoir wants to merge 5 commits into
Conversation
zhangxinhao
left a comment
There was a problem hiding this comment.
LGTM(412b5c6)
@ondesavoir 我看了这个 PR,理解它是要将 v2 固定的 Node 升级到已合并的 MCP 生命周期实现,并让真实 Agent 握手测试要求新能力,同时保留 Controller 对非空 MCP 的执行门禁。可以合并,未发现阻塞问题。版本升级与现有门禁兼容,建议顺手更新一处已经过时的能力说明。
- 💬 其他建议:nit-1 同步固定 Node 的能力说明
- 测试:
bash -n v2-server/scripts/prepare-node.sh通过;cd v2-server && go test -race -count=1 -run 'TestAgentPackagesMatchPreparationScript|TestMCPRejectsBeforeStartUntilBothPeersSupportLifecycle|TestEmptyMCPDoesNotRequireLifecycleCapability|TestMCPLifecycleGateFailuresAreExplicitAndNotRetryable' -v ./internal/nodeservices ./internal/agentruntime ./internal/workflowhost通过;cd v2-server && go test -race -count=1 -run TestRuntimeMCPGatePreservesIdlePredecessorAndCreatesNoRecords -v ./internal/executionruntime没跑(测试因未设置 TEST_DATABASE_URL 跳过,不计通过。);没跑全量和 e2e。
涉及对外 API/协议,建议 owner 再看一眼。
以上都是建议,怎么处理由你决定。
自动检视 · 基于 412b5c6 · 第 1 轮(全量)
|
|
||
| # Preparation is deliberately outside the demo hot path and never changes the source checkout. | ||
| source_commit=c5265072ace476b6cdd88fc69fb58ffafec20066 | ||
| source_commit=28da0a4e77ec2257468b15bffd99e166a186b31c |
There was a problem hiding this comment.
nit-1(可选) v2-server/internal/agentruntime/README.md:64 仍写着当前固定 Node 是 c5265072、没有 session_mcp_lifecycle,升级后这段说明就不准确了。建议同步说明固定 Node 已支持该能力,但 Controller 尚未接入生命周期协议,因此非空 MCP 仍被 mcp_lifecycle_not_ready 拒绝。
EricWvi
left a comment
There was a problem hiding this comment.
owner 门槛:新的锁定版本 28da0a4e 下 TestRealRebuildRetiresUnacknowledgedNodeBeforeNextSession 稳定失败(旧版本通过),先在 desktop 修复,见 ora-space/circus#1233、#1232。
zhangxinhao
left a comment
There was a problem hiding this comment.
LGTM(89c9687)
@ondesavoir 我看了这个 PR,理解它是要将 v2 固定 Node 升级到进程停止修复版本,保留非空 MCP 执行门禁,并同步能力说明、修正角色创建测试定位器。这是第 2 轮,我看了 412b5c6 之后的改动。本轮增量未发现新问题,上轮能力说明意见已处理。可按 PR 声明在 desktop#778 合并后合并;本次未独立复验真实 Node 的停止回归。
- ✅ 上轮的 nit-1 已处理,谢谢。
- 测试:
bash -n v2-server/scripts/prepare-node.sh通过;cd v2-server && go test -race -count=1 -timeout=5m -run 'TestAgentPackagesMatchPreparationScript|TestMCPRejectsBeforeStartUntilBothPeersSupportLifecycle|TestEmptyMCPDoesNotRequireLifecycleCapability|TestMCPLifecycleGateFailuresAreExplicitAndNotRetryable' -v ./internal/nodeservices ./internal/agentruntime ./internal/workflowhost通过;cd v2-server && go test -race -count=5 -run '^TestRealRebuildRetiresUnacknowledgedNodeBeforeNextSession$' ./internal/agentruntime没跑(未配置真实 Node 资产,且本地 desktop 参考仓库不含新锁定 commit,无法独立复验。);没跑全量和 e2e。
涉及对外 API/协议、并发核心,建议 owner 再看一眼。
以上都是建议,怎么处理由你决定。
自动检视 · 基于 89c9687 · 第 2 轮(增量)
zhangxinhao
left a comment
There was a problem hiding this comment.
LGTM(0ad1bae)
@ondesavoir 我看了这个 PR,理解它是要升级 v2 固定 Node 至停止回归修复版本,保留非空 MCP 执行门禁;本轮同步 E2E 注释,说明 Node 已支持生命周期能力、Controller 仍未接入。这是第 3 轮,我看了 89c9687 之后的改动。本轮增量仅修改 MCP 门禁测试注释,与当前实现和测试断言一致,未发现新问题。可以按 PR 声明,在 desktop#778 合并后合并;本次未独立复验真实 Node 停止回归。
- 测试:没有跑测试;没跑全量和 e2e。
以上都是建议,怎么处理由你决定。
自动检视 · 基于 0ad1bae · 第 3 轮(增量)
将 v2 固定 Node 升到
a7ffd3da4326f7c5a30bec32d1d0289848f1e8ec(desktop#778)。该修复同时推进插件关闭等待和原进程线索停止确认,避免 Node 被外部 supervisor 终止后留下插件进程。真实握手要求
session_mcp_lifecycle;Controller 的非空 MCP 门禁保持不变。同步 README 与门禁测试注释中的能力说明,并把角色创建 E2E 定位器限定到页面标题区,避免空列表的同名按钮竞态。验证:
依赖 desktop#778 合并后再合并本 PR。v2,不涉及 specs;不接入 Controller/v2 生命周期协议。
Refs ora-space/circus#1232