Skip to content

test(core,plugins): remove low-value tests (batch d364) - #179088

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d364-1792560910
Oct 21, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d364-1792560910

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Test fixtures and assertion scaffolding repeat setup across the selected suites.

User Impact

No user-visible or production behavior change. This batch only changes tests and test-support helpers; it introduces no migration or operator action.

Why This Change Was Made

Replay the 30 selected campaign commits onto main at 54b5607e558451bc7fd44d9cd276f7e2991d4676, retaining current-main behavior and consolidating repeated fixtures, setup, tables, and assertions. All 30 commits applied in order, with the file-level drops described below; no whole commits skipped.

Production LOC: +0 / -0. Test and test-support LOC: +4,485 / -7,361 (net -2,876), across 91 files. Three small test-support helpers share sandbox custody, memory-index, and UI handshake setup.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <91 changed files>: exit 0.
  • node_modules/.bin/oxlint -c .oxlintrc.json <91 changed files>: exit 0.
  • git diff --check 54b5607e558451bc7fd44d9cd276f7e2991d4676: passed.
  • Per operator CI-only rule, no local Vitest, check-changed, typecheck, coverage, Crabbox, or Testbox was run. Test wall times and CI seconds are not yet measured. No leases created.
  • Hosted openclaw/ci-gate is the runtime and merge gate. Independent full-diff autoreview completed; corrective review is clean through P2.
  • Coverage totals are unavailable: every source shard report explicitly records that coverage/tests were not run under CI-only mode. No <=1% coverage claim is made.
  • Current CODEOWNERS has no matching owned paths in this diff.
Per-shard replay inventory

Counts below are recomputed against the pinned current-main base, not copied from the older shard reports. LOC includes test support. Declaration counts are static it/test call sites (including parameterized declarations), not expanded execution counts.

Shard Test/support LOC before → after LOC delta Static declarations before → after Coverage totals
z0700 292 → 279 -13 5 → 5 Not run (CI-only source report)
z0703 940 → 673 -267 21 → 19 Not run (CI-only source report)
z0704 675 → 601 -74 9 → 8 Not run (CI-only source report)
z0710 1106 → 824 -282 26 → 26 Not run (CI-only source report)
z0707 916 → 672 -244 29 → 21 Not run (CI-only source report)
z0708 1152 → 994 -158 33 → 30 Not run (CI-only source report)
z0706 935 → 738 -197 17 → 13 Not run (CI-only source report)
z0709 1109 → 863 -246 25 → 23 Not run (CI-only source report)
z0711 1105 → 830 -275 21 → 17 Not run (CI-only source report)
z0712 942 → 674 -268 53 → 46 Not run (CI-only source report)
z0713 997 → 824 -173 23 → 18 Not run (CI-only source report)
z0705 1116 → 880 -236 22 → 19 Not run (CI-only source report)
z0714 1103 → 898 -205 27 → 22 Not run (CI-only source report)
z0716 841 → 603 -238 30 → 27 Not run (CI-only source report)

z0700

  • src/plugins/installed-plugin-index-store-write.custody.test.ts
  • src/plugins/installed-plugin-index.compat.test.ts

z0703

  • src/commands/doctor/shared/hooks-token-reuse-repair.test.ts
  • src/commands/doctor/shared/include-migration-ownership.test.ts
  • src/commands/doctor/shared/invalid-plugin-config.test.ts
  • src/commands/doctor/shared/legacy-config-migrations.runtime.code-mode.test.ts
  • src/commands/doctor/shared/legacy-config-migrations.runtime.retired.memory-qmd.test.ts
  • src/commands/doctor/shared/legacy-config-migrations.runtime.tool-policy-conflicts.profiles.test.ts
  • src/commands/doctor/shared/legacy-config-migrations.runtime.tool-policy-conflicts.test.ts

z0704

  • src/agents/sandbox/context-custody.test-support.ts
  • src/agents/sandbox/context.browser-state-owner.test.ts
  • src/agents/sandbox/context.managed-custody.test.ts
  • src/agents/sandbox/creator-namespace.test.ts
  • src/agents/sandbox/fs-bridge.boundary.test.ts
  • src/agents/sandbox/registry-authority.test.ts

z0710

  • extensions/telegram/src/fetch.capture.test.ts
  • extensions/telegram/src/group-migration.test.ts
  • extensions/telegram/src/inbound-event-delivery.test.ts
  • extensions/telegram/src/lane-delivery.presentation.test.ts
  • extensions/telegram/src/lane-delivery.test-support.ts
  • extensions/telegram/src/location-message-hook.test.ts
  • extensions/telegram/src/message-cache.conversation-context.test.ts
  • extensions/telegram/src/model-buttons.test.ts

z0707

  • src/docker-image-digests.test.ts
  • src/entry.respawn.test.ts
  • src/entry.version-fast-path.test.ts
  • src/plugin-activation-boundary.test.ts
  • src/runtime.test.ts

z0708

  • ui/src/api/gateway-browser-socket.test.ts
  • ui/src/api/gateway-connect.node.test.ts
  • ui/src/api/gateway-handshake.test-support.ts
  • ui/src/api/gateway-heartbeat.node.test.ts
  • ui/src/api/gateway-ingress.node.test.ts
  • ui/src/api/gateway-reachability.node.test.ts
  • ui/src/api/gateway-session-row-events.node.test.ts

z0706

  • src/agents/embedded-agent-runner/run/attempt-session-boundary.media.test.ts
  • src/agents/embedded-agent-runner/run/attempt-session-runtime-context.test.ts
  • src/agents/embedded-agent-runner/run/attempt-session-settle.test.ts
  • src/agents/embedded-agent-runner/run/attempt-stage-timing.test.ts
  • src/agents/embedded-agent-runner/run/attempt-startup.test.ts
  • src/agents/embedded-agent-runner/run/attempt-system-prompt.sandbox-info.test-support.ts
  • src/agents/embedded-agent-runner/run/attempt-tool-call-replay-sanitization.compaction.test.ts

z0709

  • test/vitest-ui-e2e-prebuilt.test.ts
  • test/vitest-ui-e2e-preflight.test.ts
  • test/vitest-unit-config.test.ts
  • test/vitest-unit-fast-config.test.ts

z0711

  • extensions/telegram/src/setup-surface.test.ts
  • extensions/telegram/src/telegram-ingress-coalescing.test-support.ts
  • extensions/telegram/src/telegram-ingress-spool.test-support.ts
  • extensions/telegram/src/telegram-ingress-worker.test.ts
  • extensions/telegram/src/thread-bindings-reconcile.test.ts
  • extensions/telegram/src/thread-bindings.test-support.ts
  • extensions/telegram/src/threading-tool-context.test.ts
  • extensions/telegram/src/update-offset-persistence.test.ts

z0712

  • src/shared/gateway-bind-url.test.ts
  • src/shared/global-singleton.test.ts
  • src/shared/ignore-rules.test.ts
  • src/shared/immutable-data.test.ts
  • src/shared/json-schema-defaults.test.ts
  • src/shared/lazy-promise.test.ts
  • src/shared/node-match.test.ts

z0713

  • src/infra/package-update-permission-drift.test.ts
  • src/infra/package-update-publication-legacy-recovery.test.ts
  • src/infra/package-update-publication-legacy.test.ts
  • src/infra/package-update-self-replay.e2e.test.ts
  • src/infra/package-update-steps.postinstall.test.ts
  • src/infra/package-update-swap.windows.test.ts
  • src/infra/path-existence.test.ts

z0705

  • extensions/memory-core/src/memory/manager-compatible-index-race.test.ts
  • extensions/memory-core/src/memory/manager-compatible-index-upgrade.test.ts
  • extensions/memory-core/src/memory/manager-compatible-index.test-support.ts
  • extensions/memory-core/src/memory/manager-index-generation-lease.test.ts
  • extensions/memory-core/src/memory/manager-index-preparation.test.ts
  • extensions/memory-core/src/memory/manager-index-retention.test.ts
  • extensions/memory-core/src/memory/manager-memory-delta.test.ts
  • extensions/memory-core/src/memory/manager-provider-probe.test.ts
  • extensions/memory-core/src/memory/manager-provider-state.test.ts

z0714

  • src/daemon/constants.test.ts
  • src/daemon/diagnostics.test.ts
  • src/daemon/gateway-startup-recovery.test.ts
  • src/daemon/hosted-stop-executor.lifecycle.test.ts
  • src/daemon/launchd-foreign-jobs.process.test.ts
  • src/daemon/launchd-fs.test-support.ts
  • src/daemon/launchd-plist.test.ts
  • src/daemon/launchd-retained-policy.test.ts

z0716

  • src/infra/channel-runtime-context.test.ts
  • src/infra/channels-status-issues.test.ts
  • src/infra/child-runtime-viability.test.ts
  • src/infra/clawhub-packages.test.ts
  • src/infra/clawhub-retry.test.ts
  • src/infra/container-env-file.test.ts
Conflict resolution: current-main contracts retained

All nonconflicting changes were retained. The following overlapping file changes were dropped instead of restoring superseded campaign assumptions:

  • z0700: src/plugins/install-transport.work-deadline.test.ts, src/plugins/installed-plugin-index-facts.test.ts, src/plugins/installed-plugin-index-records.managed-npm.test.ts, and src/plugins/installed-plugin-index.symlink.test.ts. Main has newer test structure and distinct ownership/cache assertions; keep it. The two clean database-temp-fixture migrations remain.
  • z0703 (both commits): src/commands/doctor/shared/legacy-config-migrate.media-models.test.ts. Main preserves model selections rather than automatically upgrading the old references; keep the current behavior tests.
  • z0704 (both commits): src/agents/sandbox/config-hash.test.ts and src/agents/sandbox/host-paths.test.ts. Preserve main's additional mount, epoch, security, path identity, and platform cases.
  • z0708 (second commit only): ui/src/api/gateway-connect.node.test.ts. Preserve new connect-before-hello and early-stop lifecycle cases. The first commit's clean handshake-fixture migration remains.
  • z0712 (both commits): src/shared/keyed-fifo-lease.test.ts. Main uses the newer non-cancellable, void-result wait contract; keep its proof.
  • z0713 (all three commits): src/infra/path-prepend.test.ts. Preserve main's additional key-casing, merge, path-creation, and removal cases.
  • z0716 (second commit): src/infra/dedupe.test.ts. Preserve main's explicit empty warning-key and non-finite timestamp cases.

CI and review correction

The first head's CI exposed missing runtime references in the newer Gateway connect cases, unbound-method checks, a directly exported vi.hoisted binding in Telegram support, and changed mock factories outside the mock-export ratchet baseline. The corrective commit uses the tracked Gateway client factory, restores its socket import, binds/preserves method receivers, and exports the Telegram hoisted binding separately.

The mock-factory changes were dropped by restoring these complete files to the pinned main version: src/agents/embedded-agent-runner/run/attempt-session-cleanup.test.ts, src/agents/sandbox/dependency-template.test.ts, src/entry.respawn-diagnostics.test.ts, and src/infra/clipboard.test.ts. No baseline or guard was weakened.

Full-diff review identified three actionable issues: the Gateway reference issue, lost incomplete-prebuilt-UI rejection proof, and derived-only unit-fast membership expectations. All three are repaired, including restoration of the incomplete-asset test and six explicit required-member assertions. Two other findings were rejected after source inspection: buildCliRespawnPlan already declares argv?; and the diagnostic table's actual two rows (trace=true/supported=true, trace=false/supported=false) each produce the asserted pre-spawn sequence. The diagnostic file was subsequently restored to main for the separate mock-ratchet issue.

Both corrective reviews are scoped-clean through P2. Formatting, plain oxlint, and diff checks passed again; runtime/type-aware validation remains hosted-only. The initial run was 39552059002; its six failed jobs were diagnosed from retained logs and repaired or removed from the diff. Fresh-head CI is required for completion.

The second run (39554155685) passed the previously failing UI, typecheck, root lint, extension lint, and Telegram shard jobs. Its mock-export ratchet then required deletion of exactly two obsolete exceptions for attempt-startup.test.ts and runtime.test.ts. Both removed mocks were verified against source, and the two-line shrink was independently reviewed clean. config/test-mock-exports-baseline.txt changes by +0/-2; production remains +0/-0 and test/support remains +4,485/-7,361. Total diff: 92 files, +4,485/-7,363 (net -2,878). No baseline entries were added or widened.

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 21, 2026 05:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T06:21:11.812366Z b93e6ff New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core commands Command implementations agents Agent runtime and tooling size: XL labels Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 05:58
@steipete
steipete enabled auto-merge (squash) October 21, 2026 06:14
@steipete
steipete disabled auto-merge October 21, 2026 06:24
@steipete
steipete enabled auto-merge (squash) October 21, 2026 06:31
@steipete
steipete merged commit ab5ec50 into main Oct 21, 2026
126 checks passed
@steipete
steipete deleted the tcr/land-d364-1792560910 branch October 21, 2026 06:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
)

* test(plugins): deslop z0700 tests

* test(doctor): deslop z0703 tests

* test(doctor): deslop z0703 tests

* test(sandbox): deslop z0704 tests

* test(sandbox): deslop z0704 tests

* test(telegram): deslop z0710 tests

* test(core): deslop z0707 tests

* test(core): deslop z0707 tests

* test(gateway): deslop z0708 tests

* test(gateway): deslop z0708 tests

* test(agents): deslop z0706 tests

* test(agents): deslop z0706 tests

* test(agents): deslop z0706 tests

* test(vitest): deslop z0709 tests

* test(vitest): deslop z0709 tests

* test(vitest): deslop z0709 tests

* test(telegram): deslop z0711 tests

* test(telegram): deslop z0711 tests

* test(shared): deslop z0712 tests

* test(shared): deslop z0712 tests

* test(infra): deslop z0713 tests

* test(infra): deslop z0713 tests

* test(infra): deslop z0713 tests

* test(memory-core): deslop z0705 tests

* test(memory-core): deslop z0705 tests

* test(daemon): deslop z0714 tests

* test(daemon): deslop z0714 tests

* test(daemon): deslop z0714 tests

* test(infra): deslop z0716 tests

* test(infra): deslop z0716 tests

* test: preserve batch d364 fixture and coverage contracts

* test: prune obsolete d364 mock baseline entries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: telegram Channel integration: telegram commands Command implementations extensions: memory-core Extension: memory-core gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant