Repository navigation
test: consolidate redundant coverage (198799, group E) - #198967
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. What this changesThis PR trims instrumentation, repeated scenarios, and optional capture scaffolding from existing test suites. Example: user-visible case with real values
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored test cleanup addresses all three prior findings, and the exact diff has no new actionable defect. Required hosted CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe affected tests exercise Gateway session operations, plugin metadata, usage accounting, and Control UI interactions through existing owners and fixtures. flowchart LR
A[Test fixtures] --> B[Gateway session owners]
A --> C[Plugin metadata owners]
A --> D[Usage reporting]
E[Chromium scenarios] --> F[Control UI]
F --> G[Gateway fixture]
B --> H[Behavior assertions]
C --> H
Technical reviewBest possible solution: Land the bounded test-only cleanup once the existing exact-head CI gate passes. Do we have a high-confidence way to reproduce the issue? This PR changes test coverage rather than fixing a runtime defect; this read-only review ran no target code. Is this the best way to solve the issue? The in-place trims fit the approved cleanup direction, preserve the three previously identified regressions, and reuse existing fixtures and owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 30d445cd1175. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -928. Total -928 across 13 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel 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 HistoryReview history (4 earlier review cycles)
Reviewed November 18, 2026, 4:02 PM ET / 21:02 UTC (Revision 5). |
44c32e7 to
cd22a26
Compare
|
@clawsweeper re-review Exact head |
|
🦞👀 Re-review progress:
|
cd22a26 to
7c2bdfe
Compare
|
@clawsweeper re-review Exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Repair round 3 at 1789a19: retained distinct coverage exactly from current main, removed only unreferenced test support, and updated the file-to-keeper manifest. No production changes. Please review this exact head; CI is pending. |
|
🦞👀 Re-review progress:
|
|
HOLD: measured current-VALUE source-only proposal is below the 2,000-line floor: 1,890 net test lines removed (+19/-1909, 15 files; production 0). Full scope: 43 KEEP / 15 TRIM / 0 DELETE across 58 source rows. The proposal remains local, uncommitted and unvalidated against |
Baseline-Refresh: cb7de3a94cacaa08f13bf4f5cd4995407e871802
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* test: preserve bounded coverage reduction proposal * fix: refresh the reviewed correction baseline Baseline-Refresh: cb7de3a94cacaa08f13bf4f5cd4995407e871802 * test: retain behavioral guards while trimming redundant coverage * test: preserve cleanup admission and usage measurements * test: preserve multi-day creator accounting * test: simplify creator cohort fixture construction * test: retain history address and paged usage totals * test: retain plugin composer containment coverage * test: retain request timing and Doctor refresh guards * test(ui): preserve pane measurement admission across renders * test: retain row sharing and UI handoff guards Co-authored-by: Vincent Koc <[email protected]>
Test coverage consolidation
Related: #198737
Trims optional instrumentation, repeated display/filter inventories and layout scaffolding while retaining identity, authorization, persistence, lifecycle, cleanup and operator-outcome guards. The previous broad deletion proposal is replaced by in-place trims; no production changes.
Candidate
7df0454aaba257d99e2c38c425c463984bfb4856; tree6132c9b6cf88c9f890774c14d870ae77ce5667e5; frozen main70e28507bc8bd1c40116e0c87e20f184e858a50d. Default Git diff: 13 test/support files, +384/-1312 = 928 net lines removed; production 0. Complete source disposition: 46 KEEP / 13 TRIM / 0 DELETE across 59 paths. All unmodified keepers remain exact current-main bytes; metadata and CI inventory references remain intact.Restored guards include direct reactive pending-input publication; physical alias access; captured plugin metadata; all 64 checkout roots and actual busy/idle cleanup; canonical handoff timing and ledger persistence; buffered receipts; exact usage/calendar/accounting semantics including normalized multi-day creator cohorts; foreground reconnect behavior; request-scoped catalog/admission wait measurements; explicit Doctor artifact fingerprint refresh; and pane-render measurement/session admission. Pure counts and broad visual/format inventories remain intentionally removed without claiming every removed permutation has an equivalent.
Validation
7df0454aaba257d99e2c38c425c463984bfb4856, no findings or remaining rank-up moves. Required hosted CI: run 44396197434, attempt 2 succeeded (33 successful jobs, 28 intentional skips; all required contexts successful). All three preceding Claw findings and matching rank moves were addressed with concrete guard restoration.Per-file evidence
src/cron/store.worker.test.tssrc/daemon/inspect.startup.test.tssrc/gateway/server-methods/chat-send-reply-dispatch.test.tssrc/gateway/server-methods/chat.abort-persistence.test.tssrc/gateway/server-methods/sessions-mutations.catalog-queue.test.tssrc/gateway/server-methods/sessions.abort-embedded.test.tssrc/gateway/server.sessions.delete-lifecycle.test.tssrc/gateway/session-row-projection.worker-read.test.tssrc/gateway/session-utils.queued-collector.test.tssrc/gateway/worker-environments/local-workspace-template.test.tssrc/gateway/worker-environments/placement-dispatch-recovery-admission.test.tssrc/gateway/worker-environments/provider-provisioning-node.test.tssrc/infra/database-engine/port-command.integration.test.tssrc/infra/package-update-activation-lifetime.test.tssrc/infra/update-migrated-finalize.worker.test.tssrc/node-host/invoke-system-run-plan.test.tssrc/node-host/runner.test.tssrc/plugins/plugin-cache.test.tssrc/plugins/plugin-instance.test.tssrc/plugins/runtime.test.tssrc/plugins/runtime/runtime-llm.operator-model-policy.test.tssrc/secrets/runtime-provider-and-media-surfaces.test.tssrc/sessions/user-turn-transcript.test.tssrc/shared/usage-overview.test.tssrc/state/openclaw-agent-admission-order.diagnostic.test.tssrc/state/openclaw-agent-db.integrity-cache.test.tssrc/state/openclaw-state-db.wal.test.tstest/scripts/mobile-release.test.tstest/scripts/pr-merge-prior-ci.test.tstest/scripts/release-tooling-identity.test.tstest/scripts/upgrade-survivor-systemd.test.tsui/src/components/browser/browser-panel-controller-input.test.tsui/src/components/desktop/desktop-panel.test.tsui/src/e2e/chat-model-controls.e2e.test.tsui/src/e2e/command-palette-search.real-gateway.e2e.test.tsui/src/e2e/native-nav-sidebar-toggle.e2e.test.tsui/src/e2e/native-plugin-ui.e2e.test.tsui/src/e2e/native-plugin-ui.test-support.tsui/src/e2e/new-session-page.transition.e2e.test.tsui/src/e2e/systems-workspace.e2e.test.tsui/src/lib/board/widget-sandbox-host.test.tsui/src/lib/sessions/index.test.tsui/src/pages/chat/chat-pane-identity.test.tsui/src/pages/chat/chat-pending-inputs.test.tsui/src/pages/chat/components/chat-message-image-admission.test.tsxui/src/pages/chat/components/chat-reply-attribution.test.tsui/src/pages/chat/components/chat-transcript-end-follow.browser.test.tstest/e2e/qa-lab/runtime/gateway-rpc-chat.e2e.test.tstest/scripts/run-vitest.test.tsapps/android/app/src/test/java/ai/openclaw/app/wear/WearProxyBridgeTest.ktapps/macos/Tests/OpenClawIPCTests/GatewayChannelConnectTests.swiftsrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.subscribeembeddedagentsession.test.tssrc/infra/worker-task-pool.owned.test.tspackages/memory-host-sdk/src/host/memory-schema.test.tssrc/state/openclaw-state-worker-wal.test-support.tstest/scripts/check-deadcode-exports.test.tstest/scripts/ci-node-test-plan.selection-capacity.test.tstest/scripts/ci-node-test-plan.test.tstest/scripts/docker-build-helper.test.tsMetadata and scope
No changes to the ten timing, mock-export, deadcode, proof, UI owner or Vitest inventory files. No production edits, new support modules, provider changes, or offset cuts. Current-main additions and original source ownership remain preserved.