Repository navigation
test(agents,cli,infra,slack,ui): remove low-value tests (batch d316) - #178341
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 maintainer review before merge. What this changesThis PR consolidates repeated tests and fixtures across agents, reply recovery, CLI updates, infrastructure, Slack, and the Control UI. Example: A lightbox image upgrade fails temporarily.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored cleanup open; the inspected consolidations preserve meaningful regression boundaries, with no actionable correctness or security finding. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese test suites feed synthetic scenarios through existing runtime, transport, persistence, and UI owners, then assert observable results under CI. flowchart LR
A[Synthetic scenarios] --> B[Shared test fixtures]
B --> C[Existing production owners]
C --> D[Transport state and DOM results]
D --> E[Regression assertions]
E --> F[Required CI gate]
Technical reviewBest possible solution: Land the test consolidation after required CI passes, preserving the retained regression boundaries. Do we have a high-confidence way to reproduce the issue? This PR addresses repeated test setup rather than a reported product failure, so product-bug reproduction does not apply. Is this the best way to solve the issue? Consolidating fixtures and equivalent cases at existing test owners is appropriate, and the inspected transport, security, recovery, and UI regressions remain represented. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a52ba4f23384. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -3108, Other -5. Total -3113 across 77 files. Added test files: 5. View PR surface stats
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 20, 2026, 7:37 AM ET / 11:37 UTC. |
…penclaw#178341) * test(slack): deslop z0144 tests * test(slack): deslop z0144 tests * test(slack): deslop z0144 tests * test(ui): deslop z0142 tests * test(ui): deslop z0142 tests * test(ui): deslop z0141 tests * test(ui): deslop z0141 tests * test(ui): deslop z0141 tests * test(ui): deslop z0143 tests * test(ui): deslop z0143 tests * test(ui): deslop z0143 tests * test(agents): deslop z0145 tests * test(agents): deslop z0145 tests * test(agents): deslop z0145 tests * test(ui): deslop z0131 tests * test(ui): deslop z0131 tests * test(ui): deslop z0131 tests * test(infra): deslop z0147 tests * test(infra): further deslop z0147 tests * test(infra): further consolidate z0147 tests * test(agents): deslop z0146 tests * test(agents): deslop z0146 tests * test(agents): deslop z0146 tests * test(auto-reply): deslop z0149 tests * test(auto-reply): deslop z0149 tests * test(auto-reply): deslop z0149 tests * test(cli): deslop z0148 tests * test(cli): deslop z0148 tests * test(cli): deslop z0148 tests * test: preserve fixture contracts in batch d316 * test: retain baseline UI fixtures and document mock isolation * test: remove helpers orphaned by fixture restoration * test: preserve pin warning fixture and shrink mock baseline
Remove orphaned context-engine assertions and the already-current convergence table after openclaw#178340 and openclaw#178341. Keep webhook, MCP authority, and JSON-target helpers local after openclaw#178399, openclaw#172026, and openclaw#178407; replace the test-only skill-authoring reset seam with module isolation.
What Problem This Solves
Consolidates repeated test fixtures and assertions across the d316 campaign shards without changing production behavior.
User Impact
No user-visible behavior change. Test-only cleanup plus a shrink-only test baseline; no production code, runtime configuration, dependencies, or release artifacts changed. Distinct authority, lifecycle, security, and recovery cases are retained.
Why This Change Was Made
Replayed the supplied campaign commits onto pinned main 8318dc3. Current-main changes win wherever the older cleanup conflicts with newer regression coverage.
Replay decisions
Evidence
Passed frozen-lockfile install, changed-file oxfmt, plain oxlint, and git diff --check. No local Vitest, check-changed, typecheck, coverage, or Testbox runs, per the operator's CI-only policy. Hosted openclaw/ci-gate is the behavior/type/merge proof. Independent review runs during CI. Local test wall time and CI test seconds are not claimed before hosted results.
Production LOC: +0 / -0. Test and test-support LOC: +8991 / -13119 (net -4128). Test baseline: +0 / -5. Total net: -4133. No touched paths match the current CODEOWNERS rules.
Shard evidence
The source reports explicitly say tests and coverage were not run under CI-only mode; no coverage totals or <=1% coverage-drop claim is available. The following counts compare this replay against its pinned main, including test support. Declaration counts are lexical it/test call counts, not expanded cases.
Files considered by shard (four restored files documented below)
extensions/slack/src/monitor/message-handler.thread-resolution.test.ts,extensions/slack/src/monitor/monitor.media.test.ts,extensions/slack/src/monitor/provider.ingress-start-cleanup.test.ts,extensions/slack/src/monitor/provider.interop.test.ts,extensions/slack/src/monitor/provider.reconnect-loop.test.ts,extensions/slack/src/monitor/provider.transport-credentials.test.ts,extensions/slack/src/monitor/relay-source.test.ts,extensions/slack/src/monitor/provider.event-identity-recovery.test.tsui/src/components/solid/hub-tabs.browser.test.tsx,ui/src/components/solid/identity-avatar.test.tsx,ui/src/components/solid/menu-frozen-contract.browser.test.tsx,ui/src/components/solid/menu-native-contract.browser.test.tsx,ui/src/components/solid/menu-navigation.browser.test.tsx,ui/src/components/solid/menu-shortcut-alignment.browser.test.tsx,ui/src/components/solid/modal-dialog.browser.test.tsx,ui/src/components/solid/menu-contract.test-support.tsxui/src/components/hub-tabs.browser.test.tsx,ui/src/components/identity-avatar-view.test.tsx,ui/src/components/image-lightbox.browser.test.ts,ui/src/components/image-lightbox.test.ts,ui/src/components/keyboard-shortcuts-dialog.test.ts,ui/src/components/link-reader-metadata.test.ts,ui/src/components/image-lightbox-gallery.test.tsui/src/app/overlays-update-continuity.test.ts,ui/src/app/plugin-distributions.node.test.ts,ui/src/app/render-error-reload.test.ts,ui/src/app/route-transition.test.ts,ui/src/app/router-outlet-chat.test.tsx,ui/src/app/router-outlet-presentation.test.tsx,ui/src/app/router-outlet.test.tsx,ui/src/app/overlays-update.test-support.ts,ui/src/app/router-outlet-fixtures.test-support.tsxsrc/agents/tools/agent-step.test.ts,src/agents/tools/agents-wait-tool.required.test.ts,src/agents/tools/ask-user-tool-normalization.test.ts,src/agents/tools/github-publish-tool.test.ts,src/agents/tools/in-process-gateway.test.ts,src/agents/tools/computer-tool.test-helpers.ts,src/agents/tools/decision-tool.integration.test.tsui/src/pages/chat/components/chat-transcript-scroll-ownership.test.tsx,ui/src/pages/chat/components/chat-transcript-touch-prepend.test.tsx,ui/src/pages/chat/components/chat-transcript-voice-reconciliation.test.ts,ui/src/pages/chat/components/chat-transcript-recovery.test.ts,ui/src/pages/chat/components/chat-transcript-replies.test.ts,ui/src/pages/chat/components/chat-transcript-row-refs.test.ts,ui/src/pages/chat/components/chat-turn-video-gallery.test.ts,ui/src/pages/chat/components/chat-working-indicator.test.tssrc/infra/ssh-config.test.ts,src/infra/state-migrations.media-persistence.test.ts,src/infra/state-migrations.shared-auth-store.lifecycle.test.ts,src/infra/state-migrations.transcript-directives.masked-provider.test.ts,src/infra/sqlite-worker-transcripts.export-settlement.test.ts,src/infra/sqlite-worker-transfer.test.ts,src/infra/stale-while-revalidate-cache.test.tssrc/agents/custom-api-registry.test.ts,src/agents/decision-inference.integration.test.ts,src/agents/decision-inference.openai.integration.test.ts,src/agents/decision-inference.openrouter.integration.test.ts,src/agents/decision-inference.test-support.ts,src/agents/delegation-capability.test.ts,src/agents/delegation-guidance.test.ts,src/agents/docs-path.test.ts,src/agents/core-coding-tools.exec-workdir.test.tssrc/auto-reply/reply/restart-recovery-claim.lifecycle.test.ts,src/auto-reply/reply/route-reply.prepared.test.ts,src/auto-reply/reply/route-reply.test.ts,src/auto-reply/reply/recovery-controller.fixture.test-support.ts,src/auto-reply/reply/restart-recovery-claim.durability.test.ts,src/auto-reply/reply/restart-recovery-claim.pending-input.test.ts,src/auto-reply/reply/route-reply.fixture.test-support.ts,src/auto-reply/reply/route-reply.imessage.test.ts,src/auto-reply/reply/route-reply.recovery-owner.test.tssrc/cli/state-dir-gateway-check.server.test.ts,src/cli/state-dir-gateway-check.test.ts,src/cli/system-cli.test.ts,src/cli/update-cli-lifecycle.test-support.ts,src/cli/update-cli.already-current.test.ts,src/cli/update-cli.candidate-activation.test.ts,src/cli/update-cli.candidate-admission.test.ts,src/cli/state-dir-gateway-check.server-fixture.test-support.tsCI and review follow-up
The initial CI run found replay-local test-type errors, unbound SDK method references, and a missing runtime-config snapshot inside the isolated durability fixture. Commit a63ffbd restores the fixture setup, the persisted user-message type and execution-run identity, typed signal/config/tuple contracts, void cleanup, and bound SDK calls. Local formatting, plain oxlint, and diff checks passed again; fresh-head CI must verify runtime/types. Initial run: https://github.com/openclaw/openclaw/actions/runs/39409519174.
Independent review returned seven findings. Accepted two: restored the SVG data-URL download case and modified-link / selection-veto cases. Rejected five after source verification: DecisionRuntimeV2 explicitly extends DecisionRuntimeV1; LinkReaderHovercardProvider is registered by its module; mountSolid roots are cleaned by the shared dom.setup afterEach (both alleged leaks); foreign-origin no-fetch is retained at the avatar loader owner. The follow-up 11-file correction review completed clean with no actionable P0-P2 findings.
The second CI run passed the repaired core lint/type jobs and durability shard, then identified four replayed UI fixture failures and five modified mocks needing isolation documentation. Commit 98f2545 restores these four files byte-for-byte to pinned main: ui/src/components/link-reader-metadata.test.ts, ui/src/app/router-outlet.test.tsx, ui/src/pages/chat/components/chat-transcript-recovery.test.ts, and ui/src/components/solid/menu-navigation.browser.test.tsx. Their cleanup is dropped, including the menu rewrite; main retains the full modified-link/veto tests. The five mock factories keep their existing behavior with explicit isolation reasons. Formatting, plain oxlint and diff-check passed. Final diff: 76 test/support files; no production changes. Second run: https://github.com/openclaw/openclaw/actions/runs/39410758248.
Follow-up 7250eb9 removes the now-unreferenced McpView and controlButton test helpers and their imports after those restorations. Changed-file formatting, plain lint, and diff-check passed again. The restoration/helper delta is independently reviewed while final-head CI runs.
The restoration/helper review completed clean. CI on 7250eb9 then required removing the five exact obsolete mock-baseline entries corresponding to the new isolation notes and found the retained-pin warning fixture had lost currentVersion/nextVersion metadata. Commit 34eb115 restores the original explicit version fields and shrinks only those five baseline rows. Formatting, plain lint, and diff-check passed. The assertion and production behavior are unchanged. Final scope: 76 test/support files plus one test baseline. Run: https://github.com/openclaw/openclaw/actions/runs/39412379583.