Skip to content

test(core,plugins): remove low-value tests (batch d060) - #169801

Merged
steipete merged 11 commits into
mainfrom
tcr/land-d060-1791790044
Oct 12, 2026
Merged

steipete merged 11 commits into
mainfrom
tcr/land-d060-1791790044

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes duplicate, implementation-mirroring, metadata-inventory, and same-path variant tests from ten audited campaign shards (batch d060).

User Impact

No user-visible or production behavior change. No runtime files, schemas, public APIs, dependencies, test routing, retries, or skips are changed.

Why This Change Was Made

All ten requested commits were replayed in order onto main at 13f49243c4cbe61ee84073e8f3531b8cfb51fb37; no whole commit was skipped. One conflict in subagent-registry-read-snapshot.test.ts preserves main's removal of obsolete immutable-topology/raw physical-basis tests (ef7aa6a1161), while retaining the campaign deletion of four publication cases and a duplicate delete-refusal row. Main's unrelated additions remain.

Independent review narrowed the reduction: deletion hunks in 28 files were withdrawn to preserve credential precedence and archival, replay safety, provider wire/capability contracts, resource limits, SMS routing/receipts, protocol schema arms, SDK isolation, and mixed-writer ordering. Completed Telegram replay, accepted-MMS partial delivery, native N−1 floors, and generated Swift discriminated unions are retained. Numeric generated parity remains owned by native codegen/artifact tests, without the duplicate parity parser.

Final diff: production +0/−0; tests +651/−8,005; private test support +47/−81, net −7,388 lines across 102 files. Changed-file declarations: 1,127 → 782. No CODEOWNERS pattern matches these paths.

Evidence

Original focused local run at pre-rebase head 06a7d48bc478: pnpm test <all 128 changed test files> --maxWorkers=1, 15 routed projects, 2,363.26 seconds wall. All selected files except local CLI TTS passed. The private-helper consumer subagent-registry-queued-registration.test.ts separately passed 40 tests, 508.69 seconds wall. Unchanged-file proof is reused, not presented as exact-head hosted CI.

After rebase, both affected agent files passed 18 tests (696.85 seconds runner duration, mostly worker transformation), and Telegram routes passed 22 tests (165.88 seconds). A seven-file selection was then intentionally canceled with exit 143 while checking the OpenRouter index, because that entire file's reduction and the pending TTS reduction were withdrawn. No completed test failure was suppressed; the canceled selection is not a pass.

Final narrowed command: pnpm test extensions/sms/src/send.test.ts packages/gateway-protocol/src/native-protocol-levels.guard.test.ts --maxWorkers=1 passed 7 SMS + 5 native tests, 334.93 seconds wall (319.43 seconds routed runner time). The native file includes N−1/client floors and both generated Swift union contracts. This completes focused proof for the substantive review corrections and rebase resolution; original results cover unchanged inputs.

Plain oxlint -c .oxlintrc.json <changed TS/JS files>, oxfmt --write / oxfmt --check <changed files>, and git diff --check 13f49243c4c all exit 0. No heavy local type-aware lint/broad suite or remote lease was used. Hosted openclaw/ci-gate supplies broad proof; CI wall time is not yet available at creation.

Investigated local TTS failures (reduction withdrawn)

The original TTS selection had 11 failures at its existing 1,000ms subprocess deadline. A separately installed clean-main control at ad615e493fc reproduced two: “rejects unrecognized bytes written to a recognized audio extension” and “converts CLI output to raw telephony PCM” (23 passed / 2 failed, 330.32 seconds wall). The other nine original failures remain unattributed. No timeout, assertion, retry, or skip was changed, and no passing replay is claimed as a repair. The final PR does not touch TTS tests or production code. This local evidence is not an inherited-red CI merge exception.

Independent review disposition

The complete 13-pass review returned 49 reports, including repeated index-only reports for unstaged restorations. Forty-six are resolved by retaining original-main coverage, restoring the SMS/Telegram cases, preserving the compact native floor invariant and Swift unions, and staging the final result. Three findings are declined as duplicates:

  • Idle TTL teardown: the retained reacquisition test expires TTL after final release and asserts stop; double-release coverage also expires TTL and asserts one stop.
  • Completed SMS replay: the retained handler-reload test recreates the owner, enqueues the completed SID, asserts completed/duplicate, and proves no redispatch. The outage case also checks the tombstone.
  • Telegram Cartesian source/channel combinations: the owner merges account and command arrays before one fixed-channel access-group expansion/numeric-owner check. Retained cases cover both sources, both group-key forms, wildcard rejection, and numeric acceptance; these combinations do not create separate authority logic.

An earlier interrupted finding about Codex mutation capabilities was also declined: retained exact read/exec tool equality with empty bridges excludes mutation tools, while the next case covers explicitly bridged capabilities. No clean-review verdict is fabricated; actionable findings were dispositioned against source.

Original shard coverage and final deltas

Coverage below is recorded campaign baseline/candidate evidence, not rerun coverage on this rebased head. Each recorded covered-statement/branch loss was below 1%. Final LOC/declaration columns count only each shard's paths still changed by this PR, including private helpers.

Shard Final test/support LOC delta Final changed-file declarations Recorded covered statements / branches
x1265 +11/−305 94 → 75 5,948 → 5,932 (−0.27%); branches 3,009 → 3,009
x1267 +42/−694 144 → 114 1,350 → 1,350; branches 930 → 927 (−0.32%)
x1261 +31/−577 69 → 44 1,024 → 1,024; branches 811 → 810 (−0.12%); functions 208 → 208
x1262 +135/−600 121 → 101 9,652 → 9,652; branches 5,993 → 5,991 (−0.033%); functions unchanged
x1263 +29/−532 67 → 44 967 → 967; branches 791 → 790 (−0.13%)
x1260 +42/−524 131 → 91 1,075 → 1,075; branches 761 → 758 (−0.39%)
x1274 +131/−1765 124 → 56 2,897 → 2,897; branches 411 → 410 (−0.24%); functions 111 → 111
x1276 +24/−616 99 → 67 1,119 → 1,119; branches 804 → 803 (−0.12%)
x1269 +63/−1238 148 → 100 888 → 888; branches 581 → 579 (−0.34%)
x1275 +190/−1235 130 → 90 5,456 → 5,456; branches 3,360 → 3,359 (−0.03%)

The x1265 campaign used separate UI coverage handling because translation imports produced incomparable transformed offsets; retained registry/catalog owner tests cover the removed eager locale inventory checks. Original broad checks recorded unrelated baseline failures/capacity gaps; these are historical evidence only.

Final changed files by shard

x1265

  • extensions/deepgram/realtime-transcription-provider.test.ts
  • extensions/moonshot/index.test.ts
  • extensions/moonshot/native-video.test.ts
  • extensions/telegram/src/miniapp/routes.test.ts
  • extensions/workboard/browser/catalog.test.ts
  • src/pairing/pairing-challenge.test.ts
  • src/pairing/pairing-store.test.ts
  • ui/src/i18n/test/translate.test.ts
  • ui/src/pages/cron/view-description.test.ts
  • ui/src/pages/cron/view-run-history.test.ts

x1267

  • src/talk/activation-name.test.ts
  • src/talk/agent-consult-tool.test.ts
  • src/talk/agent-run-control.test.ts
  • src/talk/client-voice-mutation-digest-owner.test.ts
  • src/talk/client-voice-session-store.test.ts
  • src/talk/exact-speech-protocol.test.ts
  • src/talk/fast-context-runtime.test.ts
  • src/talk/forced-consult-coordinator.test.ts
  • src/talk/provider-resolver.discovery.test.ts
  • src/talk/provider-resolver.test.ts
  • src/talk/realtime-session-harness.test.ts
  • src/talk/realtime-session-policy.test.ts
  • src/talk/talk-session-controller.test.ts
  • src/talk/turn-context-tracker.test.ts

x1261

  • extensions/sms/src/accounts.test.ts
  • extensions/sms/src/channel.test.ts
  • extensions/sms/src/gateway.test.ts
  • extensions/sms/src/ingress-spool.test.ts
  • extensions/sms/src/send.test.ts

x1262

  • src/infra/sqlite-strict.test.ts
  • src/infra/sqlite-user-version.test.ts
  • src/infra/sqlite-worker-broker-reply.cleanup.test.ts
  • src/infra/sqlite-worker-operation-admission.test.ts
  • src/infra/sqlite-worker-transfer.test.ts
  • src/infra/ssh-config.test.ts
  • src/infra/stale-lock-file.test.ts
  • src/infra/startup-migration-checkpoint.test.ts
  • src/infra/state-migrations.caller-mode.execution.test.ts
  • src/infra/state-migrations.caller-mode.plugin-execution.test.ts
  • src/infra/state-migrations.caller-mode.refusal.test.ts

x1263

  • extensions/openrouter/image-generation-provider.test.ts
  • extensions/openrouter/media-understanding-provider.test.ts
  • extensions/openrouter/models.test.ts
  • extensions/openrouter/provider-catalog.test.ts
  • extensions/openrouter/tool-schemas.test.ts
  • extensions/openrouter/usage.test.ts

x1260

  • src/shared/assistant-error-format.html.test.ts
  • src/shared/assistant-error-format.test.ts
  • src/shared/bounded-serial-queue.test.ts
  • src/shared/chat-message-content.test.ts
  • src/shared/device-bootstrap-profile.test.ts
  • src/shared/freebsd-process-identity.test.ts
  • src/shared/frontmatter.test.ts
  • src/shared/global-singleton.test.ts
  • src/shared/ignore-rules.test.ts
  • src/shared/json-schema-defaults.test.ts
  • src/shared/lazy-promise.test.ts
  • src/shared/markdown-code.test.ts

x1274

  • packages/gateway-protocol/src/channels.schema.test.ts
  • packages/gateway-protocol/src/connect-error-details.test.ts
  • packages/gateway-protocol/src/cron-validators.test.ts
  • packages/gateway-protocol/src/native-protocol-levels.guard.test.ts
  • packages/gateway-protocol/src/plugins-validators.test.ts
  • packages/gateway-protocol/src/session-agent-status.test.ts
  • packages/gateway-protocol/src/theme.test.ts
  • packages/gateway-protocol/src/update-runs-validators.test.ts

x1276

  • extensions/copilot/src/attempt-active-run.test.ts
  • extensions/copilot/src/byok-proxy.test.ts
  • extensions/copilot/src/event-bridge.test.ts
  • extensions/copilot/src/event-bridge.tools.test-support.ts
  • extensions/copilot/src/hooks-bridge.test.ts
  • extensions/copilot/src/prompt-guidance.test.ts
  • extensions/copilot/src/runtime.test.ts
  • extensions/copilot/src/usage-bridge.test.ts

x1269

  • src/plugin-sdk/channel-secret-basic-runtime.test.ts
  • src/plugin-sdk/channel-send-result.test.ts
  • src/plugin-sdk/codex-mcp-projection.test.ts
  • src/plugin-sdk/core.test.ts
  • src/plugin-sdk/dedupe-runtime.test.ts
  • src/plugin-sdk/direct-dm.test.ts
  • src/plugin-sdk/facade-loader.test.ts
  • src/plugin-sdk/fetch-runtime.test.ts
  • src/plugin-sdk/file-lock.test.ts
  • src/plugin-sdk/ingress-effect-once.test.ts
  • src/plugin-sdk/keyed-async-queue.test.ts
  • src/plugin-sdk/memory-host-core.test.ts
  • src/plugin-sdk/memory-host-events.test.ts

x1275

  • src/agents/subagents/registry/subagent-active-context.test.ts
  • src/agents/subagents/registry/subagent-catchup.runtime-facts.integration.test.ts
  • src/agents/subagents/registry/subagent-delivery-state.test.ts
  • src/agents/subagents/registry/subagent-list.test.ts
  • src/agents/subagents/registry/subagent-registry-cleanup.test.ts
  • src/agents/subagents/registry/subagent-registry-completion-runtime.test.ts
  • src/agents/subagents/registry/subagent-registry-completion.test.ts
  • src/agents/subagents/registry/subagent-registry-helpers.test.ts
  • src/agents/subagents/registry/subagent-registry-public-api.read.test.ts
  • src/agents/subagents/registry/subagent-registry-queued-registration-claims.test-support.ts
  • src/agents/subagents/registry/subagent-registry-read-context.test.ts
  • src/agents/subagents/registry/subagent-registry-read-snapshot.test.ts
  • src/agents/subagents/registry/subagent-registry-read.scoped.test.ts
  • src/agents/subagents/registry/subagent-registry-requester-wake-commit.test.ts
  • src/agents/subagents/registry/subagent-registry-state.async.test.ts
Deletion hunks withdrawn after review (identical to pinned main)
  • extensions/copilot/src/replay-shim.test.ts
  • extensions/copilot/src/auth-bridge.test.ts
  • extensions/copilot/src/provider-bridge.test.ts
  • extensions/openrouter/chat-owner-regression.test.ts
  • extensions/msteams/config-doctor-api.test.ts
  • extensions/msteams/doctor-contract-api.test.ts
  • extensions/openrouter/music-generation-provider.test.ts
  • extensions/openrouter/video-generation-provider.test.ts
  • extensions/openrouter/oauth.test.ts
  • extensions/openrouter/speech-provider.test.ts
  • extensions/sms/src/media.test.ts
  • extensions/sms/src/inbound.test.ts
  • extensions/sms/src/delivery-observations.test.ts
  • extensions/sms/src/twilio.test.ts
  • extensions/sms/src/status.test.ts
  • extensions/team-reports/src/render/site.test.ts
  • extensions/tts-local-cli/speech-provider.test.ts
  • extensions/together/video-generation-provider.test.ts
  • packages/gateway-protocol/src/devices.schema.test.ts
  • packages/gateway-protocol/src/exec-approvals-validators.test.ts
  • packages/gateway-protocol/src/gateway-suspend.test.ts
  • packages/gateway-protocol/src/approvals-validators.test.ts
  • packages/gateway-protocol/src/index.test.ts
  • src/plugin-sdk/channel-route.test.ts
  • src/shared/config-eval.test.ts
  • src/infra/sqlite-worker-plugin-comparison.test.ts
  • src/plugin-sdk/fs-safe-compat.test.ts
  • extensions/openrouter/index.test.ts

@clawsweeper

clawsweeper Bot commented Oct 12, 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.

@steipete
steipete enabled auto-merge (squash) October 12, 2026 09:35
@steipete
steipete merged commit 8fe1c15 into main Oct 12, 2026
137 of 146 checks passed
@steipete
steipete deleted the tcr/land-d060-1791790044 branch October 12, 2026 09:47
aaroil3 added a commit to aaroil3/openclaw that referenced this pull request Oct 12, 2026
Resolve translate.test.ts: main removed the localized-bundle assertions
(openclaw#169801), so the memory-backed scoping is no longer needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01C1DuukkHJ7HMnptjsRnUdV
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
)

* test(deepgram): deslop x1265 tests

* test(talk): deslop x1267 tests

* test(sms): deslop x1261 tests

* test(infra): deslop x1262 tests

* test(openrouter): deslop x1263 tests

* test(shared): deslop x1260 tests

* test(gateway-protocol): deslop x1274 tests

* test(copilot): deslop x1276 tests

* test(plugin-sdk): deslop x1269 tests

* test(agents): deslop x1275 tests

* test: retain independent contracts in batch d060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant