Repository navigation
Closed
Description
Summary
Windows GitHub-hosted runners intermittently fail Runtime Host startup checks on identical source trees. The failure moves between the dedicated Local IPC trust-boundary workflow and the installed CLI first-run smoke, while reruns of the same code pass.
This currently makes PR checks non-deterministic and the CLI smoke exposes only INTERNAL_STARTUP_FAILURE, deleting the isolated data root before the underlying Host diagnostic can be inspected.
Evidence
Observed on #3183:
- Head
bded591:windows_recoveryfailed because the Runtime Host trust fixture exited withinsecure_endpoint_directorywhile restricting the Windows Local IPC endpoint.- Installed CLI Windows validation passed, including first-run TUI setup, managed Runtime Host lifecycle, and a controlled model turn.
- Empty retrigger commit
5da258dhas the exact same Git tree (b6cad43ab27a6dee887b7285877a097a5e84b875) asbded591:windows_recoverypassed.- Installed CLI Windows validation failed during the first-run TUI setup. Runtime Host recovery returned
INTERNAL_STARTUP_FAILUREbefore the expectedSet Up Providermarker.
- The failed CLI runner was
windows-2025-vs2026inwestus; the immediately preceding successful Windows CLI run used the same image version incentralus. - The only base change between the two PR merge refs was fix(ui): restore usable scrolling for one-line code blocks #3170, limited to Desktop/UI scrolling and selection files; it did not touch Runtime Host control endpoints, ACL handling, or CLI startup.
- The same contemporary
mainrevision passed the dedicated Windows recovery workflow.
This rules out a deterministic #3183 code regression and points to a runner-sensitive Local IPC directory/ACL or startup race.
Expected outcome
- A failed installed-CLI smoke prints or uploads the underlying Runtime Host diagnostic instead of only
INTERNAL_STARTUP_FAILURE. - On Windows failure, capture the relevant storage/control paths, runner identity/region, directory owner and ACL state, and registration/service logs before the isolated root is deleted.
- Determine why
prepareStorageRootControlDirectoryor the subsequent first-run recovery intermittently fails onwindows-2025hosted runners. - Stabilize the checks without weakening the Local IPC trust boundary or broadly retrying genuine product failures.
Reproduction status
Intermittent on GitHub-hosted Windows runners; not reproduced deterministically. Two identical PR trees produced disjoint failures in consecutive runs.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Astro-Han commentedon Aug 19, 2026
English
#3235 should cover the
windows_recoveryhalf of this. The failure cited above (run 32222355735) spent 20s on the trust-boundary step where a healthy run takes ~7s — that matches the 10s ACL timeout firing on a slow PowerShell cold start, not a real ACL error. The budget is now 30s, and the fixture readiness deadline 45s.The installed-CLI half is untouched:
INTERNAL_STARTUP_FAILUREstill hides the underlying diagnostic.One more case of a swallowed diagnostic, same family: the
finallyblock inscripts/windows-runtime-host-local-ipc-trust.ps1(185–207) throws on a non-zero fixture exit code, replacing whatever exception was already propagating. That is why the original #3225 log showed the ACL message rather than the readiness timeout that fired first.中文
#3235 应该已经覆盖了这里的
windows_recovery那一半。上面引用的那次失败(run 32222355735)在 trust-boundary 步骤上花了 20s,而健康时约 7s——这与 10s ACL 超时打在 PowerShell 冷启动上吻合,不是真的 ACL 错误。该预算现在是 30s,fixture readiness deadline 是 45s。installed-CLI 那一半没有动:
INTERNAL_STARTUP_FAILURE仍然盖住了底层诊断。同一族里还有一处诊断被吞:
scripts/windows-runtime-host-local-ipc-trust.ps1的finally块(185–207 行)在 fixture 退出码非 0 时throw,会替换掉当时正在传播的异常。这正是 #3225 最初那条日志显示 ACL 消息、而不是先触发的 readiness 超时的原因。