Repository navigation
test(core): 用合成构建插件覆盖替换 Maven/Gradle 快照(#2174) - #180
Merged
Merged
Conversation
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.
Closes 1lck/Lithe-IDEA#2174
类型 / Type
改动说明 / What changes
背景 / Why
Core 的
published_build_plugins模块把 Maven 和 Gradle 的真实清单与采集输出编译进测试,并要求插件更新时复制回 Core。插件的真实行为因此有两份输入和断言需要同步。改动 / Changes
dev.lithe.test.build-bridge和独立构造的模型、依赖文档替换真实插件数据。Core 仍运行安装审核、探测、选项展开、模型解码、任务和测试计划、依赖拓扑、诊断解码的实际命令。published_build_plugins.rs及 Maven/Gradle 共 8 份清单、模型和依赖捕获文件;模块入口改为synthetic_build_plugins。serde_json序列化原生路径,不在 JSON 字符串里做文本替换。不在本 PR 范围内 / Out of scope
Maven/Gradle 插件实现和它们的真实工具端到端流程没有改动;插件专属知识继续在各自仓库验证。Core 的生产实现、公共接口、SDK 和桌面 Core pin 没有变化。
复现与根因
include_str!导入两份真实清单及六份真实输出。删除外部插件快照会直接影响 Core 测试构建。fa334464中的代码证据。本次浅历史未定位到最初引入提交,不将浅克隆边界误写为根因提交。覆盖对照
真实输出断言已对照各插件当前源码:
范围检查 / Scope checks
验证 / Verification
tests::published_build_plugins::tests::synthetic_build_plugins::逐项计时env -u GIT_EDITOR cargo test --locked --manifest-path rust/Cargo.toml -p lithe-core9c8e89a后)synthetic_build_plugins11/11)+ 35 集成 = 947 项通过,0 failed / ignoredcargo clippy --locked --manifest-path rust/Cargo.toml -p lithe-core --all-targets --all-features -- -D warningsLIBSQLITE3_SYS_USE_PKG_CONFIG=1 cargo clippy --locked --manifest-path rust/Cargo.toml -p lithe-core --all-targets --target x86_64-pc-windows-msvc -- -D warnings./scripts/rust-core/verify-rust-core-comments.sh corecargo fmt --manifest-path rust/Cargo.toml --all -- --checknode scripts/rust-core/verify-platform-tests.mjs --listnode --test scripts/rust-core/*.test.mjsnode scripts/logging/generate-log-events.mjs --checknode shared/plugins/scripts/verify-docs.mjs./.agents/skills/write-stable-tests/scripts/verify-test-stability.sh --base origin/main未能执行的检查和原因: 本机未运行 Windows 原生测试(仅有
x86_64-pc-windows-msvcclippy 静态检查);测试只使用跨平台文件与 JSON API。插件仓库真实工具 E2E 本次未重新运行,已核对现有覆盖归属。提交前确认 / Final checks
4880022;分支已合入最新origin/main(9c8e89a, HEADa9a2048),全部最终回归与检查均在该提交上通过。