Repository navigation
test(core): remove low-value tests (batch d186) - #164718
Conversation
Port u0229 onto the campaign lane. The initial fixture stabilization is already present; retain the newer runtime-cap assertions and preserve asynchronous invalid-rewrite coverage in the consolidated policy test. Testbox: 115 tests passed across seven files, no skips, on fresh origin/main fd69a4e plus the resolved files. Vitest duration: 84.08s. Focused oxlint, oxfmt, and diff checks passed; independent review is clean.
|
🦞👀 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: needs maintainer review before merge. Reviewed October 3, 2026, 10:40 PM ET / October 4, 2026, 02:40 UTC. ClawSweeper reviewWhat this changesThe branch consolidates repeated fixtures and test cases across core subsystems while retaining distinct contract assertions. Merge readiness✅ Ready for maintainer review Keep open: this is useful, maintainer-requested test cleanup with no concrete introduced defect found. Current main has not absorbed the consolidation. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s core tests exercise worker execution, updates, media handling, meetings, and plugin contracts. Their assertions feed CI’s regression checks before changes reach users. flowchart LR
A[Scenario fixtures] --> B[Core production owners]
B --> C[Observed results]
C --> D[Contract assertions]
D --> E[CI regression feedback]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -3058. Total -3058 across 64 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep each meaningful contract at its strongest test boundary and consolidate repeated setup without adding production seams. Do we have a high-confidence way to reproduce the issue? Not applicable: this cleanup reports repeated test execution rather than a product defect; no runtime reproduction was attempted. Is this the best way to solve the issue? Yes: test-only consolidation is an appropriate repair for duplicated fixtures, and the inspected replacements retain distinct contract assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c588a8b87b5f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* test(logging): deslop u0257 tests * test(node-host): deslop u0261 tests * test(meeting-bot): deslop u0260 tests * test(media): deslop u0259 tests * test(plugin-sdk): deslop u0264 tests * test(infra): deslop u0255 tests * test(plugins): deslop u0268 tests * test(plugin-sdk): deslop u0265 tests * test(worker): deslop u0229 tests Port u0229 onto the campaign lane. The initial fixture stabilization is already present; retain the newer runtime-cap assertions and preserve asynchronous invalid-rewrite coverage in the consolidated policy test. Testbox: 115 tests passed across seven files, no skips, on fresh origin/main ba02c33 plus the resolved files. Vitest duration: 84.08s. Focused oxlint, oxfmt, and diff checks passed; independent review is clean. * test(plugins): deslop u0266 tests * test: retain independent contracts in batch d186
What Problem This Solves
This maintainer-requested test cleanup removes repeated executions and consolidates duplicated fixtures across logging, node-host, meeting, media, worker, infrastructure, and plugin tests.
User Impact
No user-visible or production-code changes. Distinct security, authority, lifecycle, migration, and public SDK contracts remain covered. Production LOC: +0/−0. Test LOC: +5809/−8867, net −3058 across 64 files.
Why This Change Was Made
Batch d186 replays all ten validated campaign commits onto main at
244993e1b722a25b633bc680777d6049adb4bb5d. There were no cherry-pick conflicts or skipped commits. Retention review reversed deletions of independent worker authority fields and credential rotation, cross-request meeting deduplication, non-retry native outcomes, malformed provenance, unknown-installation admission, combined SDK closure changes, typing-option wiring, untrusted plugin attribution, and rejected catalog cache values. Main's full worker projection and SDK reply-pipeline test files are retained. No production seam or baseline changes are included. No changed path matches the current CODEOWNERS rules.Evidence
pnpm install --frozen-lockfile --prefer-offline, targetedoxfmt --write, plainoxlint -c .oxlintrc.json, andgit diff --checkpassed. Changed-check classification selects the core-test lane.CI=1 pnpm test <all 66 original touched test paths>followed byCI=1 OPENCLAW_TESTBOX=1 OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 node scripts/check-changed.mjs -- <same paths>. No failing executed test is being waived; no fresh runtime pass is claimed. Hostedopenclaw/ci-gateremains the merge gate.dc5b9b9cf9ec92d71b4646bba53500751210bbbc; the repeated index-only typing finding was fixed by committing the restoration. A fresh isolated review of that restoration is running alongside CI.Rejected review findings and remaining proof
preserveTrackedBrowser: trueand Teams hasfalse, covering both shared cleanup policies.defineBrowserMeetingPlugin/createMeetingRuntimeSetupowner. The Slack-specific captions assertion repeated a declarative message literal; the retained shared setup test exercises the actual routing and no-audio-probe behavior.setup-code.control-ui.test.tsfeeds encoder output into the independent UI base64url/JSON decoder, so a coordinated server encoder/decoder incompatibility remains detectable.No production changes, migrations, or release-note behavior changes. Current-base runtime validation remains subject to hosted CI and the pending Testbox attempt.
Shard provenance and replay scope
The following LOC, declaration, and coverage totals are the original in-shard measurements, not fresh coverage measurements on current main. The reviewed replay retains the entire SDK reply-pipeline and worker projection files, plus independent cases restored in the other shards. Original declaration deltas below therefore overstate final removals where cases were restored. The u0229 report measured its repaired baseline; its source commit includes a further 7-line reduction. No claim is made that the original 50% case/LOC campaign targets were met.
u0257
Original test LOC: 2259 → 2156; declarations: 70 → 49. Final replay test LOC: +545/−648 (net -103).
covered statements 2803 -> 2803 (0); branches 1956 -> 1956 (0); functions 443 -> 443 (0)
Files:
src/logging/diagnostic-heap-profile.test.ts,src/logging/diagnostic-memory-growth.test.ts,src/logging/logger-plugin-jsonl.test.ts,src/logging/redact-patterns.test.ts,src/logging/redact.structured-properties.test.ts.u0261
Original test LOC: 2498 → 2287; declarations: 61 → 42. Final replay test LOC: +501/−711 (net -210).
covered statements 685 -> 685 (0); branches 452 -> 452 (0); functions 83 -> 83 (0)
Files:
src/model-picker/apply-session-model-selection.operator-context.test.ts,src/node-host/auto-update-compatibility.test.ts,src/node-host/auto-update-install.test.ts,src/node-host/auto-update.test.ts,src/node-host/config-read.test.ts,src/node-host/connection.test.ts,src/node-host/mac-worker-entry.lifecycle.test.ts,src/node-host/node-worker-container-engine.test.ts.u0260
Original test LOC: 3656 → 3299; declarations: 106 → 74. Final replay test LOC: +732/−1078 (net -346).
covered statements 1854 -> 1847 (-7); branches 1203 -> 1196 (-7); functions 389 -> 387 (-2)
Files:
src/meeting-bot/browser-plugin.config-setup.test.ts,src/meeting-bot/participation-browser.test.ts,src/meeting-bot/participation.test.ts,src/meeting-bot/platform-adapter.provenance.test.ts,src/meeting-bot/session-runtime.participation.test.ts,src/meeting-bot/session-runtime.test.ts,src/meeting-bot/status-call-source.test.ts.u0259
Original test LOC: 2231 → 1787; declarations: 66 → 46. Final replay test LOC: +647/−1091 (net -444).
covered statements 886 -> 886 (0); branches 628 -> 628 (0); functions 178 -> 178 (0)
Files:
src/media/document-extractors.runtime.test.ts,src/media/read-capability.workspace-access.test.ts,src/media/store.test.ts,src/media/web-media.animated-webp.test.ts.u0264
Original test LOC: 3345 → 2745; declarations: 114 → 69. Final replay test LOC: +727/−1191 (net -464).
statements 902 → 902; branches 763 → 763; functions 166 → 166
Files:
src/pairing/setup-code.public-origin.test.ts,src/pairing/setup-code.test.ts,src/plugin-sdk/api-baseline.test.ts,src/plugin-sdk/browser-maintenance.test.ts,src/plugin-sdk/channel-lifecycle.test.ts,src/plugin-sdk/legacy-webhook-listener-migration.test.ts.u0255
Original test LOC: 2398 → 2307; declarations: 46 → 31. Final replay test LOC: +398/−489 (net -91).
covered statements 2294 -> 2294 (0); branches 1306 -> 1306 (0); functions 389 -> 389 (0)
Files:
src/infra/update-runner-git-command-env.test.ts,src/infra/update-runner-git-preflight.reference.test.ts,src/infra/update-runner-git-runtime.test.ts,src/infra/update-runner-git-transfer.test.ts,src/infra/update-runtime-path-index.test.ts,src/infra/windows-diagnostic-env.test.ts,src/infra/windows-process-census.test.ts,src/infra/worker-cpu.test.ts.u0268
Original test LOC: 4250 → 3788; declarations: 93 → 65. Final replay test LOC: +724/−1186 (net -462).
covered statements 7816 -> 7816 (0); branches 5496 -> 5496 (0); functions 1653 -> 1653 (0)
Files:
src/plugins/manifest-registry.provider-metadata.test.ts,src/plugins/manifest-themes.test.ts,src/plugins/marketplace.download.test.ts,src/plugins/memory-runtime.test.ts,src/plugins/path-safety.test.ts,src/plugins/plugin-cache.test.ts,src/plugins/plugin-generation-artifact.admission.test.ts.u0265
Original test LOC: 2382 → 1964; declarations: 61 → 42. Final replay test LOC: +402/−802 (net -400).
covered statements 692 -> 692 (0); branches 429 -> 429 (0); functions 140 -> 140 (0)
Files:
src/plugin-sdk/logging-core.test.ts,src/plugin-sdk/persistent-dedupe.worker.test.ts,src/plugin-sdk/plugin-config-runtime.test.ts,src/plugin-sdk/provider-catalog-live-runtime.strict.test.ts,src/plugin-sdk/provider-catalog-shared.cancellation.test.ts,src/plugin-sdk/provider-catalog-shared.test.ts.u0229
Original test LOC: 4049 → 3911; declarations: 82 → 57. Final replay test LOC: +545/−670 (net -125).
covered statements 3814 -> 3807 (-7); branches 1791 -> 1787 (-4); functions 706 -> 703 (-3)
Files:
src/gateway/worker-environments/store-worker.test.ts,src/gateway/worker-environments/worker-gateway-tool-runtime.test.ts,src/gateway/worker-environments/worker-placement-redispatch.test.ts,src/gateway/worker-environments/worker-session-tool-executor.test.ts,src/gateway/worker-environments/worker-tool-authority.test.ts,src/gateway/worker-environments/worker-turn-detached-context.test.ts.u0266
Original test LOC: 3566 → 3151; declarations: 73 → 51. Final replay test LOC: +588/−1001 (net -413).
covered statements 6820 -> 6820 (0); branches 4835 -> 4835 (0); functions 1531 -> 1531 (0)
Files:
src/plugin-state/plugin-state-store.authority.test.ts,src/plugin-state/plugin-state-worker.test.ts,src/plugins/bundled-dir.test.ts,src/plugins/bundled-discovery-state.admission.test.ts,src/plugins/catalog-discovery.test.ts,src/plugins/code-mode-executor.test.ts,src/plugins/commands.required-scopes.test.ts.