Repository navigation
test(core,ui,plugins): remove low-value tests (batch d018) - #167240
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, 9:51 AM ET / 13:51 UTC (Revision 2). ClawSweeper reviewWhat this changesThis PR consolidates regression cases into existing suites and removes redundant tests, unused test support, and retired test inventory entries. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-requested cleanup has concrete maintenance value, and the inspected changes reveal no blocking defect. Historical validation and incomplete coverage comparisons limit review confidence. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherOpenClaw’s automated tests check agent execution, Gateway access, channel delivery, and browser state. Test inventories route selected suites into CI; this cleanup changes those checks without changing the shipped runtime. flowchart TD
A[Regression scenarios] --> B[Consolidated test suites]
C[Shared test fixtures] --> B
D[Test inventories] --> E[CI test selection]
E --> B
B --> F[Behavior assertions]
F --> G[Validation results]
Technical reviewBest possible solution: Keep meaningful regressions at their existing test owners and let the normal CI gate qualify the pinned candidate. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR cleans up tests rather than fixing a reported runtime defect. Is this the best way to solve the issue? Yes for the inspected consolidations: moving distinct regressions into existing owner suites avoids another implementation path; the supplied coverage comparisons have explicitly bounded scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ffb01e30ff3d. Provenance checked
TestingProof path: in-process harness. Added test files: 67. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -4269, Other -3. Total -4272 across 78 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 HistoryReview history (1 earlier review cycle)
|
05834c9 to
a927217
Compare
|
The remaining CI failure on
The baseline started with a clean checkout and used the CI preparation and profile selection: CI=1 OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build qaRuntime
CI=1 OPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_ENABLE_PRIVATE_QA_CLI=1 OPENCLAW_DISABLE_BUNDLED_PLUGINS=0 OPENCLAW_QA_REDACT_PUBLIC_METADATA=1 OPENCLAW_QA_TRANSPORT_READY_TIMEOUT_MS=180000 OPENCLAW_QA_SUITE_WORKER_START_STAGGER_MS=1500 NODE_OPTIONS=--max-old-space-size=16384 timeout --signal=TERM --kill-after=15s 10m node openclaw.mjs qa run --repo-root . --qa-profile smoke-ci --concurrency 10 --output-dir .artifacts/d018-private-main-qa --scenario telegram-help-command --scenario telegram-whoami-command --scenario gateway-smokeThe build changes tracked Baseline limitation: the two Telegram flow cases additionally encountered Testbox artifact-permission refusals. The independently launched The earlier missing system-agent cleanup helper was separately reproduced on main and resolved upstream by Landing this test-only batch under the operator-authorized pre-existing-failure rule. The QA failure will be added to the coordinator's main-repair ledger. |
…167240) * test(ui): deslop w1163 tests * test(telegram): deslop w1167 tests * test(gateway): deslop w1165 tests * test(agent-core): deslop w1164 tests * test(ui): deslop w1162 tests * test(synology-chat): deslop w1169 tests * test(discord): deslop w1171 tests * test(gateway): deslop w1166 tests * test(qa-lab): deslop w1168 tests * test(openai): deslop w1173 tests * test: retain reviewed boundary coverage in batch d018
What Problem This Solves
This maintainer-requested test cleanup removes repeated setup, duplicate behavior cases, and implementation-level assertions from ten validated campaign shards.
User Impact
There is no user-visible runtime change. Distinct authorization, privacy, cancellation, delivery, and lifecycle regression cases remain; retained cases from retired split suites move into their existing owner suites.
Why This Change Was Made
Batch d018 replays all ten requested commits onto main at
b925148b83b7ebddb32e1dd68769d6588d16f800. All commits applied in order without conflicts or skipped commits. Existing main changes were preserved. One subsequent rebase included main's orphan-export fixf6c34cd2a5cdaba11017a46f72ff3a9c611e4f0e;git range-diffconfirms all eleven commits (ten batch commits plus review corrections) remained patch-identical. Follow-up review retained four narrowly scoped contracts described below. Only test code, test support, and obsolete test inventory entries change. No CODEOWNERS rule matches the changed paths.The replay diff is +4,183 / -8,455 lines (net -4,272) across 78 files: runtime production +0/-0, tests and support +4,183/-8,452, and CI inventory tooling +0/-3. The test-support subtotal includes four removed entries in the database-worker test inventory.
Review adjustments
The full diff review raised six P2 findings. Four were accepted: retained the raw command and picker thread-parent denial cases, the configured/requested proxy-scope intersection case without a declared-scope header, and the prepared reasoning-final lane assertion; enriched the retained v1 outbox migration case with the original failed-send error and attachment bytes. These restore four executed cases and strengthen one existing case without restoring the retired split suites. A focused review of these corrections found no actionable P0–P2 issues.
Two findings were rejected after checking the owner and surviving tests. Incognito admission, update, and removal all use the same reader/writer, whose unconditional scrub is protected by the retained queue-update and store-owner privacy tests. The permission lifecycle table still changes
sessionKeyfor both success and rejection, and production checks selection ownership before inspecting an unavailable patch result; the deleted null-result row duplicated that guard.Evidence
05834c927564e93eb273cc20fc58f71d1469feae: 566 tests passed across 44 files (43 surviving changed tests plus the CI inventory owner), usingCI=1 pnpm test <files>on Blacksmith Testboxtbx_01m4dpzwzaky4jn94ze8cywrbq. Testbox run.oxfmt --write <changed files>, plainoxlint -c .oxlintrc.json <changed files>, andgit diff --check: pass on the final tree.check:changed --base b925148b83b7ebddb32e1dd68769d6588d16f800 -- <changed paths>passed formatting, ratchets, boundary guards, all 27 core test type-check shards, and production UI types. It was interrupted during extension test types because the wrapper's temporary full checkout disappeared; the remaining extension/script/dead-export/type-aware-lint checks are not claimed as passing on this final head. No code diagnostic preceded that interruption. Hostedopenclaw/ci-gateremains the merge gate under the campaign's infrastructure-gap policy.LocalRemoteShellSpawnResultexport. Main had already removed that export inf6c34cd2a5cdaba11017a46f72ff3a9c611e4f0e, which this branch includes after rebase. The four review-corrected files and inventory test also passed before the patch-identical rebase.Original shard evidence follows. These are the campaign's before/after measurements, not a new coverage measurement on this rebased head. LOC and declaration counts describe the original shard inventory; the replay diff above is authoritative for this PR.
w1163 additionally removes 495 lines from exclusive case helpers (3,305 → 2,810); helper-inclusive declarations are 142 → 119. w1173 additionally removes a redundant shared-helper case and its unused parameter.
Coverage limits: w1166 compares only 1/16 original files; 15 were excluded following a baseline RPC timeout. Both reduced snapshots passed, but those excluded files have no comparable coverage claim. w1168 used a separately repaired baseline (
d8344f4bb6e) that fixes a stale documentation reference inqa/scenarios/plugins/skill-owner-direct-edit-live.yaml. Original changed-check runs for w1162, w1163, w1168, and w1171 were incomplete because of infrastructure failures. w1173's original changed check found five unused test-helper exports also reproduced on its baseline. Fresh replay validation is reported above separately.Per-shard files and original coverage totals
w1163
ui/src/components/app-sidebar.background-scope.test.tsui/src/components/app-sidebar.bootstrap-race.test.tsui/src/components/app-sidebar.catalog-discovery.test.tsui/src/components/app-sidebar.catalog-hidden-pages.test.tsui/src/components/app-sidebar.catalog-import.test.tsui/src/components/app-sidebar.catalog-scope.test.tsui/src/components/app-sidebar.interactions.test.tsui/src/components/app-sidebar.lineage-freshness.test.tsui/src/components/app-sidebar.lineage-successor.test.tsui/src/components/app-sidebar.projection-memo.test.tsui/src/components/app-sidebar.session-feedback.test.tsui/src/test-helpers/app-sidebar-cases/basics.tsui/src/test-helpers/app-sidebar-cases/footer-status.tsui/src/test-helpers/app-sidebar-cases/group-mutations.tsui/src/test-helpers/app-sidebar-cases/interactions.tsui/src/test-helpers/app-sidebar-cases/new-group-dialog.tsui/src/test-helpers/app-sidebar-cases/section-reordering.tsui/src/test-helpers/app-sidebar-cases/session-mutations.tsui/src/test-helpers/app-sidebar-cases/sidebar-scroll.tsscripts/lib/ci-proof-test-inventory.mtsw1167
extensions/telegram/src/bot-message-dispatch.delivery-transcript.test.tsextensions/telegram/src/bot-message-dispatch.directive-delivery.test.tsextensions/telegram/src/bot-message-dispatch.draft-finalization.test.tsextensions/telegram/src/bot-message-dispatch.fallback-topic-media.test.tsextensions/telegram/src/bot-message-dispatch.final-delivery-lifecycle.test.tsextensions/telegram/src/bot-message-dispatch.native-question.test.tsextensions/telegram/src/bot-message-dispatch.preview.telegram-http.test.tsextensions/telegram/src/bot-message-dispatch.progress-card.test.tsextensions/telegram/src/bot-message-dispatch.progress-command-detail.telegram-http.test.tsextensions/telegram/src/bot-message-dispatch.reasoning-room-events.test.tsextensions/telegram/src/bot-message-dispatch.reply-targets.telegram-http.test.tsextensions/telegram/src/bot-message-dispatch.status-reactions.test.tsscripts/lib/ci-proof-test-inventory.mtstest/vitest/vitest.extension-database-workers-paths.mjsw1165
src/gateway/terminal/session-manager.agent-lifecycle.test.tssrc/gateway/terminal/session-manager.detach.test.tssrc/gateway/terminal/session-manager.eviction.test.tssrc/gateway/terminal/session-manager.intro-banner.test.tssrc/gateway/terminal/session-manager.open-cancellation.test.tssrc/gateway/terminal/session-manager.output-ring.test.tssrc/gateway/terminal/session-manager.test.tsw1164
packages/agent-core/src/agent-loop.async-tools.test.tspackages/agent-core/src/agent-loop.steering.test.tspackages/agent-core/src/agent-loop.test.tspackages/agent-core/src/agent-loop.tool-batch-admission.test.tsw1162
ui/src/pages/chat/chat-pane-session-controls.model.test.tsui/src/pages/chat/chat-pane-session-controls.permissions.test.tsui/src/pages/chat/chat-pane-session-controls.test.tsui/src/pages/chat/composer-persistence.failed-attachments.test.tsui/src/pages/chat/composer-persistence.incognito.test.tsui/src/pages/chat/composer-persistence.presence.test.tsui/src/pages/chat/composer-persistence.test.tsw1169
extensions/synology-chat/src/channel.pairing.test.tsextensions/synology-chat/src/channel.test.tsw1171
extensions/discord/src/monitor/message-handler.ack-policy.test.tsextensions/discord/src/monitor/message-handler.context-history.test.tsextensions/discord/src/monitor/message-handler.debounce-policy.test.tsextensions/discord/src/monitor/message-handler.preflight-owned-threads.test.tsextensions/discord/src/monitor/message-handler.queue.test.tsextensions/discord/src/monitor/native-command.guild-guards.test.tsextensions/discord/src/monitor/native-command.interaction-boundary.test.tsw1166
src/gateway/server.auth.compat-baseline.test.tssrc/gateway/server.auth.trusted-proxy-device-autoapprove.test.tssrc/gateway/server.chat-adopted-failure.test.tssrc/gateway/server.chat-cli-auth.test.tssrc/gateway/server.chat-command-context.test.tsw1168
extensions/qa-lab/src/scenario-catalog.approval.test.tsextensions/qa-lab/src/scenario-catalog.config-restart.test.tsextensions/qa-lab/src/scenario-catalog.delegation.test.tsextensions/qa-lab/src/scenario-catalog.prompt-evidence.test.tsextensions/qa-lab/src/scenario-catalog.test.tsextensions/qa-lab/src/suite-run-isolated.cleanup.test.tsextensions/qa-lab/src/suite-run-isolated.nested.test.tsextensions/qa-lab/src/suite-run-isolated.runtime.test.tsextensions/qa-lab/src/suite-runtime-parity-runner.cleanup.test.tsextensions/qa-lab/src/suite-runtime-parity-runner.control-ui.test.tsw1173
extensions/openai/openai-provider.models.test.tsextensions/openai/openai-provider.test.tsextensions/openai/test-support/model-service-tiers.test-support.ts