Repository navigation
test(core,plugins,scripts): remove low-value tests (batch d206) - #165097
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 October 4, 2026, 4:38 PM ET / 20:38 UTC. ClawSweeper reviewWhat this changesThe PR removes redundant test cases and consolidates retained coverage into shared suites across agents, channels, Gateway, CLI, plugins, and release tooling. Merge readiness✅ Ready for maintainer review Keep open: this is useful test maintenance that remains distinct from current main. No concrete introduced correctness defect was found, and the author's verified repository admin role rules out automatic cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's test suites feed simulated commands, messages, and failures through product owners and check their outputs. This change reorganizes that regression coverage and its runner routing without changing production behavior. flowchart LR
A[Product contracts] --> B[Shared test fixtures]
B --> C[Retained regression cases]
C --> D[Vitest runner routing]
D --> E[Assertions and CI results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -4391, Other -2. Total -4393 across 79 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Maintain one strong test owner for each distinct contract while removing ineffective controls and repeated fixtures. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes test maintenance rather than a product bug fix; source inspection confirms the production implementation is unchanged. Is this the best way to solve the issue? Yes: consolidating retained cases into existing fixtures is consistent with the repository's test-value guidance, and the documented coverage objections have matching retained boundary tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ae4ebd2c9d2c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…claw#165097) * test(discord): deslop w0010 tests * test(gateway): deslop w0003 tests * test(agents): deslop w0001 tests * test(agents): deslop w0002 tests * test(cli): deslop w0007 tests * test(msteams): deslop w0011 tests * test(outbound): deslop w0005 tests * test(codex): deslop w0006 tests * test(plugins): deslop w0013 tests * test(scripts): deslop x0001 tests * test(msteams): prune removed mock baseline entries
What Problem This Solves
Batch d206 removes duplicated, implementation-mirroring, and ineffective test cases from ten audited campaign shards, and consolidates retained cases into existing fixtures.
User Impact
There is no production behavior change. This is test-only maintenance: current replay changes 79 files, with test LOC +2,895/-7,245 (net -4,350), test support/routing/ratchets +0/-43, and production LOC +0/-0. Distinct security, authority, cancellation, recovery, and output assertions remain.
Why This Change Was Made
Repeated test variants and redundant fixtures add maintenance and execution cost without independently protecting behavior. All ten supplied commits replayed in order onto main at 327dc38. No commits or hunks were skipped, and no manual conflicts required resolution. Git automatically reconciled the current dynamic-tool-build test; current-main additions are retained.
The historical shard reports describe 136 fewer declarations (2,434 to 2,298) and 274 fewer executed cases (3,739 to 3,465). None reached the aspirational 30% declaration reduction because further candidates protected distinct contracts. Those counts and coverage measurements are in-shard evidence, not a new combined coverage run on this PR.
The replay also prunes two obsolete first-party mock-export baseline entries for the deleted MSteams graph.timeout.test.ts, using the repository prune tool. The first remote changed-file gate caught these stale entries; its final-head rerun is recorded below.
No changed paths match the current CODEOWNERS rules.
Per-shard scope and historical coverage evidence
Coverage columns report covered counts, not percentages. The w0011 snapshot predates restoration of its existing Graph mock helper: its final coverage and changed-check reruns were blocked by lease shutdown/queueing, although its final 229 tests passed. This limitation is preserved here rather than treating that snapshot as final-revision coverage.
w0010 files:
extensions/discord/src/monitor/message-handler.process.ack.test.tsextensions/discord/src/monitor/message-handler.process.draft-final.test.tsextensions/discord/src/monitor/message-handler.process.draft-progress.test.tsextensions/discord/src/monitor/message-handler.process.session-routing.test.tsextensions/discord/src/monitor/native-command.commands-allowfrom.test.tsextensions/discord/src/monitor/native-command.model-picker.test.tsextensions/discord/src/monitor/native-command.plugin-dispatch.test.tsextensions/discord/src/monitor/native-command.test-helpers.tsextensions/discord/src/monitor/provider.rest-proxy.test.tsw0003 files:
src/gateway/client.device-auth.test.tssrc/gateway/client.test.tssrc/gateway/control-ui.http.test.tssrc/gateway/exec-approval-manager.expiry.test.tssrc/gateway/exec-approval-manager.test.tssrc/gateway/server-restart-sentinel.system-event-owner.test.tssrc/gateway/server-restart-sentinel.test.tsw0001 files:
src/agents/agent-command.live-model-switch.test.tssrc/agents/agent-tools.before-tool-call.e2e.test.tssrc/agents/agent-tools.before-tool-call.integration.e2e.test.tsw0002 files:
src/agents/bash-tools.exec-host-node.cancellation.test.tssrc/agents/bash-tools.exec-host-node.integration.test.tssrc/agents/bash-tools.exec-host-node.test.tssrc/agents/tool-search.test.tsw0007 files:
src/cli/program.force.test.tssrc/cli/program.nodes-basic.e2e.test.tssrc/cli/program.nodes-diagnostics-auth.e2e.test.tssrc/cli/program.nodes-media.e2e.test.tssrc/cli/program.nodes-push.e2e.test.tssrc/cli/program.smoke.test.tssrc/cli/run-main.command-dispatch.test.tssrc/cli/run-main.exit.test.tssrc/cli/run-main.gateway-startup.test.tssrc/cli/run-main.import-boundary.test.tssrc/cli/run-main.profile-env.test.tssrc/cli/run-main.test-support.tssrc/cli/run-main.test.tsw0011 files:
extensions/msteams/src/attachments.graph.test.tsextensions/msteams/src/attachments.helpers.test.tsextensions/msteams/src/attachments.test-helpers.tsextensions/msteams/src/attachments.test.tsextensions/msteams/src/channel.directory.test.tsextensions/msteams/src/channel.test.tsextensions/msteams/src/graph-messages.actions.test.tsextensions/msteams/src/graph-messages.read.test.tsextensions/msteams/src/graph-messages.search.test.tsextensions/msteams/src/graph.test.tsextensions/msteams/src/graph.timeout.test.tsextensions/msteams/src/send.test.tsextensions/msteams/src/send.threaded-attachments.test.tsw0005 files:
src/infra/outbound/message-action-params.attachments.test.tssrc/infra/outbound/message-action-params.media-access.test.tssrc/infra/outbound/message-action-params.test.tssrc/infra/outbound/message-action-send.core.test.tssrc/infra/outbound/message-action-send.media.test.tssrc/infra/outbound/message-action-send.test.tssrc/infra/outbound/message-action-send.validation.test.tsw0006 files:
extensions/codex/src/app-server/dynamic-tool-build.memory-audience.test.tsextensions/codex/src/app-server/dynamic-tool-build.prompt.test.tsextensions/codex/src/app-server/dynamic-tool-build.sandbox.test.tsextensions/codex/src/app-server/dynamic-tool-build.test.tsextensions/codex/src/app-server/inference-proxy.capacity.test.tsextensions/codex/src/app-server/inference-proxy.test.tsextensions/codex/src/app-server/plugin-thread-config.missing-plugins.test.tsextensions/codex/src/app-server/plugin-thread-config.native-approval.test.tsextensions/codex/src/app-server/plugin-thread-config.test.tsextensions/codex/src/app-server/session-binding.codec.test.tsextensions/codex/src/app-server/session-binding.reads.test.tsextensions/codex/src/app-server/session-binding.test.tstest/vitest/vitest.extension-database-workers-paths.mjsw0013 files:
src/plugins/management-service.policy-imports.test.tssrc/plugins/provider-runtime.test.tsx0001 files:
test/scripts/openclaw-performance-workflow.test.tstest/scripts/openclaw-release-ready.test.tstest/scripts/output-root-guard.test.tstest/scripts/package-acceptance-workflow.test.tstest/scripts/package-changelog.test.tstest/scripts/package-compat.test.tstest/scripts/package-docs-map.test.tsEvidence
Isolated autoreview raised three P2 coverage concerns; all were checked and rejected against retained tests and production control flow:
Fresh batch validation: