Repository navigation
test(acp,agents,config,gateway,ui,whatsapp): remove low-value tests (batch d073) - #170368
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 and consolidates tests across ACP, agents, configuration, Gateway, WhatsApp, migration, and Activity UI. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this PR open: the cleanup is useful, but both previously reported losses of independent regression coverage remain unresolved. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherVitest suites feed fixtures through OpenClaw production owners and assert configuration, persistence, lifecycle, transport, and UI contracts. flowchart LR
A[Test fixtures] --> B[Vitest suites]
B --> C[Production owners]
C --> D[Observed results]
D --> E[Contract assertions]
E --> F[CI gate]
Technical reviewBest possible solution: Keep the consolidation while restoring compact coverage for self-authored reaction addressing and cloud-worker duration admission. Do we have a high-confidence way to reproduce the issue? The pinned diff and retained suites establish both coverage losses; no runtime failure or test execution was reproduced during this read-only review. Is this the best way to solve the issue? Consolidation is appropriate where stronger owner coverage remains, but foreign-authored reactions and malformed durations do not replace the removed independent cases. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5cf2615e65ec. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -5309, Other -1. Total -5310 across 57 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label 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, 7:33 PM ET / 23:33 UTC (Revision 2). |
8bf72cf to
8131761
Compare
…batch d073) (openclaw#170368) * test(acp): deslop x1398 tests * test(agents): deslop x1394 tests * test(config): deslop x1401 tests * test(config): deslop x1396 tests * test(ui): deslop x1395 tests * test(whatsapp): deslop x1402 tests * test(gateway): deslop x1399 tests * test(gateway): deslop x1406 tests * test(whatsapp): deslop x1403 tests * test(config): deslop x1405 tests * test: retain independent security and ownership coverage * test(ui): remove unreachable table default
What Problem This Solves
This test-cleanup batch removes duplicate input variants, implementation/wiring replays, and redundant lifecycle cases across ACP, subagent announcement, configuration, migration, Gateway Talk/HTTP, WhatsApp, and Activity UI tests. Distinct regression, authorization, ordering, and data-preservation contracts remain in the retained suites. It does not change runtime behavior.
All ten source commits initially replayed in order onto main
0975d245565without conflicts or skipped hunks. After publication, advancing main required one rebase onto0d1e09b7913. One conflict innative-consult-target.test.tsretained the batch's deletion of the redundant native-consultation matrix; main had only added anawaitinside that deleted matrix. Main's async authorization and cleanup changes in the retained tests were preserved, as was its subsequent transcript-publication lifetime fix. No commits were skipped. The max-lines baseline change only removes the now-below-limit migrate-hermes config test entry. No CODEOWNERS-owned paths are changed.Impact and shard evidence
Final diff: production +0/-0; tests +332/-5641; test support +7/-7; baseline +0/-1 (57 files, net -5,310 lines). Coverage and LOC/declaration counts below are the original in-shard before/after evidence, before the preservation restorations described below; they are not a claim that coverage was rerun against this rebased batch. All shard statement/branch losses are within 1%.
Files and retained contracts
src/acp/):approval-classifier.test.ts,client.test.ts,event-ledger.test.ts,persistent-bindings.lifecycle.test.ts,persistent-bindings.test.ts,policy.test.ts,server.startup.test.ts. Retains protocol/version and byte-accounting regressions, secret isolation, execution-title sanitization, TLS forwarding, startup/teardown ordering, and concurrent appends.src/agents/subagents/announce/):subagent-announce-dispatch.test.ts,subagent-announce-output.test.ts,subagent-announce-result.test.ts,subagent-announce.requester-settle-wake.test.ts. Retains forced-direct/ambiguous-delivery regressions, terminal progress/reply behavior, ownership loss, recovery and delayed-read ordering.src/config/):types.secrets.test.ts,version.test.ts,web-search-codex-config.test.ts,write-lock.drainage.test.ts,zod-schema.agent-defaults.test.ts,zod-schema.agents.test.ts,zod-schema.cloud-workers.test.ts,zod-schema.core.test.ts. Retains reconciliation/drainage, authority revalidation, sandbox opt-in and credential-path validation.src/config/sessions/):transcript-stream.test.ts,transcript-tree.test.ts,transcript.test.ts. Retains redaction, ownership races, snapshot consistency, and custom-store discovery (restored during the shard's coverage review).ui/src/pages/activity/):activity-page.test.ts,current-work.test.ts,route.test.ts,session-activity-summaries.test.ts,session-activity.test.ts,tool-activity.test.ts,view.test.ts. Retains clock/surrogate/heap regressions, Gateway replacement, read-only access, queued write revocation and event ordering. No visual behavior changes.extensions/whatsapp/src/auto-reply/):deliver-reply.test.ts,monitor-state.test.ts,web-auto-reply-monitor.test.ts,web-auto-reply-utils.test.ts. Retains privacy, reconnect ordering, terminal-reset, self-chat, authorization, mention and UTF-16 regressions.src/gateway/talk/handlers/):client-native-actions.test.ts,client-native-control.test.ts,client.test.ts,native-consult-target.test.ts,target.test.ts,voice.test.ts, plusnative-consult-control.test-support.ts. Retains distinct authority boundaries, lifecycle interleavings and readiness regression. The original support matrix shrank from 14 to 8 cases; preservation review restores the three same-session replacement cases, leaving 11.src/gateway/):watch-node-http.test.ts,worker-workspace-recovery-binding.test.ts,worker-workspace-recovery-transcript.test.ts,workspace-icon-http.test.ts,ws-log.test.ts. Retains writer/session replacement, rebound ordering, icon security/size/symlink boundaries and broader-operator voice setup. The shard's unchangedworktree-maintenance.test.tscontributed to coverage totals.extensions/whatsapp/src/auto-reply/monitor/):group-gating.allowlist-warn.test.ts,inbound-dispatch.message-sent.test.ts,inbound-dispatch.test.ts,inbound-helpers.test.ts,on-message.acp-bindings.test.ts,on-message.audio-preflight.test.ts,reactions.test.ts. Retains native-ID, echo-transcript and partial-receipt regressions, ACP readiness after admission, and cancellation before delivery.extensions/migrate-hermes/):config.test.ts,files-and-skills.test.ts,model.plan.test.ts,secrets.test.ts; shrink-onlyconfig/max-lines-baseline.txt. Retains prototype-key/borrowed-credential rejection, late copy targets and committed WAL preservation.Coverage limitations from the shard reports: ACP ledger worker internals were not directly observed by casecov; web-search used source review plus aggregate coverage after transformed-source comparison failed; transcript persistence used aggregate coverage plus review because casecov had function-only counters; two core Gateway files used source inspection because casecov did not support nested projects. The x1395/x1399/x1406/x1405 declaration reductions stopped below the campaign target to preserve distinct contracts.
Preservation review
Four findings accepted and restored before publication: the Watch HTTP external-reapproval generation test, inbound exact-account-over-wildcard precedence, all three blocked prototype-chain keys, and same-session replaced-run control across browser RPC, browser provider and relay. This restores seven executed cases and two declarations relative to the original shard reports.
Three findings rejected after checking the owner and remaining proof:
appendExactAssistantMessageWithSourceconstructs its SQLite target from canonical agent/session/store identity and never consumesentry.sessionFile; stale/outside JSONL context tests remain. The deleted case is not a live filesystem-write boundary.tool-mutation.test.tsretains message send/action classification; the retained ACP computer mutation test exercises the same classifier branch and verifiesautoApprove: false.event-ledger.prepared.test.tsretains the current-caps/gapped-sequences test withmaxEventsPerSession: 2, asserts incomplete replay, and independently retains byte-budget eviction coverage.The second independent review confirmed the four restorations and those three dispositions, finding no additional P0–P2 defect. Its only remaining findings were that the fixes were not yet staged; all four are now staged identically to the reviewed working-tree versions.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <56 changed TS files>: passed; no additional diff.node_modules/.bin/oxlint -c .oxlintrc.json <56 changed TS files>: exit 0.git diff --check 0d1e09b7913: passed. The immutable batch base is used for selectors because the shared remote-tracking ref advances during other landings.pnpm test <touched files> --maxWorkers=1: all 55 touched test files exercised across their owner configs; 672 unique cases passed, one unchanged case failed identically on the clean original baseline described below. The runner stops subsequent configs after a failed config, so remaining files were explicitly run separately without changing test definitions.pnpm test src/gateway/talk/handlers/{client-native-actions,client-native-control,client,native-consult-target,target,voice}.test.ts --maxWorkers=1: 111/111 passed, 551.43s wall time. This covers all six overlapping Talk files and the upstream baseline repair. Other unchanged batch inputs reuse the earlier focused proof; CI provides broad proof on the rebased head. Frozen-lockfile install, 56-file oxfmt check, plain oxlint (exit 0), and diff-check passed again.isDock. Removed only the unreachable= falsedestructuring default; all 13 Current Work tests passed in the focused 20.64s run (9.14s Vitest duration). No behavior or assertion changed. The PR context gate also required these exact template section headings; the evidence content was retained.hover-marquee.browser.test.tsreconnect assertion failure; it is recorded, not claimed fixed or used as a waiver. The fresh head must pass hosted checks.openclaw/ci-gateis the broad merge gate. No Testbox/Crabbox was allocated for this landing.The initial local baseline failure was
client-native-actions.test.ts/keeps native generated input in current-turn custody but out of display and future calls, aborting duringAsyncWorkScope.beginClose→drain→gateway-work-admission.ts. It failed on the candidate (12.114s) and identically on a clean detached checkout of the exact main base0975d245565(11.075s). Baseline command:pnpm test src/gateway/talk/handlers/client-native-actions.test.ts --maxWorkers=1 -t 'keeps native generated input in current-turn custody but out of display and future calls'. Main fixed this independently ina55e956fe36(#170359): committed publications leave the producer's async work scope. That fix is preserved by the rebase, and the previously failing test now passes. No timeout, assertion, retry or skip was added. No hosted red-check waiver is requested.Historical shard check failures in unrelated dead exports are reported in the source evidence only; they are not claimed as current-head failures or used as a merge exemption.