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 不再保存插件的测试,这里接收 TestDebugRealLLDBLaunchTargetAndBreakpoints:scripts/e2e-host.mjs 把 e2e/host/lithe-host.json 固定的宿主版本检出到 .artifacts/lithe-host 后运行,默认使用本仓库的 plugin.json。
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 删掉了 LLDB 插件的宿主端到端测试。这个 PR 把它接到插件仓库:
e2e/host/desktop/internal/workbench/debug_native_e2e_test.goplugin.json,装进临时插件目录,用clang -g编译一个 C 程序,经真实lldb-dap和 Core 调试引擎启动、命中断点、读取输出。scripts/e2e-host.mjs和宿主版本固定文件e2e/host/lithe-host.jsondesktop/internal/workbench包里编译。059d878d4)稀疏检出到.artifacts/lithe-host(只取desktop/和scripts/),复制测试,再运行宿主的scripts/desktop/desktop-go.sh test。LITHE_TEST_DEBUG_PLUGIN_MANIFEST默认指向本仓库的io.github.lithe-idea.lldb-debug/plugin.json,所以测的是当前分支的清单。scripts/e2e-host.mjs和e2e/host/;.gitignore忽略.artifacts/。主仓库的功能矩阵里没有 LLDB 插件的条目,所以这个 PR 不新增功能矩阵。没有改 CI:测试要
clang、lldb-dap和 Rust 工具链,和在主仓库时一样手动运行。验证
2026-11-14,macOS arm64:
.artifacts/lithe-host开始(检出宿主、构建 Core):TestDebugRealLLDBLaunchTargetAndBreakpointsPASS(0.93s),程序输出debug-result=42并以 0 退出。gofmt -l e2e/无输出;node scripts/package.mjs正常,包里不含e2e/。评审注意
lithe-host.json的revision时,宿主测试工具的改动可能要求同步修改测试。scripts/e2e-host.mjs与 test: 宿主端到端测试和功能矩阵移到插件仓库 lithe-plugin-go#5 里的是同一份。