Skip to content

test(core,plugins,ui): remove low-value tests (batch d374) - #179283

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d374-1792572178
Oct 21, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d374-1792572178

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Batch d374 consolidates repeated test fixtures, setup, assertions, and table cases across 18 campaign shards. It removes redundant proof while retaining the distinct behavior checks in the remaining suites. There are no production-file changes or user-visible product changes.

Impact and replay

All 30 requested commits were replayed in order onto main at 74201376f97d0ecd479f86db2282debce8a2416d; none were skipped. One conflict in ui/src/pages/workboard/workboard-sidebar.e2e.test.ts was resolved by retaining main's split assertSessionSectionCountAlignment import and newer navigation steps while applying the campaign's shared proof helper. Follow-up review restored the distinct LiteLLM discovery-backed merge/replace authored-config cases. CI rejected Tlon's new private repository helper import, so only that helper-reuse hunk was dropped: the original local HTTP helpers remain, with the assertion cleanup preserved. CI also identified queue fixture regressions; the required adoption callback and stable references to wrapped abandonment spies were restored.

The final diff touches 57 test/test-support files plus one shrink-only test baseline: +4,183 / -6,488 lines (net -2,305). Production LOC: +0 / -0. Test and test-support LOC: +4,183 / -6,482 (net -2,299); baseline metadata: +0 / -6. No changed paths match the current CODEOWNERS rules.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <changed files>: passed, no additional changes.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed files>: exit 0.
  • git diff --check 74201376f97d0ecd479f86db2282debce8a2416d: passed.
  • Per the operator's CI-only instruction, no local Vitest, check-changed, typecheck, coverage, or Testbox runs. Required openclaw/ci-gate is the runtime/typing proof gate.
  • Independent review covered the complete batch. Accepted: restore LiteLLM merge/replace authored-config coverage. Rejected after reading current owners: queue completion binds controllerInput before settlement; the directory renderer intentionally emits the zero-omissions footer. The follow-up repairs receive an independent source-only review as well.

Initial CI run: https://github.com/openclaw/openclaw/actions/runs/39571583491. The private Tlon helper import failed both boundary jobs; it is removed. The queue shard found a missing required adoption callback and assertions reading a wrapped callback instead of its original spy; these fixtures are repaired. The PR-body heading check was corrected. The second run (https://github.com/openclaw/openclaw/actions/runs/39572765809) found a raw-TAR fixture incorrectly reused for Unicode filenames and several fixture-type errors. Valid archives now use async filesystem-backed tar.c again (also resolving await-thenable lint); incognito/session, tuple, indexed dispatch, and correlation callback types are corrected without production changes. Cleanup is dropped entirely for transcript-rewrite-plugin-reads.test.ts, Anthropic Vertex stream-runtime.test.ts, Discord component-interactions.test-support.ts, and Discord provider.test-support.ts: their original main versions are retained. Changed partial mock factories in File Transfer, Signal, and Tlon now carry adjacent, task-specific mock-isolation reasons; no baseline allowance was raised. The entire Discord shard is dropped to avoid preserving the provider-support mock-factory rewrite. The Codex max-lines annotation was a non-fatal warning, not an inherited failing gate. The third run (https://github.com/openclaw/openclaw/actions/runs/39575252050) confirmed the remaining directory-fixture caller needed to await the restored async builder, and required removing exactly six stale mock-exports baseline entries corresponding to the annotated factories. That caller and those six entries are corrected; unrelated entries with matching hashes remain. Fresh-head CI validates the final repairs.

Shard inventory

LOC includes each shard's test-support files. Declaration counts are static call-site counts, not expanded/executed cases; table consolidation can reduce declarations without removing cases. The archived shard reports describe their earlier pass, so the actual replayed base-to-head counts below include all supplied follow-up commits.

The reports explicitly state that tests and coverage were not run under CI-only mode; none supplies a measured coverage totals line. No <=1% coverage-drop claim is made for this batch.

Shard Files LOC before → after (delta) Declarations before → after Archived coverage evidence
z0838 packages/ai/src/anthropic-binding-transport-parity.test.ts
packages/ai/src/anthropic-context-management-parity.test.ts
packages/ai/src/anthropic-parity.test-support.ts
packages/ai/src/anthropic-sonnet-55-transport-parity.test.ts
packages/ai/src/api-registry.test.ts
packages/ai/src/host.test.ts
674 → 534 (-140) 20 → 13 Not run (CI-only); no coverage totals in shard report.
z0839 extensions/file-transfer/src/tools/dir-fetch-tool.test.ts
extensions/file-transfer/src/tools/file-write-tool.test.ts
673 → 506 (-167) 15 → 13 Not run (CI-only); no coverage totals in shard report.
z0840 ui/src/pages/workboard/workboard-distribution.e2e.test.ts
ui/src/pages/workboard/workboard-scroll.e2e.test.ts
ui/src/pages/workboard/workboard-sidebar.e2e.test.ts
ui/src/pages/workboard/workboard.e2e.test-support.ts
669 → 532 (-137) 3 → 3 Not run (CI-only); no coverage totals in shard report.
z0841 src/agents/embedded-agent-runner/usage-accumulator.test.ts
src/agents/embedded-agent-runner/usage-reporting.test-support.ts
src/agents/embedded-agent-runner/wait-for-idle-before-flush.test.ts
472 → 378 (-94) 12 → 12 Not run (CI-only); no coverage totals in shard report.
z0842 src/channels/turn/group-thread-delivery.test.ts
src/channels/turn/message-turn-guardrails.test.ts
src/channels/turn/run-channel-turn.delivery.test-helpers.ts
src/channels/turn/run-channel-turn.settlement.test.ts
667 → 518 (-149) 6 → 6 Not run (CI-only); no coverage totals in shard report.
z0843 Cleanup dropped; original main retained. 0 → 0 (0) 0 → 0 Not run (CI-only); no coverage totals in shard report.
z0844 extensions/whatsapp/src/auto-reply/monitor/group-activation.test.ts
extensions/whatsapp/src/auto-reply/monitor/group-gating.allowlist-warn.test.ts
extensions/whatsapp/src/auto-reply/monitor/group-gating.audio-preflight.test.ts
extensions/whatsapp/src/auto-reply/monitor/inbound-helpers.test.ts
660 → 512 (-148) 16 → 16 Not run (CI-only); no coverage totals in shard report.
z0845 src/auto-reply/reply/queue/cleanup.delivery-correlations.test.ts
src/auto-reply/reply/queue/enqueue.steering.test.ts
src/auto-reply/reply/queue/lifecycle.test-support.ts
src/auto-reply/reply/queue/lifecycle.test.ts
660 → 550 (-110) 16 → 13 Not run (CI-only); no coverage totals in shard report.
z0846 extensions/tlon/src/channel.message-adapter.test.ts
extensions/tlon/src/channel.runtime.test.ts
extensions/tlon/src/outbound-tool-trace-sanitize.test.ts
extensions/tlon/src/settings.test.ts
698 → 538 (-160) 13 → 12 Not run (CI-only); no coverage totals in shard report.
z0847 src/skills/workshop/experience-review.test-support.ts
src/skills/workshop/review-undo.test.ts
src/skills/workshop/tool-policy-diagnostic.test.ts
src/skills/workshop/unused-archive.test.ts
653 → 509 (-144) 21 → 15 Not run (CI-only); no coverage totals in shard report.
z0848 extensions/litellm/image-generation-provider.test.ts
extensions/litellm/image-generation-provider.url.test.ts
extensions/litellm/onboarding.test.ts
648 → 514 (-134) 24 → 17 Not run (CI-only); no coverage totals in shard report.
z0849 src/acp/runtime/session-meta-list.test.ts
src/acp/runtime/session-meta-memory.worker.test.ts
src/acp/runtime/session-meta-resume.test.ts
src/acp/runtime/session-meta-store.test.ts
644 → 475 (-169) 12 → 10 Not run (CI-only); no coverage totals in shard report.
z0850 ui/src/pages/debug/debug-overlay-layout.browser.test.tsx
ui/src/pages/debug/debug-overlay.test.ts
642 → 505 (-137) 6 → 5 Not run (CI-only); no coverage totals in shard report.
z0851 extensions/nextcloud-talk/src/inbound-media.mentions.test.ts
extensions/nextcloud-talk/src/inbound-media.voice.test.ts
641 → 497 (-144) 11 → 11 Not run (CI-only); no coverage totals in shard report.
z0852 extensions/anthropic-vertex/runtime-catalog.test.ts 102 → 75 (-27) 3 → 3 Not run (CI-only); no coverage totals in shard report.
z0853 extensions/llama-cpp/src/external-server/discovery.test.ts
extensions/llama-cpp/src/external-server/models.test.ts
extensions/llama-cpp/src/external-server/router-facts.test.ts
extensions/llama-cpp/src/external-server/stream.test.ts
633 → 498 (-135) 17 → 17 Not run (CI-only); no coverage totals in shard report.
z0854 extensions/signal/src/monitor/event-handler.control-lane.test.ts
extensions/signal/src/monitor/event-handler.ingress-lifecycle.test.ts
636 → 476 (-160) 14 → 11 Not run (CI-only); no coverage totals in shard report.
z0858 extensions/diagnostics-otel/src/service-exporter-health.test.ts
extensions/diagnostics-otel/src/service.gateway-ws.test.ts
extensions/diagnostics-otel/src/service.real-sdk.test-support.ts
extensions/diagnostics-otel/src/service.retention.test.ts
621 → 477 (-144) 7 → 7 Not run (CI-only); no coverage totals in shard report.

Release-note context: test maintenance only; no user-facing release note needed.

@openclaw-barnacle openclaw-barnacle Bot added channel: signal Channel integration: signal channel: tlon Channel integration: tlon channel: whatsapp-web Channel integration: whatsapp-web app: web-ui App: web-ui extensions: diagnostics-otel Extension: diagnostics-otel agents Agent runtime and tooling extensions: litellm plugin: file-transfer extensions: anthropic-vertex extensions: llama-cpp size: XL labels Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 08:45
@steipete
steipete enabled auto-merge (squash) October 21, 2026 08:45
@steipete
steipete disabled auto-merge October 21, 2026 08:49
@steipete
steipete enabled auto-merge (squash) October 21, 2026 08:54
@steipete
steipete disabled auto-merge October 21, 2026 09:06
@steipete
steipete enabled auto-merge (squash) October 21, 2026 09:13
@openclaw-barnacle openclaw-barnacle Bot removed the channel: discord Channel integration: discord label Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 09:24
@steipete
steipete enabled auto-merge (squash) October 21, 2026 09:26
@steipete
steipete merged commit 2a5df6e into main Oct 21, 2026
130 of 131 checks passed
@steipete
steipete deleted the tcr/land-d374-1792572178 branch October 21, 2026 09:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…179283)

* test(file-transfer): deslop z0839 tests

* test(file-transfer): deslop z0839 tests

* test(discord): deslop z0843 tests

* test(ai): deslop z0838 tests

* test(ai): deslop z0838 tests

* test(agents): deslop z0841 tests

* test(agents): deslop z0841 tests

* test(whatsapp): deslop z0844 tests

* test(channels): deslop z0842 tests

* test(channels): deslop z0842 tests

* test(channels): deslop z0842 tests

* test(tlon): deslop z0846 tests

* test(workboard): deslop z0840 tests

* test(workboard): deslop z0840 tests

* test(queue): deslop z0845 tests

* test(queue): deslop z0845 tests

* test(queue): deslop z0845 tests

* test(litellm): deslop z0848 tests

* test(litellm): deslop z0848 tests

* test(workshop): deslop z0847 tests

* test(workshop): deslop z0847 tests

* test(acp): deslop z0849 tests

* test(acp): deslop z0849 tests

* test(nextcloud-talk): deslop z0851 tests

* test(debug): deslop z0850 tests

* test(debug): deslop z0850 tests

* test(llama-cpp): deslop z0853 tests

* test(signal): deslop z0854 tests

* test(anthropic-vertex): deslop z0852 tests

* test(diagnostics-otel): deslop z0858 tests

* test: preserve coverage and repair batch d374 fixtures

* test: repair d374 archive fixtures and preserve typed contracts

* test: await archive fixtures and shrink mock baseline
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: nextcloud-talk Channel integration: nextcloud-talk channel: signal Channel integration: signal channel: tlon Channel integration: tlon channel: whatsapp-web Channel integration: whatsapp-web extensions: anthropic-vertex extensions: diagnostics-otel Extension: diagnostics-otel extensions: litellm extensions: llama-cpp plugin: file-transfer size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant