Repository navigation
test(core,plugins): remove low-value tests (batch d275) - #177103
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. |
49a2727 to
6e42c93
Compare
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and cases across core and plugins and removes six obsolete mock-export baseline entries. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-directed cleanup is useful, but it removes one distinct portal exposure regression without equivalent coverage. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherVitest suites feed synthetic configuration, credentials, and transport inputs through core and plugin owners, then assert observable results and lifecycle behavior. flowchart LR
A[Test fixtures] --> B[Shared test harnesses]
B --> C[Core owners]
B --> D[Plugin owners]
C --> E[Observable results]
D --> E
E --> F[Regression assertions]
Technical reviewBest possible solution: Keep the shared fixtures and restore a focused loopback-backed ingress exposure case using the existing portal harness. Do we have a high-confidence way to reproduce the issue? Removing the ingress exception would fail the deleted loopback-host case but pass its wildcard-host replacement; this is source-verifiable, and no tests were executed during this read-only review. Is this the best way to solve the issue? Fixture consolidation is appropriate, provided cases that exercise different branches of the public exposure contract remain independently detectable. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b1148769f5cc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -3544, Other -6. Total -3550 across 51 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 19, 2026, 4:30 AM ET / 08:30 UTC. |
) * test(discord): deslop x8312 tests * test(discord): deslop x8312 tests * test(device-pair): deslop x8310 tests * test(device-pair): deslop x8310 tests * test(device-pair): deslop x8310 tests * test(voice-call): deslop x8314 tests * test(voice-call): deslop x8314 tests * test(config): deslop x8311 tests * test(portals): deslop x8313 tests * test(portals): deslop x8313 tests * test(portals): deslop x8313 tests * test(agents): deslop x8316 tests * test(agents): deslop x8316 tests * test(doctor): deslop x8318 tests * test(llm): deslop x8317 tests * test(llm): deslop x8317 tests * test(minimax): deslop x8315 tests * test(minimax): deslop x8315 tests * test(agents): deslop x8321 tests * test(agents): deslop x8321 tests * test(agents): deslop x8321 tests * test(qa-lab): deslop x8322 tests * test(gateway): deslop x8319 tests * test(gateway): deslop x8319 tests * test(gateway): deslop x8319 tests * test(config): deslop x8311 tests * test(device-pair): preserve current notification lifecycle coverage * test: repair batch d275 fixtures against current contracts * test: prune obsolete mock export baseline entries
What Problem This Solves
Reduces repeated setup and assertion scaffolding in the test suite without changing production behavior.
User Impact
No user-visible behavior change, migration, configuration change, or runtime production-code change. This is the test/support-only remainder of batch d275 after replaying onto pinned main
419653b638d8a53822d0c5ad919a6d05fb8e6c94and rebasing onto077fcccbdfdee2d755dc4d248d82412222e638d0to include the upstream control-UI test-type fix.Why This Change Was Made
Consolidates repeated fixtures and equivalent cases, shares voice-call registration and portal server harnesses, and removes an obsolete doctor test helper. Distinct authorization, persistence, concurrency, Unicode, transport, and failure-path coverage takes precedence over line reduction.
26 of the 30 requested campaign commits were applied, with conflict-scoped omissions. Four were skipped:
1fc96941b62a9f5333d7989eba2eb84ec8dfe2a8(second QA-lab rewrite) andf1515588b1ef847970fff5277dd9205509809066,e23c8a48dfb729a15426f24b630cc592055e8352,0c68611c5e027937facc4a6307d97467188d0f84(system-agent). Main's new fixture/lifecycle contracts supersede the older rewrite assumptions.Conflict decisions:
index.test.tsandnotify.test.tsidentical to main. Main has newer authorization/QR transports and persisted one-shot notification coverage. The notification cleanup removedsettlePollstill required by a new regression; restored the whole file, including its cleanup tracking. Only the CAS suite cleanup remains.edit.test.ts,edit-diff.test.ts, andwrite.test.tsidentical to main, preserving newer Unicode, write-verification, and diff-receipt regressions. Keptread.test.tsconsolidation.openai.test.tsandproxy.test.tsidentical to main, preserving new code-mode and cache-retention cases; kept compatible schema and service-tier fixture cleanup.scenario-selection.test.tsidentical to main; retained added channels and missing-recipe rejection in the compatible first rewrite. Skipped the second rewrite rather than replace newer startup/shutdown and credential-timeout cases.Evidence
Initial CI run 39217731603 exposed stale fixture contracts. Repaired the missed schema-helper rename, missing doctor
cfg, webhook delivery callback type, V2 service-start context, extracted portal callback binding and raw WebSocket decoding, and mock-isolation documentation. Restored MiniMax's original variadic-safe timeout assertion and original request/input narrowing. The unrelated control-UISubscriptionDeps.loadtype failure is fixed upstream by833bd279bd3, included by the rebase. No tests, retries, or timeout budgets were weakened to obtain green. The rebased run 39219614594 cleared the earlier type/lint/test failures; its remaining ratchet error identified six obsolete mock-export baseline rows. Removed exactly those six rows, with no added exceptions. Fresh-head CI is the remaining gate.Local validation:
pnpm install --frozen-lockfile --prefer-offline; directnode_modules/.bin/oxfmt --write <changed files>; directnode_modules/.bin/oxlint -c .oxlintrc.json <changed TS files>(exit 0);git diff --check 077fcccbdfdee2d755dc4d248d82412222e638d0(exit 0).Per the explicit CI-only instruction, no local Vitest, check-changed, typecheck, coverage, or Testbox run. Hosted
openclaw/ci-gateis the merge proof. The source shard reports also explicitly say coverage was not run under CI-only mode; no numeric coverage-total evidence exists for these shards, and none is claimed here. Independent full-batch review completed; its missing-cfgfinding was accepted and repaired. Two findings were rejected against source: the lease input acceptsrole?: string, andinvalidTool()already contains the exact non-arrayrequired: "query"fixture. A focused review of the repair delta was scoped-clean at P0–P2. The final three lint repairs restore the original HTTP handler/input narrowing patterns.Production LOC: +0 / -0. Test/support LOC: +5,957 / -9,535, net -3,578, across 50 test/support paths (including one deleted helper). The mock-export baseline also shrinks by six metadata lines, for 51 total paths and net -3,584 lines. Counts below cover only the retained touched paths against the rebased pinned base. Declaration counts are static
it/testdeclarations, not expanded cases or executed test totals.The only metadata change is shrink-only removal of the six exact stale rows reported by CI from
config/test-mock-exports-baseline.txt. No changed path matches the current explicit CODEOWNERS rules.Per-shard scope and static deltas
x8310:
extensions/device-pair/notify-cas.test.tsx8311:
src/config/io.cli-validation.integration.test.ts,src/config/io.factory.test.ts,src/config/io.health-state-scope.test.ts,src/config/io.paired-source-write.test.ts,src/config/io.runtime-authority.test.ts,src/config/io.runtime-snapshot-write.test.ts,src/config/io.snapshot.test.ts,src/config/io.write-preflight.test-support.tsx8312:
extensions/discord/src/send.permissions.authz.test.ts,extensions/discord/src/send.webhook.chunk-limit.test.ts,extensions/discord/src/send.webhook.proxy.test.ts,extensions/discord/src/shared-interactive.test.ts,extensions/discord/src/targets.test.ts,extensions/discord/src/voice-message.test.tsx8313:
src/gateway/portals/portal-http-proxy.test.ts,src/gateway/portals/portal-service.ingress.test.ts,src/gateway/portals/portal-service.test.ts,src/gateway/portals/portal.test-support.tsx8314:
extensions/voice-call/doctor-contract-api.test.ts,extensions/voice-call/index.call-scope.test.ts,extensions/voice-call/index.lifecycle.test.ts,extensions/voice-call/index.test-harness.ts,extensions/voice-call/index.test.tsx8315:
extensions/minimax/index.test.ts,extensions/minimax/oauth.test.ts,extensions/minimax/speech-provider.test.ts,extensions/minimax/tts.test.tsx8316:
src/agents/sessions/tools/read.test.tsx8317:
src/llm/providers/stream-wrappers/anthropic-family-tool-payload-compat.test.ts,src/llm/providers/stream-wrappers/openai-service-tier-observation.test.tsx8318:
src/commands/doctor/shared/stale-auth-order.test-support.ts,src/commands/doctor/shared/stale-auth-order.test.ts,src/commands/doctor/shared/stale-oauth-profile-shadows.test.ts,src/commands/doctor/shared/stale-plugin-config.test.tsx8319:
src/gateway/server.approval-forwarding.test.ts,src/gateway/server.auth.compat-baseline.test.ts,src/gateway/server.auth.hello-order.test.ts,src/gateway/server.sessions.create.auth-policy.test.ts,src/gateway/server.sessions.create.test-support.ts,src/gateway/server.sessions.reclamation.test.ts,src/gateway/server.talk-config.test.ts,src/gateway/server.talk-relay-history.test-support.tsx8320: No retained files (skipped).
x8321:
src/agents/test-helpers/live-cache-regression-runner.ts,src/agents/test-helpers/live-model-dynamic-candidates.ts,src/agents/test-helpers/prepared-model-catalog-oauth-fixture.ts,src/agents/test-helpers/prepared-model-catalog-worker-fixture.tsx8322:
extensions/qa-lab/src/live-transports/shared/credential-lease.runtime.test.ts,extensions/qa-lab/src/live-transports/shared/live-gateway.runtime.test.ts,extensions/qa-lab/src/live-transports/shared/live-transport-suite.runtime.test.ts