Skip to content

Windows: bugfix-1814 check-timeout test fails under full-suite load; its 2500ms bound cannot tell a late kill from no kill #1946

Closed

Description

@amrmelsayed

Problem

packages/codev/src/commands/porch/__tests__/bugfix-1814-check-timeout.test.ts, "a protocol.json timeout_ms reaches the runner and kills the check at that value", fails on a native Windows developer machine whenever the full unit suite runs. It passes when its file runs alone, and it has not failed in the last 15 runs of the on-demand Windows workflow.

The test runs a 3-second sleep as a porch check with a 300ms timeout and asserts the check ends in under 2500ms. Measured on the owner's machine during full-suite runs: 2574, 2690, 2767 and 3271ms.

On Windows, ending a timed-out check is a snapshot of the process tree followed by a tree kill, each a separate process launch. Under suite load those launches take two seconds or more. A 3271ms result means the 3-second sleep finished by itself before the kill landed, so the test cannot tell a late kill from no kill.

Because porch's own tests check runs the full suite, this blocks every Windows builder at porch done. It is blocking #1911 now.

Fix

Test only; no change to porch's timeout behaviour.

  • Use a sleep long enough that finishing by itself cannot pass for a kill (for example 30s), in this test and the two neighbouring tests in the file that use the same 3-second sleep.
  • Keep asserting that the check was ended by the timeout (the "Timed out after 0.3s" error) and that it ended well before the sleep would have finished. Replace the 2500ms bound with one that holds on a loaded Windows machine and is still far below the sleep length.
  • Keep the bound tight on POSIX if it is reliable there.

Verification

  • The file passes alone and inside three consecutive full-suite runs on native Windows, one run at a time.
  • Linux CI green.
  • Record the Tower process id before and after each full-suite run and report any change.

Notes

Activity

  1. added
    area/porch
    on Nov 22, 2026
  2. amrmelsayed commented on Nov 22, 2026

    @amrmelsayed
    CollaboratorAuthor

    On it! Working on a fix now.

  3. added 4 commits that reference this issue on Nov 22, 2026
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

    area/porch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions