Repository navigation
test(core,plugins): remove low-value tests (batch d436) - #180365
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c2fdee5c81
ℹ️ 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".
| expect(ledger.mayHaveDelivered()).toBe(true); | ||
| expect(ledger.hasObservedDelivery()).toBe(false); | ||
| expect(ledger.resolveTerminalDelivery()).toBe("pending"); | ||
| }); |
There was a problem hiding this comment.
Keep the stalled-transport timeout regression
When a transport's delivery promise never settles, this deletion removes the only assertion that createReplyTurnLedger().settleQueued() reaches its 30-second timed-out failsafe; the remaining abort cases exercise a different exit path, and a repository-wide search found no other timeout test for this ledger. Breaking or removing the raceWithTimeout integration could therefore wedge turn finalization without failing the suite, so retain this owner-boundary regression.
AGENTS.md reference: AGENTS.md:L79-L81
Useful? React with 👍 / 👎.
|
The remaining planner-test failure is reproduced on scheduled
The failing test/support, operator-authority helper, scheduled-turns source/test, and planner algorithm are unchanged by this PR. The inventory diff only removes unrelated retired CLI and plugin-state suite paths. A fresh main fetch shows no intervening change to the failing test. This documents the authorized inherited-failure exception only. The remaining PostgreSQL conformance jobs must still complete before landing; no other failed or pending job is waived. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a59b52241
ℹ️ 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".
|
|
||
| it("drops fail-closed when exact-GUID history projections conflict", async () => { | ||
| await expectRecoveryDrop( | ||
| it.each([ |
There was a problem hiding this comment.
Restore the from-me recovery case to this table
When an anchorless notification matches an authoritative history row with is_from_me: true, repairIMessageConversationAnchor must return null to prevent OpenClaw's own outgoing message from re-entering the inbound pipeline. This consolidation retains the conflict, no-match, and incomplete-row cases but drops the sole assertion for the from-me branch; a repository-wide search found no other test exercising that recovery condition. Add the deleted case to this table so the fail-closed loop-prevention contract remains protected.
AGENTS.md reference: AGENTS.md:L79-L81
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and suites, removes overlapping cases, and updates test-routing inventories. Example: A queued reply transport never resolves.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored cleanup open: the consolidation is useful, but it removes the unique stalled-transport timeout regression. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThese suites exercise core and plugin behavior through shared fixtures; CI inventories select their execution lanes, while production runtime behavior remains unchanged. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Behavior assertions]
E[CI test inventories] --> A
Technical reviewBest possible solution: Retain the consolidation while restoring the deadline regression in the existing turn-ledger suite. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the coverage deletion and the surviving deadline branch; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? Consolidating fixtures and overlapping suites is appropriate, provided distinct owner-boundary regressions remain protected. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 04a0bdfa025d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What 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 22, 2026, 3:26 AM ET / 07:26 UTC. |
) * test(claws): deslop y0459 tests * test(acp): deslop y0460 tests * test(facetime): restore runtime fixture helpers * test(facetime): deslop y0461 tests * test(facetime): consolidate y0461 family fixtures * test(facetime): simplify y0461 polling and readiness fixtures * test(cli): deslop y0462 tests * test(cli): consolidate y0462 registration suites * test(cli): deduplicate recovery proof and compact y0462 fixtures * test(gateway): deslop y0463 tests * test(gateway): consolidate y0463 family fixtures * test(acp): remove unused y0460 schema replay * test(trajectory): deslop y0464 tests * test(trajectory): consolidate y0464 runtime family * test(trajectory): compact y0464 export and retention fixtures * test(gateway): deslop y0466 tests * test(gateway): remove duplicated y0466 owner proofs * test(gateway): reuse y0466 integration fixtures * test(plugin-state): restore publication worker spy import * test(plugin-state): deslop y0465 tests * test(plugin-state): consolidate y0465 family coverage * test(plugin-state): share remaining y0465 fixtures * test(imessage): deslop y0467 tests * test(imessage): consolidate y0467 family fixtures and duplicate proof * test(imessage): restore reflection table label expectation * test(imessage): remove y0467 owner-covered replay checks * test(auto-reply): deslop y0468 tests * test(auto-reply): consolidate y0468 owner coverage * test(auto-reply): merge y0468 dispatch fixtures * test: repair replayed dispatch helper and stale worker import * test: retain independent boundary coverage after review * test: fix replayed fixture types and preserve core boundary * test: repair shared fixture contracts reported by CI * test(acp): use existing mock accessor convention * test: align async mocks and recovery fixture types * test: document isolated mocks at each boundary * test: prune retired trajectory mock baseline entries
What Problem This Solves
Removes redundant test setup and owner-covered replay checks in campaign batch d436, while retaining independent behavioral coverage.
User Impact
No intended production behavior changes, migrations, configuration changes, or user actions. This is test/support consolidation plus test-routing inventory maintenance. Runtime behavior is unchanged.
Why This Change Was Made
Replay the supplied campaign commits onto pinned main 22aecb4. Keep shared fixtures and the strongest owner-boundary assertions; merge compatible sibling suites without weakening assertions.
Replay decisions
Evidence
Actual replay delta by shard
y0459 — Claws: test/support LOC 2350 → 2165 (-185); declarations 62 → 58 (-4)
src/claws/gateway-add-plan.test.tssrc/claws/packages.boundary.test-support.tssrc/claws/packages.capability-consent.test.tssrc/claws/packages.preflight-inspection.test.tssrc/claws/packages.runtime.test.tssrc/claws/packages.test.tssrc/claws/schema-conformance.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0460 — ACP: test/support LOC 1947 → 1704 (-243); declarations 51 → 48 (-3)
src/acp/approval-classifier.test.tssrc/acp/client.invocation.test.tssrc/acp/permission-relay.test.tssrc/acp/protocol-schema.test.tssrc/acp/translator.bridge-test-helpers.tssrc/acp/translator.commentary-producer.test.tssrc/acp/translator.disconnects.test.tssrc/acp/translator.event-ledger.test.tssrc/acp/translator.final-snapshots.test.tssrc/acp/translator.prompt-harness.test-support.tssrc/acp/translator.scenario.test-support.tssrc/acp/translator.session-setup.test.tssrc/acp/translator.stop-reason.test.tssrc/acp/translator.test-helpers.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0461 — FaceTime: test/support LOC 2622 → 2582 (-40); declarations 58 → 58 (0)
extensions/facetime/tests/helper-rpc.test.tsextensions/facetime/tests/helper-wire.test-support.tsextensions/facetime/tests/runtime-authority-boundary.test.tsextensions/facetime/tests/runtime-carrier-aliases.test.tsextensions/facetime/tests/runtime-persistence.test.tsextensions/facetime/tests/runtime.test-support.tsextensions/facetime/tests/runtime.test.tsextensions/facetime/tests/setup.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0462 — CLI: test/support LOC 3721 → 3433 (-288); declarations 108 → 100 (-8)
src/cli/program/action-reparse.test.tssrc/cli/program/config-guard.test.tssrc/cli/program/error-output.test.tssrc/cli/program/preaction.test-helpers.tssrc/cli/program/preaction.test.tssrc/cli/program/register.agent.test.tssrc/cli/program/register.backup.offsite.test.tssrc/cli/program/register.backup.test.tssrc/cli/program/register.maintenance.test.tssrc/cli/program/register.migrate.test.tssrc/cli/program/register.onboard.test.tssrc/cli/program/register.setup.test.tssrc/cli/program/register.status-health-sessions.test.tssrc/cli/program/root-command-descriptions.test.tssrc/cli/program/routes.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0463 — Gateway UI: test/support LOC 2682 → 2635 (-47); declarations 63 → 60 (-3)
src/gateway/control-ui-session-prs-retention.test.tssrc/gateway/control-ui-session-prs-staleness.test.tssrc/gateway/control-ui-session-prs.test-support.tssrc/gateway/control-ui-session-task-prs.test.tssrc/gateway/control-ui.http.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0464 — Trajectory: test/support LOC 2994 → 2438 (-556); declarations 63 → 55 (-8)
src/trajectory/command-export.test.tssrc/trajectory/export.test-helpers.tssrc/trajectory/export.test.tssrc/trajectory/metadata.test.tssrc/trajectory/runtime-retention.sqlite.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0465 — Plugin state: test/support LOC 2556 → 2333 (-223); declarations 57 → 53 (-4)
src/plugin-state/plugin-state-fixtures.test-support.tssrc/plugin-state/plugin-state-operation.test.tssrc/plugin-state/plugin-state-store.retained.test.tssrc/plugin-state/plugin-state-store.retention.test.tssrc/plugin-state/plugin-state-store.test.tssrc/plugin-state/plugin-state-worker.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0466 — Gateway: test/support LOC 1366 → 1170 (-196); declarations 30 → 27 (-3)
src/gateway/link-understanding.product.test.tssrc/gateway/provider-auth-account-relogin.persistence.integration.test.tssrc/gateway/restart-trace.test.tssrc/gateway/startup-auth.test.tssrc/gateway/system-ca-warmup.test.tssrc/gateway/worktree-maintenance.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0467 — iMessage: test/support LOC 2894 → 2432 (-462); declarations 141 → 108 (-33)
extensions/imessage/src/monitor/catchup-bridge.test-support.tsextensions/imessage/src/monitor/catchup.test-support.tsextensions/imessage/src/monitor/coalesce.test-support.tsextensions/imessage/src/monitor/conversation-repair.test-support.tsextensions/imessage/src/monitor/deliver.test.tsextensions/imessage/src/monitor/group-allowlist-warnings.test-support.tsextensions/imessage/src/monitor/inbound-processing.context.test.tsextensions/imessage/src/monitor/inbound-processing.systemPrompt.test-support.tsextensions/imessage/src/monitor/inbound-processing.test.tsextensions/imessage/src/monitor/poll-render.test-support.tsextensions/imessage/src/monitor/recovery-cursor.test-support.tsextensions/imessage/src/monitor/reflection-guard.test-support.tsextensions/imessage/src/monitor/self-chat-cache.test-support.tsextensions/imessage/src/monitor/self-chat-dedupe.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
y0468 — Auto-reply: test/support LOC 3767 → 3226 (-541); declarations 53 → 45 (-8)
src/auto-reply/reply/dispatch-from-config.pre-run-rejection.test.tssrc/auto-reply/reply/dispatch-from-config.question-custody.test.tssrc/auto-reply/reply/dispatch-from-config.reply-dispatch-scope.test.tssrc/auto-reply/reply/dispatch-from-config.reply-dispatch.test.tssrc/auto-reply/reply/dispatch-from-config.restart-tombstone.test.tssrc/auto-reply/reply/dispatch-from-config.secrets.test.tssrc/auto-reply/reply/dispatch-from-config.terminal-recovery.test.tssrc/auto-reply/reply/dispatch-from-config.test-support.tssrc/auto-reply/reply/dispatch-from-config.transcript.tool-authored.test.tssrc/auto-reply/reply/dispatch-from-config.turn-ledger.test.tsCoverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).
Production versus test/support LOC
Runtime production: +0/-0. Tests/support: +5078/-7859. CI inventories/baselines: +0/-9.
No changed paths match the repository CODEOWNERS rules.
Full numstat against pinned main
Review follow-up
Independent review reported 13 findings. Accepted 11 by dropping the implicated reductions and restoring pinned-main versions: FaceTime talk-driver consult fixture; iMessage outbound sanitizer and durable ingress; ACP binding lifecycle and its target suite; Gateway remote credential precedence, proxy attribution, boot echo cleanup, disabled models endpoint, origin acceptance, and ticketed-media HEAD/range; ordinary plugin-blob eviction. Restored the ACP lifecycle test-routing entry. These restorations supersede the earlier per-commit decisions for those paths.
Rejected two duplicate-coverage findings with direct retained evidence:
A focused follow-up review covers the restoration commit. CI-only policy remains in force.
CI repair
Hosted run 39733925142 exposed replay mismatches: moved FaceTime alias cases referenced an absent namespace; compacted mocks/tuple defaults disagreed with current types; plugin-state runtime consolidation imported an extension into a core type graph and passed an unsupported environment option. Fixed the fixture references and precise mock/tuple types; dropped the plugin-state runtime-file reduction, restoring the main-version boundary and option probe. Dropped the sign-in integration-file cleanup after its startup failed before the changed fixture code; that file now matches pinned main and remains owned by its existing suite. Local oxfmt, plain oxlint, and diff checks pass; fresh-head hosted CI is required. No CI retry or exception is being claimed as proof.
Late results from that same run also exposed a changed ACP mock return type, an intentionally partial Git-operation switch missing an explicit default, a return-only generic JSON reader, and a fake-clock echo-cache fixture regression. Reused the ACP connection’s existing test mock, made the partial switch explicit, removed the generic reader, and restored the echo-cache fixture file to pinned main. All fixes are test-only; fresh-head CI must validate them.
Run 39734955867 narrowed failures to fixture-only lint/types: the exposed ACP mock needed its asynchronous SDK signature, reusable authority callbacks needed lexical binding, and a recovery marker had been spread from an unknown-valued mock field. Corrected the owner mock type, retained explicit text-content assertions in its callers, used a lexical authority callback, and centralized the known recovery-marker fixture. No assertions were weakened. A fresh-head run remains the gate.
Run 39735792023 passed the repaired type and lint lanes. Its mock-export ratchet identified four intentionally isolated factories missing per-call explanations; added narrowly scoped mock-isolation comments for synthetic config, onboarding state, wizard dispatch, and plugin metadata. The remaining planner-owner failure is also present in scheduled main job https://github.com/openclaw/openclaw/actions/runs/39736303636/job/119682867483: test/scripts/ci-changed-node-test-plan.source-owners.test.ts, operator-authority owner expansion unexpectedly includes commands-plugin.scheduled-turns.test.ts. Neither that test nor the planner algorithm changed here; the inventory edits only remove unrelated retired suite paths. This records attribution, not a waived gate.
Final mock-export ratchet cleanup: removed exactly the three obsolete trajectory/metadata entries printed by job https://github.com/openclaw/openclaw/actions/runs/39736861951/job/119685496379. The os-summary and plugin-registry mocks were removed; the plugin-metadata snapshot now has its source-verified isolation explanation. This is shrink-only baseline maintenance, not a new suppression.