Repository navigation
test(channels,providers,ui): remove low-value tests (batch d066) - #169982
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 changes before merge. What this changesThis PR removes redundant tests and trims test support across channels, providers, Gateway, meeting audio, and the Control UI. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open for one remaining coverage correction; all four earlier findings are resolved. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe test suites exercise production owners with isolated fixtures and check their outputs, persistence, authorization, and lifecycle contracts. flowchart LR
A[Test fixtures] --> B[Production owners]
B --> C[Transport and storage boundaries]
C --> D[Observed results]
D --> E[Contract assertions]
Technical reviewBest possible solution: Keep the duplicate removals while retaining the independent realtime output frame-limit regression. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the removed regression and the independent frame-count guard; no runtime failure or mutation test was executed. Is this the best way to solve the issue? Removing duplicate tests is appropriate, but byte-overflow coverage cannot replace a case that reaches the separate frame-count bound. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6fa67453cd0c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 (1 earlier review cycle)
Reviewed October 12, 2026, 11:56 AM ET / 15:56 UTC (Revision 2). |
7ccaae3 to
e9c6454
Compare
…nclaw#169982) * test(channels): deslop x1326 tests * test(minimax): deslop x1327 tests * test(meeting-bot): deslop x1328 tests * test(gateway): deslop x1329 tests * test(memory-wiki): deslop x1332 tests * test(imessage): deslop x1331 tests * test(ui): deslop x1333 tests * test(ui): deslop x1330 tests * test(discord): deslop x1321 tests * test(cua-computer): deslop x1319 tests * test(imessage): retain legacy cache authorization coverage * test: retain independent storage and audio regression coverage * test(meeting-bot): retain realtime frame ownership bound
What Problem This Solves
Removes duplicate, implementation-mirroring, and low-value test cases from the audited d066 campaign shards without changing production behavior.
User Impact
No user-visible behavior or configuration changes. Retained tests continue to cover distinct security, authority, lifecycle, and regression contracts. No production code changes, dependencies, schema changes, or baseline exceptions.
Why This Change Was Made
Replays all ten audited commits onto main, initially at
75ac08063363cea7465741d3ef34a90b57a1c05b, then rebased once ontof2c48ebd379297acd04d5ec3598e3d6986230204to incorporate the existing CI repair described below. All applied in order; none skipped. No conflicts or manually dropped hunks; Git cleanly integrated the current hello-scope test changes.git range-diffconfirms all ten campaign patches and the review correction are unchanged by the rebase. Current-main behavior and additions remain intact.The diff is 82 files: test files +572/-7,458 (net -6,886), test support +83/-177 (net -94), and production +0/-0. The support edits only prune registrations/arguments used by the query tests. Total +655/-7,635 (net -6,980).
The original shard audits removed cases rather than folding them into tables. Original shard declaration totals: 1,145 -> 833 (-312); audited test LOC: 39,655 -> 32,639 (-7,016). Post-review, this landing restores seven cases (130 lines including required imports/constants), so final net test LOC is -6,886 and declaration reduction is 305. Some shards stopped below the requested reduction target to retain independent security/lifecycle cases. Coverage figures below are original in-shard before/after evidence, not a fresh current-main coverage run.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <82 changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <82 changed files>: passed, exit 0.git diff --check <pinned base>: passed.pnpm test <79 changed test files> --maxWorkers=1: 902 tests passed across 16 routed shards; 516.92s wrapper time, 518.50s wall time. The retained real-Gateway pairing suite accounts for most of the slow core group (109.10s); it preserves real authority/connection boundaries.pnpm test extensions/imessage/src/monitor-reply-cache.test.ts --maxWorkers=1: 19 passed after restoring the missing-provenance case; 46.70s wrapper time, 47.93s wall time (40.93s Vitest duration, including collection). This existing suite exercises real SQLite cache hydration, persistence, and authorization boundaries; the restored case itself took 1.08s.openclaw/ci-gateis the broad merge gate; CI seconds pending at creation. No broad local changed-check/typecheck or fresh coverage run was requested.pnpm test <79 changed test files> test/scripts/eager-import-closure.test.ts --maxWorkers=1: 920 tests in 80 files passed across 17 routed shards; 516.89s wrapper time, 518.03s wall time. The subsequent five-case restoration is checked separately below; unchanged proof is reused.pnpm test extensions/imessage/src/monitor-reply-cache.test.ts src/meeting-bot/node-host.audio.test.ts src/meeting-bot/output-loopback-verifier.test.ts --maxWorkers=1: 48 tests passed across 3 files / 2 routed shards; 42.89s wrapper time, 44.00s wall time. The two audio files completed in 1.19s; iMessage's SQLite-backed file took 35.54s including collection. Formatting, direct changed-file oxlint, and diff checks pass.pnpm test src/meeting-bot/realtime-engine.test.ts --maxWorkers=1: 13 passed; 20.49s wrapper time, 22.56s wall time (15.33s Vitest duration including collection). Fresh correction review is scoped-clean through P2. Unchanged proof above is reused.CI recovery
The first head (
7ccaae36b00e73fcb7ffd8462901a68bef0a1488) hit two unrelated failures intest/scripts/eager-import-closure.test.tsin checks-node-compact-small-1:keeps the PR wrapper inventory closed over runtime importsandresolves wrapper package exports and workspace aliases from the extracted dependency context. The wrapper inventory omittedsrc/infra/database-engine/observation.tsandpolicy.ts; none of the failing test, inventory, or exercised production files is changed by this batch. Main already fixed that exact cause inbb6818fd172e35956189a56c3f71dd1133c3c1d2. Auto-merge was explicitly disabled before rebasing onto the fix. The two formerly failing cases now pass locally (all 17 tests in that file pass). No admin exception or old-head rerun is used; the replacement head receives fresh hosted CI.The next head (
e9c6454a719b12744a37a8fd8e907b4c2e41d21e) hit an unrelated failure in checks-ui (2/3):Browser panel downloads > does not save incomplete or stale bytes after body failureinui/src/components/browser/browser-panel-download.test.ts, expecting one mock call but receiving two. The test, download controller, and UI config are untouched by this PR. A clean detached current-main checkout at32c839147a8067ac5f97decba92dca98ec469086reproduced that exact test and assertion under the pinned Linux Bun fork on Blacksmith Testbox. The wrapper verified source tree68e5f769090c5405ed7d6cfad4d78b9f0e8c2313; test/controller/config SHA-256 values matched the clean checkout. The baseline UI shard finished with that one failure, 6,788 passing tests, and three skipped tests across 576 files; 216.10s Vitest duration, exit 1. This is recorded as inherited, not fixed or green. The single-file Node and local Bun UI-config probes passed and did not substitute for this full-shard baseline proof.Baseline command: stage the pinned runtime with
bash scripts/stage-openclaw-bun.sh <temporary-runtime> linux x64, then runnode --import tsx scripts/ci-run-node-test-shard.mtswithCI=1,OPENCLAW_CI_TEST_RUNTIME_POLICY=bun-compatible,OPENCLAW_NODE_TEST_CONFIGS_JSON=["ui/vitest.config.ts"],OPENCLAW_NODE_TEST_PLAN_CONCURRENCY=1, andOPENCLAW_NODE_TEST_VITEST_ARGS_JSON=["--maxWorkers","3","--shard=2/3"]. Leasetbx_01m4rdjcn1ey0apq8xk60qt28dwas granted in 4.3s without queuing and stopped after the proof. Any inherited-failure landing remains conditional on no other unproven red checks on the final head.Independent autoreview raised three findings. Accepted: restore the legacy iMessage cached row with omitted
isFromMe, retaining the fail-closed edit/unsend check. Rejected CUA duplication: retainedloads only remote policy by default on Linuxchecks the dangerous policy and retainedaccepts the retired driver path as a no-op while keeping both schemas strictchecks both commands' capability/dangerous fields through the same registration. Rejected non-sandboxed visibility duplication: retainedkeeps requester visibility for a session search without recall under self visibilityruns withsandboxed: false, excludes other sessions, and traverses the same legacysearchSharedMemoryfiltering owner (native provider defaults false in setup).The hosted review's findings were accepted: restored the original iMessage expiry/counter case and successful same-chat outbound
requireFromMecase; restored both independent audio byte-cap cases (including oversized-buffer copying), the non-frame-aligned PCM loopback case, and the realtime output queue's independent 256-frame bound. These retain distinct storage, authorization, memory-bound, and capture-alignment contracts. The seven restored cases are the only intentionally retained deletion hunks; all remaining campaign changes stay applied. Final correction reviews: scoped-clean through P2, no actionable findings.Original evidence limitations: x1327 speech/TTS case-attribution instrumentation was unsupported; aggregate coverage passed. x1329 and parts of x1319 used manual review where case attribution was unsupported. x1321's original changed-check had an unrelated dead-export failure, and its untouched E2E was not run due to an unrelated baseline build failure. x1319's final changed-check was infrastructure-incomplete. These are historical shard limitations; this PR uses current-head focused tests and required hosted CI for fresh validation.
No CODEOWNERS patterns match changed files. Local focused checks and
openclaw/ci-gateare the default proof route; the one Testbox exception above was used only for the Linux/Bun full-shard baseline that local probes could not establish.Per-shard reductions, original coverage totals, and files touched
x1326
Source commit:
8c980afe96b10377045d9cd8a975b712f526e043.Files touched:
src/channels/plugins/runtime-forwarders.test.tssrc/channels/plugins/setup-contract.test.tssrc/channels/plugins/setup-helpers.test.tssrc/channels/plugins/setup-promotion-helpers.test.tssrc/channels/plugins/setup-wizard-helpers.test.tssrc/channels/plugins/setup-wizard.test.tssrc/channels/plugins/status.test.tssrc/channels/plugins/thread-binding-api.test.tsx1327
Source commit:
1e6e085600a0258fd2cbc58f5920bfacf64a2046.Files touched:
extensions/minimax/image-generation-provider.test.tsextensions/minimax/index.test.tsextensions/minimax/model-definitions.test.tsextensions/minimax/music-generation-provider.test.tsextensions/minimax/oauth.test.tsextensions/minimax/onboard.test.tsextensions/minimax/speech-provider.test.tsextensions/minimax/tts.test.tsextensions/minimax/video-generation-provider.test.tsx1328
Source commit:
2aa489abd0e852c62e763e693546a02733f51289.Files touched:
src/meeting-bot/node-host.audio.test.tssrc/meeting-bot/output-loopback-verifier.test.tssrc/meeting-bot/realtime-engine.continuous.test.tssrc/meeting-bot/realtime-engine.test.tssrc/meeting-bot/realtime-local-audio-transport.test.tssrc/meeting-bot/realtime-shutdown.test.tssrc/meeting-bot/runtime-probes.test.tssrc/meeting-bot/session-transcript-store.test.tssrc/meeting-bot/transcripts-bridge.test.tsx1329
Source commit:
7322ecbeff96b9993a18a1bcaea5390e5d00775c.Files touched:
src/gateway/server/ws-connection/auth-context.test.tssrc/gateway/server/ws-connection/connect-device-metadata.test.tssrc/gateway/server/ws-connection/connect-device-pairing.test.tssrc/gateway/server/ws-connection/connect-hello.update-scope.test.tssrc/gateway/server/ws-connection/connect-policy.test.tssrc/gateway/server/ws-connection/handshake-auth-helpers.test.tsx1332
Source commit:
4c9713367858b320c5c4ba4a4a6204a1726a16ff.Files touched:
extensions/memory-wiki/src/query.conversation-recall.test-support.tsextensions/memory-wiki/src/query.provider-runtime.test-support.tsextensions/memory-wiki/src/query.session-scope.test-support.tsextensions/memory-wiki/src/query.test.tsextensions/memory-wiki/src/source-sync-state.test.tsextensions/memory-wiki/src/source-sync.test.tsextensions/memory-wiki/src/status.test.tsextensions/memory-wiki/src/tool.test.tsextensions/memory-wiki/src/unsafe-local.test.tsextensions/memory-wiki/src/wiki-notes-read-retry.test.tsx1331
Source commit:
0b1531d3240552192d33319e219cbea959968834.Files touched:
extensions/imessage/src/monitor-reply-cache.test.tsextensions/imessage/src/normalize.test.tsextensions/imessage/src/probe.test.tsextensions/imessage/src/remote-file.test.tsextensions/imessage/src/status.test.tsextensions/imessage/src/targets.test.tsextensions/imessage/src/test-plugin.test.tsx1333
Source commit:
bee1ead9596c7dc43f8236084af0d93ff2445df3.Files touched:
ui/src/components/terminal/terminal-connection.test.tsui/src/components/terminal/terminal-controller-lifecycle.test.tsui/src/components/terminal/terminal-file-upload.test.tsui/src/components/terminal/terminal-panel-readiness.test.tsui/src/components/terminal/terminal-panel-reconnect.test.tsui/src/components/terminal/terminal-panel-restore.test.tsui/src/components/terminal/terminal-panel-upload.test.tsui/src/components/terminal/terminal-panel.test.tsx1330
Source commit:
77a4f34b9f306c4640dd94b7c2ab308d05482429.Files touched:
ui/src/pages/usage/helpers.node.test.tsui/src/pages/usage/metrics.node.test.tsui/src/pages/usage/query.test.tsui/src/pages/usage/refresh-policy.test.tsui/src/pages/usage/usage-page-details.test.tsui/src/pages/usage/view-details.test.tsui/src/pages/usage/view-overview.test.tsui/src/pages/usage/view.test.tsx1321
Source commit:
25eb71793cd5e6d976bd4c63906553be7d7cd2a5.Files touched:
extensions/discord/src/voice/transcripts-source.test.tsextensions/discord/src/voice/transcripts-target.test.tsextensions/discord/src/voice/voice-auto-join.test.tsextensions/discord/src/voice/voice-following.test.tsextensions/discord/src/voice/voice-receive.test.tsx1319
Source commit:
1a589f840a36b9c0928b99cfd7d906cc1bcc33f5.Files touched:
extensions/cua-computer/index.test.tsextensions/fireworks/index.test.tsextensions/msteams/src/qa/private-runtime.test.tsextensions/qa-lab/src/providers/shared/auth-store.test.tsextensions/vercel-ai-gateway/provider-catalog.test.tspackages/llm-core/src/model-contracts/anthropic.test.tssrc/agents/agent-hooks/compaction-instructions.test.tssrc/cli/nodes-cli/rpc.test.tssrc/infra/command-analysis/risks.test.tssrc/memory/memory-artifact-provenance.test.tssrc/provider-runtime/operation-retry.test.tssrc/wizard/i18n/index.test.ts