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
Windows: bugfix-1814 check-timeout test fails under full-suite load; its 2500ms bound cannot tell a late kill from no kill #1946
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
If the investigation shows the kill is not landing at all under load, rather than landing late, stop and report: that is a product bug and needs its own decision.
Activity
amrmelsayed commentedon Nov 22, 2026
On it! Working on a fix now.
[PIR #1911] Thread: Node 22 runs, waiting on #1946
[Bugfix #1946] Test: check-timeout tests tell a late kill from no kill
[Bugfix #1946] Thread: investigation notes
[Bugfix #1946] Thread: fix and full-suite results