Repository navigation
Speed up the input-devices test from 45s to 14s - #15391
Merged
Merged
Conversation
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
force-pushed
the
perf/input-devices-test-speed
branch
from
October 14, 2026 04:58
3e70115 to
4e66fad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).