Skip to content

ci(windows): tolerate transient EBUSY during release verifier cleanup #2439

Closed

Description

@M4n5ter
English

Symptom

The Windows release verification completes every product check, then fails while removing its temporary directory:

[verify-windows] packaged app verified
[verify-windows] checksumming the release artifacts
Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\maka-release-verify-PY7aY9'

Observed in Release Windows check run 31175526596, job 92856580012.

Impact

The release lane reports failure even though packaging, packaged resources, executable architecture, version resources, ConPTY, the packaged renderer, and artifact checksums all completed successfully. This creates unrelated red CI for changes that do not touch the verifier.

Expected behavior

Temporary-directory cleanup should tolerate the short-lived Windows file-handle race with a bounded retry/backoff, while still surfacing persistent cleanup failures with the original path and error.

Scope evidence

The failing M5 Runtime Host cutover does not modify scripts/verify-windows-x64.mjs or the Windows release workflow. Its Runtime Host, Headless, workspace, typecheck, alignment, audit, and Windows baseline lanes passed in the same run.

简体中文

现象

Windows release verification 已完成所有产品检查,但在删除临时目录时失败:

[verify-windows] packaged app verified
[verify-windows] checksumming the release artifacts
Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\maka-release-verify-PY7aY9'

证据见 Release Windows check run 31175526596, job 92856580012。

影响

packaging、packaged resources、可执行文件架构、版本资源、ConPTY、packaged renderer 与 artifact checksum 均已成功,但 release lane 仍然报错。这会让未修改 verifier 的变更出现无关红 CI。

预期行为

临时目录清理应通过有界 retry/backoff 容忍 Windows 上短暂的文件句柄竞争;若持续失败,仍应保留原始路径与错误并明确报错。

范围证据

触发本次失败的 M5 Runtime Host cutover 未修改 scripts/verify-windows-x64.mjs 或 Windows release workflow;同一次运行中的 Runtime Host、Headless、workspace、typecheck、alignment、audit 与 Windows baseline 均已通过。

Activity

  1. added
    help wanted
    good first issue
    on Aug 8, 2026
  2. M4n5ter commented on Aug 8, 2026

    @M4n5ter
    MemberAuthor
    English

    Fixed by 6a028cfc9.

    The first fix moved the detached Runtime Host away from the verifier's caller working directory. The follow-up Windows run then exposed the remaining lock precisely at user-data/workspaces/default/memory.sqlite: the Host intentionally keeps the canonical root open during its 30-second idle grace after the Desktop smoke exits.

    The verifier now uses bounded, transient-error-driven recursive removal. It waits only while Windows reports the resource as busy and still surfaces a persistent lock after the retry window. The real Windows package lane completed the packaged-resource, architecture, version, ConPTY, renderer, checksum, and temporary-root cleanup checks successfully:

    简体中文

    该问题已由 6a028cfc9 修复。

    第一处修复让 detached Runtime Host 不再继承 verifier 的 caller working directory。后续 Windows 运行进一步将剩余锁精确定位到 user-data/workspaces/default/memory.sqlite:Desktop smoke 退出后,Host 会按设计在 30 秒 idle grace 内继续持有 canonical root。

    Verifier 现在使用有界、由瞬态文件系统错误驱动的 recursive removal。只有 Windows 仍报告资源繁忙时才会重试;超过窗口的持久锁仍会明确报错。真实 Windows package lane 已成功完成 packaged resource、architecture、version、ConPTY、renderer、checksum 与临时 root cleanup 验证:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions