Repository navigation
test(host): 重试 Windows 代理验收的临时目录清理 - #11718
Merged
Merged
Conversation
Windows CI completed all five helper assertions, then failed to unlink a LevelDB file while removing the orphan-test profile. Allow eight bounded retries for transient filesystem errors while deleting this test directory. The process-exit assertions and the remaining proxy comparison are unchanged, and a persistent cleanup error still fails the job. Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> (cherry picked from commit d5d399a1a7f848bc5005ab71224c243bfd58f2ec)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
zqchris
approved these changes
Nov 20, 2026
[Low impact] 本次改动范围明确,未发现阻止合并的问题。
|
DavidShenXD
approved these changes
Nov 20, 2026
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.
这次改了什么
摘要
#11629 的最终提交
5f71023567在 Windows CI 上通过了 Chromium 代理助手的五组断言,随后删除验收临时目录时遇到 LevelDB 文件占用,报出EBUSY。首次作业因此没有执行系统代理对照。单独重跑这个作业一次后,五组断言和 72 项后台服务与 Electron 的代理结果对照均通过。 首次作业 重跑结果apps/host/scripts/chromium-proxy-worker.e2e.mjs的清理现在使用 Node.js 同步删除的有界退避。对于可重试的文件系统错误,最多重试八次,等待间隔每次增加 250 毫秒。持续占用会在重试用尽后让验收失败。变更类型
test测试维护范围
UI 变化
怎么验证的
自动验证
node --import tsx --import ./src/loaders/register-raw.mjs scripts/chromium-proxy-worker.e2e.mjs。五组真实进程断言和目录清理全通过。五组共约 19 秒,其中 20 次真实启动约 14 秒。node --check apps/host/scripts/chromium-proxy-worker.e2e.mjs、node scripts/check-test-hygiene.mjs和node scripts/check-dco.mjs通过。EBUSY。旧参数立即失败,新参数在短暂占用解除后删完文件,持续占用在八次重试后仍报EBUSY。未执行的验证
本机的实跑环境是 macOS,Windows 文件句柄释放和实际系统代理对照由本 PR 的 Windows CI 验证。
风险
风险分类
影响与回滚
辅助进程的主进程退出断言通过后,Windows 仍可能暂时持有验收目录中的文件句柄。首次失败距断言通过约 21 毫秒,持有句柄的具体进程未核实。临时占用会增加清理耗时,持续占用仍会让作业失败。回滚这个提交即可恢复之前的清理参数。
提交前检查