Repository navigation
test(core,plugins): remove low-value tests (batch d035) - #167903
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated 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. |
steipete
enabled auto-merge (squash)
October 9, 2026 18:09
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
git diff --check: passed.CI=1 pnpm test <149 touched surviving test files>): 149 files, 2,348 tests passed; five existing skips; 16 Vitest shards in 793.60s.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.tbx_01m4gsng5ckcb4p90450psmf7d, run 37963029726, completed/cancelled when its lifecycle ended. Queue-only leasetbx_01m4gszbdqg6wrrph7rq1jrz2fwas stopped and verified completed. Both leases are stopped; a cancelled lease workflow is not a failed focused-test result.Final replay deltas
Measured against the pinned main base over each shard’s touched test files. Original whole-shard coverage measurements are below.
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:
context-engine-projection.test.ts; plain oxlint exits 0.plugin/install; its request fixture verifiesplugin/read.run-attempt-fast-mode.test-support.tschecks the actual turn boundary with the switch disabled, including no catalog query.mcp-codex-tool-approval.test.tscovers explicit prompt policy; the retained harness case covers the shared no-interactive-callback omission path.method-scopes.tsgraph recursively reaches both core policy and descriptor modules.provider-http-errors.test.tscovers 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.
x1016 (
edb1e0e4d8c2):src/auto-reply/reply/pending-tool-task-drain.test.tssrc/auto-reply/reply/post-compaction-context.test.tssrc/auto-reply/reply/private-message-tool-final.test.tssrc/auto-reply/reply/progress-narrator.test.tssrc/auto-reply/reply/prompt-prelude.test.tssrc/auto-reply/reply/queue-policy.test.tssrc/auto-reply/reply/reply-flow.test.tssrc/auto-reply/reply/reply-inline.test.tssrc/auto-reply/reply/reply-operation-abort.test.tssrc/auto-reply/reply/reply-payloads.test.tssrc/auto-reply/reply/reply-plumbing.test.tssrc/auto-reply/reply/reply-state.test.tssrc/auto-reply/reply/reply-threading.test.tssrc/auto-reply/reply/reply-timing-tracker.test.tssrc/auto-reply/reply/reply-utils.test.tsx1013 (
39a720f39f61):test/scripts/bench-gateway-restart.test.tstest/scripts/bench-gateway-startup.test.tstest/scripts/bench-sqlite-state.test.tstest/scripts/bounded-response.test.tstest/scripts/browser-cdp-snapshot.test.tstest/scripts/build-and-run-mac.test.tstest/scripts/build-artifact-cache.test.tstest/scripts/build-external-plugin-local-dist.test.tstest/scripts/bundled-plugin-assets.test.tstest/scripts/bundled-plugin-build-entries.test.tstest/scripts/bundled-plugin-install-uninstall-probe.test.tstest/scripts/changed-lanes.test.tstest/scripts/check-assertion-safety-ratchet.test.tsx1009 (
70adbe18aa38):src/infra/exec-approval-command-display.test.tssrc/infra/exec-approval-reply.test.tssrc/infra/exec-approval-session-target.test.tssrc/infra/exec-approval-surface.test.tssrc/infra/exec-approvals-allow-always.test.tssrc/infra/exec-approvals-analysis.test.tssrc/infra/exec-approvals-config.test.tssrc/infra/exec-approvals-policy.test.tssrc/infra/exec-approvals-safe-bins.test.tssrc/infra/exec-approvals-store.read-worker.test.tssrc/infra/exec-approvals-store.test.tssrc/infra/exec-approvals.test.tssrc/infra/exec-authorization-allowlist.test.tssrc/infra/exec-authorization-plan.test.tssrc/infra/exec-authorization-render.test.tssrc/infra/exec-auto-review.test.tsx1007 (
7114b00104cf):config/max-lines-baseline.txtsrc/auto-reply/reply/agent-runner-execution-provider-failures.test.tssrc/auto-reply/reply/agent-runner-execution-results.test.tssrc/auto-reply/reply/agent-runner-execution-runtime.test.tssrc/auto-reply/reply/agent-runner-execution-state.test.tssrc/auto-reply/reply/agent-runner-execution-terminal-failures.test.tssrc/auto-reply/reply/agent-runner-helpers.test.tssrc/auto-reply/reply/agent-runner-payloads.test.tssrc/auto-reply/reply/agent-runner-result-accounting.persistence.test.tssrc/auto-reply/reply/agent-runner-utils.test.tssrc/auto-reply/reply/bash-command.stop.test.tssrc/auto-reply/reply/block-reply-pipeline.test.tssrc/auto-reply/reply/block-streaming.test.tssrc/auto-reply/reply/channel-run-admission.test.tssrc/auto-reply/reply/commands-acp.test.tssrc/auto-reply/reply/commands-allowlist.test.tssrc/auto-reply/reply/commands-approve.test.tsx1017 (
06f52a72cad0):config/max-lines-baseline.txtsrc/agents/acp-workspace-provisioning.test.tssrc/agents/agent-auth-discovery.external-cli.test.tssrc/agents/agent-bundle-lsp-runtime.test.tssrc/agents/agent-bundle-mcp-harness.test.tssrc/agents/agent-bundle-mcp-names.test.tssrc/agents/agent-bundle-mcp-reload.test.tssrc/agents/agent-bundle-mcp-runtime-config.test.tssrc/agents/agent-bundle-mcp-schema.test.tssrc/agents/agent-bundle-mcp-tools.materialize.test.tssrc/agents/agent-command-restart-recovery.test.tssrc/agents/agent-project-settings.test.tssrc/agents/agent-run-terminal-outcome.test.tssrc/agents/agent-runtime-config.secret-owners.test.tssrc/agents/agent-scope-config.test.tssrc/agents/agent-scope.test.tsx1015 (
df7da74c019c):extensions/msteams/src/inbound.test.tsextensions/msteams/src/media-helpers.test.tsextensions/msteams/src/mentions.test.tsextensions/msteams/src/messenger.test.tsextensions/msteams/src/msteams-ingress.test.tsextensions/msteams/src/oauth.test.tsextensions/msteams/src/outbound.test.tsextensions/msteams/src/pending-uploads-fs.test.tsextensions/msteams/src/pending-uploads.test.tsextensions/msteams/src/policy.test.tsextensions/msteams/src/polls.test.tsextensions/msteams/src/read-policy.test.tsextensions/msteams/src/reply-dispatcher.test.tsextensions/msteams/src/reply-stream-controller.sdk.test.tsextensions/msteams/src/reply-stream-controller.test.tsextensions/msteams/src/resolve-allowlist.test.tsx1022 (
5e928ed36ebb):config/max-lines-baseline.txtextensions/codex/src/app-server/computer-use-marketplace.test.tsextensions/codex/src/app-server/computer-use-service.test.tsextensions/codex/src/app-server/computer-use.test.tsextensions/codex/src/app-server/config.test.tsextensions/codex/src/app-server/connection-health.test.tsextensions/codex/src/app-server/context-engine-projection.test.tsextensions/codex/src/app-server/cyber-failover.test.tsextensions/codex/src/app-server/desktop-generation-service.test.tsextensions/codex/src/app-server/desktop-generation.test.tsextensions/codex/src/app-server/dynamic-tools.tool-authored-source-reply.test.tsextensions/codex/src/app-server/elicitation-bridge.test.tsextensions/codex/src/app-server/event-projector-snapshot.test.tsextensions/codex/src/app-server/event-projector.verbose-hooks.test.tsextensions/codex/src/app-server/isolated-completion.test.tsextensions/codex/src/app-server/managed-binary.test.tsextensions/codex/src/app-server/managed-thread-store.test.tsx1024 (
4d27038a64e9):src/gateway/agent-list.test.tssrc/gateway/agent-prompt.test.tssrc/gateway/android-node.capabilities.policy-config.test.tssrc/gateway/approval-fixture.test.tssrc/gateway/approval-web-push.test.tssrc/gateway/assistant-avatar.test.tssrc/gateway/assistant-identity.test.tssrc/gateway/auth-rate-limit.test.tssrc/gateway/auth.test.tssrc/gateway/board-http.test.tssrc/gateway/board-sandbox.test.tssrc/gateway/boot-echo-guard.test.tssrc/gateway/boot.test.tssrc/gateway/channel-health-monitor.test.tssrc/gateway/channel-health-policy.test.tssrc/gateway/chat-abort-lifecycle-internal.test.tsx1018 (
e7421e17a074):extensions/telegram/src/polling-session.test.tsextensions/telegram/src/probe.test.tsextensions/telegram/src/prompt-context-projection.test.tsextensions/telegram/src/reply-scaffolding.telegram-http.test.tsextensions/telegram/src/rich-blocks-html.test.tsextensions/telegram/src/rich-blocks.test.tsextensions/telegram/src/sendchataction-401-backoff.test.tsextensions/telegram/src/sequential-key.test.tsextensions/telegram/src/session-route.test.tsextensions/telegram/src/status.test.tsextensions/telegram/src/sticker-cache.test.tsextensions/telegram/src/target-writeback.test-shared.tsextensions/telegram/src/targets.test.tsextensions/telegram/src/telegram-ingress-coalescing.e2e.test.tsextensions/telegram/src/telegram-ingress-drain.test.tsextensions/telegram/src/telegram-ingress-supersede.test.tsextensions/telegram/src/telegram-ingress-worker.runtime.test.tsx1021 (
f7a8dc965e9b):src/gateway/server-control-ui-root.resolve.test.tssrc/gateway/server-cron-lazy.test.tssrc/gateway/server-cron-notifications.test.tssrc/gateway/server-cron.test.tssrc/gateway/server-discovery-runtime.test.tssrc/gateway/server-import-boundary.test.tssrc/gateway/server-instance-runtime.test.tssrc/gateway/server-lanes.hook-group.test.tssrc/gateway/server-lanes.test.tssrc/gateway/server-methods-list.test-fixtures.tssrc/gateway/server-methods-list.test.tssrc/gateway/server-model-catalog.test.ts