Repository navigation
test(ui): preserve nested failure summaries in CI logs - #146864
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: needs maintainer review before merge. Reviewed September 13, 2026, 6:00 AM ET / 10:00 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR preserves nested, sanitized browser-test failure details in CI logs, strengthens output assertions, and corrects a file-tab close selector. Merge readiness✅ Ready for maintainer review The logging fix remains useful on current main, and no actionable correctness or security findings remain. The merged file-tab correction overlaps only a minor part of this maintainer-owned PR. Priority: P3 Review scores
Verification
How this fits togetherControl UI browser tests collect diagnostic state when a wait fails. The shared capture helper sends sanitized facts to CI logs and writes detailed reports and screenshots to separate artifacts. flowchart TD
A[Browser test failure] --> B[Shared diagnostic capture]
B --> C[Browser state and recorded responses]
C --> D[Sanitized summary]
D --> E[JSON in CI logs]
B --> F[Detailed report and screenshot]
B --> G[Original test failure preserved]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +10. Total +10 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep diagnostic projection in the existing capture owner and serialize its sanitized facts before artifact I/O. Do we have a high-confidence way to reproduce the issue? Yes, from source: the existing nested summary passes through Node's depth-limited object formatting, and the updated tests inspect the rendered output. This review did not execute the failure path. Is this the best way to solve the issue? Yes. Serializing the existing safe projection is a narrow repair that preserves its owner, privacy boundary, artifact behavior, and original-error handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0d1cf24318b8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
7cdf155 to
7fc7a1a
Compare
|
@clawsweeper re-review The refreshed head adds the reviewed one-line file-tab fixture correction and incorporates the shared CI prerequisites. The PR body now describes the complete three-file change and proof. Exact-head CI passed, including all 56 real-Gateway cases; the combined independent review found no actionable issue. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (1537 commits) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) perf(sessions): keep cleanup responsive and reuse workers (#140897) fix(sessions): prevent stranded writers after abort and restart (#146792) refactor: reuse deferred owners in Gateway and infra fixtures (#146809) fix: prevent queued conversation replies from switching storage (#146984) test(ui): preserve nested failure summaries in CI logs (#146864) fix(test): respect process memory limits in local scheduling (#146298) fix: validate large media data URLs without regexp stack exhaustion (#146972) fix(ui): label model usage contributions as messages (#146735) ...
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (30 commits) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) perf(sessions): keep cleanup responsive and reuse workers (#140897) fix(sessions): prevent stranded writers after abort and restart (#146792) refactor: reuse deferred owners in Gateway and infra fixtures (#146809) fix: prevent queued conversation replies from switching storage (#146984) test(ui): preserve nested failure summaries in CI logs (#146864) fix(test): respect process memory limits in local scheduling (#146298) fix: validate large media data URLs without regexp stack exhaustion (#146972) fix(ui): label model usage contributions as messages (#146735) ...
* test(ui): close file previews through their hosted tabs * test(ui): preserve nested failure summaries in CI logs
What Problem This Solves
Node renders nested safe Control UI failure details as
[Object], hiding facts such as the send-button label and state during the intermittent approval-flow failure. The shared capture owner already has those sanitized facts; console formatting loses them.User Impact
Failure logs retain the complete existing sanitized summary as JSON. Product behavior, test scheduling and deadlines are unchanged. This improves diagnosis without claiming to fix or explain the intermittent approval-flow failure.
Why This Change Was Made
Serialize the existing closed
{ browser, models }summary before artifact I/O. Raw browser state, frame data, credentials, model identifiers and draft text stay outside console output. Capture failures preserve the original test error. Existing tests now exercise Node's real formatter instead of only inspecting the spy's in-memory argument.This head also retains the reviewed one-line file-tab fixture correction from c1f1ea3. The identical correction subsequently landed on main in #146810 (ff9c1b0), so it adds no further behavior when this PR merges. The remaining net change is the two diagnostic files.
Evidence
Four existing diagnostic cases failed against the original
[Object]rendering; all nine pass with JSON serialization. Nested facts, private-data exclusion, repeated captures, screenshot/storage failures and original-error preservation remain asserted. Both changed-file gates and independent P2 reviews passed, including a combined review of the retained three-file head; final files match their tested hashes.The corrected file-link case passed with all six siblings in original order, taking 1.37s locally. Its content, distinct roots, path, target-line, keyboard and detachment assertions are retained. The hosted old-selector failure and local pass are not a controlled timing comparison.
Exact-head CI 34748471920 passed at 7fc7a1a. CI checkout logs verify that head in the tested merge. All 56 real-Gateway cases in 28 files passed in 405.70s; no speedup from this diagnostic change is claimed.
Production LOC: 0; net new test support: -1; tests: +11. No new cases, fields, waits, timeouts, shards or caching. Changelog remains release-owned.