Repository navigation
test(config,ui,channels): remove low-value tests (batch d282) - #177219
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cd9cc24ec7
ℹ️ 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".
47379d0 to
b367cfd
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d960591337
ℹ️ 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".
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates test fixtures and equivalent cases across core, plugins, and UI while shrinking two test baselines. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this maintainer-authored cleanup open; no actionable introduced defect was found, and its existing CI gate remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese suites feed synthetic inputs through core, plugin, and UI owners and assert delivery, authorization, migration, storage, and lifecycle contracts. flowchart LR
A[Synthetic fixtures] --> B[Consolidated test suites]
B --> C[Core and plugin owners]
B --> D[UI components]
C --> E[Contract assertions]
D --> E
E --> F[Hosted CI gate]
Technical reviewBest possible solution: Merge the test-only consolidation once the existing exact-head CI gate passes. Do we have a high-confidence way to reproduce the issue? This PR addresses duplicated test scaffolding rather than a reported runtime defect; source inspection confirms that scope. Is this the best way to solve the issue? Reusing existing fixtures and parameterizing equivalent scenarios is appropriate, and the inspected consolidations retain distinct failure boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against de898899c9b0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -2581, Other -7. Total -2588 across 34 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, 6:43 AM ET / 10:43 UTC. |
Model the documented standalone benchmark from #177195 as a production Knip entry. Remove the unused TTS test-support alias left by #177175; production Talk continues to use the canonical speech-text fallback directly. Validated 58 focused tests, CLI help, targeted typecheck and lint, formatting, and P2 review. All three deadcode scans ran: unused files are clean; full-tree dependencies and exports retain only the unrelated BroadcastFrame type introduced by #177219.
The test fixture introduced by #177219 is its only consumer. Preserve the local generic frame type and the canonical production EventFrame schema and broadcast contracts. Validated 18 broadcast tests, targeted typecheck and lint, formatting, P2 review, and all three CI deadcode commands on the pre-integration head.
…aw#177219) * test(config): deslop x8400 tests * test(config): deslop x8400 tests * test(config): deslop x8400 tests * test(ui): deslop x8391 tests * test(matrix): deslop x8405 tests * test(matrix): deslop x8405 tests * test(agents): deslop x8404 tests * test(agents): deslop x8404 tests * test(agents): deslop x8404 tests * test(utils): deslop x8401 tests * test(utils): deslop x8401 tests * test(utils): preserve strict timeout log assertions * test(skills): deslop x8402 tests * test(skills): deslop x8402 tests * test(skills): deslop x8402 tests * test(state): deslop x8407 tests * test(state): deslop x8407 tests * test(state): deslop x8407 tests * test(gateway): deslop x8406 tests * test(gateway): deslop x8406 tests * test(gateway): deslop x8406 tests * test(voice-call): deslop x8410 tests * test(voice-call): deslop x8410 tests * test(browser): deslop x8411 tests * test(browser): deslop x8411 tests * test(trajectory): deslop x8408 tests * test(trajectory): deslop x8408 tests * test(googlechat): deslop x8412 tests * test(googlechat): deslop x8412 tests * style(test): format trajectory conflict resolution * test(trajectory): preserve new boundary regression fixture path * test: preserve boundary coverage and repair batch fixture types * test: retain UI fixtures and reconcile cleanup ratchets * test(skills): preserve modal action footer contracts
Model the documented standalone benchmark from openclaw#177195 as a production Knip entry. Remove the unused TTS test-support alias left by openclaw#177175; production Talk continues to use the canonical speech-text fallback directly. Validated 58 focused tests, CLI help, targeted typecheck and lint, formatting, and P2 review. All three deadcode scans ran: unused files are clean; full-tree dependencies and exports retain only the unrelated BroadcastFrame type introduced by openclaw#177219.
The test fixture introduced by openclaw#177219 is its only consumer. Preserve the local generic frame type and the canonical production EventFrame schema and broadcast contracts. Validated 18 broadcast tests, targeted typecheck and lint, formatting, P2 review, and all three CI deadcode commands on the pre-integration head.
What Problem This Solves
Repeated fixtures, assertion scaffolding, and overlapping test declarations make the targeted suites harder to maintain.
User Impact
No production or user-visible behavior change. This is a test-only cleanup across 12 campaign shards; distinct authority, security, persistence, lifecycle, and browser contracts must remain protected.
Why This Change Was Made
Replay batch d282 onto pinned main
b53de64a729ee1f9b6babc4095acfe30da302e93. Consolidate fixtures and assertions, table equivalent scenarios, and remove overlapping declarations. No runtime files, dependencies, runtime configuration, or public APIs change; two test baselines shrink.Applied 29 of 30 supplied commits in order. Skipped
8b8c915c89ecdf74cd75082f191a92cfc256cc78(final x8408 rewrite): its broader fixture rewrite conflicts with newer trajectory regressions; retaining current-main proof takes precedence over additional cleanup.Trajectory conflict resolution preserves main's timestamp, session-delete cascade, JSONL separator, exact-byte-boundary, and both 3,000/6,000-character eviction cases. Kept the relocated shared path helper, updated the new boundary test to use it, and retained conflicting trailing-window/count-budget declarations. No other manual replay conflicts.
Review restored the full baseline files for narration pacing, transport presence projection, admission-order diagnostics, controlled popovers, and delivery-context derivation. Their cleanup hunks are dropped so independent contracts remain unchanged. A later main conflict was resolved by retaining the entire current modal-dialog test file, including the native focus fix from #177200. At that rebase, all remaining patch bytes matched the independently reviewed corrected patch. Subsequent CI repairs also restored the complete baseline tooltip, skills-page, and Twilio media-stream files; corrected optional media-value assertions; removed a redundant numeric conversion; documented seven existing mock isolation boundaries and removed their obsolete baseline entries; and reduced the timeout-race baseline from 7 to the CI-observed 1. Hosted review also identified two lost modal-footer assertions; the complete baseline skills-view test file is restored to retain both contracts.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <32 changed TS/TSX files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <32 changed TS/TSX files>: exit 0.git diff --check b53de64a729ee1f9b6babc4095acfe30da302e93: passed.openclaw/ci-gateis the behavioral gate.Shard evidence
LOC includes each shard's test support. Declaration counts are static
it/test/each/forcall-site counts, not expanded runtime cases. Source reports describe an earlier pass, so current replay metrics below are recomputed from the pinned base rather than copied from those reports. Every supplied shard report explicitly states tests/coverage were not run under CI-only mode; there is no coverage totals line available and no <=1% coverage-loss claim is made.Files by shard (remaining net changes)
ui/src/components/solid/menu-lifecycle.browser.test.tsx,ui/src/components/solid/overlay-style.browser.test.tsxsrc/config/validation.dm-policy.test.ts,src/config/validation.policy.test.ts,src/config/write-lock.drainage.test.ts,src/config/write-lock.sources.test.ts,src/config/zod-schema.gateway-auth.test.tssrc/utils/fetch-timeout.test.ts,src/utils/queue-helpers.test.ts,src/utils/run-with-concurrency.test.ts,src/utils/usage-format.test.tsui/src/pages/skills/library-uploads.test.tsx,ui/src/pages/skills/skills.test-support.tssrc/agents/subagents/announce/subagent-announce-direct-completion-media.test.ts,src/agents/subagents/announce/subagent-announce-direct-delivery.test.ts,src/agents/subagents/announce/subagent-announce-overrides.test-support.tsextensions/matrix/doctor-contract-api.archive-scan.test.ts,extensions/matrix/doctor-contract-api.import.test.ts,extensions/matrix/doctor-contract-api.test-support.ts,extensions/matrix/doctor-contract-api.test.tssrc/gateway/server-broadcast.live-text.test.ts,src/gateway/server-broadcast.test-support.tssrc/state/openclaw-agent-canonical-validation-schema.test.tssrc/trajectory/runtime-store-writer.test.ts,src/trajectory/runtime-store.sqlite.test.tsextensions/voice-call/src/providers/mock.test.ts,extensions/voice-call/src/providers/plivo.test.ts,extensions/voice-call/src/providers/telnyx.test.tsextensions/browser/chrome-extension/bootstrap-diagnostics.test-support.ts,extensions/browser/chrome-extension/bootstrap.chromium.test.tsextensions/googlechat/src/setup.test.ts,extensions/googlechat/src/targets.test.ts