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
processInfoAsync test times out on windows-arm64 CI (10 s PowerShell limit) #372
processInfoAsync (#358) > reads the same image as processInfo in src/__tests__/sessions.test.ts fails intermittently on the windows-arm64 CI leg. The PowerShell lookup took about 13 s and hit the 10 s PROCESS_INFO_TIMEOUT_MS, so processInfoAsync returned null and the assertion got undefined.
Seen on CI run 44346580305 (PR #371, a test-only change to roots.test.ts):
FAIL src/__tests__/sessions.test.ts > processInfoAsync (#358) > reads the same image as processInfo
AssertionError: expected undefined to be 'node.exe'
× reads the same image as processInfo 13285ms
The test itself allows 30 s, but the helper gives PowerShell only 10 s. A cold PowerShell start on the arm64 runner under full-suite load can take longer. Several other recent CI runs also failed on the arm64 leg.
Impact
CI-only: the arm64 leg is required, so a red run blocks the release gate until it is rerun.
Suggested fix
Either let the test pass a longer timeout to processInfoAsync (an optional timeoutMs argument), or retry once in the test when the first call returns null. Raising the production timeout is also an option, but it slows the stale-session check for real users when PowerShell hangs.
Acceptance criteria
The test no longer fails on a slow PowerShell start on windows-arm64
Production timeout behavior is unchanged, or the change is justified
Fixed in 90c2040: processInfo and processInfoAsync take an optional timeoutMs (production default stays 10 s), and the test gives each lookup 40 s with a 90 s test limit. It also asserts the async result is not null, so two timeouts can no longer pass as undefined === undefined. Verified: npx vitest run src/__tests__/sessions.test.ts (52 passed), typecheck and lint.
Activity
TMHSDigital commentedon Nov 19, 2026
Fixed in 90c2040:
processInfoandprocessInfoAsynctake an optionaltimeoutMs(production default stays 10 s), and the test gives each lookup 40 s with a 90 s test limit. It also asserts the async result is not null, so two timeouts can no longer pass as undefined === undefined. Verified:npx vitest run src/__tests__/sessions.test.ts(52 passed), typecheck and lint.