Skip to content

[v2] 升级 Node 生命周期版本并保留 MCP 执行门禁 - #392

Open
ondesavoir wants to merge 5 commits into
ora-space:mainfrom
ondesavoir:chore/1232-node-lifecycle-pin
Open

ondesavoir wants to merge 5 commits into
ora-space:mainfrom
ondesavoir:chore/1232-node-lifecycle-pin

Conversation

@ondesavoir

@ondesavoir ondesavoir commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

将 v2 固定 Node 升到 a7ffd3da4326f7c5a30bec32d1d0289848f1e8ec(desktop#778)。该修复同时推进插件关闭等待和原进程线索停止确认,避免 Node 被外部 supervisor 终止后留下插件进程。

真实握手要求 session_mcp_lifecycle;Controller 的非空 MCP 门禁保持不变。同步 README 与门禁测试注释中的能力说明,并把角色创建 E2E 定位器限定到页面标题区,避免空列表的同名按钮竞态。

验证:

  • 正式 prepare-node.sh release 资产的 rebuild 连续 5 次通过。
  • 独立 PostgreSQL 库运行完整 go test -race -count=1 ./...、go build、go vet 通过,使用真实 Node 资产验证能力握手与 MCP 门禁。
  • 前端完整 check(961 tests)、build、API 无漂移通过。
  • 最终提交的 frontend / server / e2e CI 全部通过:https://github.com/ora-space/cloud/actions/runs/44088607791 。
  • 本地完整真实 Node Playwright 首轮 83 passed / 1 skipped / 9 failed;失败集中于公开仓库克隆超时及市场/插件包下载前置。补齐真实市场 Git 缓存后已有 4 项转为通过。外部包前置失败的用例不计作门禁通过,完整补跑明细见关联运行。

依赖 desktop#778 合并后再合并本 PR。v2,不涉及 specs;不接入 Controller/v2 生命周期协议。

Refs ora-space/circus#1232

@zhangxinhao zhangxinhao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 轮(全量)

Comment thread v2-server/scripts/prepare-node.sh Outdated

# Preparation is deliberately outside the demo hot path and never changes the source checkout.
source_commit=c5265072ace476b6cdd88fc69fb58ffafec20066
source_commit=28da0a4e77ec2257468b15bffd99e166a186b31c

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit-1(可选) v2-server/internal/agentruntime/README.md:64 仍写着当前固定 Node 是 c5265072、没有 session_mcp_lifecycle,升级后这段说明就不准确了。建议同步说明固定 Node 已支持该能力,但 Controller 尚未接入生命周期协议,因此非空 MCP 仍被 mcp_lifecycle_not_ready 拒绝。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已处理,谢谢。

@EricWvi EricWvi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

owner 门槛:新的锁定版本 28da0a4e 下 TestRealRebuildRetiresUnacknowledgedNodeBeforeNextSession 稳定失败(旧版本通过),先在 desktop 修复,见 ora-space/circus#1233、#1232。

@zhangxinhao zhangxinhao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 zhangxinhao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM(0ad1bae)

@ondesavoir 我看了这个 PR,理解它是要升级 v2 固定 Node 至停止回归修复版本,保留非空 MCP 执行门禁;本轮同步 E2E 注释,说明 Node 已支持生命周期能力、Controller 仍未接入。这是第 3 轮,我看了 89c9687 之后的改动。本轮增量仅修改 MCP 门禁测试注释,与当前实现和测试断言一致,未发现新问题。可以按 PR 声明,在 desktop#778 合并后合并;本次未独立复验真实 Node 停止回归。

  • 测试:没有跑测试;没跑全量和 e2e。

以上都是建议,怎么处理由你决定。

自动检视 · 基于 0ad1bae · 第 3 轮(增量)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants