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
test(computer-use): remove fixed-delay race from session cancellation coverage #2332
The @maka/computer-use test clears one session without ending the others is timing-dependent. It waits a fixed 80 ms before clearSession() and another fixed 80 ms before reading the child-process log.
Under parallel CI load, the mock executor may not have received or persisted the $/cancel notification before the assertion runs. This failed the test_workspaces lane on main after #2308, although #2308 did not modify Computer Use code and all Runtime Host, CLI, typecheck, and E2E lanes passed.
I'll take this one — will replace the fixed delays with observable synchronization on the mock executor log (wait for the recorded observe request before clearSession(), and for the matching $/cancel before asserting), and audit the neighboring cancellation tests for the same pattern.
UncertaintyDeterminesYou4ndMe commented on Aug 7, 2026
Status update: the test this issue names was already synchronized by #2345 (merged this morning, not linked here). What remained open was the last acceptance item — auditing the neighboring cancellation tests — and two live races were still there: fixed 120 ms/80 ms pre-abort waits, and single log reads that race the child's appendFileSync on the paths where the caller is settled by the host's CANCEL_GRACE_MS timer rather than by an executor answer. #2394 removes both (barrier round trips + bounded-deadline log polling) and closes this issue; verified with 20 runs at 4-way concurrency, 0 failures.
Activity
UncertaintyDeterminesYou4ndMe commentedon Aug 7, 2026
I'll take this one — will replace the fixed delays with observable synchronization on the mock executor log (wait for the recorded
observerequest beforeclearSession(), and for the matching$/cancelbefore asserting), and audit the neighboring cancellation tests for the same pattern.UncertaintyDeterminesYou4ndMe commentedon Aug 7, 2026
Status update: the test this issue names was already synchronized by #2345 (merged this morning, not linked here). What remained open was the last acceptance item — auditing the neighboring cancellation tests — and two live races were still there: fixed 120 ms/80 ms pre-abort waits, and single log reads that race the child's
appendFileSyncon the paths where the caller is settled by the host'sCANCEL_GRACE_MStimer rather than by an executor answer. #2394 removes both (barrier round trips + bounded-deadline log polling) and closes this issue; verified with 20 runs at 4-way concurrency, 0 failures.test(computer-use): close the remaining fixed-delay races the review …
test(computer-use): remove the remaining fixed-delay races from cance…