Repository navigation
test(ui,plugins,core): remove low-value tests (batch d638) - #185152
Conversation
Keep all eight action-feedback cases and their outcome, attribution, busy-state, and history-refresh assertions. Trim fixture overrides and repeated table data. Remove redundant RPC-shape checks: index.test.ts covers authoritative toggle revision updates, while action-feedback retains explicit run-mode checks. Preserve queued-notice regression coverage from #177543.
Compact response fixtures and exact asset expectations without removing cases. The data URL round-trip and malformed-input tests retain parser success and rejection coverage through generatedImageAssetFromDataUrl.
Trim duplicate frozen-state and mutation checks while preserving all seven test declarations and ten expanded cases. The shared-cycle test retains mutation rejection; the shared-tail test retains identity, queue-work, and deep-freeze checks with one representative retained entry. Keep oversized-cycle eviction and opaque/accessor safety coverage.
Use one shallow-frozen cycle row per freezer. Mutable root freezing remains covered by oversized cycles and the shared snapshot tail test; memoized descendant reuse remains covered by republishing child and snapshot objects. Consolidate forbidden accessor/proxy invocation checks and inline the mutable-cycle fixture. Reduce the shard from its original 135 lines to 108 without removing distinct safety or cycle behavior.
Reuse the plan fixture for existing-file and symlink refusal checks, simplify CLI helpers, and remove redundant suite nesting. Keep all six cases and their distinct behavior assertions.
Trim async wrapper and event-recording boilerplate while retaining all authority and lifecycle assertions. Keep both queued-read paths: scheduling directly and waiting for foreground owner settlement exercise distinct admission paths. The suite was already consolidated; retain all three cases rather than cut distinct behavior for the line target.
Assert prepared facts and authority isolation at createSessionMaintenanceFollowup, without replaying the embedded-run adapter. Adapter vision remains covered by agent-runner-vision.test.ts (prepared vision); policy propagation by agent-runner-utils.test.ts (uses the queued conversation policy snapshot). Keep both scheduling paths and all lifecycle-ordering assertions. Remove the initial operation-defined assertion subsumed by the completed-owner result assertion. Total shard LOC: 105 to 84. Static checks only under CI-only campaign mode.
Share the corrupted-row fixture across resolution, audit, and exec checks while retaining repair rollback and stale-write assertions. Reference identity fields remain covered by resolve.mixed-failures.test.ts: retains every ref failure from one provider batch.
Keep credential-free default-model discovery and every reasoning/privacy assertion. Remove the copied four-model inventory; manifest row conversion is covered by src/plugin-sdk/provider-catalog-shared.test.ts in converts manifest rows and reads the default model reference. Use direct payload field assertions without changing expected values.
Share promotion rendering setup and JSON-mode assertions. Remove the test-owned JSON serialization layer and assert the payload at the runtime writer boundary instead. Keep all seven cases, including JSON success and 404 fallback, both countdown branches, empty and unavailable text output, and terminal-control sanitization.
Reuse the hostile-text promotion across list-output cases and remove the override/render helper. Keep all seven expanded cases and their distinct list-command branches. Assert JSON payloads without repeating writer call-count and formatting-argument details covered by src/runtime.test.ts (writes JSON).
Simplify deadline setup and reuse the pending response fixture while retaining all three cases and every assertion for both providers. The explicit long budget, original deadline after slow submission, and default polling budget regressions remain covered by testVideoGenerationDeadlines in the Runway and Together provider suites.
Assert the generation promise directly while checking settlement at the fake-clock deadline. Keep all three timing branches, Error/message assertions, downloaded bytes and MIME type, no download after timeout, and submission release. Remove duplicated submission call-count proof: runway's submits/polls/downloads table asserts exactly one create request, and together's creates/polls/downloads test verifies the single submission through requireFirstPostJsonRequest. Preserve both provider suites unchanged.
Keep all four input-lifetime regression cases from #171016. Replace deferred readiness and EOF scaffolding with the readiness callback and native event promise, and register group cleanup with the test lifecycle. Preserve exact output, exit status, closing receipt, and root-result assertions.
Successful root-result delivery remains covered by service-child-group-anchor.retirement.test.ts in 'retires gracefully only after the closing receipt is acknowledged', including matching and legacy-host cases. Keep all four input-lifetime cases, exact exit/output checks, and explicit parent-lost versus lineage-lost closing reasons.
Use catalog module-flow metadata and consolidate Matrix binding and voice configuration assertions. Keep all three scenario cases and their canary, isolation, provider, and media contracts. Remove the redundant plugin collector assertion covered by suite-planning.test.ts: collects unique scenario-declared bundled plugins in encounter order. Execution config accessor remains covered by scenario-catalog.test.ts: keeps the pinned gateway restart scenario owned by the OpenClaw runtime. CI-only validation: plain oxlint, oxfmt, and git diff --check passed. Test file reduced from 101 to 80 lines; no test or coverage execution.
Remove the repeated absence assertion after a no-op hidden=false write. The preceding assertion in pauses lifetime while hidden already proves expiration for both initial visibility states. Preserve all four distinct lifecycle cases; further case removal would lose initial-hidden, paused-lifetime, dialog-dismissal, or error-recovery proof.
Replace separate result, error, and visibility signals with a single reactive props fixture. Keep both initial-hidden and partial-lifetime paths plus manual dismissal, shared-dialog suppression, expiry, error recovery, and new-result behavior. Preserve the DOM assertions and both two-case tables. CI-only validation: oxfmt, plain oxlint, and git diff --check.
Remove subprocess invocation bookkeeping and the duplicate backend fixture guard; the successful browser-approval test still asserts the exact credential environment and one browser handoff. Simplify approval and authority-revocation setup while retaining all four behavior cases.
Share cancellation setup across separate signal-cancellation and authority-revocation rows. Preserve child termination, pending presentation, un-aborted signal, browser handoff, and credential absence assertions. Simplify the executable fixture to one temporary root while retaining exact managed credential environment checks.
Remove redundant cleanup-error aggregation from the disposable retention probe. Uncaught assertion and cleanup failures are already checked through the child exit status by event-hub.test.ts: releases retired payloads but lets a closed hub drain. Preserve all four retirement scenarios, GC controls, drain identity checks, and success-path cleanup.
Remove generated Linux, audio, modified-video and unused video-key rows filtered out by both consumers. Preserve the rows used by loads older history only when %s yields navigation and resolves pending restoration ownership for %s. Share Mac fixtures and compact DOM fixture construction without changing assertions.
Keep the selected-model alias regression and both assertions. Reuse provider fixture defaults and replace manual resource cleanup with an async disposable stack. No distinct behavior or test case removed.
Reuse the existing identical model-alias metadata builder. Drop the unused snapshot agentId: image runtime resolution uses the supplied agentDir and workspaceDir. Preserve the selected-model case, catalog rows, competing metadata, and both assertions.
Consolidate allowlist migration cases and repeated policy fixtures while retaining all nine cases. Replace diagnostic prose snapshots with resulting config and change-count assertions; preserve permission, precedence, empty-policy, fail-closed and idempotence contracts. CI-only validation: oxlint, oxfmt and diff checks.
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 changes before merge. What this changesThis PR consolidates test fixtures and assertions across plugin, core, SDK, and UI suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored PR open: the cleanup is useful, but one Muse test consolidation loses independent signal-cancellation coverage. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThese suites feed synthetic inputs through existing production owners and check outputs, lifecycle behavior, and rejection paths. flowchart LR
A[Synthetic inputs] --> B[Test fixtures]
B --> C[Production owners]
C --> D[Outputs and lifecycle events]
D --> E[Regression assertions]
Technical reviewBest possible solution: Retain the consolidation while leaving assertCurrent unset or nonthrowing in the signal-cancellation row and preserving the separate authority-revocation row. Do we have a high-confidence way to reproduce the issue? Source establishes the lost isolation: aborting the signal also makes assertCurrent throw, allowing the authority interval to terminate the child if the signal listener regresses; no target code was executed. Is this the best way to solve the issue? Most reductions preserve distinct scenarios through existing owners, but the Muse table must keep its two cancellation mechanisms independently testable. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d990291edf5a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceTests -385. Total -385 across 19 files. Added test files: 0. 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 26, 2026, 7:46 PM ET / 23:46 UTC. |
…185152) * test(ui): deslop o0796 tests Keep all eight action-feedback cases and their outcome, attribution, busy-state, and history-refresh assertions. Trim fixture overrides and repeated table data. Remove redundant RPC-shape checks: index.test.ts covers authoritative toggle revision updates, while action-feedback retains explicit run-mode checks. Preserve queued-notice regression coverage from openclaw#177543. * test(ui): inline o0796 feedback fixtures * test(image-generation): deslop o0795 tests Compact response fixtures and exact asset expectations without removing cases. The data URL round-trip and malformed-input tests retain parser success and rejection coverage through generatedImageAssetFromDataUrl. * test(shared): deslop o0794 tests Trim duplicate frozen-state and mutation checks while preserving all seven test declarations and ten expanded cases. The shared-cycle test retains mutation rejection; the shared-tail test retains identity, queue-work, and deep-freeze checks with one representative retained entry. Keep oversized-cycle eviction and opaque/accessor safety coverage. * test(shared): consolidate o0794 immutable graph coverage Use one shallow-frozen cycle row per freezer. Mutable root freezing remains covered by oversized cycles and the shared snapshot tail test; memoized descendant reuse remains covered by republishing child and snapshot objects. Consolidate forbidden accessor/proxy invocation checks and inline the mutable-cycle fixture. Reduce the shard from its original 135 lines to 108 without removing distinct safety or cycle behavior. * test(vault): deslop o0800 tests Reuse the plan fixture for existing-file and symlink refusal checks, simplify CLI helpers, and remove redundant suite nesting. Keep all six cases and their distinct behavior assertions. * test(venice): deslop o0797 tests * test(session-maintenance): deslop o0798 tests Trim async wrapper and event-recording boilerplate while retaining all authority and lifecycle assertions. Keep both queued-read paths: scheduling directly and waiting for foreground owner settlement exercise distinct admission paths. The suite was already consolidated; retain all three cases rather than cut distinct behavior for the line target. * test(session-maintenance): remove duplicate adapter layer for o0798 Assert prepared facts and authority isolation at createSessionMaintenanceFollowup, without replaying the embedded-run adapter. Adapter vision remains covered by agent-runner-vision.test.ts (prepared vision); policy propagation by agent-runner-utils.test.ts (uses the queued conversation policy snapshot). Keep both scheduling paths and all lifecycle-ordering assertions. Remove the initial operation-defined assertion subsumed by the completed-owner result assertion. Total shard LOC: 105 to 84. Static checks only under CI-only campaign mode. * test(secrets): deslop o0799 tests * test(secrets): consolidate o0799 redaction scenarios Share the corrupted-row fixture across resolution, audit, and exec checks while retaining repair rollback and stale-write assertions. Reference identity fields remain covered by resolve.mixed-failures.test.ts: retains every ref failure from one provider batch. * test(abliteration): deslop o0801 tests * test(abliteration): trim o0801 catalog inventory assertions Keep credential-free default-model discovery and every reasoning/privacy assertion. Remove the copied four-model inventory; manifest row conversion is covered by src/plugin-sdk/provider-catalog-shared.test.ts in converts manifest rows and reads the default model reference. Use direct payload field assertions without changing expected values. * test(promos): deslop o0805 tests Share promotion rendering setup and JSON-mode assertions. Remove the test-owned JSON serialization layer and assert the payload at the runtime writer boundary instead. Keep all seven cases, including JSON success and 404 fallback, both countdown branches, empty and unavailable text output, and terminal-control sanitization. * test(promos): consolidate o0805 output fixtures Reuse the hostile-text promotion across list-output cases and remove the override/render helper. Keep all seven expanded cases and their distinct list-command branches. Assert JSON payloads without repeating writer call-count and formatting-argument details covered by src/runtime.test.ts (writes JSON). * test(video): deslop o0804 tests Simplify deadline setup and reuse the pending response fixture while retaining all three cases and every assertion for both providers. The explicit long budget, original deadline after slow submission, and default polling budget regressions remain covered by testVideoGenerationDeadlines in the Runway and Together provider suites. * test(video): further reduce o0804 deadline harness Assert the generation promise directly while checking settlement at the fake-clock deadline. Keep all three timing branches, Error/message assertions, downloaded bytes and MIME type, no download after timeout, and submission release. Remove duplicated submission call-count proof: runway's submits/polls/downloads table asserts exactly one create request, and together's creates/polls/downloads test verifies the single submission through requireFirstPostJsonRequest. Preserve both provider suites unchanged. * test(process): deslop o0803 tests Keep all four input-lifetime regression cases from openclaw#171016. Replace deferred readiness and EOF scaffolding with the readiness callback and native event promise, and register group cleanup with the test lifecycle. Preserve exact output, exit status, closing receipt, and root-result assertions. * test(process): deduplicate o0803 retirement assertions Successful root-result delivery remains covered by service-child-group-anchor.retirement.test.ts in 'retires gracefully only after the closing receipt is acknowledged', including matching and legacy-host cases. Keep all four input-lifetime cases, exact exit/output checks, and explicit parent-lost versus lineage-lost closing reasons. * test(qa-lab): deslop o0808 tests Use catalog module-flow metadata and consolidate Matrix binding and voice configuration assertions. Keep all three scenario cases and their canary, isolation, provider, and media contracts. Remove the redundant plugin collector assertion covered by suite-planning.test.ts: collects unique scenario-declared bundled plugins in encounter order. Execution config accessor remains covered by scenario-catalog.test.ts: keeps the pinned gateway restart scenario owned by the OpenClaw runtime. CI-only validation: plain oxlint, oxfmt, and git diff --check passed. Test file reduced from 101 to 80 lines; no test or coverage execution. * test(workboard): deslop o0809 tests Remove the repeated absence assertion after a no-op hidden=false write. The preceding assertion in pauses lifetime while hidden already proves expiration for both initial visibility states. Preserve all four distinct lifecycle cases; further case removal would lose initial-hidden, paused-lifetime, dialog-dismissal, or error-recovery proof. * test(workboard): consolidate o0809 toast fixtures Replace separate result, error, and visibility signals with a single reactive props fixture. Keep both initial-hidden and partial-lifetime paths plus manual dismissal, shared-dialog suppression, expiry, error recovery, and new-result behavior. Preserve the DOM assertions and both two-case tables. CI-only validation: oxfmt, plain oxlint, and git diff --check. * test(meta): deslop o0807 tests Remove subprocess invocation bookkeeping and the duplicate backend fixture guard; the successful browser-approval test still asserts the exact credential environment and one browser handoff. Simplify approval and authority-revocation setup while retaining all four behavior cases. * test(meta): consolidate o0807 login lifecycle cases Share cancellation setup across separate signal-cancellation and authority-revocation rows. Preserve child termination, pending presentation, un-aborted signal, browser handoff, and credential absence assertions. Simplify the executable fixture to one temporary root while retaining exact managed credential environment checks. * test(channels): deslop o0811 tests * test(sdk): deslop o0810 tests Remove redundant cleanup-error aggregation from the disposable retention probe. Uncaught assertion and cleanup failures are already checked through the child exit status by event-hub.test.ts: releases retired payloads but lets a closed hub drain. Preserve all four retirement scenarios, GC controls, drain identity checks, and success-path cleanup. * test(ui): deslop o0813 tests Remove generated Linux, audio, modified-video and unused video-key rows filtered out by both consumers. Preserve the rows used by loads older history only when %s yields navigation and resolves pending restoration ownership for %s. Share Mac fixtures and compact DOM fixture construction without changing assertions. * test(media-understanding): deslop o0812 tests Keep the selected-model alias regression and both assertions. Reuse provider fixture defaults and replace manual resource cleanup with an async disposable stack. No distinct behavior or test case removed. * test(media-understanding): reuse alias fixture in o0812 Reuse the existing identical model-alias metadata builder. Drop the unused snapshot agentId: image runtime resolution uses the supplied agentDir and workspaceDir. Preserve the selected-model case, catalog rows, competing metadata, and both assertions. * test(llm-task): deslop o0815 tests Consolidate allowlist migration cases and repeated policy fixtures while retaining all nine cases. Replace diagnostic prose snapshots with resulting config and change-count assertions; preserve permission, precedence, empty-policy, fail-closed and idempotence contracts. CI-only validation: oxlint, oxfmt and diff checks. * test: retain boundary assertions in cleanup batch d638 * test(media-understanding): retain required context window fixture
What Problem This Solves
Maintainers must keep repeated fixture scaffolding and duplicate assertions in sync across these test suites, increasing test maintenance without protecting additional behavior.
User Impact
No user-visible change. This is test-only maintenance; production behavior and public interfaces are unchanged.
Why This Change Was Made
Reduce repeated test setup, redundant assertions, and fixture scaffolding across 19 campaign shards while retaining owning behavioral scenarios. No production files or runtime behavior change.
Replayed all 30 supplied commits in order onto main at
35e8421b9ad85cbe7f8a28029d96d44ac340f1bf. All applied cleanly; no conflicts or skipped commits. Review restored three removed contracts: final maintenance execution-policy propagation, exactly-once billable video submission, and successfulroot-resultIPC delivery. The remaining cleanup is retained.Scope and accounting
Counts are measured from the actual replayed base-to-head diff, not copied from older shard reports. Declarations include parameterized/chained
itdeclarations, not expanded cases. Test-only subprocess/helper files have no test declarations.src/shared/immutable-data.test.tssrc/image-generation/image-assets.test.tsui/src/lib/cron/action-feedback.test.tsextensions/venice/usage.test.tssrc/agents/session-maintenance/run.test.tssrc/secrets/store/secret-store.redaction.test.tsextensions/vault/src/cli.test.tsextensions/abliteration/index.test.tssrc/process/supervisor/service-child-group-anchor.input-lifetime.test.tsextensions/test-support/video-generation-deadline.test-support.tssrc/commands/promos/list.test.tsextensions/meta/muse-login.test.tsextensions/qa-lab/src/live-transports/matrix/matrix-scenario-flows.test.tsextensions/workboard/browser/components/toast.test.tspackages/sdk/src/event-hub.retention.test-support.tssrc/channels/allowlists/resolve-utils.test.tssrc/media-understanding/image.selected-model.test.tsui/src/pages/chat/test-helpers/chat-scroll-input.tsxextensions/llm-task/doctor-contract-api.test.tsProduction LOC: +0 / -0. Test and test-helper LOC: +685 / -1070 (net -385), across 19 files; no files deleted. No changed paths match current CODEOWNERS rules.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <19 changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <19 changed files>: exited 0.git diff --check 35e8421b9ad85cbe7f8a28029d96d44ac340f1bf: passed.openclaw/ci-gateis runtime proof and the merge gate. No local runtime/timing claim is made.contextWindowleft that field optional in the fixture return type. Restored the original typedObject.assignfixture, without casts. Failed-job evidence: https://github.com/openclaw/openclaw/actions/runs/40419101181/job/121910054642. Fresh-head CI must validate the repair.What Problem This Solves.Review
Independent review identified five P2 concerns. Three were accepted and repaired: maintenance execution-policy propagation, exactly-once submission, and root-result IPC.
Two were rejected after source inspection: removed native-media fixture rows were already excluded by both consuming suites (
chat-pane-keyboard-focus.test.tsxandchat-transcript-scroll-ownership.test.tsx); the full static catalog inventory duplicated catalog constants, while credential-free discovery and specific model transport behavior remain covered. No production catalog change is made. A focused follow-up review of the three restorations completed clean through P2.