Repository navigation
Conversation
|
Verified this end to end — it's a clean fix for a real Windows liveness bug, and the test relocation genuinely closes the gap where the exit-259 regression never executed in CI. Per-file notes:
No manifest edit was needed and I confirmed that: The PR-body verification narrative (3/3 repro on main, 26/26 after the fix, and separating the three host failures from the diff) is appreciated and matches what the diff implies. Since this rewrites the liveness primitive behind the Windows pre-push single-flight gate and extends the failure-class registry, leaving the merge sign-off to a human maintainer. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Confidence 5/5: reproduced exit-259 liveness bug 3/3 times on main, root cause with Win32 docs cited, scoped diff (51 lines), CI green, test moved into portability suite. No abuse signals. Merging.
What changed and why
Use the Windows process object's signaled state for preflight-runner liveness instead of interpreting GetExitCodeProcess value 259 as authoritative. Windows explicitly permits a completed process to return 259, the same value as STILL_ACTIVE; the old check therefore left that process's single-flight lock classified as live forever.
The fix uses a zero-timeout WaitForSingleObject result as the liveness source while retaining creation-time matching for PID reuse:
Product invariants affected
none
How it was verified
Tests
Moved test_process_that_exits_with_still_active_status_is_not_alive into the manifest-owned preflight-runner portability suite. The windows-latest portability job now executes this regression instead of leaving it in a suite that only skips it on Linux CI.
Failure class (fixes)
Failure-Class: new
Failure-class transition narrative (only when needed)
Violated contract: a status sentinel cannot prove liveness when a completed operation may return the same integer.
Canonical guard: use a zero-timeout wait on the Windows process handle, retain creation-time matching for PID reuse, and execute an actual process that exits 259 in native Windows CI.
Supporting evidence: the existing regression failed deterministically before this change, and the Win32 API contract explicitly warns that exit code 259 is ambiguous.