Repository navigation
test(core,agents,plugins,ui): remove low-value tests (batch d016) - #167089
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 8, 2026, 5:32 AM ET / 09:32 UTC. ClawSweeper reviewWhat this changesThis PR consolidates retained regressions into existing suites, removes duplicate test variants and unused test support, and prunes corresponding inventories and baselines. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this is useful, maintainer-directed test maintenance, and no concrete introduced defect was found. Historical shard results support the cleanup, but do not establish a passing combined run of the reviewed head. Priority: P3 Before merge
FindingsNone. Provenance
Agent review detailsHow this fits togetherOpenClaw’s tests exercise agent tools, session lifecycle, scheduled tasks, plugins, and the Control UI. Test inventories route those suites into CI, which reports whether the retained contracts pass. flowchart TD
A[Behavioral contracts] --> B[Test fixtures]
B --> C[Consolidated owner suites]
D[Test inventories] --> E[CI test selection]
C --> E
E --> F[Validation results]
Technical reviewBest possible solution: Keep meaningful regressions at their existing owner boundaries and use the enforced current-head CI gate to validate the consolidated suites. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR addresses duplicate test maintenance rather than a reported runtime defect; the introduced consolidation is inspectable in source. Is this the best way to solve the issue? Yes: consolidating retained regressions into existing owner suites is a maintainable approach, and no concrete test-execution defect was identified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5a060dd1e18e. Provenance checked
TestingProof path: unit tests only. Added test files: 64. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -12, Tests -2866, Other -5. Total -2883 across 70 files. View PR surface stats
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 |
Enable CPU profiles, allocation profiles, and heap snapshots through the existing diagnostics owner on the supported Bun runtime. Preserve debugger/tracing conflicts, authorization, cancellation, redaction, limits, and native cleanup; use the current runtime in native tests and genuine Node for the V8 object-ID regression. The shared 42bd pin includes integral heap sampling and snapshot metadata cleanup. Linux and macOS each passed 112/112 diagnostics tests on Node 24 and pinned Bun, with zero skips. P2 review and exact-head ClawSweeper found no actionable issues; CI run 37762723772 passed. The unrelated local full-tree unused-export failure from #167089 was reproduced on clean main and retained in PR evidence.
Keep LocalRemoteShellSpawnResult file-local after #167089 removed its last external consumer. Preserve its use by LocalRemoteShellSpawn. The four turn-model fixture exports were fixed separately in #167160. This clears the remaining unused-export finding from main's dependency check (CI run 37758070507). Repository-wide references, including extensions and UI, confirm no external consumer. Validation: full-tree, production, and script Knip export scans report zero findings; deadcode:full, check-changed, and git diff --check pass. The 11 importing test files pass on Node 24.21.0 and pinned Bun 42bd (105 tests per runtime; 39 existing conditional skips). P2 autoreview is scoped-clean.
…enclaw#167089) * test(auto-reply): deslop w1150 tests * test(agents): deslop w1153 tests * test(zalouser): deslop w1160 tests * test(cron): deslop w1156 tests * test(acp): deslop w1157 tests * test(ui): deslop w1155 tests * test(sessions): deslop w1149 tests * test(agents): deslop w1161 tests * test(sandbox): deslop w1159 tests * test(cron-cli): deslop w1158 tests
…aw#166933) Enable CPU profiles, allocation profiles, and heap snapshots through the existing diagnostics owner on the supported Bun runtime. Preserve debugger/tracing conflicts, authorization, cancellation, redaction, limits, and native cleanup; use the current runtime in native tests and genuine Node for the V8 object-ID regression. The shared 42bd pin includes integral heap sampling and snapshot metadata cleanup. Linux and macOS each passed 112/112 diagnostics tests on Node 24 and pinned Bun, with zero skips. P2 review and exact-head ClawSweeper found no actionable issues; CI run 37762723772 passed. The unrelated local full-tree unused-export failure from openclaw#167089 was reproduced on clean main and retained in PR evidence.
Keep LocalRemoteShellSpawnResult file-local after openclaw#167089 removed its last external consumer. Preserve its use by LocalRemoteShellSpawn. The four turn-model fixture exports were fixed separately in openclaw#167160. This clears the remaining unused-export finding from main's dependency check (CI run 37758070507). Repository-wide references, including extensions and UI, confirm no external consumer. Validation: full-tree, production, and script Knip export scans report zero findings; deadcode:full, check-changed, and git diff --check pass. The 11 importing test files pass on Node 24.21.0 and pinned Bun 42bd (105 tests per runtime; 39 existing conditional skips). P2 autoreview is scoped-clean.
What Problem This Solves
The test suite repeats equivalent cases and bootstraps separate fixtures for behavior already covered at the same owner boundary. This is maintainer-authorized test-reduction batch d016.
User Impact
No user-visible behavior, production runtime code, configuration contract, or persistent-store semantics change. The suite retains the identified regression, security, ordering, and lifecycle cases while reducing duplicate test maintenance.
Why This Change Was Made
Replay ten audited shard commits onto current main. Consolidate retained cases into their existing owner suites, remove duplicate variants and wiring probes, delete one unused Zalouser mock helper, and remove stale test-inventory and baseline entries.
All ten supplied commits applied in order without conflicts. No commits or hunks were dropped; main's unrelated changes remain intact. There are no paths matched by the current CODEOWNERS rules.
Actual PR diff: production runtime +0/-0 LOC; tests +2730/-5595 LOC (net -2865); test support +0/-12 LOC; tooling/inventories/baselines +0/-6 LOC. Baselines shrink only. Test moves preserve their Vitest projects.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.oxfmt --write, plainoxlint -c .oxlintrc.jsonon every surviving changed TS/JS file, andgit diff --check: passed. Plain lint also passed before every replayed commit.54bd6ecee1897f51b2963b6ea4c165a356e2d805: scoped clean, no actionable P0–P2 findings.Infrastructure gap: fresh batch Testbox focused tests and
OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 70 changed paths>were attempted but had not executed at publication. Leasetbx_01m4dcg91tj52tnv2by3a4jjz3remained queued without an assigned runner; source-capsule preparation also encountered shared mirror saturation. The campaign mirror pool was selected for the corrected attempt. An initial preparation was intentionally interrupted to replace an inappropriate raw-HEAD check with exact source-byte verification for the wrapper's synthetic capsule commit; no tests ran in that attempt. This PR uses the operator's explicit infrastructure-gap arming rule. Hostedopenclaw/ci-gateremains the merge gate; pending or unrun remote checks are not claimed as passing.Per-shard source metrics and changed files
These are the original shard-wide metrics, not a fresh aggregate coverage run of this PR. Coverage units overlap between shards and must not be summed. No cases were folded.
w1150 uses the later successful coordinator recovery comparison (remote run); its initial blocked report is superseded. w1149 is a passing-subset comparison containing both modified files; four unchanged replacement-publication tests failed in the historical full shard, so full-shard coverage is not claimed. The source reports document declaration-reduction shortfalls where retained contracts prevented further removal.
w1150
src/auto-reply/reply/get-reply.auto-fallback.test.tssrc/auto-reply/reply/get-reply.explicit-owner.test.tssrc/auto-reply/reply/get-reply.message-hooks.test.tssrc/auto-reply/reply/get-reply.reset-hooks-fallback.test.tssrc/auto-reply/reply/get-reply.timeout.test.tssrc/auto-reply/reply/get-reply.turn-model-selection-differential.test.tssrc/auto-reply/reply/get-reply.workspace-failure.test.tsw1153
src/agents/openclaw-tools.sessions-send-child-coordination.test.tssrc/agents/openclaw-tools.subagents.sessions-spawn.allowlist.test.tssrc/agents/openclaw-tools.subagents.sessions-spawn.plan.test.tssrc/agents/openclaw-tools.tts-config.test.tsw1160
config/test-mock-exports-baseline.txtextensions/zalouser/src/accounts.test-mocks.tsextensions/zalouser/src/channel.directory.test.tsextensions/zalouser/src/channel.sendpayload.test.tsextensions/zalouser/src/channel.test.tsextensions/zalouser/src/send.handoff.test.tsextensions/zalouser/src/send.test.tsw1156
scripts/lib/ci-policy-test-watch.mtsscripts/lib/ci-proof-test-inventory.mtssrc/cron/service.store-load-invalid-main-job.test.tssrc/cron/service.stream-trigger.test.tssrc/cron/service.stream-validation.test.tssrc/cron/service.trigger-cadence.test.tssrc/cron/service.trigger-eval.test.tssrc/cron/service.unresolved-owner.test.tssrc/cron/service.wake-now-real-heartbeat.test.tsw1157
src/acp/control-plane/manager.accepted-controls.test.tssrc/acp/control-plane/manager.accepted-ownership.test.tssrc/acp/control-plane/manager.actor-epoch-fencing.test.tssrc/acp/control-plane/manager.close-control.test.tssrc/acp/control-plane/manager.configured-bindings.test.tssrc/acp/control-plane/manager.failover.test.tssrc/acp/control-plane/manager.operator-model-policy.test.tssrc/acp/control-plane/manager.owner-authority.test.tssrc/acp/control-plane/manager.preactive-cancellation.test.tssrc/acp/control-plane/manager.reset-liveness.test.tssrc/acp/control-plane/manager.reset-options.test.tssrc/acp/control-plane/manager.restart.test.tssrc/acp/control-plane/manager.runtime-config-validation.test.tssrc/acp/control-plane/manager.runtime-config.test.tssrc/acp/control-plane/manager.runtime-handles.test.tstest/vitest/vitest.unit-fast-paths.mjsw1155
ui/src/lib/sessions/index.activity-summary.test.tsui/src/lib/sessions/index.board-presentation.test.tsui/src/lib/sessions/index.child-event-refresh.test.tsui/src/lib/sessions/index.event-refresh.test.tsui/src/lib/sessions/index.test.tsui/src/lib/sessions/index.tree-snapshots.test.tsw1149
src/config/sessions/session-accessor.sqlite-lifecycle-admission.test.tssrc/config/sessions/session-accessor.sqlite-maintenance-cadence.test.tsw1161
src/agents/agent-tools.at-prefixed-host-paths.test.tssrc/agents/agent-tools.collector.integration.test.tssrc/agents/agent-tools.memory-flush-append-write.test.tssrc/agents/agent-tools.runtime.test.tssrc/agents/agent-tools.session-owner.test.tssrc/agents/agent-tools.session-portal.test.tssrc/agents/agent-tools.workspace-outside.test.tssrc/agents/agent-tools.workspace-paths.test.tsw1159
config/test-timeout-race-baseline.txtsrc/agents/sandbox/remote-fs-bridge.parent-alias.test.tssrc/agents/sandbox/remote-fs-bridge.path-bytes.test.tssrc/agents/sandbox/remote-fs-bridge.test.tssrc/agents/sandbox/ssh.spawn-env.test.tssrc/agents/sandbox/ssh.stream-errors.test.tssrc/agents/sandbox/ssh.test.tsw1158
src/cli/cron-cli/shared.cause-display.test.tssrc/cli/cron-cli/shared.errors.test.tssrc/cli/cron-cli/shared.run-times-display.test.tssrc/cli/cron-cli/shared.test.ts