Repository navigation
fix(updater): 有限重试 Windows 启动健康标记替换 - #249
Merged
freedomkk-qfeng merged 9 commits intoOct 31, 2026
Merged
Conversation
This was referenced Oct 27, 2026
JJasonSun
marked this pull request as ready for review
October 27, 2026 11:20
Contributor
Author
wf0229
added a commit
to wf0229/EduWork
that referenced
this pull request
Oct 31, 2026
按维护者意见去掉本 PR 第 3 项:legacy-migration.mjs 与测试恢复为 main 的版本, Windows 启动回执的重试与启动状态检查以 ECNU#249 为准。刷新源码收据(保留 createdAt)。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
同步 main aa18a06 后,按当前源文件集重新生成回执,保留原 createdAt 与已审查字段。
macOS 14 runner 将于 2026-11-02 移除;先将该作业迁移到 macos-26, 并按新的源文件集刷新源码回执。
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.
Summary
Windows 更新/旧版迁移启动时,如果更新器恰好在读取启动回执,替换文件可能被短暂拒绝。现在仅对 Windows 的
EPERM、EACCES、EBUSY每隔 50 毫秒重试,最多重试 10 次。启动成功回执的每次替换前,都会重新检查 Host、恢复流程和退出状态。等待期间启动失效就停止写入,保留原回执并清理临时文件;持续占用或其他错误仍报错。进度和失败回执继续沿用现有协议。
Evidence
After: 短暂占用允许有限重试;每次提交成功回执都受当前启动状态约束。
ok,本地启动完成状态也保持未完成。mainaa18a06,按当前源文件集重新生成source-receipt.json并通过--verify-receipt。本地定向测试(legacy-migration、startup-presentation、startup-failure、installed-migration、installer-cleanup 与源码审计)65 通过、22 跳过、0 失败。git diff --check通过。提交b39731b1的源码构建、build-contracts、macOS 更新、发布校验与 Windows native-host 通过,source-integration 按配置跳过;native-host (macos-14)在排队阶段被取消(GitHub 将于 2026-11-02 移除 macOS 14 runner,基线迁移见 #260),详见 检查列表。尚未完成完整 Windows 升级包流程验收。
Merge Danger
Door: two-way。可以回退此改动;更新协议、回执内容和用户数据格式不变。
Blast Radius: 更新。影响现有 Windows 更新/旧版迁移的启动回执,不作为 #176/#251 标准安装与上游更新器改造的一部分。普通无更新启动没有回执可写;持续失败仍交给原有错误处理。