Skip to content

test(plugins,core,ui): remove low-value tests (batch d376) - #179341

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d376-1792575884
Oct 21, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d376-1792575884

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated setup and overlapping assertions make the affected test suites harder to maintain.

User Impact

No production behavior changes. This batch only simplifies tests and test-support fixtures while retaining distinct contracts.

Why This Change Was Made

Replays all 30 supplied d376 commits, in order, onto main f04bb3001df5f23072f74fc9f9c0544fecc7a995. No commits were skipped. After CI, the shared CLI fixture cleanup was dropped by restoring src/cli/update-cli-shared-fixture.test-support.ts to the pinned main version, and the Discord current-user route expectation was restored to Routes.user("@me"). One conflict in src/canvas/documents.test.ts was resolved by keeping main's manifest symlink and hardlink cases and applying the shared fixture/path helpers. Main's newer heartbeat metadata tests also remain.

Production LOC: +0/-0. Test and test-support LOC: +3234/-5532 (net -2298), across 61 files; test-ratchet metadata: +1/-6 (net -5) in two baseline files, measured against the pinned base. No current CODEOWNERS patterns match the changed paths.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <changed TS files>: exit 0.
  • node_modules/.bin/oxlint -c .oxlintrc.json <62 changed files>: exit 0.
  • git diff --check f04bb3001df5f23072f74fc9f9c0544fecc7a995: exit 0.
  • CI-only operator instruction: no local Vitest, check-changed, typecheck, or Testbox. Required openclaw/ci-gate owns runtime proof. No Testbox leases used.
  • Independent review completed. Its sole original finding (missing config state alias) was rejected: unchanged createConfigCapabilityHarness already returns state. The eight-file CI repair received a clean P0–P2 review.
  • Initial CI run 39579607027 found batch-caused fixture type/lint errors. Follow-up fe4e1442c3ca repairs migration/result narrowing, Teams defaulted activity typing, explicit ONNX catalog fixtures, WhatsApp's literal discriminator, typed editor mocks, a bound Canvas header accessor, and Error-only throws. No cases or assertions were dropped to repair CI. Fresh-head CI remains the validation gate.
  • Second CI run 39581335713 passed the type jobs but caught the route expectation, shared CLI helper lint, and stale timeout/mock-export ratchets. Follow-up 37a2a5228cfb restores those two cleanup hunks and updates only verified shrink-only metadata: three timeout references instead of six, plus five removed mock-baseline entries whose factories now document required isolation. The second repair also passed independent P0–P2 review.
  • Third CI run 39583769464 reduced the remaining failure to four missing mock-isolation comments in the Codex deadline fixture. Follow-up 9648b50214ee restores those comments verbatim from the pinned main base; no test logic changed. The comment-only restoration passed independent P0–P2 review.
  • The CLI shared fixture remains listed in its shard's original scope below, but its final contents are unchanged from the pinned base.
  • No runtime speedup or measured coverage-preservation claim is made.

Every source shard report explicitly states that tests and coverage were not run under CI-only instructions; none contains an in-shard coverage totals line. Some reports predate the supplied follow-up commits. Final-tree figures below are measured against the pinned base; declarations are lexical counts of it/test call sites, not expanded cases or test execution results.

Per-shard files, final-tree LOC/declarations, and coverage status
Shard Test/support LOC before → after Declaration sites before → after
z0873 585 → 450 21 → 20
z0869 593 → 440 22 → 21
z0876 570 → 437 19 → 16
z0875 581 → 425 25 → 22
z0874 584 → 435 17 → 16
z0877 569 → 430 16 → 15
z0878 565 → 420 10 → 9
z0881 588 → 442 20 → 16
z0883 549 → 406 17 → 16
z0882 558 → 445 11 → 11
z0880 562 → 481 9 → 8
z0886 541 → 384 40 → 36
z0885 537 → 408 17 → 10
z0888 535 → 379 18 → 17
z0879 565 → 449 7 → 7
z0884 547 → 413 15 → 11
z0889 534 → 421 10 → 9

z0873

extensions/ollama/app-guided-setup.test.ts, extensions/ollama/cloud-auth.test.ts, extensions/ollama/doctor-contract-api.test.ts, extensions/ollama/provider-policy-api.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0869

packages/model-catalog-core/src/configured-model-refs.test.ts, packages/model-catalog-core/src/model-catalog-pricing.test.ts, packages/model-catalog-core/src/model-inference-capabilities.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0876

src/agents/embedded-agent-runner/run/terminal-resolution.refusal.test.ts, src/agents/embedded-agent-runner/run/terminal-resolution.text-tool-call.test.ts, src/agents/embedded-agent-runner/run/tool-activity-heartbeat.test.ts, src/agents/embedded-agent-runner/run/tool-loop-recovery.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0875

src/tui/components/chat-log-run-state.test.ts, src/tui/components/custom-editor.test.ts, src/tui/components/filterable-select-list.test.ts, src/tui/components/btw-inline-message.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0874

extensions/discord/src/internal/api.test.ts, extensions/discord/src/internal/entity-cache.test.ts, extensions/discord/src/internal/test-builders.test-support.ts, extensions/discord/src/internal/rest.read-authority.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0877

src/canvas/documents.test.ts, src/canvas/serve.runtime.test.ts, src/canvas/wrap.test.ts, src/canvas/widget-tool.test-support.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0878

extensions/discord/src/activities/presenter.test.ts, extensions/discord/src/activities/register.test.ts, extensions/discord/src/activities/shell.test.ts, extensions/discord/src/activities/test-helpers.test-support.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0881

packages/memory-host-sdk/src/host/remote-http.test.ts, packages/memory-host-sdk/src/host/response-snippet.test.ts, packages/memory-host-sdk/src/host/session-files-archive-identity.test.ts, packages/memory-host-sdk/src/host/session-files.windows-ownership.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0883

extensions/whatsapp/src/inbound/media.node.test.ts, extensions/whatsapp/src/inbound/message-enrichment.test.ts, extensions/whatsapp/src/inbound/outbound-mentions.test.ts, extensions/whatsapp/src/inbound/send-result.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0882

extensions/migrate-hermes/provider-contract.test.ts, extensions/migrate-hermes/provider.lazy.test.ts, extensions/migrate-hermes/provider.secret-failure.test.ts, extensions/migrate-hermes/skills-policy.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0880

src/cli/update-cli-shared-fixture.test-support.ts, src/cli/users-cli.test.ts, src/cli/workboard-owner.test.ts, src/cli/update-finalization-repair.test-support.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0886

extensions/imessage/src/monitor/dm-history.test-support.ts, extensions/imessage/src/monitor/group-allowlist-warnings.test-support.ts, extensions/imessage/src/monitor/poll-render.test-support.ts, extensions/imessage/src/monitor/reflection-guard.test-support.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0885

extensions/msteams/src/monitor-handler/inbound-content.test.ts, extensions/msteams/src/monitor-handler/inbound-facts.test.ts, extensions/msteams/src/monitor-handler/message-handler.test-support.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0888

extensions/discord/src/shared.test.ts, extensions/discord/src/status-issues.test.ts, extensions/discord/src/subagent-hooks.test.ts, extensions/discord/src/token.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0879

ui/src/lib/config/config-draft-revision.test.ts, ui/src/lib/config/config-noop-read.test.ts, ui/src/lib/config/config-publication-recovery.test.ts, ui/src/lib/config/config-suite.test-support.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0884

extensions/onnx/src/decisions.test.ts, extensions/onnx/src/worker-client.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

z0889

extensions/codex/src/migration/apply-deadline-real-transport.test.ts, extensions/codex/src/migration/native-assignment-repair.test.ts

Source-report coverage status: not run under CI-only instructions; no coverage totals available.

@openclaw-barnacle openclaw-barnacle Bot added channel: imessage Channel integration: imessage channel: msteams Channel integration: msteams channel: whatsapp-web Channel integration: whatsapp-web app: web-ui App: web-ui cli CLI command changes agents Agent runtime and tooling extensions: codex plugin: migrate-hermes extensions: ollama plugin: onnx size: XL labels Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 09:51
@steipete
steipete enabled auto-merge (squash) October 21, 2026 09:51
@steipete
steipete disabled auto-merge October 21, 2026 09:58
@steipete
steipete enabled auto-merge (squash) October 21, 2026 10:00
@steipete
steipete disabled auto-merge October 21, 2026 10:16
@steipete
steipete enabled auto-merge (squash) October 21, 2026 10:19
@steipete
steipete disabled auto-merge October 21, 2026 10:31
@steipete
steipete enabled auto-merge (squash) October 21, 2026 10:33
@steipete
steipete merged commit 8e9341e into main Oct 21, 2026
120 checks passed
@steipete
steipete deleted the tcr/land-d376-1792575884 branch October 21, 2026 10:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…179341)

* test(ollama): deslop z0873 tests

* test(model-catalog-core): deslop z0869 tests

* test(model-catalog-core): deslop z0869 tests

* test(agents): deslop z0876 tests

* test(agents): deslop z0876 tests

* test(tui): deslop z0875 tests

* test(tui): deslop z0875 tests

* test(discord): deslop z0874 tests

* test(discord): deslop z0874 tests

* test(canvas): deslop z0877 tests

* test(canvas): deslop z0877 tests

* test(discord): deslop z0878 tests

* test(discord): deslop z0878 tests

* test(memory-host-sdk): deslop z0881 tests

* test(whatsapp): deslop z0883 tests

* test(migrate-hermes): deslop z0882 tests

* test(cli): deslop z0880 tests

* test(cli): deslop z0880 tests

* test(cli): deslop z0880 tests

* test(imessage): deslop z0886 tests

* test(msteams): deslop z0885 tests

* test(msteams): deslop z0885 tests

* test(discord): deslop z0888 tests

* test(config): deslop z0879 tests

* test(config): deslop z0879 tests

* test(onnx): deslop z0884 tests

* test(onnx): deslop z0884 tests

* test(onnx): deslop z0884 tests

* test(codex): deslop z0889 tests

* test(codex): deslop z0889 tests

* test: repair batch d376 fixture types and lint

* test: repair d376 route and fixture ratchets

* test(codex): retain credential isolation rationale
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: discord Channel integration: discord channel: imessage Channel integration: imessage channel: msteams Channel integration: msteams channel: whatsapp-web Channel integration: whatsapp-web cli CLI command changes extensions: codex extensions: ollama plugin: migrate-hermes plugin: onnx size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant