Repository navigation
test(commands,gateway,plugins,ui): remove low-value tests (batch d039) - #168028
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. What this changesThis PR consolidates repeated tests across commands, Gateway, plugins, release tooling, and Control UI, and removes unused test support and obsolete mock-baseline entries. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Blocked before merge - 1 item remains This PR contains distinct, useful test-maintenance work. No concrete defect was established in the reviewed consolidations, although this review does not independently certify preservation of every removed case. Priority: P3 Before merge
FindingsNone. Provenance
Agent review detailsHow this fits togetherThese tests exercise OpenClaw commands, Gateway requests, plugin behavior, release tools, and browser components using controlled fixtures. Their assertions detect changes to expected behavior without changing the shipped product. flowchart TD
A[Controlled behavior fixtures] --> B[Command and Gateway tests]
A --> C[Plugin and release-tool tests]
A --> D[Control UI component tests]
B --> E[Regression assertions]
C --> E
D --> E
E --> F[Test results and CI gates]
Technical reviewBest possible solution: Keep the focused test consolidation while preserving each independent behavioral contract in its existing test owner. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes test consolidation rather than a user-facing bug fix. Is this the best way to solve the issue? Yes for the inspected consolidations: they reuse existing test owners and carry meaningful assertions into retained cases; preservation of the entire batch was not independently established. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 21f1b4db4748. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
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 Reviewed October 9, 2026, 7:56 PM ET / 23:56 UTC. |
|
The only failing test jobs on head
PR CI run. Clean-main reproduction run, AWS Crabbox lease The batch does not touch either failing test or their identity/avatar production code. Main commit All other PR CI jobs passed or were intentionally skipped, with no pending checks; The delegated local changed-file gate never executed: its Testbox allocation timed out after 15 minutes queued and was stopped. The authorized AWS fallback supplied the clean-main failure proof. Landing this exact head under the campaign's explicitly authorized pre-existing-failure exception; main repair belongs to the coordinator. |
openclaw#168028) * test(auto-reply): deslop x1048 tests * test(commands): deslop x1056 tests * test(openai): deslop x1050 tests * test(gateway): deslop x1047 tests * test(test): deslop x1052 tests * test(config): deslop x1054 tests * test(qa-lab): deslop x1057 tests * test(test): deslop x1058 tests * test(gateway): deslop x1063 tests * test(ui): deslop x1061 tests
What Problem This Solves
The test-reduction campaign found duplicate variants, implementation-mirroring assertions, and repeated fixtures that add maintenance and execution cost without independent behavioral coverage.
User Impact
No production behavior changes. Batch d039 removes low-value test cases across commands, Gateway, OpenAI realtime, QA Lab, release tooling, and Control UI while retaining documented security, regression, and ordering coverage.
Why This Change Was Made
Replays ten previously validated campaign shards on current main. Test-only cleanup also removes one orphaned wizard fixture builder and three obsolete mock-export baseline entries. No runtime exports or production seams are removed.
The sole replay conflict was in
test/scripts/publish-model-catalog.test.ts: main's complete NVIDIA featured-model recommendation fixture and tests were retained, and the campaign's reduction of the older models.dev source-declaration table was applied. No commits or intended cleanup hunks were dropped. No paths match the current CODEOWNERS rules.Evidence
pnpm install --frozen-lockfile --prefer-offline, targetedoxfmt --write, plainoxlint -c .oxlintrc.json(exit 0 before each replayed commit), andgit diff --check origin/mainpassed locally.Focused proof on Blacksmith Testbox
tbx_01m4hek9m76nn69njxepgn409c: verified all 154 changed-file hashes in the remote checkout, installed the frozen lockfile, then ranCI=1 pnpm testwith every one of the 151 touched test paths. 2,385 passed, one existing Windows-only skip, 151 files, 11 Vitest shards; exit 0. Test runtime was 257.98 seconds. Includes the actual Chromium browser test. Allocation run. Lease stopped after proof; allocation-workflow cancellation on lease cleanup is not a test failure.Production LOC: +0/-0. Test files: +3,269/-21,052 (net -17,783). Test support: +0/-78. Mock baseline: +0/-3. Total: +3,269/-21,133 (net -17,864) across 154 files, measured against the PR merge base. The per-shard recorded declaration reduction totals 655.
OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 154 changed paths>was invoked. At publication it is pending Blacksmith Testbox allocation ontbx_01m4hgp645gaxym1b1bd5j77ws, after source-capsule preparation; no changed-file check has run or failed. This is an infrastructure validation gap, not a passing changed-check claim. The dry-run classification passed. Hosted requiredopenclaw/ci-gateremains the merge gate; independent autoreview runs during CI under the authorized campaign workflow.Per-shard campaign measurements and replay inventory
These are the previously measured in-shard totals, not a fresh whole-repository coverage claim. Each shard stayed within 1% covered-statement and covered-branch loss. Declaration counts and test LOC include the complete shard, including unchanged files. Reductions stopped where independent regression, security, ordering, or unique-coverage contracts required retention.
x1048 (
c939a4890f4f9d9a390fa0188b3c388c6ba6c527):src/auto-reply/reply/commands-btw.test.tssrc/auto-reply/reply/commands-compact.lifecycle.test.tssrc/auto-reply/reply/commands-compact.test.tssrc/auto-reply/reply/commands-context-report.test.tssrc/auto-reply/reply/commands-core.test.tssrc/auto-reply/reply/commands-diagnostics.test.tssrc/auto-reply/reply/commands-export-session.test.tssrc/auto-reply/reply/commands-export-trajectory.test-support.tssrc/auto-reply/reply/commands-gating.test.tssrc/auto-reply/reply/commands-goal.test.tssrc/auto-reply/reply/commands-info.test.tssrc/auto-reply/reply/commands-learn.test.tssrc/auto-reply/reply/commands-login.test.tssrc/auto-reply/reply/commands-loop.test.tssrc/auto-reply/reply/commands-mcp.test.tssrc/auto-reply/reply/commands-models.catalog-recovery.test.tssrc/auto-reply/reply/commands-models.test.tsx1056 (
95644c3b4ebd4753117dcf3ad03f005cfff385cf):src/commands/backup-verify-completeness.test.tssrc/commands/backup-verify.test.tssrc/commands/cleanup-utils.test.tssrc/commands/codex-runtime-plugin-install.test.tssrc/commands/config-validation.json.test.tssrc/commands/config-validation.test.tssrc/commands/configure.daemon.test.tssrc/commands/configure.gateway-auth.prompt-auth-config.test.tssrc/commands/configure.gateway.test.tssrc/commands/configure.wizard.gateway.test.tssrc/commands/configure.wizard.test-support.tssrc/commands/configure.wizard.test.tssrc/commands/control-ui-handoff.test.tssrc/commands/daemon-install-helpers.test.tssrc/commands/daemon-install-plan.shared.test.tssrc/commands/dashboard.links.test.tssrc/commands/dashboard.test.tsx1050 (
ba3f7fb2bd7177a26f0d52a1f3588c705f64d00f):extensions/openai/realtime-quicksilver-delegation.test.tsextensions/openai/realtime-quicksilver-gateway-bridge.test.tsextensions/openai/realtime-quicksilver-gateway-direct.test.tsextensions/openai/realtime-quicksilver-public-delegation.test.tsextensions/openai/realtime-quicksilver-session-lifecycle.test.tsextensions/openai/realtime-quicksilver-session-retirement.test.tsextensions/openai/realtime-quicksilver-session.test.tsextensions/openai/realtime-quicksilver-wire.test.tsextensions/openai/realtime-transcription-provider.test.tsextensions/openai/realtime-voice-bridge-connection.test.tsextensions/openai/realtime-voice-bridge-events.test.tsextensions/openai/realtime-voice-bridge-reconnect.test.tsextensions/openai/realtime-voice-bridge-tools.test.tsextensions/openai/realtime-voice-browser-auth.test.tsextensions/openai/realtime-voice-provider-routing.test.tsextensions/openai/realtime-voice-response-control.test.tsx1047 (
4235e5f44a190a4840701850b36fb5cf3666119b):src/gateway/server-methods/open-path.test.tssrc/gateway/server-methods/plugins-mutations.test.tssrc/gateway/server-methods/plugins.credentials.test.tssrc/gateway/server-methods/progress-card-refresh.integration.test.tssrc/gateway/server-methods/progress-card.test.tssrc/gateway/server-methods/projects-observed.test.tssrc/gateway/server-methods/projects.test.tssrc/gateway/server-methods/push.test.tssrc/gateway/server-methods/restart.test.tssrc/gateway/server-methods/secrets.test.tssrc/gateway/server-methods/server-methods.test.tssrc/gateway/server-methods/session-active-runs.test.tssrc/gateway/server-methods/session-catalog-entry-snapshot.test.tsx1052 (
74dd8f217d5ccdf0d9c3d7cf503ab6eee5655784):test/scripts/prompt-snapshots.test.tstest/scripts/publish-model-catalog.test.tstest/scripts/qa-profile-run-status.test.tstest/scripts/qa-report-cli.test.tstest/scripts/release-changelog.test.tstest/scripts/release-check.test.tstest/scripts/release-prepare.test.tstest/scripts/release-qualification-admission.test.tstest/scripts/release-telegram-candidate-archive.test.tstest/scripts/release-tooling-identity.test.tstest/scripts/release-upgrade-baseline.test.tstest/scripts/release-user-journey-assertions.test.tstest/scripts/release-validation-campaign.test.tstest/scripts/release-version.test.tstest/scripts/release-workflow-matrix-plan.test.tsx1054 (
48eee0ce5688c5e9ee6d56efb1fa45bb31568480):config/test-mock-exports-baseline.txtsrc/commands/onboard-custom-config.test.tssrc/commands/onboard-custom.test.tssrc/commands/onboard-inference.test.tssrc/commands/onboard-interactive.test.tssrc/commands/onboard-recommendations.test.tssrc/commands/onboard-remote-gateway.test.tssrc/commands/onboard-remote.test.tssrc/commands/onboard-skills.test.tssrc/commands/onboard.test.tssrc/commands/onboarding-plugin-install.test.tssrc/commands/reset.test.tssrc/commands/sandbox-explain.test.tssrc/commands/sandbox.test.tssrc/commands/sessions-cleanup.test.tssrc/commands/sessions-compact.test.tsx1057 (
103e1cc5fd149b7315c719d25783582b75367a06):extensions/qa-lab/src/suite-planning.test.tsextensions/qa-lab/src/suite-provider-selection.test.tsextensions/qa-lab/src/suite-run-standard.parity-retry.test.tsextensions/qa-lab/src/suite-runtime-agent-media.test.tsextensions/qa-lab/src/suite-runtime-agent-process.test.tsextensions/qa-lab/src/suite-runtime-agent-session.test.tsextensions/qa-lab/src/suite-runtime-agent-tools.test.tsextensions/qa-lab/src/suite-runtime-flow.test.tsextensions/qa-lab/src/suite-runtime-gateway.test.tsextensions/qa-lab/src/suite-runtime-transport.test.tsextensions/qa-lab/src/suite-summary.test.tsextensions/qa-lab/src/test-file-scenario-command-lifecycle.test.tsextensions/qa-lab/src/token-efficiency-report.test.tsextensions/qa-lab/src/tool-coverage-report.test.tsextensions/qa-lab/src/tool-search-gateway.fixture.test.tsx1058 (
a7286d8e14280c2df068615dc95c14e18c6aaeca):test/scripts/parallels-runtime-setup.test.tstest/scripts/periphery-intersection.test.tstest/scripts/plain-gh.test.tstest/scripts/plugin-clawhub-new-workflow.test.tstest/scripts/plugin-gateway-gauntlet.test.tstest/scripts/plugin-lifecycle-measure.test.tstest/scripts/plugin-npm-package-manifest-args.test.tstest/scripts/plugin-npm-prepared-release.test.tstest/scripts/plugin-npm-publish.test.tstest/scripts/plugin-npm-runtime-build-args.test.tstest/scripts/plugin-npm-security-scan.test.tstest/scripts/plugin-prerelease-test-plan.test.tstest/scripts/plugin-publication-artifact.test.tstest/scripts/plugin-release-pretag-pack-check.test.tstest/scripts/plugin-sdk-api-release-evidence.test.tsx1063 (
69db3343901ba82f0c29ff8359e03c034111e7df):src/gateway/chat-attachment-policy.test.tssrc/gateway/chat-attachments.test.tssrc/gateway/chat-queued-turns.test.tssrc/gateway/chat-sanitize.test.tssrc/gateway/client-bootstrap.auth.test.tssrc/gateway/config-get-response.test.tssrc/gateway/control-ui-assistant-media-policy.test.tssrc/gateway/control-ui-conditional.http.test.tssrc/gateway/control-ui-contract.test.tssrc/gateway/control-ui-csp.test.tssrc/gateway/control-ui-github-api.test.tssrc/gateway/control-ui-plugin-assets.test.tssrc/gateway/control-ui-plugin-tabs.test.tssrc/gateway/control-ui-routing.test.tssrc/gateway/control-ui-session-prs-branch.test.tsx1061 (
e2759ea34f8b0b382955280750fcfdb92c4cda82):ui/src/pages/chat/components/chat-message-media-lifecycle.test.tsui/src/pages/chat/components/chat-position-rail.test.tsui/src/pages/chat/components/chat-pull-requests.test.tsui/src/pages/chat/components/chat-question-card.test.tsui/src/pages/chat/components/chat-selection-popup.test.tsui/src/pages/chat/components/chat-session-sharing.test.tsui/src/pages/chat/components/chat-session-suggestions.test.tsui/src/pages/chat/components/chat-session-workspace-artifacts.test.tsui/src/pages/chat/components/chat-session-workspace-rail.test.tsui/src/pages/chat/components/chat-session-workspace.test.tsui/src/pages/chat/components/chat-sidebar-file-view.browser.test.tsui/src/pages/chat/components/chat-sidebar-region-hosted-tabs.test.tsui/src/pages/chat/components/chat-sidebar-region.test.tsui/src/pages/chat/components/chat-sidebar.test.tsui/src/pages/chat/components/chat-swarm-progress.test.ts