Repository navigation
test(core,ui,plugins): remove low-value tests (batch d210) - #175377
Conversation
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. |
|
Codex review: needs changes before merge. What this changesThis PR consolidates repeated test setup and assertions across core, browser, Discord, and Control UI suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 6 items remain Keep open for repair: three fixture regressions break CI in an otherwise useful, maintainer-directed test cleanup. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherVitest and browser suites supply isolated fixtures to production owners and check their results, recovery, and lifecycle contracts. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Isolated storage and transports]
D --> E[Contract assertions]
E --> F[CI gates]
Technical reviewBest possible solution: Retain the consolidation while restoring independent reporting mocks, capturing copyIn before spying, and supplying complete replacement-page fixtures. Do we have a high-confidence way to reproduce the issue? Exact-head CI annotations corroborate all three source paths; this read-only review ran no tests. Is this the best way to solve the issue? Fixture consolidation is appropriate, but forwarding functions and event methods that preserve real dependency contracts must remain. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 598e446c3528. TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -3576. Total -3576 across 70 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 17, 2026, 5:31 AM ET / 09:31 UTC. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3850df923
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…175377) * test(doctor): deslop x7561 tests * test(doctor): deslop x7561 tests * test(ui): deslop x7560 tests * test(ui): deslop x7560 tests * test(ui): fix pairing request counter assertions * test(ui): deslop x7560 tests * test(sessions): deslop x7556 tests * test(sessions): deslop x7556 tests * test(agents): deslop x7558 tests * test(agents): deslop x7558 tests * test(agents): deslop x7558 tests * test(infra): deslop x7562 tests * test(infra): deslop x7562 tests * test(infra): deslop x7562 tests * test(infra): deslop x7563 tests * test(infra): deslop x7563 tests * test(infra): deslop x7563 tests * test(gateway): deslop x7566 tests * test(gateway): deslop x7566 tests * test(ui): deslop x7567 tests * test(ui): further deslop x7567 tests * test(ui): finish x7567 test reduction * test(discord): deslop x7565 tests * test(discord): deslop x7565 tests * test(browser): deslop x7564 tests * test(browser): deslop x7564 tests * test(agents): deslop x7570 tests * test(agents): deslop x7570 tests * test: preserve coverage and repair d210 fixtures * test: prune obsolete d210 mock baseline entries * test: retain exec target sandbox rejection coverage
What Problem This Solves
Reduce duplicated test fixtures and assertion scaffolding across doctor, UI, sessions, agents, infrastructure, Gateway, Discord, and browser tests. This is batch d210, replayed onto pinned main
59b215bc5279cf098505ea854273fb872f3eaf9d.User Impact
No intended production or user-visible behavior change, migration, or operator action. Only tests and test-support fixtures change.
Why This Change Was Made
Consolidate repeated setup and assertions while retaining distinct authority, security, lifecycle, recovery, and persistence checks. Keep current main wherever a cleanup assumes superseded behavior or fixtures.
Evidence
CI-only policy: changed-file oxfmt, plain oxlint (exit 0), and git diff --check. No local Vitest, check-changed, typecheck, coverage, or Testbox execution. Hosted
openclaw/ci-gateis the runtime proof gate; independent review runs during CI.Production LOC: +0/-0. Test and test-support LOC: +9280/-14416 (net -5136). Shrink-only mock baseline metadata: +0/-10.
No changed path matches the pinned-base CODEOWNERS rules. All 30 source commits were considered: 28 applied, two skipped as described below.
Commands:
node_modules/.bin/oxfmt --write <changed files>;node_modules/.bin/oxlint -c .oxlintrc.json <changed files>;git diff --check 59b215bc5279cf098505ea854273fb872f3eaf9d. Local test timing and coverage are intentionally unavailable under CI-only mode; hosted CI provides runtime results and timing.Per-shard scope and deltas
Counts compare pinned main to the replay, not the older campaign checkout. Declarations are static it/test call sites, not expanded runtime cases. Every source report explicitly says coverage was not run under CI-only mode; no coverage totals or percentage gate are claimed.
x7561
Test/support LOC 262 → 246; declarations 3 → 3. Coverage: not run (source shard report).
src/commands/doctor/shared/installed-plugin-id-recovery.test.tsx7560
Test/support LOC 2961 → 2530; declarations 64 → 60. Coverage: not run (source shard report).
ui/src/app/native-conversation-bridge.test.tsui/src/app/native-gateway-auth.node.test.tsui/src/app/native-link-routing.test.tsui/src/app/overlays-access.test-support.tsui/src/app/overlays.test.tsx7556
Test/support LOC 3217 → 2820; declarations 47 → 47. Coverage: not run (source shard report).
src/config/sessions/session-accessor.recovery.test.tssrc/config/sessions/session-accessor.sqlite-branch-summaries.test.tssrc/config/sessions/session-accessor.sqlite-history-cache.test.tssrc/config/sessions/session-accessor.sqlite-lifecycle-admission.test.tssrc/config/sessions/session-accessor.sqlite-scope.test.tssrc/config/sessions/session-accessor.sqlite-handle-lifecycle.test.tsx7558
Test/support LOC 765 → 572; declarations 14 → 11. Coverage: not run (source shard report).
src/agents/bootstrap-budget.test.tssrc/agents/bash-tools.github-auth-selection.test.tssrc/agents/bootstrap-files.memory-core.test.tsx7562
Test/support LOC 2323 → 2123; declarations 41 → 36. Coverage: not run (source shard report).
src/infra/update-candidate-canary-readiness.test-support.tssrc/infra/update-candidate-plugin-file.worker.test.tssrc/infra/update-candidate-plugin-repair.test.tssrc/infra/update-candidate-rehearsal.resources.test.tssrc/infra/update-candidate-state.cleanup.test.tsx7563
Test/support LOC 2076 → 1705; declarations 39 → 36. Coverage: not run (source shard report).
src/infra/update-doctor-process-custody.test.tssrc/infra/update-failure-report-transport.test.tssrc/infra/update-freebsd-pkg-ownership.test.tssrc/infra/update-failure-report-prepare.test.tsx7566
Test/support LOC 3240 → 2588; declarations 48 → 43. Coverage: not run (source shard report).
src/gateway/server-methods/system-agent-setup-prepare.test.tssrc/gateway/server-methods/system-agent-setup-resolution.test.tssrc/gateway/server-methods/system-agent-setup.test-support.tssrc/gateway/server-methods/system-changes.test.tssrc/gateway/server-methods/system-event-routing.test.tssrc/gateway/server-methods/task-suggestions.test.tssrc/gateway/server-methods/system-agent-setup-control-ui.test.tsx7567
Test/support LOC 3591 → 2618; declarations 31 → 29. Coverage: not run (source shard report).
ui/src/e2e/browser-screenshot-body-cancel.e2e.test.tsui/src/e2e/browser-stream-startup.e2e.test.tsui/src/e2e/browser-talk-start-stop.e2e.test.tsui/src/e2e/browser-talk-voice-selection.e2e.test.tsui/src/e2e/channels-whatsapp-logout.e2e.test.tsui/src/e2e/chat-active-turn-recovery.e2e.test.tsui/src/e2e/chat-agent-run-transcript.e2e.test.tsx7565
Test/support LOC 3591 → 2693; declarations 88 → 87. Coverage: not run (source shard report).
extensions/discord/src/components.selects.test.tsextensions/discord/src/directory-live.test.tsextensions/discord/src/doctor.test.tsextensions/discord/src/draft-stream.test.tsextensions/discord/src/durable-line-limit.test.tsextensions/discord/src/group-policy.test.tsextensions/discord/src/monitor.test.tsextensions/discord/src/outbound-adapter.test.tsx7564
Test/support LOC 2893 → 2462; declarations 73 → 65. Coverage: not run (source shard report).
extensions/browser/src/browser/pw-tools-core.browser-ssrf-guard.test.tsextensions/browser/src/browser/pw-tools-core.interactions.batch.test.tsextensions/browser/src/browser/pw-tools-core.interactions.navigation-guard.test.tsextensions/browser/src/browser/pw-tools-core.last-file-chooser-arm-wins.test.tsextensions/browser/src/browser/pw-tools-core.snapshot.test.tsextensions/browser/src/browser/pw-tools-core.waits-next-download-saves-it.test.tsextensions/browser/src/browser/pw-tools-core.guard-test-support.tsx7570
Test/support LOC 3371 → 2797; declarations 62 → 59. Coverage: not run (source shard report).
src/agents/agent-dir-registry.test.tssrc/agents/agent-harness-completion-authority.test.tssrc/agents/agent-harness-completion-delivery.test.tssrc/agents/agent-harness-completion-ownership.test.tssrc/agents/agent-lifecycle-registry.test.tssrc/agents/agent-project-settings.bundle.test.tssrc/agents/agent-project-settings.test.tsReplay decisions
Pinned base: 59b215b.
Validation uses CI-only policy. No local tests, typechecking, check-changed, or Testbox.
CI and independent-review corrections
The initial head failed CI run 39020308032. Auto-merge was disabled for repair. Restored current-base versions of update-failure-report-recovery, update-failure-report, update-candidate-plugin-tree, snapshot.navigate-guard, and update-candidate-state.budget instead of adapting incorrect receipt-call assumptions, recursive filesystem spies, incomplete replacement-page fixtures, and untyped case-table rewrites. Retained all original assertions in those files.
Accepted four independent P2 findings by restoring upload-paths (distinct queued payloads), agent-model-discovery.auth (ordinary environment credentials), sqlite-generation-readiness (synchronous held-publication audience checks), and system-info (statfs failures). Two findings rejected with direct source evidence: nativeAbortError is called by the retained cancellation fixtures; chat-active-turn-recovery already enables trackBrowserContexts: true in its suite options.
Fixed remaining CI-reported fixture typing without weakening assertions: explicit no-op delivery cases, separately typed injected bootstrap content, a void timer-cleanup hook, named original/rewritten history messages, safe string access, and an explicit preceding-rectangle check. Restored eight explanations of intentional isolated module mocks. Only oxfmt, plain oxlint and git diff --check were run locally; no tests, typechecks, check-changed, or Testbox.
The initial CI run also reported database-is-locked in the unchanged PostgreSQL Gateway bootstrap test. The same exact test and error also appear in completed scheduled-main run 39017848352, job 117353593266, before this PR; the failure is recorded separately from the repaired batch defects. This does not substitute for fresh-head CI.
Independent review of the complete correction delta completed scoped-clean at P0–P2, with no actionable findings.
The next CI run accepted all repaired test and test-type jobs but required pruning ten obsolete exact mock-baseline fingerprints. Only the ten rows named by run 39022517036 were removed; no assertions changed.
An additional GitHub review correctly identified the missing ordinary auto-to-node sandbox escape rejection. Restored bash-tools.exec-target.test.ts exactly from pinned main, preserving this independent execution-policy case. All remaining source changes retain their completed independent review; this further narrows the cleanup scope.