Skip to content

Speed up the input-devices test from 45s to 14s - #15391

Merged
dhh merged 1 commit into
quattrofrom
perf/input-devices-test-speed
Oct 14, 2026
Merged

dhh merged 1 commit into
quattrofrom
perf/input-devices-test-speed

Conversation

@dhh

@dhh dhh commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Per-file speedup from section 4 of the overnight quality plan. Test-only change; no product code is modified.

The test waited out the watcher's real delays with fixed sleeps:
500ms settle, 3s follow-up, 1s retries, about 37s of sleeping in
total. It now stages a copy of Commons with InputDevices' delays at
a quarter length (125/750/250ms, quick-exit threshold and retry base
included) and polls for the expected signal counts instead of
sleeping past them. The burst-settle timing assertion is unchanged.
Test-only; InputDevices itself is untouched.

Verified: focused test passes repeatedly at the new timing; Codex review clean; full suite green with all section-4 branches stacked (130s wall for ./test/shell, down from 227s).

The test waited out the watcher's real delays with fixed sleeps:
500ms settle, 3s follow-up, 1s retries, about 37s of sleeping in
total. It now stages a copy of Commons with InputDevices' delays at
a quarter length (125/750/250ms, quick-exit threshold and retry base
included) and polls for the expected signal counts instead of
sleeping past them. The burst-settle timing assertion is unchanged.
Test-only; InputDevices itself is untouched.
@dhh
dhh force-pushed the perf/input-devices-test-speed branch from 3e70115 to 4e66fad Compare October 14, 2026 04:58
@dhh
dhh merged commit b8fd058 into quattro Oct 14, 2026
@dhh
dhh deleted the perf/input-devices-test-speed branch October 14, 2026 06:02
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants