Repository navigation
test(core): remove low-value tests (batch d325) - #178456
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 maintainer review before merge. What this changesThis PR consolidates test fixtures and assertions across core and bundled plugins and removes two obsolete mock-baseline entries. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored cleanup reduces duplicated test setup while retaining distinct behavioral checks; no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe changed test suites supply synthetic requests, state, and transport fixtures to OpenClaw owners, then check their responses, persistence, authorization, and cleanup. flowchart LR
A[Synthetic fixtures] --> B[Parameterized test cases]
B --> C[OpenClaw module owners]
C --> D[State and transport boundaries]
D --> E[Behavioral assertions]
Technical reviewBest possible solution: Land the fixture and assertion consolidation after the current-head required CI completes successfully. Do we have a high-confidence way to reproduce the issue? This PR addresses duplicated test maintenance rather than a reported runtime defect, so a user-facing reproduction does not apply. Is this the best way to solve the issue? Shared fixtures and parameterized cases are appropriate here; the reviewed changes preserve distinct rejection, lifecycle, recovery, persistence, and transport assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 034856a7f365. 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 20, 2026, 11:03 AM ET / 15:03 UTC. |
* test(database-engine): deslop z0240 tests * test(scripts): deslop z0236 tests * test(scripts): deslop z0236 tests * test(scripts): deslop z0236 tests * test(qa-lab): deslop z0242 tests * test(qa-lab): deslop z0242 tests * test(agents): deslop z0239 tests * test(agents): deslop z0239 tests * test(agents): deslop z0239 tests * test(reef): deslop z0241 tests * test(reef): deslop z0241 tests * test(reef): deslop z0241 tests * test(gateway): deslop z0243 tests * test(gateway): deslop z0243 tests * test(gateway): deslop z0243 tests * test(commands): deslop z0238 tests * test(commands): deslop z0238 tests * test(plugins): deslop z0246 tests * test(plugins): deslop z0246 tests * test(infra): deslop z0245 tests * test(infra): deslop z0245 tests * test(infra): deslop z0245 tests * test(gateway): deslop z0244 tests * test(gateway): deslop z0244 tests * test(gateway): deslop z0244 tests * test(update): deslop z0247 tests * test(update): deslop z0247 tests * test(update): deslop z0247 tests * test(codex): deslop z0250 tests * test: retain current fixtures across d325 conflict cuts * test: repair d325 prompt and fixture contracts * test: restore d325 fixture paths and method bindings * test(infra): retain shutdown promise ownership * test: document d325 partial mock isolation * test: prune explained d325 mock baseline entries
What Problem This Solves
Batch d325 reduces repeated test fixtures, setup, and assertions that make the suite harder to maintain.
User Impact
No production or user-visible behavior changes. Distinct behavior, security, lifecycle, and recovery cases remain.
Why This Change Was Made
Consolidate equivalent fixtures and assertions while retaining main's newer behavior. Conflicting database fixtures and selected dependent hunks are intentionally excluded.
Evidence
Per-shard replay
LOC and declaration counts below are computed from this replay, not copied from older campaign totals. Declaration counts are static it/test call-site counts, not expanded parameterized cases.
z0240
Test/support LOC: +32/-42 (net -10); static declarations 8 → 8. Coverage totals: not run (CI-only source report).
src/infra/database-engine/search-extension.test.tssrc/infra/database-engine/session-search-product.postgres.test.tssrc/infra/database-engine/state-read-lock.postgres.test.tsz0236
Test/support LOC: +1250/-1698 (net -448); static declarations 35 → 27. Coverage totals: not run (CI-only source report).
test/scripts/gateway-ws-client.test.tstest/scripts/generate-gateway-protocol-plugin.test.tstest/scripts/install-dependency-ownership.test.tstest/scripts/install-native-tools.test.tstest/scripts/install-previous-version.test.tstest/scripts/install-ps1.test.tstest/scripts/install-sh-historical-warning.test.tstest/scripts/install-smoke-no-push-workflow.test.tsz0242
Test/support LOC: +526/-907 (net -381); static declarations 24 → 22. Coverage totals: not run (CI-only source report).
extensions/qa-lab/src/agent-run-identity-repeated-turn-child.process.test.tsextensions/qa-lab/src/browser-runtime.test.tsextensions/qa-lab/src/cli-coverage.runtime.test.tsextensions/qa-lab/src/code-mode-matrix-repository-tasks.test.tsextensions/qa-lab/src/codex-authenticated-hook-context.e2e.test.tsextensions/qa-lab/src/codex-native-hook-pressure.e2e.test.tsextensions/qa-lab/src/codex-plugin-lifecycle.test.tsz0239
Test/support LOC: +510/-705 (net -195); static declarations 32 → 30. Coverage totals: not run (CI-only source report).
src/agents/embedded-agent-runner/run/attempt-plan-completion.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-admission.test-support.tssrc/agents/embedded-agent-runner/run/attempt-prompt-build.provenance.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-context.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-error.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-execution-prepare.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-phase.admission.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-phase.runtime-marker.test.tsz0241
Test/support LOC: +287/-523 (net -236); static declarations 30 → 28. Coverage totals: not run (CI-only source report).
extensions/reef/src/config-schema.test.tsextensions/reef/src/flow-send.test.tsextensions/reef/src/state.test-support.tsextensions/reef/src/state.test.tsz0243
Test/support LOC: +1048/-1328 (net -280); static declarations 28 → 24. Coverage totals: not run (CI-only source report).
src/gateway/server-methods/sessions-describe-active-run.test.tssrc/gateway/server-methods/sessions-describe-catalog.test.tssrc/gateway/server-methods/sessions-diff-reset.test.tssrc/gateway/server-methods/sessions-file-assets.test.tssrc/gateway/server-methods/sessions-get.worker.test.tssrc/gateway/server-methods/sessions-github-read.guest.test.tssrc/gateway/server-methods/sessions-github-read.test-support.tssrc/gateway/server-methods/sessions-github-read.test.tssrc/gateway/server-methods/sessions-keyed-read.test-support.tsz0238
Test/support LOC: +759/-1283 (net -524); static declarations 57 → 45. Coverage totals: not run (CI-only source report).
src/commands/onboard-helpers.test.tssrc/commands/onboard-non-interactive.migration.test.tssrc/commands/onboard-quickstart-host.plugin-generation.test.tssrc/commands/onboard-quickstart-host.test.tssrc/commands/onboard-reset-discovery.test-support.tssrc/commands/onboard-reset-engine.test.tssrc/commands/plugin-control-plane-cold-imports.test.tssrc/commands/reset.test.tsz0246
Test/support LOC: +967/-1389 (net -422); static declarations 37 → 33. Coverage totals: not run (CI-only source report).
src/plugins/capability-consent.test.tssrc/plugins/capability-summary.test.tssrc/plugins/channel-catalog-registry.workspace.test.tssrc/plugins/channel-validation.test.tssrc/plugins/claw-managed-capability-consent.integration.test.tssrc/plugins/clawhub.registry-authority.test.tssrc/plugins/clawhub.test-support.tssrc/plugins/cli-gateway-nodes-runtime.test.tsz0245
Test/support LOC: +654/-955 (net -301); static declarations 62 → 58. Coverage totals: not run (CI-only source report).
src/infra/node-compile-cache.test.tssrc/infra/node-pairing-migration.test.tssrc/infra/node-pairing-state.test.tssrc/infra/node-runtime-recovery.gateway-drain.test.tssrc/infra/node-runtime-recovery.shutdown.test.tssrc/infra/node-runtime-update.test.tssrc/infra/node-sqlite.test.tssrc/infra/openclaw-cli-invocation.test.tsz0244
Test/support LOC: +1132/-1607 (net -475); static declarations 33 → 32. Coverage totals: not run (CI-only source report).
src/gateway/server-methods/chat-aborted-partial.test.tssrc/gateway/server-methods/chat-assistant-content.media-authority.test.tssrc/gateway/server-methods/chat-broadcast.test.tssrc/gateway/server-methods/chat-history-budget.test.tssrc/gateway/server-methods/chat-history-command-context.test.tssrc/gateway/server-methods/chat-history-fixtures.test-support.tssrc/gateway/server-methods/chat-history-handler.test.tssrc/gateway/server-methods/chat-history-pages.test.tssrc/gateway/server-methods/chat-history-requester.test.tsz0247
Test/support LOC: +1149/-1426 (net -277); static declarations 42 → 41. Coverage totals: not run (CI-only source report).
src/infra/update-run-diagnostics.test.tssrc/infra/update-run-fixture.test-support.tssrc/infra/update-run-interruption-store.test.tssrc/infra/update-run-interruption.worker.test.tssrc/infra/update-run-mutation.worker.test.tssrc/infra/update-run-reconciliation.worker.test.tssrc/infra/update-run-recovery-handoff.test.tssrc/infra/update-run-report.test.tssrc/infra/update-run-step-key.test.tsz0250
Test/support LOC: +186/-306 (net -120); static declarations 24 → 24. Coverage totals: not run (CI-only source report).
extensions/codex/src/app-server/run-attempt-lifecycle-controller.test.tsOverall impact
Test/support LOC: +8500/-12171 (net -3671). Production LOC: +0/-0. No user-facing change or release note required.
Conflict resolution
Additional retained-current-file resolutions: QA-lab browser-runtime.test.ts and ci-smoke-plan.test.ts in 3cc6138b186c preserve the normalized browser request case, six-part smoke matrix and Gateway-hosted scenario exclusion. attempt-prompt-context.test.ts in 357ddfd45194 and 475d8dbbf350 preserves turn-start snapshot wording, cross-scope exclusions and current replay regressions.
Reef: retained flow.test-helpers.ts and transport-capacity-recovery.test.ts in e5175253c83e/e9779e29d960, preserving main's direct sealing fixture. Dropped dependent cleanup from flow.source-authority.test.ts and replay-state.test.ts because it required the omitted helper extraction. Removed the newly orphaned database search.conformance.test-support.ts. Infrastructure: retained node-sqlite.test.ts for 6c85155a96f6/e6e871fd06c4, preserving newer UNC/namespaced Windows coverage; the first commit's independent changes remain. All other source commits applied; 29 applied, one skipped, plus one conflict-coherence commit.
CODEOWNERS
No changed path matches the current CODEOWNERS rules.
CI follow-up
The initial run also caught the dropped explicit session-store fixture path, an unbound cleanup method, undefined members in a promise collection, and destructured plugin helper methods. These were repaired without weakening assertions or adding suppressions. The two small correction diffs receive independent review; all local reruns remain formatting, plain lint, and diff-check only. Fresh-head CI must validate the corrections before merging.
The next CI run identified one floating respawn promise and two existing partial mocks requiring explicit isolation reasons. Restored tracked promise ownership (independently reviewed clean), and documented image-I/O and in-memory-config isolation without changing either mock. Both prior correction reviews also passed. No local test or typecheck execution was used.
Baseline maintenance: removed exactly the two obsolete entries named by CI from config/test-mock-exports-baseline.txt, for the image-loader and in-memory config mocks above. This is shrink-only; no new exemption or weakened guard.