Skip to content

test(core): remove low-value tests (batch d241) - #175876

Merged
steipete merged 31 commits into
mainfrom
tcr/land-d241-1792274548
Oct 17, 2026
Merged

steipete merged 31 commits into
mainfrom
tcr/land-d241-1792274548

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces repeated fixture setup and low-value test duplication in the maintainer-requested d241 campaign batch.

User Impact

No production or user-visible behavior changes. Tests and test-support code only; no migration or operator action.

Why This Change Was Made

Replay the batch onto pinned main fd4bc6556220881f758b361891fd2121afd0c0bb, consolidating fixtures and assertions while retaining current-main regressions. This is not a coverage or runtime-performance claim.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <91 changed files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <91 changed files>: exit 0.
  • git diff --check fd4bc6556220881f758b361891fd2121afd0c0bb: passed.
  • Per maintainer CI-only instruction, no local Vitest, check-changed, typecheck, or Testbox runs. Hosted openclaw/ci-gate is the execution/merge gate. Independent review runs during CI.
  • Production LOC: +0/-0. Test/support LOC: +11738/-18061, net -6323 across 91 files (includes conflict-preserving formatting). No CODEOWNERS paths touched.

Replay decisions

Applied 28 of 30 source commits in order. Dropped 5f28725f5a1eecf9dc51b30cf8f0aeb6f7730cb6 and d97e6c90809912968781be22e14075d014bb085f (x7918): current main expanded X account/authorization, queue, and transport matrices; the dependent cleanup conflicted broadly. No X changes included.

Kept main's LF/CRLF/final-record test in extensions/memory-wiki/src/log.test.ts while applying the fixture cleanup. Kept src/gateway/server-restart-update-run.test.ts unchanged across all three x7920 commits to preserve main's expanded terminal-state/trigger matrices; applied the other x7920 files. Kept main's empty-WAL image-change regression in src/infra/sqlite-readonly-location.copy.test.ts while applying surrounding cleanup. Other commits replayed without conflict. No baseline files changed.

Shard evidence

The supplied result files describe the first campaign pass, not every later cleanup commit. Their declaration totals are reproduced as source evidence below; replay lexical declaration counts are also shown separately (not expanded runtime cases). None contains coverage totals: they explicitly report coverage not run under CI-only mode, so no <=1% coverage claim is made.

x7915: test/support LOC 3475 → 2640 (-835); lexical declarations 84 → 80

Source report declarations: 78 → 78. Coverage evidence: Tests, coverage, and check-changed were not run under CI-only instructions.

  • extensions/line/src/download.test.ts
  • extensions/line/src/inbound-image-set.test.ts
  • extensions/line/src/markdown-to-line.test.ts
  • extensions/line/src/message-cards.test.ts
  • extensions/line/src/monitor.lifecycle.test.ts
  • extensions/line/src/outbound.handoff.test.ts
  • extensions/line/src/quote-reply-delivery.test.ts
  • extensions/line/src/row-overflow-delivery.loopback.test.ts
x7908: test/support LOC 3191 → 2378 (-813); lexical declarations 60 → 53

Source report declarations: 59 → 59. Coverage evidence: Tests, coverage, and check-changed were intentionally not run under CI-only mode.

  • extensions/memory-wiki/src/agent-vault-isolation.test.ts
  • extensions/memory-wiki/src/apply.test.ts
  • extensions/memory-wiki/src/chatgpt-import.test.ts
  • extensions/memory-wiki/src/corpus-supplement.visibility.test.ts
  • extensions/memory-wiki/src/gateway.test.ts
  • extensions/memory-wiki/src/import-insights.test.ts
  • extensions/memory-wiki/src/log.test.ts
  • extensions/memory-wiki/src/markdown.test.ts
  • extensions/memory-wiki/src/memory-core.test-support.ts
x7916: test/support LOC 3243 → 2637 (-606); lexical declarations 52 → 49

Source report declarations: 48 → 48. Coverage evidence: Tests and coverage were not run, per CI-only mode.

  • src/acp/runtime/session-meta-control.worker.test.ts
  • src/acp/runtime/session-meta-doctor.test.ts
  • src/acp/runtime/session-meta-lifecycle.test-support.ts
  • src/acp/runtime/session-meta-read.cache.test.ts
  • src/acp/runtime/session-meta-read.test.ts
  • src/acp/runtime/session-meta-reset.worker.test.ts
  • src/acp/runtime/session-meta.key-repair.test.ts
  • src/acp/runtime/session-meta.legacy-migration.test.ts
  • src/acp/runtime/session-meta.test.ts
x7919: test/support LOC 3178 → 2487 (-691); lexical declarations 87 → 83

Source report declarations: 87 → 85. Coverage evidence: Tests, coverage, and typechecking were not run, per CI-only instructions.

  • src/agents/github-identity.test-support.ts
  • src/agents/github-managed-credential.test.ts
  • src/agents/github-oauth-client.test.ts
  • src/agents/github-read-identity.test.ts
  • src/agents/github-tool-identity.test.ts
  • src/agents/github-tool-profile-cleanup.test.ts
  • src/agents/identity-avatar-file.test.ts
  • src/agents/identity-file.test.ts
  • src/agents/internal-session-effects.test.ts
x7922: test/support LOC 3175 → 2454 (-721); lexical declarations 86 → 80

Source report declarations: 85 → 84. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.

  • src/cli/models-cli.auth-login.integration.test.ts
  • src/cli/models-cli.state-owner.test.ts
  • src/cli/models-cli.test.ts
  • src/cli/native-hook-relay-cli.locator-worker.test.ts
  • src/cli/native-hook-relay-cli.test.ts
  • src/cli/node-worker-bootstrap.test.ts
  • src/cli/nodes-camera.test.ts
  • src/cli/nodes-cli.coverage.test.ts
x7923: test/support LOC 3177 → 2711 (-466); lexical declarations 37 → 35

Source report declarations: 37 → 37. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.

  • src/gateway/server-methods/session-catalog-budget.test.ts
  • src/gateway/server-methods/session-catalog-entry-snapshot.test.ts
  • src/gateway/server-methods/session-catalog-gateway-copy.test.ts
  • src/gateway/server-methods/session-catalog.fixtures.test-support.ts
  • src/gateway/server-methods/session-catalog.home-isolation.test.ts
  • src/gateway/server-methods/session-catalog.performance-counters.test-support.ts
  • src/gateway/server-methods/session-catalog.performance.test-support.ts
  • src/gateway/server-methods/session-catalog.performance.test.ts
  • src/gateway/server-methods/session-catalog.test.ts
x7920: test/support LOC 2962 → 2398 (-564); lexical declarations 42 → 40

Source report declarations: 45 → 45. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only instructions.

  • src/gateway/server-restart-sentinel-notice.test.ts
  • src/gateway/server-restart-sentinel.media-binding.test.ts
  • src/gateway/server-restart-sentinel.system-event-owner.test.ts
  • src/gateway/server-restart-sentinel.test-support.ts
  • src/gateway/server-retained-plugin-cleanup.test.ts
  • src/gateway/server-rpc-restart-owner.test.ts
  • src/gateway/server-runtime-config.test.ts
x7928: test/support LOC 3283 → 3080 (-203); lexical declarations 63 → 61

Source report declarations: 62 → 62. Coverage evidence: Tests, coverage, and typechecks were not run under CI-only mode.

  • src/infra/sqlite-lifecycle-creation.retention.test-support.ts
  • src/infra/sqlite-migration-scoped-snapshot.test.ts
  • src/infra/sqlite-native-observer.test.ts
  • src/infra/sqlite-page-cache.worker.test.ts
  • src/infra/sqlite-post-commit.test.ts
  • src/infra/sqlite-private-directory.windows.test.ts
  • src/infra/sqlite-readonly-location.copy.test.ts
  • src/infra/sqlite-readonly-location.test.ts
x7924: test/support LOC 3189 → 2704 (-485); lexical declarations 56 → 50

Source report declarations: 56 → 56. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.

  • src/state/openclaw-agent-session-snapshots-migration.test.ts
  • src/state/openclaw-agent-standing-intents-schema.admission.test.ts
  • src/state/openclaw-agent-standing-intents-schema.test.ts
  • src/state/openclaw-agent-worker-store-v2.test.ts
  • src/state/openclaw-agent-worker-store.env-capture.test.ts
  • src/state/openclaw-agent-worker-store.test.ts
  • src/state/openclaw-agent-write-admission.test.ts
  • src/state/openclaw-database-maintenance.test.ts
x7917: test/support LOC 3137 → 2542 (-595); lexical declarations 22 → 21

Source report declarations: 22 → 22. Coverage evidence: Tests, coverage, and typechecks were not run, per CI-only mode.

  • ui/src/e2e/chat-flow.local-media-policy.e2e.test.ts
  • ui/src/e2e/chat-flow.session-start.e2e.test.ts
  • ui/src/e2e/chat-flow.test-support.ts
  • ui/src/e2e/chat-footer.e2e.test.ts
  • ui/src/e2e/chat-github-publication-accounts.test-support.ts
  • ui/src/e2e/chat-github-publication-guest.e2e.test.ts
  • ui/src/e2e/chat-github-publication.e2e.test.ts
  • ui/src/e2e/chat-goal-recovery.e2e.test.ts
x7914: test/support LOC 3520 → 3176 (-344); lexical declarations 54 → 52

Source report declarations: 54 → 54. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.

  • ui/src/pages/chat/chat-history-warm-startup.test.ts
  • ui/src/pages/chat/chat-host.test-support.ts
  • ui/src/pages/chat/chat-layout.browser.test-support.ts
  • ui/src/pages/chat/chat-model-restriction-recovery.test.ts
  • ui/src/pages/chat/chat-model-runtime.test.ts
  • ui/src/pages/chat/chat-outbox-receipt-attention.test.ts
  • ui/src/pages/chat/chat-outbox-transient-recovery.test.ts
  • ui/src/pages/chat/chat-outbox-volatile-custody.test.ts

x7918: entirely dropped; +0/-0 replay LOC and no declaration changes. Source report says all 56 declarations remained and tests/coverage/typechecks were not run.

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 17, 2026 22:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 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-17T22:56:52.246080Z 961215d 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: line Channel integration: line app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling extensions: memory-wiki size: XL labels Oct 17, 2026
@steipete
steipete disabled auto-merge October 17, 2026 22:13
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 4ae73e133d1db0455eb61a47fe28f612ae58cd14, but the PR head is now 961215ddc84036c10312481a57164b1d65dc8a99. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (1 earlier review cycle)
  • reviewed 2026-10-17T22:25:54.757Z sha 4ae73e133d1db0455eb61a47fe28f612ae58cd14 :: needs changes before merge. :: [P2] Preserve absent-key semantics in the child environment assertion | [P2] Restore the isolation explanations on the four CLI mocks

@steipete
steipete enabled auto-merge (squash) October 17, 2026 22:27
@steipete

steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

CI/review follow-up for 7c57c246d55:

Accepted all four independent review findings. Restored the pinned-main versions of src/acp/runtime/session-meta.test.ts, src/agents/github-oauth-client.test.ts, src/infra/sqlite-page-cache.worker.test.ts, and src/state/openclaw-agent-worker-store.test.ts; their stale-lifecycle, valid OAuth negative-control, snapshot-budget, and queued-follower contracts remain intact.

Repaired the batch-caused first-run failures: child environments legitimately omit stripped token keys; fixture callbacks now preserve binding and return void where required; command and row fixtures keep their real types; asynchronous cleanup keeps its original ordering; synthetic transport/provider mocks document their state-isolation reason, and worker counter instrumentation keeps the original pass-through implementation.

Final delta supersedes the initial replay totals in the description: 87 test/support files, +11,013/-16,837 (net -5,824); production +0/-0. Oxfmt, plain oxlint (exit 0), and git diff --check passed. Tests and typechecks remain CI-only. All 28 applied source commits remain in history, with the reviewed file changes reverted in this repair commit. The two x7918 commits remain skipped. A focused independent review of this repair delta runs alongside fresh exact-head CI.

Rebase follow-up (780a7bca91b): rebased onto pinned main 3ea4405d4c3a6465e11f672609341ecbddfa5d8d. Preserved main's new cache-before-network startup behavior by dropping all batch edits to ui/src/pages/chat/chat-history-warm-startup.test.ts. The four review-restored files remain unchanged from this new base. Final rebased delta: 86 test/support files, +10,892/-16,676 (net -5,784), production +0/-0. Oxfmt, plain oxlint (exit 0), and diff check passed again. Repair-delta independent review completed with no actionable P0-P2 findings; this rebase adds no new implementation, only keeps current main's warm-start file. Fresh exact-head CI is the merge gate.

Final cleanup (961215ddc84): restored src/cli/native-hook-relay-cli.locator-worker.test.ts to the pinned-main version, retaining its full CLI entrypoint proof; removed exactly the 22 stale mock-baseline rows listed by CI. Final totals: 85 test/support files + one shrink-only baseline file; test/support +10,852/-16,603 (net -5,751), baseline -22, production +0/-0. Formatting, plain oxlint (exit 0), and diff check passed. No new implementation or broadened exceptions were introduced.

@steipete
steipete force-pushed the tcr/land-d241-1792274548 branch from 7c57c24 to 780a7bc Compare October 17, 2026 22:43
@steipete
steipete disabled auto-merge October 17, 2026 22:51
Remove exactly the 22 stale mock-factory records identified by hosted CI, now covered by removed mocks or explicit isolation contracts. Keep the main-branch locator test and its CLI argument parsing boundary unchanged.
@steipete
steipete enabled auto-merge (squash) October 17, 2026 22:52
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 17, 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: 961215ddc8

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

import { createPluginRuntimeMock } from "openclaw/plugin-sdk/channel-test-helpers";
import type { AnyAgentTool, OpenClawPluginToolFactory } from "openclaw/plugin-sdk/plugin-entry";
import { createTestPluginApi } from "openclaw/plugin-sdk/plugin-test-api";
import memoryCorePlugin from "../../memory-core/index.js";

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.

P1 Badge Route the sibling plugin import through a public boundary

The new memory-wiki helper imports ../../memory-core/index.js, creating a package-escaping dependency on a sibling plugin entry point. This prevents the plugins from being tested, moved, or packaged independently; expose the required composition through a documented openclaw/plugin-sdk/* contract or relocate the cross-plugin fixture outside either extension.

AGENTS.md reference: extensions/AGENTS.md:L26-L28

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 38fa2ef into main Oct 17, 2026
134 checks passed
@steipete
steipete deleted the tcr/land-d241-1792274548 branch October 17, 2026 23:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
* test(memory-wiki): deslop x7908 tests

* test(memory-wiki): deslop x7908 tests

* test(acp): deslop x7916 tests

* test(acp): deslop x7916 tests

* test(acp): deslop x7916 tests

* test(ui): deslop x7917 tests

* test(ui): deslop x7917 tests

* test(ui): deslop x7917 tests

* test(line): deslop x7915 tests

* test(line): deslop x7915 tests

* test(chat): deslop x7914 tests

* test(chat): deslop x7914 tests

* test(gateway): deslop x7920 tests

* test(gateway): deslop x7920 tests

* test(gateway): deslop x7920 tests

* test(agents): deslop x7919 tests

* test(agents): deslop x7919 tests

* test(agents): deslop x7919 tests

* test(cli): deslop x7922 tests

* test(cli): deslop x7922 tests

* test(gateway): deslop x7923 tests

* test(gateway): further deslop x7923 tests

* test(gateway): further deslop x7923 tests

* test(state): deslop x7924 tests

* test(state): deslop x7924 tests

* test(state): deslop x7924 tests

* test(infra): deslop x7928 tests

* test(infra): deslop x7928 tests

* test(infra): format preserved snapshot regression

* test: preserve boundary coverage and repair batch fixtures

Restore ACP lifecycle fencing, OAuth response validation, page-cache snapshots, and queued-follower cleanup coverage. Repair fixture typing, async cleanup callbacks, method binding, child-environment assertions, and explicit mock isolation identified by hosted CI and independent review.

* test: retire obsolete mock baselines and preserve locator proof

Remove exactly the 22 stale mock-factory records identified by hosted CI, now covered by removed mocks or explicit isolation contracts. Keep the main-branch locator test and its CLI argument parsing boundary unchanged.
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: line Channel integration: line cli CLI command changes extensions: memory-wiki gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant