Skip to content

test(core,plugins,ui): remove low-value tests (batch d287) - #177279

Merged
steipete merged 26 commits into
mainfrom
tcr/land-d287-1792408338
Oct 19, 2026
Merged

steipete merged 26 commits into
mainfrom
tcr/land-d287-1792408338

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Batch d287 consolidates repetitive test fixtures and assertions and removes duplicate declarations. It preserves distinct security, lifecycle, ordering, recovery, and failure contracts. No production files or runtime behavior change.

Replayed 22 of 30 supplied commits onto main ed0bc041f276171d763eb20d7e75252877cca175, then dropped the visitor-access shard, Telegram local-media file, and shared Gateway sessions helper after CI and preservation review. The final diff is 23 files: +2,474 / -4,303 lines (net -1,829). Production: +0 / -0. Test/support: +2,474 / -4,301 in 22 files. Mock-export baseline metadata: -2 obsolete exception lines.

Shard inventory

LOC and static declaration counts below describe the final replay against the pinned main, not the earlier intermediate shard reports. Each it.each declaration counts once; expanded runtime cases are not inferred from these counts. Paths sharing a directory are abbreviated below.

Shard Files Test/support LOC before → after Static declarations before → after
x8475 Discord extensions/discord/src/activities/{http,interaction}.test.ts 926 → 689 34 → 30
x8478 Telegram extensions/telegram/src/bot/{delivery.resolve-media-retry,helpers}.test.ts; local-media file dropped 615 → 468 20 → 19
x8480 auto-reply src/auto-reply/reply/export-html/template.security.test.ts 908 → 671 18 → 18
x8470 UI ui/src/test-helpers/app-sidebar-cases/{sessions,sidebar-zone}.ts 950 → 784 21 → 21
x8476 memory-core extensions/memory-core/src/memory/manager-{temporal-ranking,worker-reads,workspace-files}.test.ts 952 → 800 17 → 16
x8477 Gateway src/gateway/test/talk-client-agent-consult.requester-final.test.ts; shared sessions helper dropped 237 → 175 2 → 1
x8479 visitor-access dropped after CI/review; current main retained unchanged 0 changed 0 changed
x8484 Google skipped; current main retained unchanged 0 changed 0 changed
x8483 TUI src/tui/components/{chat-log,searchable-select-list,tool-execution}.test.ts 903 → 672 38 → 38
x8481 Workboard skipped; current main retained unchanged 0 changed 0 changed
x8482 flows src/flows/{doctor-health-contribution-runners.config.auth-cleanup,doctor-health.dangling-workshop-index,doctor-health}.test.ts 905 → 681 11 → 9
x8486 Signal extensions/signal/src/{setup-transport,signal-ingress,socket-path}.test.ts 903 → 667 40 → 36
x8490 Matrix extensions/matrix/src/matrix/monitor/{startup,sync-lifecycle}.test.ts 524 → 389 13 → 13
x8491 Kimi Coding skipped; current main retained unchanged 0 changed 0 changed
x8485 IMAP skipped; current main retained unchanged 0 changed 0 changed

Coverage evidence from supplied shard reports

No supplied report contains measured coverage totals. They explicitly deferred runtime/coverage proof under the CI-only instruction; no ≤1% coverage claim is made here. The report statements are:

  • x8470: “Tests, coverage, and check-changed were not run under CI-only mode; runtime verification remains with hosted CI.”
  • x8475: “Tests and coverage were not run, per CI-only instructions.”
  • x8476: “Tests, coverage, and check-changed were not run under CI-only instructions.”
  • x8477: “Tests, coverage, and check-changed were not run under CI-only instructions; hosted CI remains pending.”
  • x8478: “Tests and coverage were not run, per CI-only instructions.”
  • x8479: “Tests and coverage were not run, per CI-only mode.”
  • x8480: “Tests and coverage were not run, per CI-only instructions; hosted CI remains pending.”
  • x8481: “Tests, coverage, and check-changed were not run, per CI-only mode.” (shard skipped)
  • x8482: “Tests, coverage, and typechecking were not run, per CI-only mode.”
  • x8483: “Tests, coverage, and check-changed were not run, per CI-only mode; hosted CI proof remains pending.”
  • x8484: “Tests and coverage were not run, per CI-only instructions; hosted CI remains pending.” (shard skipped)
  • x8485: “Tests, coverage, and check-changed were not run under CI-only mode; hosted CI remains pending.” (shard skipped)
  • x8486: “Tests, coverage, and check-changed were not run, per CI-only instructions; runtime proof remains with hosted CI.”
  • x8490: “Tests and measured coverage were not run, per CI-only instructions; hosted CI proof remains pending.”
  • x8491: “Tests and coverage were not run, per CI-only instructions.” (shard skipped)

Replay decisions

  • UI: retained the first sessions cleanup, but dropped the sessions-file portions of 21e28cebd280 and edaf235afd78. Those overlapped main's newer pagination and source-replacement regressions; their sidebar-zone portions are kept.
  • Skipped Google 7af22ff7d24e: conflicts with newer reserved-header cases and provider base-URL setup. Main's file remains intact.
  • Skipped Workboard f8897cee27ee, 06779b959790, fb43790ebab0: the dependent cleanup stack overlapped main's expanded cards/sessions board-creation matrix. Main's file remains intact.
  • Matrix 91f36d182e90: kept startup and sync-lifecycle cleanup; dropped the startup-verification file hunk, preserving current cooldown and migration coverage.
  • Skipped Kimi Coding e64c8fbb2854: conflicts with expanded quota, provider-alias, reasoning-effort and stream-wrapper cases. Both main files remain intact.
  • Skipped IMAP 3c588341f4db, e85c8aa5d7e7, 85fd2504bf67: the dependent cleanup stack overlapped expanded DMARC, unsigned-body, admission-evidence, sender-rejection and retry cases. Both main files remain intact.
  • Dropped the net visitor-access changes from 5ac9bc7faf32, 9d341dd22999, b37cd7992c13 after CI exposed an unsupported schema API and preservation review found missing post-read identity-revalidation coverage. Restored the file byte-for-byte to the pinned main.
  • Dropped the delivery.resolve-media-local.test.ts portion of 25c290d42878 after CI run 39244903464 showed its default private-address rejection case unexpectedly resolving. Restored the original security fixture rather than weakening its expected denial.
  • Dropped the shared server-sessions.test-helpers.ts changes from 97339c385ca3 / afd2a28f8c4f and their corrective type change after CI run 39246962868 failed sessions-create-worktree-base.test.ts at exact row equality (later displayName / updatedAt publication). The failing test imports this helper; baseline attribution was not proven, so the helper is restored byte-for-byte to pinned main. The requester-final test consolidation remains.

No CODEOWNERS patterns match the changed paths. No changelog change: test-only maintenance.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <changed paths>: passed on original and corrected candidates.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed paths>: passed, exit 0.
  • git diff --check ed0bc041f276171d763eb20d7e75252877cca175: passed.
  • No local Vitest, check-changed, tsgo, coverage, or Testbox execution: explicitly prohibited for this batch. No leases created.
  • Required openclaw/ci-gate on the PR head owns runtime proof. Isolated preservation review runs alongside CI.

First-head findings and repairs

CI run 39243425007 found an unbound cleanup callback, an overconstrained cleanup-helper argument, a Buffer/Response body type mismatch, a SQLite-specific helper receiving the engine connection union, and the visitor fixture's unsupported Type.Const call. The corrected candidate restores method binding, types the cleanup helper to only consumed fields, copies bytes into a Uint8Array, keeps database reads directly at their typed connections, and drops the visitor shard. No assertions were weakened to make CI pass.

Independent static review also found widened literal discriminants in the TUI activity and sidebar hello fixtures; fixed both. Accepted its visitor post-read revalidation finding by dropping that shard. Rejected its socket temp-root finding: test/helpers/temp-dir.ts already canonicalizes the default root with fs.realpathSync.native before creating tracked directories. A second isolated review of the corrective diff completed scoped-clean with no actionable P0–P2 findings. No local runtime or typecheck execution was used.

The second CI run (39244903464) found an unbound Matrix disposal callback and mock-export ratchet failures in Telegram media retry and Doctor config logging. The follow-up wraps the disposal callback and preserves actual exports in those mocks. The Telegram local-media fixture was dropped as described above. A third isolated review of this follow-up completed scoped-clean with no actionable P0–P2 findings. Fresh-head CI, not a rerun of either stale run, is the gate.

The third CI run (39246962868) exposed the shared-helper-dependent worktree recovery failure described above. No assertion was relaxed and no pre-existing-failure bypass was used; the suspect helper refactor was dropped. A fourth isolated review of that restoration completed scoped-clean with no actionable P0–P2 findings.

The fourth CI run (39248539886, job 118047244670) required pruning the two exact obsolete mock-export exceptions for the corrected Telegram runtime and Doctor logging mocks. Both factories now preserve real exports; the baseline only shrinks, with no new allowance. A fifth isolated review of the two-row removal completed scoped-clean with no actionable P0–P2 findings.

@clawsweeper

clawsweeper Bot commented Oct 19, 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 19, 2026 11:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 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-19T12:04:35.899359Z 45ce319 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.

@steipete steipete changed the title test: remove low-value tests (batch d287) test(core,plugins,ui): remove low-value tests (batch d287) Oct 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: matrix Channel integration: matrix channel: signal Channel integration: signal channel: telegram Channel integration: telegram labels Oct 19, 2026
@steipete
steipete enabled auto-merge (squash) October 19, 2026 11:28
@steipete
steipete disabled auto-merge October 19, 2026 11:39
@steipete
steipete enabled auto-merge (squash) October 19, 2026 11:45
@steipete
steipete disabled auto-merge October 19, 2026 11:52
@steipete
steipete enabled auto-merge (squash) October 19, 2026 11:58
@steipete
steipete disabled auto-merge October 19, 2026 12:09
@steipete
steipete enabled auto-merge (squash) October 19, 2026 12:14
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates repeated test fixtures and assertions and removes two obsolete mock-export exceptions.

Example: No user-visible runtime behavior changes.

  • Before: Regression cases use repeated setup and assertions.
  • After: Shared fixtures and parameterized cases retain the distinct regression checks.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test consolidation with preserved regression contracts and substantial exact-head CI support; the final required gate remains pending.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-directed test-only PR changes no shipped runtime behavior; exact-head CI supports the retained tests without establishing a coverage or performance improvement.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-approved direction reduces repetitive test maintenance while preserving the reviewed regression contracts.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-directed test cleanup open: the consolidation is useful, and inspection found no actionable introduced defect.

Priority: P3
Reviewed head: 0d419afde3fb2991a952efceeee5062bd1ddc54f

Before merge

None.

Findings

None.

Agent review details

How this fits together

These suites exercise channel transports, memory indexing, Doctor repairs, Talk completion, terminal rendering, and sidebar behavior using synthetic inputs and assertions against their existing owners.

flowchart LR
A[Synthetic inputs] --> B[Shared test fixtures]
B --> C[Existing production owners]
C --> D[Observed outcomes]
D --> E[Regression assertions]
E --> F[Required CI gate]
Loading

Technical review

Best possible solution:

Land the consolidation with its retained regression assertions once required CI succeeds.

Do we have a high-confidence way to reproduce the issue?

This PR addresses duplicated test structure rather than a runtime bug; the pinned diff directly establishes that maintenance opportunity.

Is this the best way to solve the issue?

The consolidation uses existing owners and fixtures while retaining distinct security, lifecycle, ordering, and recovery cases; no smaller necessary repair was identified.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 972c9ffc2f36.

Provenance checked

  • Discord activity HTTP fixtures keeps the original intent (345343f: Earlier consolidation shared HTTP fixtures; subsequent cases protect response flushing, rate budgets, widget selection, and channel audience checks.)
  • Signal durable ingress keeps the original intent (e6bb5c1: Prevent duplicate redelivery behind a busy lane from completing and erasing the real pending message.)
  • Doctor config receipts keeps the original intent (1a7911f: Successive repairs must consume the preceding committed revision, and refused or partially published writes must not authorize cleanup.)
  • Doctor damaged-state recovery keeps the original intent (2a1402c: Keep legacy state repair with Doctor and preserve coupled backups before migration.)
  • Remote memory workspace fixtures keeps the original intent (14cf168: Read remote memory files through the workspace provider while keeping sessions and indexes on Gateway and retaining local behavior for document-only bridges.)
  • HTML export regressions keeps the original intent (667d3f3: Hide continuation input from ordinary presentation while preserving raw export data and visible descendants.)
  • TUI ordering keeps the original intent (d451363: Place delayed authoritative prompts before their completed replies.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d451363 adds src/tui/components/chat-log.test.ts:783 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d4513634afef; files: src/tui/components/chat-log.test.ts)
  • Vincent Koc: Raw commit 4bdf9ca adds src/tui/components/chat-log.test.ts:52 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4bdf9ca789b5; files: src/tui/components/chat-log.test.ts)
  • Kimi Yu: Raw commit 14cf168 adds extensions/memory-core/src/memory/manager-workspace-files.test.ts:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 14cf1689a8c2; files: extensions/memory-core/src/memory/manager-workspace-files.test.ts)

PR surface

Tests -1827, Other -2. Total -1829 across 23 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 22 2469 4296 -1827
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 2 -2
Total 23 2469 4298 -1829

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; test/support +2469/-4296; baseline metadata -2. The reduction comes from fixture and assertion consolidation without adding runtime machinery.

Labels

Label changes:

  • add P3: This is test maintenance with no production behavior change or urgent user-facing defect.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test maintenance with no production behavior change or urgent user-facing defect.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 19, 2026, 8:32 AM ET / 12:32 UTC.

@steipete
steipete merged commit 524f17f into main Oct 19, 2026
137 checks passed
@steipete
steipete deleted the tcr/land-d287-1792408338 branch October 19, 2026 12:39
steipete added a commit that referenced this pull request Oct 19, 2026
Keep configured model refs owned by model visibility policy after #177294 removed the separate metadata fingerprint. Keep the internal Doctor advisory fixture and Telegram assertions private, and remove the orphaned inspection table from #177279. Production advisory publication and display remain intact.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
…177279)

* test(discord): deslop x8475 tests

* test(discord): deslop x8475 tests

* test(telegram): deslop x8478 tests

* test(auto-reply): deslop x8480 tests

* test(ui): deslop x8470 tests

* test(ui): deslop x8470 tests

* test(ui): deslop x8470 tests

* test(memory-core): deslop x8476 tests

* test(memory-core): deslop x8476 tests

* test(memory-core): deslop x8476 tests

* test(gateway): deslop x8477 tests

* test(gateway): deslop x8477 tests

* test(visitor-access): deslop x8479 tests

* test(visitor-access): deslop x8479 tests

* test(visitor-access): deslop x8479 tests

Consolidate startup success/failure coverage and retain admission and failed-revocation checks in their focused cases. Keep tool error sanitization here; late identity reassignment remains covered by test/visitor-access-revocation.test.ts. Validation: oxlint, oxfmt, and diff check; runtime proof deferred to hosted CI per campaign instructions.

* test(tui): deslop x8483 tests

* test(flows): deslop x8482 tests

* test(flows): deslop x8482 tests

* test(flows): deslop x8482 tests

* test(signal): deslop x8486 tests

* test(signal): deslop x8486 tests

* test(matrix): deslop x8490 tests

* test: repair batch d287 fixtures and preserve visitor coverage

* test: preserve mock exports and media security fixture

* test: retain main gateway session fixtures

* test: prune restored mock export exceptions
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
Keep configured model refs owned by model visibility policy after openclaw#177294 removed the separate metadata fingerprint. Keep the internal Doctor advisory fixture and Telegram assertions private, and remove the orphaned inspection table from openclaw#177279. Production advisory publication and display remain intact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: discord Channel integration: discord channel: matrix Channel integration: matrix channel: signal Channel integration: signal channel: telegram Channel integration: telegram extensions: memory-core Extension: memory-core gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant