Repository navigation
fix(ci): settle draft setup before measuring composer renders - #135075
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review The initial review failed before publishing its result. The head is unchanged; focused browser proof and all required CI checks are green. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 6:27 AM ET / 10:27 UTC. ClawSweeper reviewWhat this changesThe branch updates a Control UI browser performance test to wait for seeded and typed composer drafts to reach browser storage before measuring render updates. Regression provenancePossible regression — probable (reviewed change; failure trace; known regression link). No predecessor PR is attributed. Merge readinessNo blocking findings. This active maintainer PR correctly isolates the steady-state composer render measurement from the first draft’s asynchronous presence notification; current main still lacks that stabilization. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI composer synchronously saves draft presence for sidebar subscribers, then asynchronously persists the draft to IndexedDB. The browser test counts unrelated host renders while users type in a long chat transcript. flowchart LR
A[Long chat setup] --> B[Composer draft]
B --> C[Draft presence update]
C --> D[Sidebar subscribers]
B --> E[IndexedDB commit]
E --> F[Render measurement]
F --> G[Composer render budget]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +6. Total +6 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the existing one-host-update budget and land this focused settlement change so the test measures ordinary typing rather than initial draft-presence setup. Do we have a high-confidence way to reproduce the issue? Yes: the current-main sequence resets the probe before the first draft’s asynchronous durable persistence has settled, and the supplied failed CI run observed the resulting extra updates. This read-only review did not rerun the flaky case. Is this the best way to solve the issue? Yes: waiting on the durable draft owner and a render boundary is the appropriate test precondition, unlike adding sleeps, retries, or relaxing the render budget. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 998529f81a97. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Resolves a flaky CI performance check where the first draft's asynchronous save can overlap the interval intended to measure ordinary typing. The composer budget failed with two host updates against its limit of one in run 33492093127; the unchanged-head retry passed.
Why This Change Was Made
Wait for the seeded draft's committed browser-store record before installing the render probe, using the existing helper that also crosses a browser render boundary. Keep that same probe active until the typed draft commits, so asynchronous invalidations remain covered. The initial save publishes draft presence to shared subscribers; later content-only saves do not.
This preserves real keyboard input, the long transcript, all assertions, and the one-host-update budget. It adds no sleeps, retries, larger timeouts, or production changes. The failed run did not retain requestUpdate call stacks, so its exact two callers are unknown; the precondition race is verified from the persistence and subscription owners.
User Impact
No product behavior changes. CI measures steady-state composer work after setup has completed and includes the asynchronous completion of the measured edit.
Evidence
git diff --checkpasses.Related: #135039, #133465.