Repository navigation
fix(gradle): 清理测试驱动的 Maven 启动兼容路径 - #19
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 23, 2026 13:08
…880-gradle-test-client
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
Gradle 测试驱动沿用了 Maven 的
state/--state默认参数和过时文件头。当前主 driver 的三个构造位置全部传入空args,这些兼容路径没有消费者。重新核对最新主分支后,发现
scripts/test.mjs的当前文件 RunProvider 已真实使用litheBuild1。因此保留显式buildVersion输入,删除未使用的默认 build 0 握手和functions选择开关。改动 / Changes
scripts/backend-client.mjs直接以java [javaOptions] -jar jar启动后端,删除state、--state和无消费者的args参数。litheFunctions0;scripts/test-backend.mjs两处构造与初始化采用此默认值。scripts/test.mjs删除空启动参数,继续显式协商litheBuild1,保留当前文件构建与运行覆盖。不在本 PR 范围内 / Out of scope
生产协议、产品行为和工作流不变;
scripts/compiler/backend-client.mjs是独立的既有驱动,不在本次修改的导入链内。类型专属:fix
复现与根因
无用户可观察缺陷。本次是关联
refactorIssue 的无行为变化清理:共享驱动保留了从 Maven 复制来的默认启动方式,实际调用方一直用空参数覆盖。范围检查 / Scope checks
验证 / Verification
node --checknode scripts/sdk/verify-sdk.mjsnode scripts/package.mjsLITHE_TEST_JAVA指定 Temurin Java 8u514,运行原始与修改后的node scripts/test-backend.mjsnode scripts/test.mjsgit diff --check完整 Gradle 首轮因 JVM 没有使用环境代理而无法下载 JUnit;采用已有代理和系统 Java truststore 后完整重跑通过,没有修改仓库的网络配置、依赖或测试逻辑。
未执行: 原生 Windows 的
taskkill.exe路径。现有仓库 CI 也只覆盖 Linux x64/ARM64,因此没有把 Linux 进程组测试或后续 CI 当作 Windows 验证。提交前确认 / Final checks
main的e812616417ed15be27ca3aa67a143b0ee1cbfeba,目标main。