Skip to content

test(core): remove low-value tests (batch d186) - #164718

Merged
steipete merged 11 commits into
mainfrom
tcr/land-d186-1791079504
Oct 4, 2026
Merged

steipete merged 11 commits into
mainfrom
tcr/land-d186-1791079504

Conversation

@steipete

@steipete steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

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

  • Local pnpm install --frozen-lockfile --prefer-offline, targeted oxfmt --write, plain oxlint -c .oxlintrc.json, and git diff --check passed. Changed-check classification selects the core-test lane.
  • The original shard reports record passing focused tests, changed checks, and coverage comparisons; their exact totals are below. These are historical campaign results, not fresh runtime proof on this base.
  • Fresh Testbox validation has an infrastructure gap: two attempts stopped before remote test execution while queued or preparing their source capsule. A final exact-head attempt requests CI=1 pnpm test <all 66 original touched test paths> followed by CI=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. Hosted openclaw/ci-gate remains the merge gate.
  • Independent retention review and full-diff isolated autoreview completed. Nine unique findings were accepted and restored in 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
  • Cache capacity: the retained pending-entry test fills 100 distinct entries, admits overflow, and verifies the oldest key reloads while prior consumers settle. The owner uses the same map-pruning path for pending and settled entries.
  • Slack retained-browser lifecycle: the finding's premise was incorrect; the retained Zoom row has preserveTrackedBrowser: true and Teams has false, covering both shared cleanup policies.
  • Browser setup provider matrix: the removed provider repetitions run the same defineBrowserMeetingPlugin / createMeetingRuntimeSetup owner. The Slack-specific captions assertion repeated a declarative message literal; the retained shared setup test exercises the actual routing and no-audio-probe behavior.
  • Pairing wire format: retained setup-code.control-ui.test.ts feeds 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XL labels Oct 4, 2026
@steipete
steipete enabled auto-merge (squash) October 4, 2026 02:35
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 10:40 PM ET / October 4, 2026, 02:40 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: dc5b9b9cf9ec92d71b4646bba53500751210bbbc

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test consolidation with explicit validation limits and no concrete blocking defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: Verified repository-admin authorship exempts this test-only cleanup from external-contributor runtime proof; historical shard results remain supplemental and do not establish a fresh head pass. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Verified repository-admin authorship exempts this test-only cleanup from external-contributor runtime proof; historical shard results remain supplemental and do not establish a fresh head pass. No stored-data contract changes.
Evidence reviewed 9 items Introduced scope and merge ownership: The introduced paths and verified test-merge result contain only test files. The test merge records the pinned base followed by the exact PR head; unrelated endpoint drift is not attributed to this branch.
SDK contract retention: The consolidated declaration test retains documentation-insensitive rendering, implementation exclusion, individual private-shape changes, and simultaneous option/result changes with API-diff reporting.
Catalog capacity and cancellation: The retained test fills 100 distinct pending catalog entries, admits overflow, preserves existing consumers, and verifies that the evicted key reloads. The production owner uses shared map pruning for cache admission.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -3058. Total -3058 across 64 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 64 5744 8802 -3058
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 64 5744 8802 -3058

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is internal test maintenance with no introduced production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Verified repository-admin authorship exempts this test-only cleanup from external-contributor runtime proof; historical shard results remain supplemental and do not establish a fresh head pass. No stored-data contract changes.

Label justifications:

  • P3: This is internal test maintenance with no introduced production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Verified repository-admin authorship exempts this test-only cleanup from external-contributor runtime proof; historical shard results remain supplemental and do not establish a fresh head pass. No stored-data contract changes.

Evidence

What I checked:

  • Introduced scope and merge ownership: The introduced paths and verified test-merge result contain only test files. The test merge records the pinned base followed by the exact PR head; unrelated endpoint drift is not attributed to this branch. (906749d511d1)
  • SDK contract retention: The consolidated declaration test retains documentation-insensitive rendering, implementation exclusion, individual private-shape changes, and simultaneous option/result changes with API-diff reporting. (src/plugin-sdk/api-baseline.test.ts:830, dc5b9b9cf9ec)
  • Catalog capacity and cancellation: The retained test fills 100 distinct pending catalog entries, admits overflow, preserves existing consumers, and verifies that the evicted key reloads. The production owner uses shared map pruning for cache admission. (src/plugin-sdk/provider-catalog-shared.test.ts:130, dc5b9b9cf9ec)
  • Authority settlement remains tested: The table retains manager revocation at dispatch, transaction, commit, and after commit, plus plugin-lifetime revocation during deletion; assertions verify persisted state after settlement. Production authority behavior is unchanged. (src/plugin-state/plugin-state-store.authority.test.ts:257, dc5b9b9cf9ec)
  • Current-main necessity: Pinned current main still contains the separate catalog reuse, failed-load, predicate-rejection, and settled-capacity tests that this branch consolidates or removes. This supports treating the cleanup as outstanding rather than already implemented. (src/plugin-sdk/provider-catalog-shared.test.ts:39, c588a8b87b5f)
  • Trusted author verified: Although the pull endpoint reports CONTRIBUTOR, the repository permission endpoint independently confirms steipete has admin access. The trusted-author proof exemption applies.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit f3698fa into main Oct 4, 2026
126 of 127 checks passed
@steipete
steipete deleted the tcr/land-d186-1791079504 branch October 4, 2026 02:48
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant