Skip to content

test(infra,scripts,plugins,ui): remove low-value tests (batch d080) - #172040

Merged
steipete merged 10 commits into
mainfrom
tcr/land-d080-1791971791
Oct 14, 2026
Merged

steipete merged 10 commits into
mainfrom
tcr/land-d080-1791971791

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The audited campaign shards contain repeated cases, implementation-mirroring checks, and test-only scaffolding that increase maintenance cost without adding distinct coverage.

User Impact

No user-visible behavior change, migration, or configuration change. This batch removes a net 4,935 test lines across 55 test files. The only production-file edit makes formatBuildAllDuration private in scripts/build-all.mts; its implementation and runtime callers are unchanged.

Why This Change Was Made

Replays all ten audited d080 commits onto main at 33c9efd7b0b81588bd3b6f19fde6f36765ab2fae, preserving each commit subject. Removes redundant variants and moves relevant assertions into retained cases. Coverage totals below are the original in-shard campaign measurements, not a new coverage claim for this rebased tree.

Replay resolution: one conflict in ui/src/pages/labs/labs-page.test.tsx. Kept the entire current-main overlapping enablement block, including the newer Advisor enable/configure tests and existing Code Mode/provenance cases; dropped that deletion hunk. All other hunks applied; no commits skipped. Main's newer Advisor disable row and shared fixture changes remain intact. No baseline files changed. None of the changed paths matches the current CODEOWNERS rules.

Production versus test split (git diff --numstat): production +1/-1 line; tests +917/-5,852 lines (net -4,935). These are actual replay counts, not original-shard totals.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • pnpm test <all 55 touched test paths listed below> --maxWorkers=1: passed, 1,652 cases; nine existing skips; 55 files in 15 shards; 1,088.51 seconds wall time, including required artifact preparation. Slowest group was the database-backed plugin group at 293.59 seconds; it exercises real worker/database, replay, and lifecycle boundaries.
  • node_modules/.bin/oxfmt --write <changed files> followed by --check: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: exit 0.
  • git diff --check: passed.
  • Independent Codex autoreview against the pinned base: scoped-clean at P0–P2; no accepted or rejected findings. Review assessed the supplied diff; it did not independently verify unchanged keeper coverage.

Hosted openclaw/ci-gate is the broad merge gate. No Testbox lease requested or used: the selected proof runs locally and in PR CI.

Per-shard replay inventory and original coverage evidence

Replay LOC/declaration counts below cover only touched tests. Declarations are static it/test declarations (an each-table is one declaration), not expanded cases. Whole-shard coverage includes unchanged keeper files. Original x2038 coverage excluded an inherited-failure group; this batch makes no claim that an excluded group passed. Historical check-changed/dead-export and infrastructure gaps are not counted as current-head passes.

x2025

Test LOC 4028 -> 3671 (-357); declarations 111 -> 97 (-14).

Original coverage: covered statements 11747 -> 11738 (-9); branches 7313 -> 7297 (-16); functions 2243 -> 2240 (-3).

Files:

  • src/infra/heartbeat-events-filter.test.ts: +12/-125
  • src/infra/heartbeat-runner.exec-route-authority.test.ts: +1/-13
  • src/infra/sqlite-busy-timeout.test.ts: +1/-26
  • src/infra/sqlite-native-observer.test.ts: +3/-32
  • src/infra/state-migrations.audit-logs.test.ts: +4/-18
  • src/infra/update-immutable-generation.test.ts: +0/-3
  • src/infra/update-run-contention.test.ts: +2/-29
  • src/infra/update-run-continuation.test.ts: +1/-17
  • src/infra/update-startup-refresh.test.ts: +2/-120

x2005

Test LOC 15319 -> 13385 (-1934); declarations 299 -> 254 (-45).

Original coverage: covered statements 7707 -> 7705 (-2); branches 6104 -> 6095 (-9).

Files:

  • scripts/build-all.mts: +1/-1
  • test/scripts/bench-gateway-concurrency.test.ts: +42/-180
  • test/scripts/build-all.test.ts: +0/-24
  • test/scripts/check-control-ui-lit-ratchet.test.ts: +0/-37
  • test/scripts/ci-test-timings.test.ts: +29/-949
  • test/scripts/code-mode-matrix-gateway.test.ts: +109/-765
  • test/scripts/control-ui-parity.test.ts: +6/-32
  • test/scripts/control-ui-plugin-i18n.test.ts: +0/-4
  • test/scripts/docker-build-helper.test.ts: +0/-129

x2026

Test LOC 6092 -> 5646 (-446); declarations 156 -> 147 (-9).

Original coverage: covered statements 3957 -> 3957 (0); branches 3135 -> 3132 (-3); functions 680 -> 680 (0).

Files:

  • src/daemon/launchd.test.ts: +84/-227
  • src/daemon/schtasks.startup-fallback.test.ts: +0/-41
  • src/daemon/systemd-stop.test.ts: +1/-3
  • src/daemon/systemd.test.ts: +116/-376

x2037

Test LOC 3922 -> 3735 (-187); declarations 88 -> 82 (-6).

Original coverage: covered statements 6589 -> 6589 (0); branches 5104 -> 5103 (-1); functions 1263 -> 1263 (0).

Files:

  • extensions/telegram/src/bot.create-telegram-bot.test.ts: +64/-149
  • extensions/telegram/src/draft-stream.test.ts: +0/-66
  • extensions/telegram/src/telegram-outbound.test.ts: +0/-36

x2028

Test LOC 3566 -> 3464 (-102); declarations 124 -> 117 (-7).

Original coverage: covered statements 2770 -> 2770 (0); branches 1695 -> 1695 (0); functions 503 -> 503 (0).

Files:

  • extensions/browser/src/browser/cdp.helpers.test.ts: +2/-19
  • extensions/browser/src/browser/chrome-mcp.test.ts: +0/-60
  • extensions/browser/src/browser/pw-session.create-page.navigation-guard.test.ts: +9/-34

x2038

Test LOC 3267 -> 2782 (-485); declarations 109 -> 86 (-23).

Original coverage: covered statements 942 -> 942 (0); branches 772 -> 771 (-1); functions 179 -> 179 (0).

Files:

  • extensions/llama-cpp/src/llama-server-install.test.ts: +7/-174
  • extensions/llama-cpp/src/llama-server-preset.test.ts: +19/-49
  • extensions/llama-cpp/src/managed-media.test.ts: +41/-69
  • extensions/llama-cpp/src/media-catalog.test.ts: +9/-41
  • extensions/llama-cpp/src/media-provider.test.ts: +97/-238
  • extensions/llama-cpp/src/media-setup.test.ts: +37/-103
  • extensions/llama-cpp/src/media-tool.test.ts: +20/-41

x2039

Test LOC 4743 -> 4411 (-332); declarations 120 -> 108 (-12).

Original coverage: covered statements 2516 -> 2516 (0); branches 2135 -> 2135 (0); functions 743 -> 743 (0).

Files:

  • extensions/workboard/src/gateway.cards-list.test.ts: +0/-21
  • extensions/workboard/src/lifecycle-sync.test.ts: +17/-130
  • extensions/workboard/src/store.test.ts: +1/-199

x2040

Test LOC 5745 -> 5576 (-169); declarations 115 -> 113 (-2).

Original coverage: covered statements 3965 -> 3965 (0); branches 3498 -> 3498 (0); functions 693 -> 693 (0).

Files:

  • extensions/slack/src/monitor/message-handler/dispatch.preview-fallback.test.ts: +60/-133
  • extensions/slack/src/monitor/message-handler/prepare.test.ts: +5/-101

x2024

Test LOC 5265 -> 4600 (-665); declarations 130 -> 105 (-25).

Original coverage: covered statements 14237 -> 14237 (0); branches 5323 -> 5320 (-3); functions 3028 -> 3028 (0).

Files:

  • extensions/memory-wiki/src/chatgpt-import.test.ts: +0/-103
  • extensions/voice-call/index.call-scope.test.ts: +15/-19
  • extensions/voice-call/index.lifecycle.test.ts: +1/-57
  • src/agents/auth-profiles/read-only-availability.test.ts: +6/-51
  • src/agents/auth-profiles/shared-store-bootstrap.async.test.ts: +18/-37
  • src/process/orphaned-process.test.ts: +11/-29
  • src/skills/workshop/review-undo.test.ts: +0/-23
  • src/talk/client-voice-session.worker.test.ts: +6/-50
  • ui/src/components/solid/presentation-primitives.test.tsx: +0/-28
  • ui/src/components/solid/settings-ui.test.tsx: +0/-37
  • ui/src/pages/labs/labs-page.test.tsx: +9/-208
  • ui/src/pages/logs/logs-page.test.tsx: +1/-25
  • ui/src/pages/logs/view.test.tsx: +1/-66

x2042

Test LOC 4067 -> 3809 (-258); declarations 106 -> 97 (-9).

Original coverage: covered statements 939 -> 939 (0); branches 636 -> 634 (-2); functions 159 -> 159 (0).

Files:

  • src/flows/doctor-health-contributions.test.ts: +0/-80
  • src/flows/doctor-health-startup.test.ts: +5/-71
  • src/flows/memory-setup.test.ts: +43/-155

@clawsweeper

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete enabled auto-merge (squash) October 14, 2026 10:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T10:19:28.524031Z b272a9a PR opened
ℹ️ 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: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling extensions: memory-wiki plugin: workboard extensions: llama-cpp extensions: browser size: XL labels Oct 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b272a9af37

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

await fs.access(startupEntryPath);
});

it("preflights the replacement port when the fallback is stopped", async ({ env }) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Retain the running-fallback takeover ordering test

When a Windows startup fallback is still running and another process owns the replacement port, the deleted case was the only proof that port validation occurs before terminating the old Gateway or mutating the Scheduled Task. The remaining case here exercises an already-stopped fallback, so it would still pass if takeover were reordered to kill the running Gateway before detecting the occupied port, causing an avoidable outage; retain the running-fallback variant.

AGENTS.md reference: AGENTS.md:L85-L85

Useful? React with 👍 / 👎.

});
});

it("falls back to plain preview text when an HTML edit renders empty", async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep streaming parse-error fallback covered

When Telegram rejects the initial streaming sendMessage with a rich-entity parse error, this deletion removes the only test that verifies a plain-text retry and correct preview state. The remaining case only exercises an editMessageText empty-content error, while the other parse-error tests cover the separate durable-send funnel, so a regression in initial preview delivery could silently suppress streaming previews despite the required funnel parity.

AGENTS.md reference: extensions/telegram/AGENTS.md:L58-L63

Useful? React with 👍 / 👎.

@steipete
steipete disabled auto-merge October 14, 2026 10:21
@steipete
steipete enabled auto-merge (squash) October 14, 2026 10:22
@steipete
steipete disabled auto-merge October 14, 2026 10:25
@steipete

steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

The remaining red checks are inherited from main, not changes introduced by this batch:

  • checks-node-changed-compact-small-46, logical shard core-tooling-isolated: the same six cases in test/scripts/vitest-fork-shutdown.test.ts fail in completed scheduled-main run 38543352664 at 89f8764fa2afcf4a33d8fd9885e3ef8ae2f70e93. They are the shared-setup slow-exit, plain, hung-exit, and bad-exit cases, plus signal/timeout cancellation. Both logs show the same nested compiled-subprocess timeouts and retained resource-claim failures. The affected shutdown test, fixtures, and Vitest worker code are unchanged between that main revision and this batch's base. This batch does not modify them. Focused reruns on clean current main also pass all 21 cases on macOS and local Linux arm64/Node 24.19.0; those passes do not erase the matching scheduled-main failure or claim a fix.
  • check-test-types-core-2: ui/src/components/desktop/desktop-panel-abandonment.test.ts(50,28) rejects the readonly desktopEnvironment.worker.attachedSessionIds tuple where a mutable string array is expected. The exact leaf command, node scripts/run-tsgo.mjs --noEmit -p test/tsconfig/tsconfig.core.test.ui-components.json, reproduces the identical TS2322 error and exits 2 on a clean detached current-main checkout at fa3e272e21361300a538c2ee1e21502ec5cd1e15. The affected fixture change is 5fdf6738b39535dd0d6078820f6731d874f093a2, not part of d080. Neither the failing file nor its desktop fixture owner is modified by this batch.

Baseline routing followed the local-proof override: the requested focused Testbox was queued and stopped without running a payload; local macOS and isolated Linux containers were used instead. No timeout, retry count, assertion, or test selection was weakened. No CI job was rerun to chase green.

The batch's original local proof remains 55 touched test files, 1,652 passing cases, nine existing skips, plus clean formatting/plain lint/diff checks and scoped-clean independent review. These inherited failures need separate main follow-up.

The automatic classification labels the type failure new against the older scheduled-main cohort and the shutdown failure unknown because the compact matrix slot changed. The manual evidence above resolves both: current main reproduces the type failure, and main slot checks-node-compact-small-42 contains the same core-tooling-isolated shard and all six shutdown failures. PostgreSQL conformance and all other selected checks passed; the aggregate gate is red only for these two failures.

@steipete
steipete merged commit 024b687 into main Oct 14, 2026
135 of 149 checks passed
@steipete
steipete deleted the tcr/land-d080-1791971791 branch October 14, 2026 10:34
steipete added a commit that referenced this pull request Oct 14, 2026
The test cleanup in 024b687 (#172040)
removed the last external caller but left the helper exported, failing
the full-tree unused-export check. Keep it private for the default fixture.
No fixture behavior, assertions, or product lifecycle changes.

Proof: hosted run 38559874602/job115838029156 passed the exact failed
full-tree Knip export scan with zero findings (122.778s scan, 201s job),
changed-file format, type-aware lint, and diff checks. One Codex review
was clean. Test-support diff: +1/-1. No SQL change.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
…penclaw#172040)

* test(infra): deslop x2025 tests

* test(scripts): deslop x2005 tests

* test(daemon): deslop x2026 tests

* test(telegram): deslop x2037 tests

* test(browser): deslop x2028 tests

* test(llama-cpp): deslop x2038 tests

* test(workboard): deslop x2039 tests

* test(slack): deslop x2040 tests

* test(memory-wiki): deslop x2024 tests

* test(flows): deslop x2042 tests
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
The test cleanup in e4bd5b1 (openclaw#172040)
removed the last external caller but left the helper exported, failing
the full-tree unused-export check. Keep it private for the default fixture.
No fixture behavior, assertions, or product lifecycle changes.

Proof: hosted run 38559874602/job115838029156 passed the exact failed
full-tree Knip export scan with zero findings (122.778s scan, 201s job),
changed-file format, type-aware lint, and diff checks. One Codex review
was clean. Test-support diff: +1/-1. No SQL change.
amittell added a commit to amittell/openclaw that referenced this pull request Oct 28, 2026
…logging and tests: 41 conflict files

Resolved against base v2026.10.8; each import kept only where the merged file uses it.

Ported onto beta.4's reshaped code (the fork change kept, beta.4's mechanism taken):
- heartbeat awareness dedupe: beta.4 (openclaw#169622) dropped the pre-send lifecycle recheck
  (`latest`); the dedupe compares the prepare-time worker read, the post-send re-read is
  readSessionEntryReadOnlyInWorker with readConsistency "latest".
- prompt prelude: openclaw#166869's space-joiner ordering applies to `text`; the fork's
  version-3 Telegram carrier keeps the paragraph order (no joiner completes it).
- directive acks: beta.4 removed the thinking-remap ack; the fork's queue-ack helper stays.
- secret redaction: beta.4 (openclaw#169063) removed the registry snapshot scope; the fork's
  getLongestRegisteredSecretLength loses its scoped branch and its scoped test case.
- committed-turn entry read (pending inputs): beta.4 replaced PendingInputScope.incognito
  with session-actor storage; the read goes through readSessionEntryReadOnlyInWorker.
- persisted install records: beta.4 (openclaw#169714) made the reader async; install-persistence
  and the CLI test mocks use readPersistedInstalledPluginIndexInstallRecordsAsync.
- sessions.patch and cron validation mock modules (fork line-cap extractions) take
  beta.4's readAcpSessionMetaForEntryAsync, cron-session-reader and inference-binding mocks.
- test cases beta.4 removed as low-value (openclaw#172040) stay removed; the fork's own cases stay.

Native in beta.4, fork side dropped: question-answer custody in prepared-assistant
validation (openclaw#169306), the realtime-voice turn exception, the cron host test helper.
amittell added a commit to amittell/openclaw that referenced this pull request Oct 28, 2026
…visibility, tests, baselines, fixtures

- cron: beta.4 moved createCronPromptExecutor into run-prompt-executor.ts; the fork's
  fallback attribution (requested tuple, usedFallback) and its "do not pin a fallback
  model to the session" rule move there. run-executor.ts is beta.4's.
- chat-history compaction span (fork): openclaw#170712 deleted the host's
  session-history-subagent-projection; durable spans now prepare their subagent facts
  through the history worker's inline-visibility lookups
  (chat-history-compaction-span-visibility.ts) and fail closed on a missing fact.
- tests beta.4 removed as low-value (openclaw#172040 and siblings) stay removed in
  run-session-state, agent-runner-failure-reply, mattermost monitor-ingress and
  gateway-request-scope; the fork's own cases stay. dispatch-from-config.ingress-retry
  is beta.4's file plus the fork's appended "re-presented inbound" block.
- baselines by merge-base arithmetic: assertion-safety keeps only
  src/infra/diagnostic-events.ts 2 in the four conflicted rows (the fork's SAFETY comments
  clear compaction-safeguard, oauth, persisted and helpers); plugin-sdk surface budgets
  3760+3 and 2195+3 for the fork's three diagnostics-otel redaction exports.
- prompt-snapshot fixtures: beta.4's, to be regenerated by the snapshot tests once the
  tree builds.
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: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call extensions: browser extensions: llama-cpp extensions: memory-wiki gateway Gateway runtime plugin: workboard scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant