Skip to content

processInfoAsync test times out on windows-arm64 CI (10 s PowerShell limit) #372

Closed

Description

@TMHSDigital

Summary

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.

Where

  • src/utils/processes.ts:23 (PROCESS_INFO_TIMEOUT_MS = 10_000)
  • src/__tests__/sessions.test.ts:346

Details

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

Getting started

  • Relevant files: src/utils/processes.ts, src/__tests__/sessions.test.ts
  • How to run tests: npx vitest run src/__tests__/sessions.test.ts

Activity

  1. added
    good first issue
    priority: low
    testing
    effort: small
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 19, 2026

    @TMHSDigital
    OwnerAuthor

    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.

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

    effort: smallgood first issuepriority: lowtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions