Repository navigation
test(suites): remove low-value tests (batch d357) - #178991
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates repeated test fixtures and assertions across core and bundled-plugin suites without changing production code. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open as useful, maintainer-directed test cleanup; no concrete introduced defect was found, and the existing CI gate is still pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherVitest suites exercise OpenClaw runtime owners through shared fixtures, native databases, and local transports, then assert observable results and cleanup. flowchart LR
A[Test runner] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Database and local transports]
D --> E[Behavior assertions]
E --> F[Fixture cleanup]
Technical reviewBest possible solution: Retain the consolidation and let the existing current-head CI gate complete before merging. Do we have a high-confidence way to reproduce the issue? This PR is test maintenance, not a reported product bug; review used the pinned diff and supplied CI evidence without executing target code. Is this the best way to solve the issue? The consolidation reuses existing fixture owners and preserves the inspected transport, authority, cancellation, persistence, and cleanup contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4adb225357c2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
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 21, 2026, 12:22 AM ET / 04:22 UTC. |
* test(memory-core): deslop z0615 tests * test(memory-core): deslop z0615 tests * test(memory-core): deslop z0615 tests * test(gateway): deslop z0618 tests * test(gateway): deslop z0618 tests * test(gateway): deslop z0618 tests * test(cua-computer): deslop z0620 tests * test(cua-computer): deslop z0620 tests * test(channels): deslop z0617 tests * test(channels): deslop z0617 tests * test(channels): deslop z0617 tests * test(line): deslop z0621 tests * test(line): deslop z0621 tests * test(agents): deslop z0622 tests * test(agents): deslop z0622 tests * test(cron): deslop z0623 tests * test(cron): deslop z0623 tests * test(cron): deslop z0623 tests * test(talk): deslop z0625 tests * test(talk): deslop z0625 tests * test(zalo): deslop z0627 tests * test(infra): deslop z0619 tests * test(infra): further deslop z0619 tests * test(state): deslop z0624 tests * test(state): deslop z0624 tests * test(state): deslop z0624 tests * test(scripts): deslop z0626 tests * test(scripts): deslop z0626 tests * test(scripts): deslop z0626 tests * test(mcp): deslop z0628 tests * test: repair d357 fixture types and retain cleanup contracts * test(channels): use synchronous ingress context fixtures
What Problem This Solves
Repeated fixture construction and assertion scaffolding make these test suites harder to maintain.
User Impact
No user-visible behavior or production code changes. This is the requested d357 test-cleanup batch; distinct security, lifecycle, cancellation, and persistence checks are retained.
Why This Change Was Made
Replay the 30 supplied commits onto pinned main
c622b70b2b4cc8fe4e57d34f6667913bb99addd2, consolidating equivalent setup and table-driven checks across 13 shards. The final diff is 91 test/support files: +4769/-7611, net -2842 lines. Production LOC: +0/-0. Test/support LOC: 14076 → 11234.Replay decisions
All 30 supplied commits applied; no whole commits skipped. Two follow-up commits restore explicit database-path close/reopen assertions and repair CI-reported fixture typing, call contracts, and redundant awaits.
Windows cron: retained main's script payload and explanatory comment (receipt ownership without waiting for reminder adoption), while applying the single-test wrapper cleanup.
LINE doctor, both commits: retained main's explicit open, empty, and whitespace policy cases with the parent allowlist; adapted them to the compact context helper. Kept the additional regression table when the follow-up would otherwise remove it.
Zalo: dropped the conflicting
actions.test.tsandsend.test.tshunks entirely; both files remain identical to pinned main, preserving its rewritten account, UTF-16, and handoff checks.LAN host: retained the Unicode Windows interface and all platform scenarios in the consolidated table.
Approval view model: retained both metadata variants and both missing/ambiguous-owner cases; removed only the duplicate fixture constant. Dropped the conflicting follow-up hunk rather than replace newer regression cases.
Abort signal: dropped the conflicting follow-up hunk entirely; main's newer error/cancellation regressions remain unchanged.
Dropped the gateway allowlist fixture rewrite after CI identified a newly introduced wall-clock timeout helper; the file remains exactly as on pinned main.
Dropped the small shared cron timer-helper cleanup; the helper remains exactly as on pinned main while the separate heartbeat timeout is investigated.
No baseline, production API, dependency, workflow, or CODEOWNERS changes. None of the changed paths match the current CODEOWNERS rules.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <91 changed TS files>: passed; clean worktree afterward.node_modules/.bin/oxlint -c .oxlintrc.json <91 changed TS files>: exit 0.git diff --check c622b70b2b4cc8fe4e57d34f6667913bb99addd2: passed.Per operator CI-only instruction: no local Vitest, check-changed, tsgo, coverage, or Testbox runs. Hosted
openclaw/ci-gateis the runtime/type proof gate; independent review runs during CI.Independent full-batch review: accepted the lost explicit-close/reopen coverage finding and restored all four assertions/operations. Rejected two reports against source:
validReview()already returnsNEEDS WORK;common.shsourceshost-tools.sh, which supplies thepr_gitoverride wrapper. The restoration and final ten-file repair delta both passed independent P0–P2 review.The supplied shard reports explicitly say coverage was not run under CI-only mode; there is no numeric coverage totals line to quote. No measured coverage or runtime improvement is claimed.
Initial CI run 39539230576 identified fixture type inference/optional access/tuple spread issues, a Bun absent-property assertion, two typed-lint issues, and the new timeout-helper ratchet. Those are repaired or dropped. No local tests were run. The second run 39540531491 cleared the earlier failures except two
await-thenableerrors in the synchronous ingress-context fixture calls; both awaits are now removed, and that repair passed independent review. File-length annotations were incidental warnings, not the lint failure cause. No inherited-failure exception or CI rerun was used; fresh-head CI provides final proof.Per-shard replay metrics
LOC includes test-support files. Declaration counts are static
it/testcall sites, not expanded cases; consolidating cases into tables reduces declarations without implying case deletion. Counts are computed from pinned main to this PR, not copied from earlier shard-report revisions.Files by shard
z0615
extensions/memory-core/src/cli-status-source-diagnostic.test.tsextensions/memory-core/src/dreaming-cron.test-support.tsextensions/memory-core/src/dreaming-markdown.test.tsextensions/memory-core/src/dreaming-repair-recall.test.tsextensions/memory-core/src/dreaming-repair.test.tsextensions/memory-core/src/dreaming.system-event-ownership.test.tsextensions/memory-core/src/memory-corpus.test.tsextensions/memory-core/src/memory-forget.postgres.test.tsz0617
src/channels/message-access/child-session-publication.test.tssrc/channels/message-access/discord-native-owner.test.tssrc/channels/message-access/host-ingress.test-support.tssrc/channels/message-access/operator-authority.test-support.tssrc/channels/message-access/participant-input.test.tssrc/channels/message-access/telegram-native-acp-owner.test.tssrc/channels/message-access/telegram-native-owner.test-support.tssrc/channels/message-access/telegram-native-owner.test.tsz0618
src/gateway/gateway-cron-process-identity.windows.test.tssrc/gateway/gateway-fixture-lifetime.test-support.tssrc/gateway/gateway-stability.test.tssrc/gateway/gateway.sessions-send-provenance.transport.test-support.tssrc/gateway/github-oauth-lifecycle.test-support.tssrc/gateway/github-publication-actions.test-support.tsz0619
src/infra/advertised-lan-host.test.tssrc/infra/agent-database-readers.test.tssrc/infra/agent-run-projection.test.tssrc/infra/agent-run-registry.changes.test.tssrc/infra/approval-native-delivery.test.tssrc/infra/approval-scope.test.tssrc/infra/approval-view-model.test.tsz0620
extensions/cua-computer/src/driver-artifacts.test.tsextensions/cua-computer/src/mcp-driver-client.test.tsextensions/cua-computer/src/recording-actions.test.tsextensions/cua-computer/src/ref-lifecycle.contract.test.tsz0621
extensions/line/src/channel-account.test-support.tsextensions/line/src/channel.directory.test.tsextensions/line/src/doctor.test.tsextensions/line/src/gateway.test.tsextensions/line/src/group-keys.test.tsextensions/line/src/monitor.streaming-config.test.tsextensions/line/src/monitor.webhook-wire.test.tsextensions/line/src/outbound-media.test.tsextensions/line/src/probe.test.tsz0622
src/agents/isolated-completion-diagnostics.test.tssrc/agents/lifecycle-creation.retention.test-support.tssrc/agents/live-model-dynamic-candidates.test.tssrc/agents/live-model-errors.test.tssrc/agents/live-test-helpers.test.tssrc/agents/live-test-provider-drift.test.tssrc/agents/mcp-app-model-context.test.tssrc/agents/mcp-client-elicitation.test.tsz0623
src/cron/service/ops-lifecycle.start-arm.test.tssrc/cron/service/ops.mutation-completion.test.tssrc/cron/service/ops.pacing.test.tssrc/cron/service/payload-merge.test.tssrc/cron/service/run-finalization.responsiveness.test.tssrc/cron/service/startup-notifications.test.tssrc/cron/service/timer.pacing.test.tsz0624
src/state/openclaw-state-db-cache.idle.test.tssrc/state/openclaw-state-db-fast-path.test.tssrc/state/openclaw-state-db-readonly.warm-source.test.tssrc/state/openclaw-state-db-resource-scope.test.tssrc/state/openclaw-state-db-schema-helpers.test.tssrc/state/openclaw-state-db-schema-repair.windows.test.tssrc/state/openclaw-state-db.permissions.test.tssrc/state/openclaw-state-lease.test.tsz0625
src/talk/agent-run-control.stop.test.tssrc/talk/forced-consult-coordinator.test.tssrc/talk/provider-resolver.discovery.test.tssrc/talk/realtime-session-policy.test.tssrc/talk/talk-session-controller.test.tssrc/talk/turn-context-tracker.test.tssrc/talk/voice-consult-transcript-race.test.tsz0626
test/scripts/plugin-update-process-observer.test.tstest/scripts/pnpm-install-isolation.test.tstest/scripts/podman-token-generation.test.tstest/scripts/pr-baseline-continuation.test.tstest/scripts/pr-baseline-incoming.test.tstest/scripts/pr-baseline-publication.test.tstest/scripts/pr-baseline-snapshot-hash.test.tstest/scripts/pr-correction-preparation.test-support.tsz0627
extensions/zalo/src/accounts.test.tsextensions/zalo/src/channel.pre-aborted.integration.test.tsextensions/zalo/src/channel.target-prefix.integration.test.tsextensions/zalo/src/monitor.reply-once.lifecycle.test-support.tsextensions/zalo/src/setup-surface.test.tsextensions/zalo/src/token.test.tsz0628
src/agents/mcp-connection-resolver.authority.test.tssrc/agents/mcp-oauth-fetch.test.tssrc/agents/mcp-oauth-redirect.test.tssrc/agents/mcp-oauth-requesters.test.tssrc/agents/mcp-sdk-compatibility.test.ts