Repository navigation
test(core,plugins,chat): remove low-value tests (batch d001) - #166439
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: blocked before merge. Reviewed October 7, 2026, 1:36 AM ET / 05:36 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch consolidates regression tests across core, plugins, and chat, removes redundant cases and support code, and prunes obsolete test-inventory entries. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: the cleanup remains distinct from current main, and no concrete introduced defect was identified in the inspected consolidations. Current-head CI remains pending; earlier passing runs and the SQLite-fix rebase do not establish current-head recovery. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s regression suites exercise agent execution, channel delivery, Gateway operations, plugin management, and chat rendering. Test inventories route those suites into CI, which reports contract failures before changes land. flowchart LR
A[Core and plugin contracts] --> B[Regression fixtures]
B --> C[Consolidated test suites]
D[Test inventories] --> E[CI suite selection]
C --> E
E --> F[Contract results]
F --> G[Merge gate]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one regression owner per contract, preserve meaningful failure cases, and let the enforced current-head CI gate validate the consolidated suites. Do we have a high-confidence way to reproduce the issue? Not applicable to the cleanup itself. The earlier-head QA restart failure is documented, but this read-only review did not reproduce it or verify current-head recovery. Is this the best way to solve the issue? Yes for the inspected consolidations: retained contracts stay with existing owners and deleted-suite inventories are updated. This review does not independently certify every historical coverage measurement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 449175d2110d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
6c6f58d to
7a26356
Compare
0c102ae to
435f3ca
Compare
…w#166439) * test(outbound): deslop w1003 tests * test(qa-lab): deslop w1011 tests * test(auto-reply): deslop w1009 tests * test(gateway): deslop w1015 tests * test(codex): deslop w1008 tests * test(agents): deslop w1004 tests * test(mattermost): deslop w1017 tests * test(agents): deslop w1016 tests * test(chat): deslop w1013 tests * test(plugins): deslop w1020 tests * test: prune removed web-search mock from baseline
What Problem This Solves
The test-reduction campaign identified duplicated behavior checks, implementation-mirroring assertions, and repeated fixtures across ten test shards. This batch removes that redundant maintenance work while retaining the meaningful owner-boundary regressions.
User Impact
No production runtime or user-visible behavior changes. The rebased diff removes 9,501 net lines: tests +4,282/−13,188 (−8,906), test support +265/−848 (−583), and test inventory/baseline entries +0/−12. Production runtime: +0/−0. The config-path edit is test-tooling debt metadata; runtime configuration and storage contracts are unchanged.
Why This Change Was Made
Replay all ten campaign commits onto main at
8021cef058d807e39e77f42ad45adbd789045896. Retained cases are consolidated within their existing owners; removed test files are also removed from the relevant test inventories. The mock-export baseline shrinks by three obsolete entries.The initial replay preserved an absent-owner usage regression that depended on helpers the campaign removed. Before CI attached, batch d000 landed and changed the same file, producing a merge conflict. The final rebase follows current main: preserve d000's creator-attribution tests, do not resurrect its removed absent-owner test, and remove the redundant canonical-alias selection case plus its now-unused
mainRow,queryOwnerUsage, andexpectOwnerRowhelpers. A later conflict-free rebase incorporates main's SQLite execution-lifetime fixa6092b141bcafter the QA restart failure described below.git range-diffmarks all eleven patches unchanged across this final rebase. All ten supplied commits applied; none skipped; one follow-up commit prunes the obsolete baseline entry. No changed path matches the current CODEOWNERS rules.Evidence
oxfmt --write,git diff --check, and plainoxlint -c .oxlintrc.jsonon all 93 surviving changed TS/JS files (exit 0).CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <82 surviving changed/owner test files>) was submitted ontbx_01m4a6va1wdem5d0hzm67a3vet; it remained queued with no IP or Actions run URL for roughly 15 minutes.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <119 changed paths>separately remained queued ontbx_01m4a77mkhz7dhte4hn3gxrq5x. Neither remote validation command executed. Both queued leases were stopped. After the conflict rebase, the same focused tests followed by the changed-file gate were submitted on replacement leasetbx_01m4a7ztetzqjtz9ac4mcpfkhf; it also remained queued without a runner and was stopped. No fresh Testbox pass is claimed.7a263566d2bf7bc2379c2cfd1d02a3bfa32b4ae1passed the changed Node tests, UI checks, type checks, lint, and boundary checks. Its sole failed job identified one obsolete web-search mock-baseline entry. The follow-up commit prunes that exact entry with the repository generator (check-test-mock-exports.mts --prune, exit 0, 10,566 → 10,565 entries). Focused autoreview and local plain lint/diff checks pass; no test or runtime code changes in the follow-up.0c102ae7a3c778079459b51c397357f1ed85ec1dpassed the ratchet but failed QA Smoke profile 4/4:subagent-completion-direct-fallbacktimed out in its restart phase after the agent turn failed schema admission, before spawning a worker. Clean mainc35b6d11c21passed the focused scenario once, the full original profile, and three additional fresh focused runs on Testboxtbx_01m4aaaayw5jaz2bhh9thgea4g. That does not prove a pre-existing failure, so no exception merge was used. The final rebase includes main's subsequently landed SQLite execution-lifetime fix; it does not claim those passing reproductions fixed the earlier failure.435f3cae96902ca66d094e844b19ff5dad83a57b: formatting, plain oxlint, diff checks, and patch-equivalence verification passed. The submitted Testbox command included the 82 focused tests, the QA restart scenario, and the changed-file gate; leasetbx_01m4acdsqjrfk4x1t5bhmcvn71remained queued without an IP or Actions run URL for 15 minutes and was stopped before execution. Current-head hosted CI remains the merge gate.openclaw/ci-gatesupplies the current-head merge gate. No executed validation failure is being waived.The table below records original in-shard report accounting. It is historical shard evidence, not a new coverage measurement of this combined replay. The final rebase preserves current main and applies the original shard deletion intent; the combined diff totals above reflect the final resolution.
Coverage qualifications: w1004's original report stopped at baseline; its later successful Testbox snapshot and completion log provide the totals above. The affected files match the supplied source commit byte-for-byte. For w1013, the final candidate removes one additional row (184 cases); retained per-case coverage remains 20,342 → 20,342 blocks, but the final aggregate-coverage rerun was infrastructure-blocked. Earlier w1008/w1016 changed-check runs also had infrastructure gaps. w1020's historical changed-check failure was attributed to seven auth-profile exports in its baseline; that old result is not asserted as proof about current main.
Changed files by shard
w1003
src/infra/outbound/agent-delivery.binding-selection.test.ts,src/infra/outbound/agent-delivery.target-resolution.test.ts,src/infra/outbound/agent-delivery.test.ts,src/infra/outbound/deliver.custody.integration.test.ts,src/infra/outbound/deliver.enqueue-worker.integration.test.ts,src/infra/outbound/deliver.projection.test-support.ts,src/infra/outbound/deliver.queue-integration.test.ts,src/infra/outbound/deliver.target-adoption.test.ts,src/infra/outbound/deliver.test.ts,src/infra/outbound/message-action-routing.accounts.test.ts,src/infra/outbound/message-action-routing.context.test.ts,src/infra/outbound/message-action-routing.send-policy.test.ts,src/infra/outbound/message-action-routing.test.tsw1011
extensions/qa-lab/src/agentic-parity-report.cache.test.ts,extensions/qa-lab/src/agentic-parity-report.test.ts,extensions/qa-lab/src/agentic-parity-report.timing.test.ts,extensions/qa-lab/src/runtime-tool-fixture.known-gap.test.ts,extensions/qa-lab/src/runtime-tool-fixture.mock-linking.test.ts,extensions/qa-lab/src/runtime-tool-fixture.native-workspace.test.ts,extensions/qa-lab/src/runtime-tool-fixture.nested.test.ts,extensions/qa-lab/src/runtime-tool-fixture.test.ts,extensions/qa-lab/src/runtime-tool-fixture.transcript.test.ts,extensions/qa-lab/src/test-file-scenario-runner.child-bundle.test.ts,extensions/qa-lab/src/test-file-scenario-runner.coverage.test.ts,extensions/qa-lab/src/test-file-scenario-runner.docker.test.ts,extensions/qa-lab/src/test-file-scenario-runner.e2e-routing.test.ts,extensions/qa-lab/src/test-file-scenario-runner.native.test.ts,extensions/qa-lab/src/test-file-scenario-runner.process.test.ts,extensions/qa-lab/src/test-file-scenario-runner.script-evidence.test.tsw1009
src/auto-reply/reply/queue.authority.test.ts,src/auto-reply/reply/queue.collect-transcript.test.ts,src/auto-reply/reply/queue.collect.test.ts,src/auto-reply/reply/queue.dedupe.test.ts,src/auto-reply/reply/session.conversation-kind.test.ts,src/auto-reply/reply/session.heartbeat-no-reset.test.ts,src/auto-reply/reply/session.test.tsw1015
src/gateway/server-methods/mcp-app.elicitation-timeout.test.ts,src/gateway/server-methods/mcp-app.test.ts,src/gateway/server-methods/sessions-mutations.native-consent.test-support.ts,src/gateway/server-methods/sessions-mutations.operator-preparation.test-support.ts,src/gateway/server-methods/sessions-mutations.runtime-windows.test-support.ts,src/gateway/server-methods/sessions-mutations.sticky-model.test.ts,src/gateway/server-methods/usage.sessions-usage-cache.test.ts,src/gateway/server-methods/usage.status-cache.test.tsw1008
extensions/codex/src/app-server/run-attempt-fast-mode.test-support.ts,extensions/codex/src/app-server/run-attempt-memory.test-support.ts,extensions/codex/src/app-server/run-attempt.confirmed-stop.test-support.ts,extensions/codex/src/app-server/run-attempt.receipt.test.ts,extensions/codex/src/app-server/run-attempt.settled-finalization.test-support.ts,extensions/codex/src/app-server/run-attempt.skills.native.test.ts,extensions/codex/src/app-server/run-attempt.steering-authority.test.ts,extensions/codex/src/app-server/run-attempt.steering-media.test.ts,extensions/codex/src/app-server/run-attempt.steering.test.ts,extensions/codex/src/app-server/run-attempt.subscription.test.ts,extensions/codex/src/app-server/run-attempt.test.ts,extensions/codex/src/app-server/run-attempt.turn-events.test.ts,extensions/codex/src/app-server/run-attempt.turn-watches.test.ts,extensions/codex/src/app-server/run-attempt.usage-limits.test.ts,extensions/codex/src/app-server/run-attempt.vision-tools.test.ts,scripts/lib/ci-proof-test-inventory.mts,test/vitest/vitest.extension-database-workers-paths.mjsw1004
src/agents/tools/cron-tool.management.test.ts,src/agents/tools/cron-tool.output-contract.test.ts,src/agents/tools/cron-tool.pacing.test.ts,src/agents/tools/cron-tool.test.ts,src/agents/tools/sessions-tool.batch.test.ts,src/agents/tools/sessions-tool.collector.test.ts,src/agents/tools/sessions-tool.owner.test.ts,src/agents/tools/sessions-tool.response.test.ts,src/agents/tools/sessions-tool.self-archive.test.ts,src/agents/tools/sessions-tool.sidebar.test.ts,src/agents/tools/sessions-tool.test.ts,src/agents/tools/web-search.late-bind.test.ts,src/agents/tools/web-search.provider-errors.test.ts,src/agents/tools/web-search.signal.test.ts,src/agents/tools/web-search.test.tsw1017
extensions/mattermost/src/mattermost/monitor-helpers.test-support.ts,extensions/mattermost/src/mattermost/monitor-posts.bot-threads.test.ts,extensions/mattermost/src/mattermost/monitor-posts.history-limit.test.ts,extensions/mattermost/src/mattermost/monitor-posts.thread-history.test.ts,extensions/mattermost/src/mattermost/monitor.authz.test.ts,extensions/mattermost/src/mattermost/monitor.inbound-system-event.test.ts,extensions/mattermost/src/mattermost/monitor.preview-delivery.test-support.ts,extensions/mattermost/src/mattermost/monitor.test.ts,extensions/mattermost/src/mattermost/send.authority.test.ts,extensions/mattermost/src/mattermost/send.loopback.test.ts,extensions/mattermost/src/mattermost/send.media-limit.test.ts,extensions/mattermost/src/mattermost/send.test.ts,extensions/mattermost/src/mattermost/slash-http.send-config.test.ts,extensions/mattermost/src/mattermost/slash-http.test.ts,scripts/lib/ci-proof-test-inventory.mts,test/vitest/vitest.extension-database-workers-paths.mjs,config/test-mock-exports-baseline.txtw1016
src/agents/bash-tools.process.delivery.test.ts,src/agents/bash-tools.process.e2e.test.ts,src/agents/bash-tools.process.input-hints.test.ts,src/agents/bash-tools.process.poll-timeout.test.ts,src/agents/session-tool-result-guard.test.ts,src/agents/session-tool-result-guard.tool-result-persist-hook.test.ts,src/agents/session-tool-result-guard.transcript-events.test.ts,src/agents/tools-effective-inventory.cold-provider.test.ts,src/agents/tools-effective-inventory.policy.test.ts,src/agents/tools-effective-inventory.runtime-model.test.ts,src/agents/tools-effective-inventory.test.tsw1013
ui/src/pages/chat/chat-view.async-questions.test.ts,ui/src/pages/chat/chat-view.attachment-paste.test.ts,ui/src/pages/chat/chat-view.cron-attribution.test.ts,ui/src/pages/chat/chat-view.placement-cache.test.ts,ui/src/pages/chat/chat-view.run-usage.test.ts,ui/src/pages/chat/chat-view.test.ts,ui/src/pages/chat/chat-view.transcript-search.test.tsw1020
src/plugins/management-service.capability-consent.test.ts,src/plugins/management-service.catalog.test.ts,src/plugins/management-service.install.test.ts,src/plugins/management-service.lifecycle-cache.test.ts,src/plugins/management-service.registry-refresh.test.ts,src/plugins/management-service.uninstall-ownership.test.ts,src/plugins/management-service.workspace-inventory.test.ts,src/plugins/provider-runtime.synthetic-auth-discovery.test.ts,src/plugins/provider-runtime.synthetic-auth-entry.test.ts,src/plugins/provider-runtime.usage-harness.test.ts