Repository navigation
test(core,ui): remove low-value tests (batch d172) - #174255
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
4541de1 to
7e0feb6
Compare
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates repeated test fixtures and assertions across core and UI suites without changing production code. Example: A device requests operator.admin and later reconnects requesting operator.pairing.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the test consolidation has clear maintenance value, and no concrete introduced correctness or security defect was identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe changed test infrastructure supplies synthetic requests, files, and lifecycle events to existing production owners and checks their observable results. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Observable results]
D --> E[Contract assertions]
E --> F[Hosted CI gate]
Technical reviewBest possible solution: Retain the consolidation and land through the existing exact-head CI gate with established handling for inherited failures. Do we have a high-confidence way to reproduce the issue? This PR addresses test maintenance rather than a product defect; static inspection and existing hosted results were reviewed without executing tests. Is this the best way to solve the issue? Shared fixtures and parameterized cases fit the maintenance goal, and inspected lifecycle, pairing, retry, migration, and attachment boundaries retain their substantive assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10ee98441845. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -3793, Other -2. Total -3795 across 58 files. Added test files: 2. 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 16, 2026, 10:11 AM ET / 14:11 UTC. |
Hourly 38916811035 reported the route inventories as unused, but Vite loads them through runnerImport and embeds them in the offline shell. Keep that runtime contract and model the actual named property reads in Knip through its existing MJS compiler. Preserve Vite discovery and TypeScript declaration-to-source mapping; add no ignores. Make four remaining declarations private after #174279 and #174260 removed external logging consumers and #174255 consolidated fixtures. Their internal callers and behavior remain intact. I18nController was already removed by #174263. Proof: all three deadcode export scans have zero findings; the original baseline had six. The guard passes with pnpm test test/scripts/check-deadcode-exports.test.ts --maxWorkers=1 (5.67s). Existing route/build/cache tests and 148 owner/importer cases pass (199.76s for the owner batch). Owning typechecks, typed lint, boundary lint, and formatting pass. Negative control and P2 review recorded in PR evidence. P2 autoreview is scoped-clean with no actionable findings.
* test(gateway): deslop x7143 tests * test(gateway): deslop x7143 tests * test(gateway): deslop x7143 tests * test(outbound): deslop x7149 tests * test(outbound): deslop x7149 tests * test(scripts): deslop x7147 tests * test(scripts): deslop x7147 tests * test(scripts): deslop x7147 tests * test(state): deslop x7151 tests * test(state): deslop x7151 tests * test(state): deslop x7151 tests * test(ci): deslop x7152 tests * test(ci): deslop x7152 tests * test(ci): deslop x7152 tests * test(channels): deslop x7148 tests * test(channels): deslop x7148 tests * test(worktrees): deslop x7146 tests * test(worktrees): deslop x7146 tests * test(infra): deslop x7145 tests * test(infra): deslop x7145 tests * test(infra): deslop x7145 tests * test(gateway): deslop x7153 tests * test(gateway): deslop x7153 tests * test(gateway): deslop x7153 tests * test(media-understanding): deslop x7150 tests * test(media-understanding): deslop x7150 tests * test(media-understanding): deslop x7150 tests * test(board): deslop x7155 tests * test(board): deslop x7155 tests * test(infra): preserve current device regression fixtures * test: repair d172 fixtures from hosted CI evidence * test(board): drop unused bridge fixture after rebase * test: preserve promise and socket fixture contracts * test(worktrees): preserve lifecycle fixtures after CI failure
…w#174358) Hourly 38916811035 reported the route inventories as unused, but Vite loads them through runnerImport and embeds them in the offline shell. Keep that runtime contract and model the actual named property reads in Knip through its existing MJS compiler. Preserve Vite discovery and TypeScript declaration-to-source mapping; add no ignores. Make four remaining declarations private after openclaw#174279 and openclaw#174260 removed external logging consumers and openclaw#174255 consolidated fixtures. Their internal callers and behavior remain intact. I18nController was already removed by openclaw#174263. Proof: all three deadcode export scans have zero findings; the original baseline had six. The guard passes with pnpm test test/scripts/check-deadcode-exports.test.ts --maxWorkers=1 (5.67s). Existing route/build/cache tests and 148 owner/importer cases pass (199.76s for the owner batch). Owning typechecks, typed lint, boundary lint, and formatting pass. Negative control and P2 review recorded in PR evidence. P2 autoreview is scoped-clean with no actionable findings.
What Problem This Solves
Reduces repeated test setup and assertion boilerplate across the selected campaign shards while preserving distinct contracts and newer main coverage.
User Impact
No production behavior changes. Only tests and test-support files change; there are no migrations or operator actions.
Why This Change Was Made
Consolidates repeated fixtures and assertions, removes duplicate cases where stronger coverage remains, and shares test-only helpers. This is batch d172, replayed onto main at
c5aabc24a6ed9c2c235440d04e2966c3b6ae3ccf.Evidence
git diff --check: passed.openclaw/ci-gateis the runtime/type proof and merge gate.Replay decisions
29 source commits replayed (with the file exclusions below and CI repairs);
01589b8802a3db9e9686649197a0d2086ab6b873skipped because all four worktree test rewrites conflicted with newer coverage.Per-shard changed files, replay LOC and declaration deltas, and source coverage notes
Declaration counts below are static it/test call-site counts, not expanded runtime case counts.
x7148
Replay test/support LOC: +1509/-2573 (-1064 net). Static declarations: 92 → 81 (-11).
Source report coverage note: Plain oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and check-changed were not run, as required by CI-only mode.src/channels/plugins/helpers.test.tssrc/channels/plugins/message-action-dispatch.registry.test.tssrc/channels/plugins/message-actions.test.tssrc/channels/plugins/package-state-probes.test.tssrc/channels/plugins/read-only.test.tssrc/channels/plugins/session-conversation.test.tssrc/channels/plugins/setup-contract.test.tssrc/channels/plugins/setup-helpers.test.tsx7153
Replay test/support LOC: +1211/-1776 (-565 net). Static declarations: 55 → 45 (-10).
Source report coverage note: Formatting, diff-check, and plain oxlint passed. Tests, coverage, and typechecking were not run under CI-only mode; hosted CI remains pending. Coordinator decision: accept this conservative reduction or request a broader cut.
src/gateway/server-methods/chat-send-message-injection.isolated-gateway.test.tssrc/gateway/server-methods/chat-send-message-injection.test.tssrc/gateway/server-methods/chat-send-ordering.test.tssrc/gateway/server-methods/chat-send-pending-input-withdrawal.test.tssrc/gateway/server-methods/chat-send-pending-inputs.test-support.tssrc/gateway/server-methods/chat-send-pending-inputs.test.tssrc/gateway/server-methods/chat-send-pre-admission.test.tsx7143
Replay test/support LOC: +789/-1205 (-416 net). Static declarations: 19 → 20 (1).
Source report coverage note: Plain oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and typechecks were not run, per CI-only mode. No bug/flake fixes. Coordinator follow-up: hosted CI proof and acceptance of the below-target reduction.src/gateway/worker-environments/worker-session-tool-executor.test-support.tssrc/gateway/worker-environments/worker-tool-authority.test.tssrc/gateway/worker-environments/worker-turn-attachments.boundary.test.tssrc/gateway/worker-environments/worker-turn-context-engine.test.tssrc/gateway/worker-environments/worker-turn-detached-context.test.tsx7145
Replay test/support LOC: +223/-434 (-211 net). Static declarations: 17 → 16 (-1).
Source report coverage note: Oxlint exited 0; formatting and diff checks passed. Tests, coverage, and typechecks were not run under CI-only mode. No bug/flake fixes.
src/infra/device-auth-store.client.test.tssrc/infra/device-identity-async.test.tssrc/infra/device-pairing-churn.test.tssrc/infra/device-pairing-join-code.worker.test.tsx7149
Replay test/support LOC: +1080/-1945 (-865 net). Static declarations: 79 → 70 (-9).
Source report coverage note: Formatting,
git diff --check, and plain oxlint passed (exit 0). Tests, coverage, and typechecks were not run, per CI-only mode. The 25%-per-file target remains unmet. Further deletion needs stronger evidence of redundant coverage; distinct security, authority, lifecycle, and routing cases were retained.src/infra/outbound/outbound-audit.test.tssrc/infra/outbound/outbound-policy.test.tssrc/infra/outbound/outbound-send-service.test.tssrc/infra/outbound/outbound-session.integration.test.tssrc/infra/outbound/outbound-session.test-helpers.tssrc/infra/outbound/outbound-session.test.tsx7150
Replay test/support LOC: +1040/-1745 (-705 net). Static declarations: 66 → 56 (-10).
Source report coverage note: Oxlint exited 0; formatting and diff checks passed. Tests and coverage were not run, per CI-only instructions.
src/media-understanding/apply.test.tssrc/media-understanding/attachments.cache.test.tssrc/media-understanding/attachments.media-store-ref.test.tssrc/media-understanding/image.runtime-profile.test.tssrc/media-understanding/image.test.tsx7151
Replay test/support LOC: +991/-1312 (-321 net). Static declarations: 46 → 42 (-4).
Source report coverage note: Oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and check-changed were not run, per CI-only instructions. No bugs/flakes fixed.src/state/openclaw-agent-execution.close-wedge.test.tssrc/state/openclaw-agent-execution.creation-witness.test.tssrc/state/openclaw-agent-execution.registration.test.tssrc/state/openclaw-agent-json-predicate-schema.test.tssrc/state/openclaw-agent-participants-migration.test.tsx7147
Replay test/support LOC: +1260/-1843 (-583 net). Static declarations: 53 → 45 (-8).
Source report coverage note: Oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and check-changed were not run, per CI-only instructions.test/scripts/apple-app-i18n.test.tstest/scripts/barnacle-auto-response.test.tstest/scripts/bench-agent-concurrency.test.tstest/scripts/bench-cli-startup.test.tstest/scripts/bench-gateway-concurrency-cli.test.tstest/scripts/bench-gateway-installed.test.tsx7152
Replay test/support LOC: +943/-1295 (-352 net). Static declarations: 36 → 37 (1).
Source report coverage note: Plain oxlint, formatting, and diff-check passed. Tests and coverage were not run, per CI-only mode.
test/scripts/ci-git-owner.test-support.tstest/scripts/ci-hourly.test.tstest/scripts/ci-known-main-red.test.tstest/scripts/ci-linux-git.test.tstest/scripts/ci-node-test-plan.commands.test.tsx7155
Replay test/support LOC: +243/-347 (-104 net). Static declarations: 44 → 44 (0).
Source report coverage note:
oxlintexited 0; formatting andgit diff --checkpassed. Tests, coverage, and check-changed were not run, per CI-only mode. Coordinator decision: accept the smaller preservation-first reduction or request deeper restructuring.ui/src/components/board/board-view-retention.test.tsui/src/components/board/board-view.test.tsui/src/components/board/board-widget-cell-mcp-app.test.tsui/src/components/board/board-widget-cell.test-support.ts