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
ci: clipboard_helper nonzero-exit test depends on scheduler timing (fixed by #228) #234
tui::app::helpers::clipboard_helper::tests::helper_that_exits_nonzero_falls_through is scheduler-timing dependent. It asserts the contract but reaches that assertion through the production 150 ms poll window, so on a loaded shared desk-linux runner the helper (false, expected to exit immediately) was not reaped within 150 ms and the "still running, owns the selection" branch won.
Extract copy_via_clipboard_helper_within(program, args, text, window); keep the public signature and the production window unchanged (HELPER_FAIL_FAST_WINDOW = 150 ms).
Tests pass their own window: TEST_SETTLE_WINDOW (30 s) for the "exits nonzero" / "exits 0" cases, and a 10 ms window so a live owner (sleep 30) is deterministically still running.
New regression test helper_that_exits_nonzero_late_still_falls_through.
ordering_tests::first_helper_that_wins uses the same settle window.
Explicit non-goal
This change does not alter runtime behaviour or fix the production false-success defect, where a helper that has not failed yet is reported as a successful copy. That product question remains tracked separately in #231, whose status is unchanged by PR #228.
Acceptance for closing this
The clipboard-helper tests pass on a loaded desk-linux runner without depending on scheduler timing.
A test pins the late-failure case using an explicit window rather than the production budget.
Production HELPER_FAIL_FAST_WINDOW remains 150 ms.
Activity