Skip to content

test(core,plugins): remove low-value tests (batch d035) - #167903

Merged
steipete merged 11 commits into
mainfrom
tcr/land-d035-1791564945
Oct 9, 2026
Merged

steipete merged 11 commits into
mainfrom
tcr/land-d035-1791564945

Conversation

@steipete

@steipete steipete commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

This maintainer-requested batch removes repetitive test cases, copied inventories, and helper-level checks already covered at stronger behavior boundaries across core and bundled plugins.

User Impact

No runtime behavior changes. The batch reduces test maintenance and execution work while retaining meaningful authorization, lifecycle, and regression checks. Runtime production LOC is unchanged.

Why This Change Was Made

Replayed all ten campaign commits onto main without conflicts or skipped commits. The only non-test edit removes three obsolete max-lines baseline entries; it is shrink-only. Removed one redundant Telegram test-support row. The original Gateway method-list fixture remains, with one compact prefix assertion in place of repeated ordering inventories.

Independent review restored the test contracts listed below while keeping the surrounding duplicate deletions. These are test-only corrections; no runtime implementation was changed.

No conflict-resolution hunks were dropped. No changed path matches the current CODEOWNERS file. The shard measurements below are the original before/after coverage evidence, not a new aggregate coverage measurement on current main. The final retention corrections add selected cases back; final per-shard line and declaration deltas are reported alongside the original measurements.

Evidence

  • Local frozen install, targeted oxfmt, plain oxlint on all changed surviving TS files, and git diff --check: passed.
  • Blacksmith Testbox focused run (CI=1 pnpm test <149 touched surviving test files>): 149 files, 2,348 tests passed; five existing skips; 16 Vitest shards in 793.60s.
  • Final retention rerun (CI=1 pnpm test <14 corrected test files>): 14 files, 406 tests passed; three existing skips; seven Vitest shards in 72.01s. The remote command verified all 15 correction-file SHA-256 hashes first.
  • OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <changed paths>: the initial separate lease stayed queued and was stopped without running checks. The same gate was then run through the ready lease's remote-child route. Ratchets, package/format guards, core types, all 27 core test-type graphs, and extension production types passed. The lease ended with exit 255 during extension-test typechecking; no failing test or compiler diagnostic was emitted. Extension-test typechecking, remaining tooling types, typed lint, and later boundary/dead-export checks remain locally incomplete because the Testbox job was cancelled after its 65-minute lifecycle. Hosted required CI gates the exact published head under the campaign's infrastructure-gap rule.
  • Full-diff autoreview was adjudicated against actual owner code and remaining tests; accepted concerns were corrected. Fresh review of the staged corrections: scoped-clean through P2, exit 0.
  • Provider: Blacksmith Testbox. Lease tbx_01m4gsng5ckcb4p90450psmf7d, run 37963029726, completed/cancelled when its lifecycle ended. Queue-only lease tbx_01m4gszbdqg6wrrph7rq1jrz2f was stopped and verified completed. Both leases are stopped; a cancelled lease workflow is not a failed focused-test result.
  • One initial source preflight exited before tests because it compared the local commit SHA to the wrapper's carrier commit. The corrected invocation verified the materialized source tree, checkout path, and correction hash and then passed.

Final replay deltas

Measured against the pinned main base over each shard’s touched test files. Original whole-shard coverage measurements are below.

Shard Test LOC + / − (net) Declarations before → after (delta)
x1016 +72 / -1979 (-1907) 284 → 165 (-119)
x1013 +169 / -1755 (-1586) 283 → 208 (-75)
x1009 +93 / -1720 (-1627) 321 → 232 (-89)
x1007 +207 / -4049 (-3842) 329 → 204 (-125)
x1017 +424 / -2667 (-2243) 281 → 193 (-88)
x1015 +120 / -2130 (-2010) 298 → 179 (-119)
x1022 +271 / -1747 (-1476) 291 → 222 (-69)
x1024 +240 / -1681 (-1441) 291 → 193 (-98)
x1018 +305 / -2113 (-1808) 295 → 205 (-90)
x1021 +250 / -2605 (-2355) 253 → 165 (-88)

Production: +0/-0. Tests: +2151/-22446 (net -20295). Test support: +0/-12. Baseline: +0/-3. Total net reduction: 20,310 lines across 152 changed files.

Review disposition

The full-diff review produced 28 entries (26 distinct concerns after deduplicating two OAuth reports). Seventeen concerns were accepted wholly or in part. The resulting retention correction keeps guarded execution and symlink boundaries, ordinary elicitation routing, OAuth request/scope/rotation contracts, below-cap Teams chunking, representative final privacy checks, MCP compiler/reference behavior, deletion races, descendant-frame containment, the documented frozen Gateway prefix, artifact invalidation, manifest-less packaging, macOS Bash compatibility, and the SQLite benchmark smoke.

Nine concerns were rejected against concrete surviving proof:

Concern Remaining proof / reason
Unused continuity resolver import Three executable uses remain in context-engine-projection.test.ts; plain oxlint exits 0.
Opaque remote plugin ID The retained official-marketplace success case asserts plugin/install; its request fixture verifies plugin/read.
Explicit service-tier opt-out run-attempt-fast-mode.test-support.ts checks the actual turn boundary with the switch disabled, including no catalog query.
Nonempty image budget The retained captionless-image case keeps two groups and checks their token charge against an explicit budget.
Provider SecretRef matrix Cold API-key/token tests, generic request-field owner propagation, registry field coverage, and header cold-owner tests remain.
Unattended prompt denial mcp-codex-tool-approval.test.ts covers explicit prompt policy; the retained harness case covers the shared no-interactive-callback omission path.
Pending widget with valid ticket The retained board HTTP case denies a valid ticket before grant and serves it after grant.
Additional static policy graph roots The retained method-scopes.ts graph recursively reaches both core policy and descriptor modules.
Malformed OAuth JSON provider-http-errors.test.ts covers malformed HTTP-200 JSON and stable contextual errors in the exact shared helper Teams uses.

Partial retentions keep the independently meaningful cases; overlapping Telegram wrapper variants, schema shape matrices, popup assertions, and compiler-input variants retain their owner-level proof. The original method-order fixture is retained conservatively because production comments and its introducing commit document the invariant; no indexed client was claimed as verified.

Per-shard measurements and changed files

All source shards reported zero folded cases and no excluded coverage groups. Covered statement and branch losses remain below 1% in each original shard comparison.

Shard Original test LOC Declarations Original in-shard coverage totals
x1016 5698 → 3791 (-1907) 290 → 171 statements 1929 → 1928; branches 1598 → 1596; functions 374 → 374
x1013 9900 → 7912 (-1988) 302 → 221 statements 4761 → 4761; branches 3063 → 3063; no per-file drops
x1009 7784 → 6157 (-1627) 321 → 232 statements 8028 → 8026; branches 5281 → 5278
x1007 12039 → 8185 (-3854) 329 → 203 statements 4533 → 4533; branches 3962 → 3956; functions 801 → 801
x1017 9906 → 7590 (-2316) 296 → 205 statements 6727 → 6727; branches 4213 → 4208; functions 1324 → 1324
x1015 7608 → 5555 (-2053), before retention correction 298 → 177, then +1 retained statements 1835 → 1835; branches 1313 → 1309; functions unchanged
x1022 8868 → 7314 (-1554) 291 → 221 statements 4856 → 4856; branches 3773 → 3771; functions 901 → 901
x1024 6885 → 5423 (-1462) 291 → 192 statements 2544 → 2541; branches 1905 → 1895; functions 434 → 434
x1018 9190 → 7332 (-1858) 295 → 202 statements 6103 → 6103; branches 4196 → 4194; functions unchanged
x1021 12444 → 10082 (-2362) 282 → 193 statements 13336 → 13331; branches 6767 → 6760; functions 2532 → 2529

x1016 (edb1e0e4d8c2):

  • src/auto-reply/reply/pending-tool-task-drain.test.ts
  • src/auto-reply/reply/post-compaction-context.test.ts
  • src/auto-reply/reply/private-message-tool-final.test.ts
  • src/auto-reply/reply/progress-narrator.test.ts
  • src/auto-reply/reply/prompt-prelude.test.ts
  • src/auto-reply/reply/queue-policy.test.ts
  • src/auto-reply/reply/reply-flow.test.ts
  • src/auto-reply/reply/reply-inline.test.ts
  • src/auto-reply/reply/reply-operation-abort.test.ts
  • src/auto-reply/reply/reply-payloads.test.ts
  • src/auto-reply/reply/reply-plumbing.test.ts
  • src/auto-reply/reply/reply-state.test.ts
  • src/auto-reply/reply/reply-threading.test.ts
  • src/auto-reply/reply/reply-timing-tracker.test.ts
  • src/auto-reply/reply/reply-utils.test.ts

x1013 (39a720f39f61):

  • test/scripts/bench-gateway-restart.test.ts
  • test/scripts/bench-gateway-startup.test.ts
  • test/scripts/bench-sqlite-state.test.ts
  • test/scripts/bounded-response.test.ts
  • test/scripts/browser-cdp-snapshot.test.ts
  • test/scripts/build-and-run-mac.test.ts
  • test/scripts/build-artifact-cache.test.ts
  • test/scripts/build-external-plugin-local-dist.test.ts
  • test/scripts/bundled-plugin-assets.test.ts
  • test/scripts/bundled-plugin-build-entries.test.ts
  • test/scripts/bundled-plugin-install-uninstall-probe.test.ts
  • test/scripts/changed-lanes.test.ts
  • test/scripts/check-assertion-safety-ratchet.test.ts

x1009 (70adbe18aa38):

  • src/infra/exec-approval-command-display.test.ts
  • src/infra/exec-approval-reply.test.ts
  • src/infra/exec-approval-session-target.test.ts
  • src/infra/exec-approval-surface.test.ts
  • src/infra/exec-approvals-allow-always.test.ts
  • src/infra/exec-approvals-analysis.test.ts
  • src/infra/exec-approvals-config.test.ts
  • src/infra/exec-approvals-policy.test.ts
  • src/infra/exec-approvals-safe-bins.test.ts
  • src/infra/exec-approvals-store.read-worker.test.ts
  • src/infra/exec-approvals-store.test.ts
  • src/infra/exec-approvals.test.ts
  • src/infra/exec-authorization-allowlist.test.ts
  • src/infra/exec-authorization-plan.test.ts
  • src/infra/exec-authorization-render.test.ts
  • src/infra/exec-auto-review.test.ts

x1007 (7114b00104cf):

  • config/max-lines-baseline.txt
  • src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts
  • src/auto-reply/reply/agent-runner-execution-results.test.ts
  • src/auto-reply/reply/agent-runner-execution-runtime.test.ts
  • src/auto-reply/reply/agent-runner-execution-state.test.ts
  • src/auto-reply/reply/agent-runner-execution-terminal-failures.test.ts
  • src/auto-reply/reply/agent-runner-helpers.test.ts
  • src/auto-reply/reply/agent-runner-payloads.test.ts
  • src/auto-reply/reply/agent-runner-result-accounting.persistence.test.ts
  • src/auto-reply/reply/agent-runner-utils.test.ts
  • src/auto-reply/reply/bash-command.stop.test.ts
  • src/auto-reply/reply/block-reply-pipeline.test.ts
  • src/auto-reply/reply/block-streaming.test.ts
  • src/auto-reply/reply/channel-run-admission.test.ts
  • src/auto-reply/reply/commands-acp.test.ts
  • src/auto-reply/reply/commands-allowlist.test.ts
  • src/auto-reply/reply/commands-approve.test.ts

x1017 (06f52a72cad0):

  • config/max-lines-baseline.txt
  • src/agents/acp-workspace-provisioning.test.ts
  • src/agents/agent-auth-discovery.external-cli.test.ts
  • src/agents/agent-bundle-lsp-runtime.test.ts
  • src/agents/agent-bundle-mcp-harness.test.ts
  • src/agents/agent-bundle-mcp-names.test.ts
  • src/agents/agent-bundle-mcp-reload.test.ts
  • src/agents/agent-bundle-mcp-runtime-config.test.ts
  • src/agents/agent-bundle-mcp-schema.test.ts
  • src/agents/agent-bundle-mcp-tools.materialize.test.ts
  • src/agents/agent-command-restart-recovery.test.ts
  • src/agents/agent-project-settings.test.ts
  • src/agents/agent-run-terminal-outcome.test.ts
  • src/agents/agent-runtime-config.secret-owners.test.ts
  • src/agents/agent-scope-config.test.ts
  • src/agents/agent-scope.test.ts

x1015 (df7da74c019c):

  • extensions/msteams/src/inbound.test.ts
  • extensions/msteams/src/media-helpers.test.ts
  • extensions/msteams/src/mentions.test.ts
  • extensions/msteams/src/messenger.test.ts
  • extensions/msteams/src/msteams-ingress.test.ts
  • extensions/msteams/src/oauth.test.ts
  • extensions/msteams/src/outbound.test.ts
  • extensions/msteams/src/pending-uploads-fs.test.ts
  • extensions/msteams/src/pending-uploads.test.ts
  • extensions/msteams/src/policy.test.ts
  • extensions/msteams/src/polls.test.ts
  • extensions/msteams/src/read-policy.test.ts
  • extensions/msteams/src/reply-dispatcher.test.ts
  • extensions/msteams/src/reply-stream-controller.sdk.test.ts
  • extensions/msteams/src/reply-stream-controller.test.ts
  • extensions/msteams/src/resolve-allowlist.test.ts

x1022 (5e928ed36ebb):

  • config/max-lines-baseline.txt
  • extensions/codex/src/app-server/computer-use-marketplace.test.ts
  • extensions/codex/src/app-server/computer-use-service.test.ts
  • extensions/codex/src/app-server/computer-use.test.ts
  • extensions/codex/src/app-server/config.test.ts
  • extensions/codex/src/app-server/connection-health.test.ts
  • extensions/codex/src/app-server/context-engine-projection.test.ts
  • extensions/codex/src/app-server/cyber-failover.test.ts
  • extensions/codex/src/app-server/desktop-generation-service.test.ts
  • extensions/codex/src/app-server/desktop-generation.test.ts
  • extensions/codex/src/app-server/dynamic-tools.tool-authored-source-reply.test.ts
  • extensions/codex/src/app-server/elicitation-bridge.test.ts
  • extensions/codex/src/app-server/event-projector-snapshot.test.ts
  • extensions/codex/src/app-server/event-projector.verbose-hooks.test.ts
  • extensions/codex/src/app-server/isolated-completion.test.ts
  • extensions/codex/src/app-server/managed-binary.test.ts
  • extensions/codex/src/app-server/managed-thread-store.test.ts

x1024 (4d27038a64e9):

  • src/gateway/agent-list.test.ts
  • src/gateway/agent-prompt.test.ts
  • src/gateway/android-node.capabilities.policy-config.test.ts
  • src/gateway/approval-fixture.test.ts
  • src/gateway/approval-web-push.test.ts
  • src/gateway/assistant-avatar.test.ts
  • src/gateway/assistant-identity.test.ts
  • src/gateway/auth-rate-limit.test.ts
  • src/gateway/auth.test.ts
  • src/gateway/board-http.test.ts
  • src/gateway/board-sandbox.test.ts
  • src/gateway/boot-echo-guard.test.ts
  • src/gateway/boot.test.ts
  • src/gateway/channel-health-monitor.test.ts
  • src/gateway/channel-health-policy.test.ts
  • src/gateway/chat-abort-lifecycle-internal.test.ts

x1018 (e7421e17a074):

  • extensions/telegram/src/polling-session.test.ts
  • extensions/telegram/src/probe.test.ts
  • extensions/telegram/src/prompt-context-projection.test.ts
  • extensions/telegram/src/reply-scaffolding.telegram-http.test.ts
  • extensions/telegram/src/rich-blocks-html.test.ts
  • extensions/telegram/src/rich-blocks.test.ts
  • extensions/telegram/src/sendchataction-401-backoff.test.ts
  • extensions/telegram/src/sequential-key.test.ts
  • extensions/telegram/src/session-route.test.ts
  • extensions/telegram/src/status.test.ts
  • extensions/telegram/src/sticker-cache.test.ts
  • extensions/telegram/src/target-writeback.test-shared.ts
  • extensions/telegram/src/targets.test.ts
  • extensions/telegram/src/telegram-ingress-coalescing.e2e.test.ts
  • extensions/telegram/src/telegram-ingress-drain.test.ts
  • extensions/telegram/src/telegram-ingress-supersede.test.ts
  • extensions/telegram/src/telegram-ingress-worker.runtime.test.ts

x1021 (f7a8dc965e9b):

  • src/gateway/server-control-ui-root.resolve.test.ts
  • src/gateway/server-cron-lazy.test.ts
  • src/gateway/server-cron-notifications.test.ts
  • src/gateway/server-cron.test.ts
  • src/gateway/server-discovery-runtime.test.ts
  • src/gateway/server-import-boundary.test.ts
  • src/gateway/server-instance-runtime.test.ts
  • src/gateway/server-lanes.hook-group.test.ts
  • src/gateway/server-lanes.test.ts
  • src/gateway/server-methods-list.test-fixtures.ts
  • src/gateway/server-methods-list.test.ts
  • src/gateway/server-model-catalog.test.ts

@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 9, 2026 18:09
@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams channel: telegram Channel integration: telegram gateway Gateway runtime agents Agent runtime and tooling extensions: codex size: XL labels Oct 9, 2026
@steipete
steipete merged commit a799f4a into main Oct 9, 2026
132 of 136 checks passed
@steipete
steipete deleted the tcr/land-d035-1791564945 branch October 9, 2026 18:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
)

* test(auto-reply): deslop x1016 tests

* test(test): deslop x1013 tests

* test(infra): deslop x1009 tests

* test(config): deslop x1007 tests

* test(config): deslop x1017 tests

* test(msteams): deslop x1015 tests

* test(config): deslop x1022 tests

* test(gateway): deslop x1024 tests

* test(telegram): deslop x1018 tests

* test(gateway): deslop x1021 tests

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

Labels

agents Agent runtime and tooling channel: msteams Channel integration: msteams channel: telegram Channel integration: telegram extensions: codex gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant