Repository navigation
Make functional tests independent of execution speed - #1696
Merged
Merged
Conversation
leaf-agent
approved these changes
Oct 4, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 4, 2026
The browser health watchers could reject legitimate input work when it completed more slowly, or declare success before delayed paint was judged. Process race checks could pass before the competing process reached its lock. This completes the clock remediation identified after #1696. Shift ownership now lasts through declared rendering completion and preserves native animation, pointer, and painted endpoint evidence until judgment. Draft-loss checks share exact trusted-input callback provenance instead of elapsed windows; native-await fixtures explicitly capture their committing callback. Native watcher clocks remain separate from controlled product timers. Lock races acknowledge actual kernel contention, adapter tests observe completed scans, and reaper tests control the grace clock. Rest checks execute due timer callbacks, elapsed-age tests fix their date, and temporary server shutdown waits for active work to finish. Testing instructions explain these boundaries, and the completed remediation TODO is removed. Validation: normal and ten-times-delayed completion controls pass while independent passive shift/draft-loss controls still fail. Held paint, resize, native animation retirement/replay, real draft submission, lock contention, adapter lifetime, reaper decisions, and active-request shutdown have targeted and independent review coverage. The fresh Python/browser landing gate passes 2,117 tests, with one skipped, including edited nightly cases. All 197 runtime checks and pre-commit pass. > _This was written by Codex on behalf of max-sixty_
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.
Functional tests and their instrumentation must preserve their result and exercise the same causal situation when execution is ten times slower. The testing instructions now distinguish controlled product time from monotonic hang deadlines, require completion or acquisition evidence instead of sleeps, and require delayed-completion and fault controls. They also clarify that fixing the wall-clock date leaves timers and browser rendering running.
The clock audit reproduced watcher false failures with tenfold completion delay: the same trusted Send action passes at 300 ms and reports lost words at 3000 ms; four input-owned rendering updates pass at 30 ms each and report movement at 300 ms each. The shift contrast uses the sensor's settled-reading stand-in and native browser layout. Removing its one-second cutoff in the scratch control restores the delayed pass while later passive movement still fails. TODO records the input cutoff and words-association findings alongside capped observer draining and retention, and process-race sleeps that can miss their claimed ordering. This change documents the rule and audit findings; watcher and process-test remediation remains in TODO.
Validation: native Chromium latency contrast, source audit, independent prose and contract review, and pre-commit checks pass.