背景
Close integration test coverage for the two-process (Client → Upgrade) update flow against GeneralSpacestation. The test harness exercises both chain package updates and cross-version package updates through the same mode-agnostic client entry point.
改动内容
ClientTest (tests/ClientTest/Program.cs)
- 去掉 OSS 模式和 silent 模式的注释代码,精简为单一的
RunUpdateTestAsync() 入口
- 不再需要
--chain / --cross-version 参数 —— GeneralUpdate.Core.DownloadPlanBuilder 根据服务端返回的 IsCrossVersion + FromVersion 自动决策
- 改进
OnUpdateInfo 日志输出,显示每个包的 [CVP] / [Chain] 标记、AppType、FromVersion
UpgradeTest (tests/UpgradeTest/Program.cs)
ClientTest.csproj
- 修复 MSBuild
CopyUpgradeTest target:之前 Exclude="*.json" 导致 UpgradeTest.runtimeconfig.json 没有被复制到 ClientTest 输出目录,启动 Update.exe 时报错 hostpolicy.dll not found
测试验证
链式更新(CrossVersionUpgrade.IsEnabled=false)
服务端返回链式包 → DownloadPlanBuilder 选择全部链式包 → Client 进程应用 Upgrade 包 → IPC → Upgrade 进程应用 Client 包 → manifest 版本更新
跨版本更新(CrossVersionUpgrade.IsEnabled=true)
服务端返回 CVP + 链式包 → DownloadPlanBuilder 优先选择 CVP(当 FromVersion 匹配本地版本)→ 一跳到位
背景
Close integration test coverage for the two-process (Client → Upgrade) update flow against GeneralSpacestation. The test harness exercises both chain package updates and cross-version package updates through the same mode-agnostic client entry point.
改动内容
ClientTest (
tests/ClientTest/Program.cs)RunUpdateTestAsync()入口--chain/--cross-version参数 ——GeneralUpdate.Core.DownloadPlanBuilder根据服务端返回的IsCrossVersion+FromVersion自动决策OnUpdateInfo日志输出,显示每个包的[CVP]/[Chain]标记、AppType、FromVersionUpgradeTest (
tests/UpgradeTest/Program.cs)ClientTest.csproj
CopyUpgradeTesttarget:之前Exclude="*.json"导致UpgradeTest.runtimeconfig.json没有被复制到 ClientTest 输出目录,启动Update.exe时报错hostpolicy.dll not found测试验证
链式更新(CrossVersionUpgrade.IsEnabled=false)
服务端返回链式包 → DownloadPlanBuilder 选择全部链式包 → Client 进程应用 Upgrade 包 → IPC → Upgrade 进程应用 Client 包 → manifest 版本更新
跨版本更新(CrossVersionUpgrade.IsEnabled=true)
服务端返回 CVP + 链式包 → DownloadPlanBuilder 优先选择 CVP(当 FromVersion 匹配本地版本)→ 一跳到位