You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(windows): tolerate transient EBUSY during release verifier cleanup #2439
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'
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:
Activity
M4n5ter commentedon Aug 8, 2026
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 验证: