Repository navigation
test(ui): retain synthetic widget failure evidence - #139229
Conversation
Capture bounded pointer, focus, size and prompt-port diagnostics before the synthetic fixture closes. Retain only its timeline and existing images/video on failure in normal and reusable E2E CI, with seven-day retention. This improves evidence for an unreproduced intermittent timeout; it does not change widget behavior, assertions, security checks, or timeouts.
|
🦞👀 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: needs maintainer review before merge. Reviewed September 5, 2026, 1:37 PM ET / 17:37 UTC. ClawSweeper reviewWhat this changesThe PR records bounded browser-event diagnostics when the synthetic widget test fails and uploads its timeline, screenshots, and video from CI. Merge readiness✅ Ready for maintainer review Keep open: this maintainer-owned work remains useful and absent from current main. No blocking patch defects were identified. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI test harness exercises widgets in Chromium using synthetic documents and mocked Gateway responses. Its cleanup and CI workflows preserve evidence for diagnosing failed interactions. flowchart TD
A[Synthetic widget scenario] --> B[Bounded browser timeline]
B --> C{Scenario failed?}
C -->|Yes| D[Save timeline before cleanup]
C -->|No| E[Normal cleanup]
D --> F[Close browser and finalize video]
F --> G[Upload selected artifacts for seven days]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +156, Config +26. Total +182 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep diagnostics scoped to the synthetic fixture and use captured failures to investigate the intermittent timeout separately. Do we have a high-confidence way to reproduce the issue? Not applicable to the diagnostic addition. The underlying intermittent timeout remains unreproduced; the reported injected failure exercises evidence retention only. Is this the best way to solve the issue? Yes for the stated diagnostic purpose: it reuses existing cleanup and artifact ownership while avoiding broader trace collection or speculative runtime changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 886aaa689076. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Ready to land at The final helper passed normal Chromium proof and a separately labeled injected failure. The injection retained its original error, bounded timeline, and only the fixture's existing screenshots/video; the injected source was restored byte-for-byte. Full changed checks, workflow lint, 445 workflow guard tests (two skips), independent P2 review, and the latest ClawSweeper review are clear. No Rank-up or before-merge items remain. This is a diagnostic improvement, not a claim that the intermittent widget timeout is fixed. Product runtime delta is zero. Timeline fields and frame/event counts are bounded; CI retention is limited to this synthetic fixture's JSON/PNG/WebM files for seven days. No production behavior, assertions, security checks, or timeouts changed. |
|
Merged via squash.
|
* commit '911d7d5b0c107f7274f2415ca9655dcc6105f0e8': (867 commits) fix(skills): deliver pending Workshop approval controls (#139248) fix(gateway): deliver loopback ask_user prompts to the originating channel (#138831) docs: keep root agent instructions focused on repository policy (#139258) fix(matrix): exclude archived state roots from scans and selection (#112329) perf(agents): prepare exact tool names once per catalog batch (#139267) fix: preserve Swarm progress and simplify owner plumbing (#139269) fix(tailscale): release claims after gateway process-group exit (#139261) refactor(cli): simplify lazy command registration (#139108) test(ui): retain synthetic widget failure evidence (#139229) fix(buzz): keep implicit replies at thread root (#138879) test(diagnostics): await graceful Gateway shutdown before cleanup (#139247) fix(ci): unblock releases with different tooling package managers (#139259) feat(ui): add social preview links for private sessions (#139250) fix(codex): retain failed conversations for guarded continuation (#139246) chore(ui): refresh control ui locales (#139200) fix(ci): run browser checks for real-gateway inputs (#139256) fix(llama-cpp): reconcile managed router state before requests (#136363) chore(i18n): refresh native locales (#139237) refactor(worker): unify inference payload handling (#139245) refactor(terminal): replay wrapped prefixes in one pass (#139240) ...
Capture bounded pointer, focus, size and prompt-port diagnostics before the synthetic fixture closes. Retain only its timeline and existing images/video on failure in normal and reusable E2E CI, with seven-day retention. This improves evidence for an unreproduced intermittent timeout; it does not change widget behavior, assertions, security checks, or timeouts.
What Problem This Solves
The synthetic widget sandbox E2E occasionally times out waiting for
chat.sendafter a resize and Refresh click. The failed release job retained only console output, leaving no pointer, focus, or private-port timeline to distinguish a missed click from a rejected or undelivered prompt. See the observed UI4 failure.Why This Change Was Made
The existing fixture now keeps a bounded, restricted-field event timeline and writes it before context cleanup when its scenario fails. Normal CI and reusable repository E2E upload only this synthetic fixture's failure timeline and existing PNG/WebM files, gated on both failure and timeline presence, with seven-day retention. URLs, message bodies, credentials, DOM dumps, arbitrary errors, general UI artifacts, and trace archives are excluded.
User Impact
No application behavior changes. This improves future failure evidence; it does not claim to repair the intermittent failure. The original actions, assertions, security checks, and timeouts remain unchanged. Release qualification and publication remain independent of this follow-up.
Evidence