Repository navigation
test(installer): 长期保留 PowerShell 5.1 真实网络生命周期验收 - #1771
Draft
luokerenx4 wants to merge 4 commits into
Draft
luokerenx4 wants to merge 4 commits into
luokerenx4 wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…dater environment
This branch was successfully deployed
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.
问题与结果
现有 Windows 安装器验收通过
-Archive/-Sha256注入本地归档,绕过真实 checksum sidecar;合成旧版本也不能证明已发布 CLI 的在线升级。#1538 的 byte[]→UTF8 修复已合并,本 PR 补齐长期验收,不改生产安装器、不发布新版本。Windows x64 / 系统 PowerShell 5.1.26100.33438(Desktop)已实际通过完整网络生命周期。 当前源码安装器和公开发布安装器各跑一次;验收提交均为
3fb5a1fc96ce5821a5c87e80f51db45b28e6ab82。最小实现
windows-cli-preview-smoke.ts的--published模式,复用启动、更新状态、回滚和卸载断言;保留原本地候选模式并明确 synthetic 覆盖边界。%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile,断言 Desktop/5.1;真实请求 GitHub sidecar,要求System.Byte[] → System.String,随后让普通安装器自行下载、校验与解包,不传预下载 archive/hash。openalice update --channel beta --yes。验证运行中的旧 Runtime、待激活状态、双向回滚、新 Runtime 就绪及延迟卸载。contents: read,不使用发布凭证;临时安装/home/profile,loopback、lite 模式、-NoModifyPath。成功与失败均保留记录;停止失败时保留测试目录,不盲删运行中内容。PATHEXT,并断言同环境下tar.exe输出与退出码。PowerShell 5.1 文档说明其可执行文件识别语义。Windows 实测证据
两份记录均为
status: pass、cleanupComplete: true,卸载回执status: removed / dataPreserved: true。已验证:真实 sidecar 解码、SHA256、fresh install、版本、独立 Guardian/Alice、真实 Web UI、停止、运行中真实升级、双向回滚、升级后就绪、延迟卸载。Windows NT 10.0.26100.0,PowerShell5.1.26100.33438,x64,系统powershell.exe。0.94.1(0d4faa90c67d6c24685c7b40679bea5a5742a215)→0.95.0-beta(87bc415260aaac92a072d89a1c6440268a3efdf1);beta content identity01e5e10a9d3810d2。application/octet-stream,摘要af9e57aa2301ce7d4a5064a85b37d918b391e4039b4e599ccdd2b170263a272d。969cf6fc77b4383d5aa2ce06897e332f0d33af95e8c6f283ca3efaca6b4e41db;Windows checkout 执行字节 SHA256:1f0cbab7d1ca6b3e81cd14246981f788203b1d743b55568e0338cdbaaa0d0c17(Git checkout 的 CRLF,与同源 LF 字节差异已复核)。运行命令:
初期运行失败有明确记录:原本地测试 120 秒时限终止了公网更新;随后发现隔离环境遗漏
PATHEXT,导致 PowerShell 不能正常取得 tar 的$LASTEXITCODE。修正测试环境、增加原生命令前置断言后,两种完整公网模式通过,未跳过或吞掉失败。其他验证与限制
关联 #1539、#1538。