Repository navigation
test(ui,plugins,agents): remove low-value tests (batch d200) - #164928
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 4, 2026, 9:43 AM ET / 13:43 UTC. ClawSweeper reviewWhat this changesThe PR consolidates repeated UI, plugin, and agent test scenarios and removes assertions covered by stronger tests. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this cleanup remains distinct from current main. The inspected conversions and remaining owner tests establish useful work without a concrete blocking defect. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s test suites exercise agent behavior, plugin boundaries, and UI interactions using controlled fixtures. Their assertions provide regression signals before product changes ship. flowchart LR
A[Behavior contracts] --> B[Controlled fixtures]
B --> C[UI tests]
B --> D[Plugin tests]
B --> E[Agent tests]
C --> F[Regression assertions]
D --> F
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceTests -3767. Total -3767 across 29 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one primary test owner per contract while preserving independent authorization, lifecycle, cancellation, and regression assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes test cleanup rather than a product bug fix; no concrete failing scenario was established during inspection. Is this the best way to solve the issue? Yes for the inspected conversions: tables and stronger owner tests reduce repetition while retaining observable contracts. This read-only 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 1e5bfe69a8b6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…w#164928) * test(ui): deslop u0391 tests * test(plugins): deslop v0001 tests * test(plugins): deslop v0004 tests * test(codex): deslop v0002 tests * test(qa-slack): deslop v0008 tests * test(plugins): deslop v0007 tests * test(telegram,workboard): deslop v0009 tests * test(plugins): deslop v0006 tests * test(agents): deslop v0014 tests * test(agents): deslop v0011 tests
What Problem This Solves
Repeated fixtures and overlapping test declarations make the UI, plugin, and agent suites harder to maintain. This is the already-validated d200 test-cleanup batch replayed onto current main.
User Impact
No user-visible behavior or production code changes. The batch changes 29 test files, with 14,500 added and 20,777 removed lines (net -6,277); production and test-support LOC changes are both zero.
Why This Change Was Made
Consolidate equivalent scenarios into tables and remove subset assertions or duplicated executions while retaining distinct security, authorization, lifecycle, cancellation, ordering, error, and regression cases. All ten supplied commits applied in order without conflicts, skipped commits, or dropped hunks. No baseline files changed. None of the changed paths match the current CODEOWNERS rules.
The per-shard numbers below are the original campaign measurements, not new coverage measurements against this rebased head. The campaign's 50% executed-case/LOC targets were not reached; retained independent coverage takes priority over that target. The u0391 source-coverage glob did not record Chromium source coverage, although its browser scenarios were retained.
Evidence
Validated head:
71d4fa9ba8db4df67cd22903a36c8db901d16281, replay base:82adb7a49d36e844e4ea1989bc5d865abac916f0.pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed files>, plainoxlint -c .oxlintrc.json <changed files>, andgit diff --check: passed.CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <all 29 files below>: 2,336 tests passed across 29 files / 20 routed Vitest shards (394.03 seconds for the test orchestrator). Wrapper exit code 0; Testbox run.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 29 changed paths>: passed, including all 27 core test typecheck graphs, extension test typechecking, type-aware lint, formatting, and repository guards. Wrapper exit code 0; Testbox run.Both task-owned Testboxes were stopped. The backing hydration runs can show cancellation after delegated lease cleanup; the wrapper's completed command and exit code are the validation result. No validation gaps or repaired failures.
Shard inventory and original campaign coverage
All original shard statement/branch deltas satisfy the <=1% gate. v0007's largest per-file statement drop was in the QA CLI; its owner tests remain. The reports record all original tests, changed checks, formatting, and plain lint as passing.
u0391:
ui/src/pages/search/search-page.browser.test.ts,ui/src/pages/search/search-page.config.browser.test.ts,ui/src/pages/sessions/view-transcript-search.test.ts,ui/src/pages/skills/library-uploads.test.ts,ui/src/pages/skills/view.test.ts.v0001:
extensions/active-memory/index.test.ts,extensions/browser/src/browser-tool.test.ts.v0004:
extensions/diagnostics-otel/src/service.test.ts,extensions/discord/src/actions/runtime.test.ts,extensions/feishu/src/bot.test.ts.v0002:
extensions/codex/src/app-server/dynamic-tool-build.test.ts,extensions/codex/src/app-server/dynamic-tools.test.ts,extensions/codex/src/app-server/shared-client.test.ts.v0008:
extensions/qa-lab/src/providers/mock-openai/server.test.ts,extensions/slack/src/monitor/message-handler/dispatch.preview-fallback.test.ts.v0007:
extensions/memory-core/src/short-term-promotion.test.ts,extensions/ollama/src/stream-runtime.test.ts,extensions/qa-lab/src/cli.runtime.test.ts.v0009:
extensions/telegram/src/bot.create-telegram-bot.test.ts,extensions/telegram/src/bot.test.ts,extensions/workboard/browser/pages/workboard/view.test.ts.v0006:
extensions/google/transport-stream.test.ts,extensions/imessage/src/send.test.ts,extensions/matrix/src/matrix/monitor/handler.test.ts.v0014:
src/agents/system-prompt.test.ts,src/agents/tools/cron-tool.test.ts,src/agents/tools/image-tool.test.ts.v0011:
src/agents/agent-command.live-model-switch.test.ts,src/agents/agent-hooks/compaction-safeguard.test.ts.