Repository navigation
test: 宿主端到端测试和功能矩阵移到插件仓库 - #5
Draft
xiaoyumuxi wants to merge 1 commit into
Draft
xiaoyumuxi wants to merge 1 commit into
xiaoyumuxi wants to merge 1 commit into
Conversation
主仓库按 1lck/Lithe-IDEA#1915 不再保存插件的测试和功能矩阵条目,这里接收 Go Support 的部分: - e2e/host/ 放 TestOfficialGoPluginBuildsAndServesAModule 和它用到的辅助函数, scripts/e2e-host.mjs 把 lithe-host.json 固定的宿主版本检出到 .artifacts/lithe-host 后运行 - docs/feature-matrix.md 迁移 go-support-plugin 条目,按当前插件重写 - README 说明运行方式,.gitignore 忽略 .artifacts/
This was referenced Nov 14, 2026
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.
关联:1lck/Lithe-IDEA#1915(插件的测试、功能矩阵和翻译只在插件仓库,宿主零依赖)
改动
主仓库在 #1915 删掉了 Go Support 的宿主端到端测试和功能矩阵条目。这个 PR 把它们接到插件仓库:
e2e/host/desktop/internal/workbench/official_go_plugin_e2e_test.godesktop/internal/workbench/official_plugins_e2e_test.go(1lck/Lithe-IDEA@b582e206a)里的TestOfficialGoPluginBuildsAndServesAModule,以及它用到的辅助函数(安装插件包、安装目录摘要、等构建模型、跑任务和运行入口、改插件设置)。writeFixture改为writePluginFixture,因为宿主同一个包里现在有同名函数。测试逻辑没有改。scripts/e2e-host.mjs和宿主版本固定文件e2e/host/lithe-host.jsondesktop/internal/workbench包里编译。lithe-host.json固定的宿主 commit(059d878d4)稀疏检出到.artifacts/lithe-host(只取desktop/和scripts/),复制
e2e/host/desktop/下的测试到同一路径,再运行宿主的scripts/desktop/desktop-go.sh test,后者会构建宿主固定的 Rust Core。requiredEnvironment里的变量没设置时直接报错,不让测试因缺少插件包而跳过、看起来像通过。--ref换宿主版本试跑(比如未合入的宿主分支),--run只跑部分测试。docs/feature-matrix.mdshared/platform-feature-matrix/features/go-support-plugin.json,状态取值沿用主仓库。059d878d4重写。.gitignore忽略.artifacts/。没有改 CI:这个测试要
go、gopls和 Rust 工具链,和在主仓库时一样手动运行。验证
2026-11-14,macOS arm64,插件 v0.0.1 发布包:
.artifacts/lithe-host,从检出宿主、构建 Core 开始):TestOfficialGoPluginBuildsAndServesAModulePASS(5.15s),gopls 诊断undefined: missingCall。gofmt -l e2e/无输出;node scripts/package.mjs正常,包里不含e2e/。评审注意
lithe-host.json的revision时,宿主测试工具(newHarness、awaitStateWithin等)的改动可能要求同步修改测试。scripts/e2e-host.mjs会放进 Java、Maven、Cargo、LLDB 插件仓库,各自的 PR 只改e2e/host/里的内容。