Repository navigation
feat(build): 用声明命令发现测试 - #2192
Merged
Mucheen merged 18 commits intoNov 19, 2026
Merged
Conversation
This was referenced Nov 19, 2026
Mucheen
marked this pull request as ready for review
November 19, 2026 09:28
1 task done
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.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
构建插件可让现有工具列出真实测试,并在 Build 面板逐个运行发现的测试用例。只提供一次性发现命令的插件也可使用同一棵树。
改动 / Changes
buildSystems:1,从 Core 校验后的清单区分发现来源。已有 provider 路径继续使用。不在本 PR 范围内 / Out of scope
Python 插件与兼容桌面联合验收由 #2122 跟踪。升级主线后的 Core 固定为
98e6940,已包含 Core #111 的工具链查询和 #112 的命令式测试发现。类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
build-command-test-discovery.json,macOS 已验证,Windows 待原生验收。矩阵及变更门禁通过,生成物未提交。插件归属 / Plugin ownership
UI 验证 / UI evidence
TestVisualBuildCommandDiscovery并检查四张 2880×1800 PNG,覆盖中文、英文和明暗主题。新流程复用既有测试树与操作。统一日志系统 / Structured logging
lithe/build/discoverTests及 Core 的目录事件,失败载荷不包含报告、命令输出或源码,取消无失败终态。界面文案 / i18n
逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
N/A。未改设置。
插件契约 / Plugin contract
发行包与资源 / Bundle and resources
docs/ci-builds.md,运行包只读静态门禁通过。无用代码与重构 / Dead code and refactoring
验证 / Verification
Ubuntu 26.04 在同样的 4 个并行进程、各 72 轮用例下,修复前复现 6 次后台任务存活,修复后全部通过。macOS 的挂断竞态回归复跑 3 轮通过,工作区信任专项通过。Linux 修复前 · Linux 修复后 · 最新三平台 CI
macOS 本机的终端整包、挂断顺序和工作台发现回归通过。挂断用例在修复前提前关闭 PTY;同步主线后,发现测试在补齐信任字段前被 Core 拒绝,补齐后验证了可信工作区和安全模式。已重新采集四张命令发现截图。上一轮三平台 CI
复审新增
TestPluginTeardownWaitsForDiscoveryAfterProjectCloses。修复前停止回调提前返回成功,修复后等到报告目录清理才结束。原 pin 下的 15 项 macOS 计时和专项竞态通过。同步桌面主线8e26d133b后,Corece628c7的命令发现、卸载回归和四张无头截图通过。旧基线的本机全量遇到既有终端关闭和运行时探针超时后停止,终端关闭两项已在最终 pin 隔离复跑通过。当前提交的三平台 CI 与截图产物复审回归先复现了插件停止后报告目录残留,修复后 14 项逐项计时及专项竞态通过。首轮修复提交的 macOS ARM64 全量通过。正式 Core pin
44d62e4的专项竞态通过。macOS 最新全量曾触发既有受管运行时探针超时,原用例隔离复跑两次通过。Linux 最新一轮只有主线同样出现的 终端挂断用例 #2054 失败,同一提交重跑仍在这一用例失败,两轮工作台测试和无头截图均通过。 首轮 · 重跑desktop-go.sh test -tags 'vivahead lithevisual' ./internal/workbench -run '^TestVisualBuildCommandDiscovery$'Linux 草稿 CI 的格式、pin、全量测试、无头渲染和汇总门禁通过。首轮本机全量的能力断言已在 5d27e46 同步。两个旧 WSL 登录脚本用例在并行全量期间超时,按包串行定向复跑通过。此次命令式发现专项竞态通过。本机未发现 Windows 虚拟机,Windows 原生窗口未验证。
提交前确认 / Final checks