Repository navigation
test(ui): separate engine action and settle timings - #189013
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR separates scenario execution from the final frame wait and adds trace-only input marks and workload source hashes. Example: A reported WebKit Settings observation takes 189.9 ms.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it adds useful benchmark diagnostics within the existing harness, and no introduced correctness or security defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe cross-engine benchmark drives production Control UI bundles with Playwright and a synthetic Gateway, then writes observations, summaries, and trace artifacts. flowchart LR
A[Scenario catalog] --> B[Engine benchmark]
C[Production UI bundle] --> D[Chromium or WebKit]
E[Synthetic Gateway] --> D
B --> D
D --> F[Timing observations]
F --> G[Summaries and trace artifacts]
Technical reviewBest possible solution: Retain the existing benchmark owner and land the additive phase diagnostics once applicable checks are satisfied. Do we have a high-confidence way to reproduce the issue? Source confirms that current main reports total wall time and frame cadence without separating the full final wait; no target code was executed during this review. Is this the best way to solve the issue? The change is a small extension of the existing measurement owner, preserves total-time semantics, and avoids speculative application scheduling changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c993c8f2a51a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceDocs +7, Other +43. Total +50 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 11:53 PM ET / October 31, 2026, 03:53 UTC. |
|
Merged via squash.
|
Related: #188991
What Problem This Solves
A WebKit census grouped unrelated actions around 255–266 ms. The engine harness exposed total automation wall time and a consecutive-frame interval, which could not distinguish driver/selector work, application work, and the final two-frame wait.
User Impact
Developers can distinguish benchmark action time from the final frame wait. There is no user-visible application change.
Why This Change Was Made
Record
scenarioMsandsettleWaitMsalongside the unchangedwallMs, and summarize both phases. Traced, document-retaining actions also export native input and run-boundary User Timing marks. Boot/reload retain their existing navigation probes; their document replacement would discard a start mark. Hash the action and navigation scenario sources in the run manifest so timing changes can be attributed to the exact workload. Document the fields and their limits.This changes benchmark diagnostics only. It does not change application scheduling, action assertions, input cadence, the final frame wait, or startup assets. The new fields do not claim input-to-paint latency or a product performance improvement.
Investigation
The three representative WebKit traces do not contain a shared 250 ms timer. Cron schedules a zero-delay response; the picker has no installed timer; Settings schedules optional 500 ms idle work. Their gaps occur in different phases: Cron's native input arrives well into locator/focus delivery, whereas Settings receives its shortcut immediately and then renders. Bare native controls complete WebKit fills in about 8–11 ms and shortcuts in about 5 ms. The same unchanged application bundle produced warm mobile Settings samples of 180–195 ms, below the historical 259 ms cluster.
Completed 880/880 observations with zero failures: all 22 rows have 20 Chromium and 20 WebKit samples, with 10 observations per identical A/A slot. Phase accounting is valid in every observation. 14/22 refreshed rows remain above the 1.3× ratio target; no product latency optimization is claimed. Final-wait medians span 18.7–33.5 ms; WebKit settle-frame medians span 10.0–17.5 ms. Host one-minute load ranged 19.60–49.88. Wall time from first proof artifact: 41.2 minutes. Historical-to-current differences are observational: the historical census and this run differ in time/host state, and the UI already contains the separately landed model-search optimization. Both current slots serve identical bytes; these numbers do not establish a source A/B speedup. No speculative scheduler replacement or budget change is included.
Evidence
pnpm tsgo:scriptspnpm tsgo:uigit diff --checkpnpm ui:buildand strictpnpm ui:check-performancea78dc179ff413203923889dc5392a937f018060dThe UI source is unchanged; both census slots serve the same built bytes. No visual appearance change or new UI export is involved. The existing behavioral scenarios remain the proof rather than adding implementation-mirroring tests.
Independent Codex autoreview at P0–P2 found two diagnostic issues, both corrected: traced marker overhead belonged in the scenario phase, and marks cannot span document replacement. Final independent review of the complete change against
2919a0dba8d8is scoped-clean at P0–P2.LOC: harness 844 → 887; guide 781 → 788 (+53/−3 total). The growth is diagnostic fields/marks, source receipts, and their documentation; no new runtime abstraction.
Refreshed cluster table
All timings are milliseconds (median/p95). “Census” is the earlier census; “Current” is the fresh A/A run. A/A columns are the median difference between the two identical build slots, not treatment effects. Where A/A moves beyond the acceptance band, the row remains noisy observational evidence; no performance gain is claimed.