Repository navigation
test(core,plugins,ui): remove low-value tests (batch d208) - #165243
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:36 PM ET / October 5, 2026, 01:36 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch removes repeated tests, consolidates retained contracts into existing suites, and trims obsolete test support and inventory entries. Merge readiness⛔ Blocked before merge - 2 items remain This remains useful test cleanup with no concrete introduced defect found in the inspected changes. The latest commit corrects the stale Bash expectation; historical coverage is clearly distinguished from current-head validation. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s tests exercise agent, Gateway, plugin, and chat behavior using controlled scenarios. Test inventories route the surviving suites into CI checks. flowchart LR
A[Agent and Gateway behavior] --> C[Controlled test scenarios]
B[Plugin and chat behavior] --> C
C --> D[Retained test suites]
E[Test inventories] --> D
D --> F[CI validation results]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one primary test owner per contract while preserving distinct security, lifecycle, recovery, and presentation coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this is test cleanup, and no concrete introduced failing behavior was established. Tests were not run in the read-only checkout. Is this the best way to solve the issue? Yes: consolidating retained cases into existing owners and shrinking obsolete inventories is a maintainable approach without adding runtime seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ea00cb30c661. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
The moved UTF-16 progress case must retain main’s plain Bash prefix. The prior replay failed checks-node-changed-extensions-bundle-1 on the stale emoji expectation; truncation and surrogate-pair assertions remain unchanged.
…165243) * test(slack): deslop w0016 tests * test(auto-reply): deslop w0018 tests * test(ui): deslop w0009 tests * test(gateway): deslop w0021 tests * test(doctor): deslop w0020 tests * test(agents): deslop w0019 tests * test(codex): deslop w0024 tests * test(gateway): deslop w0008 tests * test(commands): deslop w0025 tests * test(system-agent): deslop w0023 tests * test: retain distinct authority and lifecycle coverage * test(slack): share native delivery denial fixtures * test(codex): preserve current command output presentation The moved UTF-16 progress case must retain main’s plain Bash prefix. The prior replay failed checks-node-changed-extensions-bundle-1 on the stale emoji expectation; truncation and surrogate-pair assertions remain unchanged.
What Problem This Solves
Batch d208 removes repeated and implementation-coupled test cases from ten previously audited campaign shards, and consolidates retained cases into their owning suites.
User Impact
No production-code or user-visible behavior changes. Retained tests continue to cover authority, lifecycle, recovery, output, and security boundaries. There are no API, schema, dependency, or configuration changes.
Why This Change Was Made
Replay the ten approved test-reduction commits onto current main. Remove duplicate assertions and retired split files, trim exclusive test support, and shrink stale baseline/inventory entries. The original shard coverage comparisons stay within the campaign's 1% covered-statement/branch-loss limit; these are historical shard measurements, not a fresh aggregate coverage claim on this rebased head.
All ten commits applied; none skipped. Conflict resolution reapplied the intended deletions in Slack progress and Codex projector suites after comparing current-main presentation-text changes. No new main cases were discarded. Review subsequently restored distinct retained contracts; the final test footprint below includes those corrections. The separate Gateway HTTP asynchronous fixture repair is already on main in ddcae51 (#165012), so no duplicate fix was added. No runtime seams were removed.
CODEOWNERS: none of the changed paths matches the current ownership file.
Evidence
git diff --check, and plain oxlint over every surviving changed TS/JS file passed.openclaw/ci-gateis the merge gate. Auto-merge is pinned to the pushed head.Shard reductions and original coverage evidence
The w0023 summary predates the final successful coverage run; the later completion log and coverage artifact have unchanged totals, and the committed patch matches. w0024's final unreachable test-branch cleanup retained its inputs and assertions, but its coverage refresh was blocked by infrastructure. Several original shard changed checks also ended with infrastructure interruptions; the batch validation above states what completed on this replay.
Files touched by shard
w0016
config/max-lines-baseline.txtextensions/slack/src/approval-native.setup.test.tsextensions/slack/src/approval-native.test.tsextensions/slack/src/progress-blocks.card.test.tsextensions/slack/src/progress-blocks.command-output.test.tsextensions/slack/src/progress-blocks.test.tsextensions/slack/src/send.blocks.test.tsw0018
src/auto-reply/reply/agent-runner.final-media-runreplyagent.test.tssrc/auto-reply/reply/agent-runner.media-paths.test.tssrc/auto-reply/reply/agent-runner.misc.runreplyagent.test.tssrc/auto-reply/reply/agent-runner.visible-work.runreplyagent.test.tssrc/auto-reply/reply/reply-run-registry.test.tstest/vitest/vitest.database-worker-core-paths.mjsw0009
ui/src/pages/chat/components/chat-message.forwarded-attribution.test.tsui/src/pages/chat/components/chat-message.startup.test.tsui/src/pages/chat/components/chat-message.test.tsui/src/pages/chat/components/chat-pane-header.test.tsui/src/pages/chat/components/chat-pane-header.workspace-icon.test.tsui/src/pages/chat/components/chat-tool-cards.node.test.tsui/src/pages/chat/components/chat-tool-cards.redaction.test.tsui/src/pages/chat/components/chat-tool-cards.test.tsui/src/pages/chat/components/chat-tool-cards.widget-prompts.test.tsw0021
src/gateway/server-methods/chat-metadata-runtime.refresh.test.tssrc/gateway/server-methods/chat-metadata-runtime.shutdown.test.tssrc/gateway/server-methods/chat-metadata-runtime.test.tssrc/gateway/server-methods/question.own-run.test.tssrc/gateway/server-methods/question.test.tssrc/gateway/server-methods/send.test.tssrc/gateway/server-methods/send.upload-policy.test-support.tsw0020
config/test-mock-exports-baseline.txtsrc/commands/doctor/shared/legacy-config-migrate.e2e.test.tssrc/commands/doctor/shared/legacy-config-migrate.provider-shapes.test.tssrc/commands/doctor/shared/legacy-config-migrate.test.tssrc/commands/doctor/shared/missing-configured-plugin-install.availability.test.tssrc/commands/doctor/shared/post-core-plugin-convergence.retirement.test.tssrc/commands/doctor/shared/post-core-plugin-convergence.test.tsw0019
src/agents/embedded-agent-runner/run/images.combinations.test.tssrc/agents/embedded-agent-runner/run/images.replay.test.tssrc/agents/embedded-agent-runner/run/images.test.tssrc/agents/embedded-agent-runner/run/payloads.cron-delivery.test.tssrc/agents/embedded-agent-runner/run/payloads.delivery-recovery.test.tssrc/agents/embedded-agent-runner/run/payloads.heartbeat.test.tssrc/agents/embedded-agent-runner/run/payloads.process-errors.test.tssrc/agents/embedded-agent-runner/run/payloads.test.tssrc/agents/embedded-agent-runner/run/preemptive-compaction.bashexec.test.tssrc/agents/embedded-agent-runner/run/preemptive-compaction.replay.test.tssrc/agents/embedded-agent-runner/run/preemptive-compaction.test.tsw0024
extensions/codex/src/app-server/event-projector.assistant.test.tsextensions/codex/src/app-server/event-projector.async-delivery.test.tsextensions/codex/src/app-server/event-projector.code-mode.test.tsextensions/codex/src/app-server/event-projector.command-output.test.tsextensions/codex/src/app-server/event-projector.commentary.test.tsextensions/codex/src/app-server/event-projector.cyber-notices.test.tsextensions/codex/src/app-server/event-projector.dynamic-tools.test.tsextensions/codex/src/app-server/event-projector.media.test.tsextensions/codex/src/app-server/event-projector.native-audit.test.tsextensions/codex/src/app-server/event-projector.native-failures.test.tsextensions/codex/src/app-server/event-projector.native-finalization.test.tsextensions/codex/src/app-server/event-projector.output-fidelity.test.tsextensions/codex/src/app-server/event-projector.reasoning.test.tsextensions/codex/src/app-server/event-projector.replay-safety.test.tsextensions/codex/src/app-server/event-projector.terminal-errors.test.tsscripts/lib/ci-proof-test-inventory.mtsw0008
config/test-mock-exports-baseline.txtsrc/gateway/chat-abort.authority.test.tssrc/gateway/chat-abort.history-budget.test.tssrc/gateway/chat-abort.test.tssrc/gateway/dashboard-session-title.source-lifecycle.test.tssrc/gateway/dashboard-session-title.test.tssrc/gateway/server-broadcast.board.test.tssrc/gateway/server-broadcast.narration.test.tssrc/gateway/server-broadcast.presence-serialization.test.tssrc/gateway/server-broadcast.scopes.test.tssrc/gateway/server-broadcast.serialization.test.tssrc/gateway/tools-invoke-http.cron-regression.test.tssrc/gateway/tools-invoke-http.test.tssrc/gateway/tools-invoke.policy.test-support.tsw0025
scripts/lib/ci-proof-test-inventory.mtssrc/commands/doctor.refuses-newer-database-schemas.e2e.test.tssrc/commands/doctor.runs-legacy-state-migrations-yes-mode-without.e2e.test.tssrc/commands/doctor.test.tssrc/commands/doctor.warns-state-directory-is-missing.e2e.test.tssrc/commands/health.account-inspection.test.tssrc/commands/health.snapshot.test.tssrc/commands/health.test.tssrc/commands/sessions.acp-model-display.test.tssrc/commands/sessions.acp-runtime-metadata.test.tssrc/commands/sessions.default-agent-store.test.tssrc/commands/sessions.kind-classification.test.tssrc/commands/sessions.model-resolution.test.tssrc/commands/sessions.test.tsw0023
src/system-agent/chat-turn-router.approval.test.tssrc/system-agent/chat-turn-router.handoff.test.tssrc/system-agent/chat-turn-router.operations.test.tssrc/system-agent/operations.doctor.test.tssrc/system-agent/operations.gateway-lifecycle.test.tssrc/system-agent/operations.roles.test.tssrc/system-agent/operations.setup.test.tssrc/system-agent/operations.test.tssrc/system-agent/setup-apply.model-selection.test.tssrc/system-agent/setup-apply.test.tsFinal LOC split against the main base: production +0/-0; test tooling/ratchets +0/-11 (net -11, 4 files); tests +4401/-13047 (net -8646, 92 files); test support +54/-111 (net -57, 2 files).
Review resolutions
Restored distinct contracts: Slack agent-filter origin/DM denial; default HTTP cron/Gateway denial; admitted question provenance overwrite; disabled workboard and singular-media uploads; four plugin/MCP broadcast scope mappings; delegated individual-agent creation provenance; quoted account/plugin leaf redaction through chat history; post-commit team-creation failure receipts. Shared existing fixtures retain these cases without production changes. The original shard table is historical; these restorations make the final reduction smaller.
Seven findings were rejected after checking current owner tests:
images.replay.test.tsretains marker exclusion;src/media/web-media.test.tsrejects UNC before filesystem resolution, and sandbox-path tests preserve the network-path boundary.event-projector.replay-safety.test.tsretains a failed, blocked result with positive side-effect evidence and requires replay refusal. The owner records that evidence independently of terminal classification.chat-abort.test.ts, including exact-instance revocation, callback ordering, and same-ID successor protection.src/flows/doctor-core-checks.test.tsexplicitly reports an unresolved configured SecretRef despite an ambient Gateway token.invokeGatewayTool; the retained typed policy-block test reaches the shared early refusal before execution. HTTP refusal serialization remains covered.auth-profile-override-provenance.test.tschecks both legacy markers andsession-override.user-pin.test.tschecks preserve/rotate behavior. Metadata consumes that same classifier.Within the partially accepted findings, redundant file-write upload rows,
users.prefs.changedscope repetition, and incoming-URL redaction repetition remain removed because their specific contracts have retained coverage.