Skip to content

test(ui,plugins,agents): remove low-value tests (batch d200) - #164928

Merged
steipete merged 10 commits into
mainfrom
tcr/land-d200-1791118432
Oct 4, 2026
Merged

steipete merged 10 commits into
mainfrom
tcr/land-d200-1791118432

Conversation

@steipete

@steipete steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

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>, plain oxlint -c .oxlintrc.json <changed files>, and git diff --check: passed.
  • Blacksmith Testbox: 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
Shard Test LOC before → after (delta) Declarations before → after (delta) Covered statements; branches; functions
u0391 1,988 → 1,651 (-337) 43 → 27 (-16) 1354 → 1353 (-1); 816 → 813 (-3); 254 → 254 (0)
v0001 7,112 → 6,774 (-338) 185 → 129 (-56) 2425 → 2425 (0); 2164 → 2164 (0); 421 → 421 (0)
v0004 9,344 → 8,787 (-557) 216 → 150 (-66) 4020 → 4020 (0); 3098 → 3098 (0); 626 → 626 (0)
v0002 8,788 → 7,804 (-984) 227 → 158 (-69) 5312 → 5312 (0); 3775 → 3775 (0); 1022 → 1022 (0)
v0008 8,431 → 7,822 (-609) 196 → 152 (-44) 4018 → 4018 (0); 3667 → 3667 (0); 700 → 700 (0)
v0007 7,336 → 6,823 (-513) 227 → 158 (-69) 4673 → 4652 (-21); 3106 → 3095 (-11); 938 → 929 (-9)
v0009 9,548 → 9,030 (-518) 189 → 141 (-48) 7814 → 7814 (0); 6573 → 6572 (-1); 1641 → 1641 (0)
v0006 9,826 → 8,451 (-1,375) 247 → 172 (-75) 3361 → 3361 (0); 2598 → 2598 (0); 581 → 581 (0)
v0014 6,185 → 5,685 (-500) 210 → 146 (-64) 4582 → 4582 (0); 3551 → 3551 (0); 815 → 815 (0)
v0011 7,243 → 6,697 (-546) 168 → 117 (-51) 10336 → 10336 (0); 6293 → 6293 (0); 1728 → 1728 (0)

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.

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 4, 2026 13:39
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: slack Channel integration: slack channel: telegram Channel integration: telegram app: web-ui App: web-ui extensions: diagnostics-otel Extension: diagnostics-otel extensions: memory-core Extension: memory-core agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: qa-lab extensions: codex extensions: google extensions: ollama plugin: workboard extensions: active-memory extensions: browser size: XL labels Oct 4, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 4, 2026, 9:43 AM ET / 13:43 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 71d4fa9ba8db4df67cd22903a36c8db901d16281

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test consolidation with reported focused validation and no concrete blocking finding; broad coverage preservation was not independently measured here.
Proof confidence 🌊 off-meta tidepool Not applicable: The host classifies the author as MEMBER, and only test suites change. Reported Testbox runs validate the suites rather than a changed production flow; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The host classifies the author as MEMBER, and only test suites change. Reported Testbox runs validate the suites rather than a changed production flow; no stored-data contract changes.
Evidence reviewed 9 items Introduced scope and merge result: The pinned introduction delta and verified test merge both contain only test-file changes. The test merge records the supplied main commit followed by the exact PR head, preserving unrelated main work.
Shared Google coverage remains: The removed sparse-usage and partial-text failure scenarios remain in the shared Google provider suite. The plugin transport delegates message projection and stream consumption through the existing SDK owner.
Stronger video boundary retained: The retained retry scenario checks both initial and retried serialized requests for the byte limit and video omission, covering the removed standalone video-shedding assertion.
Findings None None.
Security None None.

How this fits together

OpenClaw’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
Loading

Before merge

  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
Agent review details

Security

None.

PR surface

Tests -3767. Total -3767 across 29 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 29 8151 11918 -3767
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 29 8151 11918 -3767

Review metrics

Metric Value Why it matters
Reported test validation 2,336 tests passed; 394.03 seconds The captured body supplies aggregate replay-validation cost, separately from historical coverage measurements.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is test maintenance with no production behavior change or established urgent regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The host classifies the author as MEMBER, and only test suites change. Reported Testbox runs validate the suites rather than a changed production flow; no stored-data contract changes.

Label justifications:

  • P3: This is test maintenance with no production behavior change or established urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The host classifies the author as MEMBER, and only test suites change. Reported Testbox runs validate the suites rather than a changed production flow; no stored-data contract changes.

Evidence

What I checked:

  • Introduced scope and merge result: The pinned introduction delta and verified test merge both contain only test-file changes. The test merge records the supplied main commit followed by the exact PR head, preserving unrelated main work. (bccdd2d74e7b)
  • Shared Google coverage remains: The removed sparse-usage and partial-text failure scenarios remain in the shared Google provider suite. The plugin transport delegates message projection and stream consumption through the existing SDK owner. (packages/ai/src/providers/google-shared.test.ts:311, 71d4fa9ba8db)
  • Stronger video boundary retained: The retained retry scenario checks both initial and retried serialized requests for the byte limit and video omission, covering the removed standalone video-shedding assertion. (extensions/google/transport-stream.test.ts:1773, 71d4fa9ba8db)
  • Authorization rejection assertions retained: The consolidated cron cases retain distinct authentication, incomplete authority capture, and missing-revision failures, and assert that only the prerequisite read occurs. (src/agents/tools/cron-tool.test.ts:1541, 71d4fa9ba8db)
  • UI lifecycle cases retained: The search configuration table separately exercises discarded drafts, unsaved drafts, and applied-revision changes, retaining rejection of stale health results. (ui/src/pages/search/search-page.config.browser.test.ts:285, 71d4fa9ba8db)
  • Credential privacy keeper: The credential-list default removed from the broader QA runtime suite remains asserted at the CLI owner with showSecrets:false. (extensions/qa-lab/src/cli.test.ts:831, 71d4fa9ba8db)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 834900c into main Oct 4, 2026
136 of 152 checks passed
@steipete
steipete deleted the tcr/land-d200-1791118432 branch October 4, 2026 13:48
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: slack Channel integration: slack channel: telegram Channel integration: telegram extensions: active-memory extensions: browser extensions: codex extensions: diagnostics-otel Extension: diagnostics-otel extensions: google extensions: memory-core Extension: memory-core extensions: ollama extensions: qa-lab P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant