Repository navigation
feat(build): 支持命令式测试发现 - #112
Merged
Merged
Conversation
This was referenced Nov 19, 2026
Mucheen
marked this pull request as ready for review
November 19, 2026 08:19
5 tasks done
xiaoyumuxi
added a commit
that referenced
this pull request
Nov 20, 2026
* fix(toolchain): 外部安装的多入口链接保留布局里的文件名 rustup 把 ~/.cargo/bin/cargo、rust-analyzer 链接到自身,按启动时的名字决定运行哪个工具。 Core 校验外部安装后返回规范路径,把 cargo 解析成 rustup,版本探针运行的是 rustup, cargo 因此永远找不到。 布局文件链接到另一个文件名时,返回规范主目录下的布局路径;链接目标的类型、可执行位和 不越出主目录、不进入工作区的检查不变。同名链接(版本管理器别名等)仍返回规范路径。 顺带把已合入的 #112、#127、#128、#130、#133 从协议更新记录的“待合入”移到时间线。 * docs(plugins): 协议更新记录登记 #135
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
构建插件可以用现有构建工具运行一次发现命令,将真实测试列表交给 Lithe 的测试树。选中单个用例后,现有测试执行入口按原始选择器重跑。
改动 / Changes
buildSystems: 1增加test.discoveryCommand。清单要求声明项目代码和网络影响、在命令参数传入${outputFile},并配置 suite 与 case 过滤;安装审查纳入这条命令及其影响。build.testDiscoveryPlan复用构建命令的工作目录、全局 argv、实际选项和环境。命令将litheTestDiscoveryv0 写入宿主提供的绝对路径。build.decodeTestDiscovery读取宿主提供的结果文件或现有 provider 的内联结果。每个选择器经过实际测试计划验证,保留项目和目标归属,确定性去重。原test.discovery: true和lithe/build/discoverTests继续可用。diagnostics.recordPluginOperation接受命令式发现的lithe/build/discoverTests终态,复用目录事件、阶段映射和操作 ID。不在本 PR 范围内 / Out of scope
桌面进程接线、取消与界面验收见 桌面 #2192。实际 Python 插件的端到端验收在插件仓库维护。
类型专属:feat
范围检查 / Scope checks
plugins.operation.finished和plugins.operation.failed。Core 根据已有plan、resolve、launch、timeout、exit、decode阶段映射失败类别。取消无终态,日志输入只接受验证过的身份、阶段和耗时。provider 请求沿用 SDK 日志。buildSystems: 1。原版本 0 清单与 provider RPC 继续沿用,插件 API 和文档版本仍为 0。更新记录在protocol-changelog.md的待合入小节。桌面正式 pin 在本 PR 合入后更新。build.testDiscoveryPlanbuild.decodeTestDiscoverydiagnostics.recordPluginOperation验证 / Verification
cargo test -p lithe-core --lib test_discoveryrun-rust-tests-with-timing.mjs --package lithe-core --test-prefix tests::build_systems::cargo test -p lithe-diagnostics --lib diagnostics_host_plugin_operationsgit diff --check整库 fmt 有三处主线格式差异,已由 Core #110 单独修复并等待合入。完整 Core 库单测 852/852。工作区并行复跑曾有既有平台进程和项目索引用例超时,低负载按组复跑分别 10/10 和 30/30。
lithe-core、lithe-build的 macOS 和 Windows x64 交叉 Clippy 通过。原生 Windows 界面与安装验收随配套桌面工作执行。提交前确认 / Final checks
0b6da27创建,合成 fixture 随契约入库审查修复
6d7a59a让共享报告读取最多消耗 32 MiB 加一个检测字节。报告在大小检查后增长时,解码仍以plugin.build.invalidOutput拒绝超限文件。模型、测试报告和同步指纹继续共用同一上限。buildSystems1 首次出现索引,日期待本 PR 合入确认。Text file busy,新提交已触发验证。