Skip to content

test(gateway, ui, plugins): remove low-value tests (batch d335) - #178651

Merged
steipete merged 31 commits into
mainfrom
tcr/land-d335-1792520687
Oct 20, 2026
Merged

steipete merged 31 commits into
mainfrom
tcr/land-d335-1792520687

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Replay campaign batch d335 onto current main, consolidating repetitive test fixtures and assertions while retaining distinct behavior contracts.

User Impact

No production or user-visible behavior changes are intended. Base: 718e3f0. Test and test-support LOC: +6403 / -9336 (net -2933); production LOC: +0 / -0.

Evidence

  • Frozen-lockfile install completed.
  • Changed-file oxfmt, plain oxlint, and git diff --check passed.
  • Per operator CI-only rule, no local Vitest, check-changed, typecheck, or Testbox runs. Hosted openclaw/ci-gate is the execution proof.
  • The source shard reports explicitly state coverage was not run in CI-only mode; no coverage totals are available or claimed.
  • Independent review accepted three coverage findings; original regression coverage was restored. The board fixture finding was rejected after inspecting the current API, which accepts only declared/grantState metadata rather than a complete BoardWidgetDocument.
  • Focused independent re-review of the corrective delta is clean through P2.
  • First-head CI found type-aware lint and fixture-type errors: the affected cleanup files were restored to main. The runtime failure revealed a beforeEach callback returning the mock as an unintended cleanup; restored the braced callback. Fresh-head CI validates these corrections.
  • The initial PR-context check required exact template headings; those headings were corrected.

Replay decisions

Logging commit 5f40dccf91d95af68594d93b4c53c9eb63d28ab3 (z0347) skipped: all eight files conflicted with current diagnostic changes, including GC-reason assertions absent from this main version. Current main wins; no logging edits retained.

Dropped cleanup changes, restoring main byte-for-byte, in: src/gateway/server.sessions.create.repositories.test.ts; ui/src/lib/session-display.test.ts; ui/src/lib/system-info.test.ts; ui/src/lib/speech-playback.test.ts; ui/src/pages/chat/components/chat-pane-header.test-support.ts; ui/src/pages/chat/components/chat-model-preferences.test.tsx; ui/src/pages/chat/components/chat-permission-picker.test.tsx; src/plugin-sdk/provider-catalog-live-runtime.strict.test.ts; src/plugin-sdk/provider-catalog-shared.refresh.test.ts. This preserves original types and the independent cross-provider cancellation and uncacheable-result retry cases. Restored modified-click assertions in person-activity-card.test.ts.

Shards

Declaration counts below are source-shard evidence, not newly measured counts after dropping cleanup hunks. Rebased LOC and file lists describe the final candidate.

z0350

Rebased test/support delta: +681 / -1028; lines 1643 → 1296. Source declaration/case evidence: Retained all 40 declarations and 65 actual cases. Consolidated fixtures, setup, and repeated assertions; made two prompt expectations independent of production helpers. No production changes or case deletions.

Coverage: not run (source report, CI-only).

Files: src/gateway/agent-list.test.ts, src/gateway/agent-prompt.test.ts, src/gateway/artifact-downloads.test.ts, src/gateway/assistant-avatar.test.ts, src/gateway/auth-surface-resolution.test.ts, src/gateway/board-sandbox.test.ts, src/gateway/agent-command.test-helpers.ts, src/gateway/auth-token-store-ref.test.ts.

z0352

Rebased test/support delta: +273 / -621; lines 1637 → 1289. Source declaration/case evidence: Expanded cases remain 56 → 56; declarations 42 → 40. Extracted repeated fixtures and event builders, compacted data tables, and consolidated two outbound test pairs without dropping their cases or assertions. The routed-TTS table retains inbound override/outbound isolation; the end-call table retains default/timeout reasons and cleanup checks.

Coverage: not run (source report, CI-only).

Files: extensions/voice-call/src/manager/events.amd.test.ts, extensions/voice-call/src/manager/events.inbound.test.ts, extensions/voice-call/src/manager/outbound.test.ts, extensions/voice-call/src/manager/timers.test.ts.

z0345

Rebased test/support delta: +446 / -756; lines 1665 → 1355. Source declaration/case evidence: Static counts: declarations 33 → 30; expanded cases 45 → 47 because previously grouped error checks now run separately. No production or shared-support changes; no bug/flake fixes.

Coverage: not run (source report, CI-only).

Files: src/gateway/server-methods/chat-transcript-persistence.node-loss.test.ts, src/gateway/server-methods/claws-add.test.ts, src/gateway/server-methods/claws.test.ts, src/gateway/server-methods/chat-startup-requester.test.ts, src/gateway/server-methods/config.cache-recovery.test.ts, src/gateway/server-methods/config.read-recovery.test.ts, src/gateway/server-methods/control-ui.session-github.test.ts.

z0351

Rebased test/support delta: +313 / -505; lines 1085 → 893. Source declaration/case evidence: Consolidated fixtures/setup and removed the setter test’s unreachable alternate path. Preserved all 45 declarations and 74 statically counted cases, including protocol rejection, authority invalidation, playback cancellation, and bridge lifecycle assertions. No production or shared-support changes.

Coverage: not run (source report, CI-only).

Files: ui/src/lib/protocol-validators.generated.test.ts, ui/src/lib/provider-quota-summary.test.ts, ui/src/lib/solid-bridge.test.tsx.

z0353

Rebased test/support delta: +759 / -1062; lines 2113 → 1810. Source declaration/case evidence: Static case counts: 50 → 50 expanded cases, declarations 21 → 18. Consolidated repeated fixtures, rejection assertions, ownership rows, and session-naming setup. No distinct cases or production code removed. The three unchanged files retain tightly coupled authority/lifecycle proof.

Coverage: not run (source report, CI-only).

Files: src/gateway/server-methods/agent-session-patch.test.ts, src/gateway/server-methods/agent.abort-execution.test-support.ts, src/gateway/server-methods/agent.deleted-agent.test.ts, src/gateway/server-methods/agent.owner-policy.test-support.ts, src/gateway/server-methods/agent.spawned-child.test-support.ts, src/gateway/server-methods/agent.followup-owner.test.ts, src/gateway/server-methods/agent.restart-recovery.test-support.ts, src/gateway/server-methods/agent.subagent-registry.mocks.test-support.ts.

z0355

Rebased test/support delta: +435 / -552; lines 1631 → 1514. Source declaration/case evidence: Consolidated repeated fixture, cleanup, JSON, and assertion scaffolding. All 15 declarations / 19 expanded cases remain, including authority revocation, private artifacts, build isolation, and journal recovery. No production changes or bug fixes.

Coverage: not run (source report, CI-only).

Files: src/infra/update-failure-report-artifact.test.ts, src/infra/update-failure-report.test-support.ts, src/infra/update-immutable-build.worker.test.ts, src/infra/update-immutable-inspection.test.ts, src/infra/update-immutable-owner.test.ts, src/infra/update-immutable-activation.test-support.ts, src/infra/update-immutable-build.test.ts, src/infra/update-immutable-layout.test-support.ts.

z0354

Rebased test/support delta: +974 / -1295; lines 1635 → 1314. Source declaration/case evidence: Consolidated repeated mounting, fixtures, keyboard events, and label extraction. Deleted no cases or assertions: 43 declarations unchanged, with the count helper reporting 67 expanded cases unchanged.

Coverage: not run (source report, CI-only).

Files: ui/src/components/model-picker.browser.test.tsx, ui/src/components/native-link-menu.test.ts, ui/src/components/panel-refresh-status.test.ts, ui/src/components/menu-surface.test.ts, ui/src/components/modal-dialog.test.tsx, ui/src/components/overlay-anchor.browser.test.ts, ui/src/components/panel-tab-strip-solid.test.tsx, ui/src/components/person-activity-card.test.ts.

z0356

Rebased test/support delta: +663 / -912; lines 1035 → 786. Source declaration/case evidence: Declarations remain 43 → 43; expanded cases 51 → 51. Consolidated fixture construction, retained-data assertions, and refresh setup. No cases or distinct assertions removed; cancellation, ownership, auth isolation, expiry, and SQLite retry proof remain.

Coverage: not run (source report, CI-only).

Files: src/plugin-sdk/persistent-dedupe.test.ts, src/plugin-sdk/plugin-state-runtime.test.ts, src/plugin-sdk/provider-auth-result.test.ts, src/plugin-sdk/provider-catalog-live-projection.test.ts, src/plugin-sdk/provider-catalog-shared.test.ts, src/plugin-sdk/plugin-config-runtime.test.ts, src/plugin-sdk/provider-catalog.test-support.ts.

z0358

Rebased test/support delta: +571 / -789; lines 1426 → 1208. Source declaration/case evidence: Consolidated connect options, compaction fixtures, plugin setup, and title request/assertion helpers. No cases deleted or folded: 16 declarations / 21 statically expanded cases unchanged. No production or shared-support files changed.

Coverage: not run (source report, CI-only).

Files: src/gateway/server.auth.connect-metrics.test.ts, src/gateway/server.sessions.compaction-preemption.test.ts, src/gateway/server.sessions.plugin-ownership.test.ts, src/gateway/server.sessions.title-source.test.ts, src/gateway/server.agent-late-admission.test.ts, src/gateway/server.chat-goal.test-support.ts, src/gateway/server.diagnostics-policy.test.ts.

z0359

Rebased test/support delta: +631 / -927; lines 1118 → 822. Source declaration/case evidence: Retained all 34 declarations / 47 expanded cases. Consolidated repeated fixtures, DOM setup, keyboard events, selectors, and assertions. No production changes or case deletions; shared header support remained unchanged.

Coverage: not run (source report, CI-only).

Files: ui/src/pages/chat/components/chat-pane-header-agent.test.ts, ui/src/pages/chat/components/chat-pane-header-identity.test.ts, ui/src/pages/chat/components/chat-pane-header-workspace.test.ts, ui/src/pages/chat/components/chat-pane-placement.test.ts, ui/src/pages/chat/components/chat-picker-overlay.test.ts.

z0361

Rebased test/support delta: +657 / -889; lines 1617 → 1385. Source declaration/case evidence: Retained all 37 declarations / 89 statically counted cases. Consolidated command setup, response assertions, table data, and redundant cleanup. No production or support-file changes; no cases deleted.

Coverage: not run (source report, CI-only).

Files: extensions/crabbox/src/crabbox-tool.test.ts, extensions/crabbox/src/crabbox-worker-command.test.ts, extensions/crabbox/src/crabbox-worker-coordinator-retry.test.ts, extensions/crabbox/src/crabbox-worker-heartbeat.test.ts, extensions/crabbox/src/crabbox-model-run.test.ts, extensions/crabbox/src/crabbox-warm-scenarios.test-support.ts, extensions/crabbox/src/crabbox-worker-node-enrollment-errors.test.ts, extensions/crabbox/src/crabbox-worker-node-enrollment.test-support.ts.

Conflict preservation and ownership

The z0351 protocol-validator tuple consolidation retained main's newly added board-snapshot valid/invalid fixture and schema/checker pairing. No board contract was dropped.

No changed paths match the current CODEOWNERS entries. This is a maintainer-authorized test-only campaign.

@clawsweeper

clawsweeper Bot commented Oct 20, 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 20, 2026 18:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-20T18:43:57.301499Z 5d9edbc 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: voice-call Channel integration: voice-call app: web-ui App: web-ui gateway Gateway runtime extensions: crabbox size: XL labels Oct 20, 2026
@steipete
steipete disabled auto-merge October 20, 2026 18:34
@steipete
steipete enabled auto-merge (squash) October 20, 2026 18:34
@steipete
steipete disabled auto-merge October 20, 2026 18:38
@steipete
steipete enabled auto-merge (squash) October 20, 2026 18:42
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR consolidates test fixtures, assertions, and cases across Gateway, Control UI, Plugin SDK, Crabbox, and voice-call suites.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful test consolidation with no identified correctness defect; completed validation of the consolidated suites is not yet available.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test consolidation changes no shipped behavior; supplied validation consists of source inspection and hosted checks, with affected execution lanes still pending.
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-authored campaign reduces repeated test maintenance while leaving production behavior unchanged.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this maintainer-authored PR reduces repetitive test scaffolding, and inspection found no concrete introduced defect.

Priority: P3
Reviewed head: 7471c7807b9bd4a385a5d54c396b02577a496cb9

Before merge

  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.

Findings

None.

Agent review details

How this fits together

Vitest suites feed synthetic requests, transport failures, filesystem fixtures, and browser interactions into existing production owners, then assert their results and lifecycle behavior.

flowchart LR
  A[Test fixtures] --> B[Vitest suites]
  B --> C[Gateway and SDK owners]
  B --> D[Plugin owners]
  B --> E[Control UI components]
  C --> F[Behavior assertions]
  D --> F
  E --> F
Loading

Technical review

Best possible solution:

Retain the fixture consolidation and distinct regression contracts, with the existing current-head CI gates determining readiness.

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

This PR is a behavior-preserving test refactor; no runtime bug reproduction applies, and no target code was executed during this read-only review.

Is this the best way to solve the issue?

Reusing existing fixtures and consolidating equivalent assertions is appropriate; the examined cancellation, authority, recovery, and focus contracts retain meaningful coverage.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Crabbox coordinator retries and absence classification keeps the original intent (2288edb: Recover proven pre-execution coordinator timeouts without retrying started scripts; distinguish confirmed lease absence from incomplete or unauthorized diagnostics.)
  • Crabbox monotonic retry deadlines keeps the original intent (9a7d4d1: Keep retry budgets monotonic across wall-clock changes; the clock-skew cases and budget assertions remain.)
  • Modal entry focus keeps the original intent (a2c0922: Give rendering callers explicit native focus targets while preserving opening focus and intervening user input.)
  • Catalog consumer cancellation keeps the original intent (cc83172: Allow admitted read-only metadata acquisition to finish after consumers cancel; stronger retained HTTP coverage exercises abandoned acquisition and cache reuse.)
  • Update report authority keeps the original intent (931de9e: Prevent stale report publication after update authority ends; consolidated cases retain revocation during triage, unlock, and staging.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Introduced scope: The pinned merge-base-to-head diff changes only tests and test support; production code, public APIs, configuration, workflows, and persistent formats are unchanged. (7471c7807b9b)
  • Retained cancellation coverage: The removed sole-consumer catalog cancellation case overlaps stronger retained real-HTTP coverage: the abandoned-load scenario cancels its consumer, completes the response, and verifies a subsequent acquisition reuses the result with one HTTP request. (src/plugin-sdk/provider-catalog-live-runtime.strict.test.ts:106, 7471c7807b9b)
  • Retained modal contracts: Native modal tests retain opening-focus and interaction assertions; untouched Solid modal suites continue exercising caller-owned refs, controlled updates, and retained content. (ui/src/components/solid/modal-dialog.test.tsx:90, 7471c7807b9b)
  • Fixture ownership and cleanup: The consolidated immutable-install fixture reuses the existing descriptor builder with real filesystem identities, and removed UI cleanup duplicates the globally registered Solid cleanup. (src/infra/package-update-activation-fixtures.test-support.ts:27, 7471c7807b9b)
  • Discussion and current head: The full body records restored regression coverage and withdrawn invalid fixture cleanups; comments report an earlier-head review, which was not treated as current-head proof. (7471c7807b9b)
  • CI and merge state: GitHub reports the reviewed head as mergeable with a blocked merge state; test, lint, and test-type jobs remain pending, while production types, source contracts, and security checks have passed, with no failed checks observed. (7471c7807b9b)

Likely related people:

  • Mariano: Raw commit 9fa2a21 adds extensions/voice-call/src/manager/events.amd.test.ts:26 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 9fa2a214dde1; files: extensions/voice-call/src/manager/events.amd.test.ts)

PR surface

Tests -2836, Generated -97. Total -2933 across 73 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 72 6155 8991 -2836
Docs 0 0 0 0
Config 0 0 0 0
Generated 1 145 242 -97
Other 0 0 0 0
Total 73 6300 9233 -2933

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and support +6300/-9233, net -2933 The reduction consolidates repeated setup and assertions without adding runtime machinery.

Labels

Label changes:

  • add P3: This is test maintenance with no intended shipped behavior change or established urgent regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is test maintenance with no intended shipped behavior change or established urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

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 20, 2026, 3:05 PM ET / 19:05 UTC.

@steipete
steipete merged commit ce97c81 into main Oct 20, 2026
130 checks passed
@steipete
steipete deleted the tcr/land-d335-1792520687 branch October 20, 2026 19:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…claw#178651)

* test(gateway): deslop z0350 tests

* test(gateway): deslop z0350 tests

* test(gateway): deslop z0350 tests

* test(voice-call): deslop z0352 tests

* test(gateway): deslop z0345 tests

* test(gateway): deslop z0345 tests

* test(gateway): deslop z0345 tests

* test(ui): deslop z0351 tests

* test(ui): deslop z0351 tests

* test(ui): deslop z0351 tests

* test(gateway): deslop z0353 tests

* test(gateway): deslop z0353 tests

* test(gateway): deslop z0353 tests

* test(infra): deslop z0355 tests

* test(infra): deslop z0355 tests

* test(infra): deslop z0355 tests

* test(ui): deslop z0354 tests

* test(ui): deslop z0354 tests

* test(ui): deslop z0354 tests

* test(plugin-sdk): deslop z0356 tests

* test(plugin-sdk): deslop z0356 tests

* test(plugin-sdk): deslop z0356 tests

* test(gateway): deslop z0358 tests

* test(gateway): deslop z0358 tests

* test(gateway): deslop z0358 tests

* test(chat): deslop z0359 tests

* test(chat): deslop z0359 tests

* test(crabbox): deslop z0361 tests

* test(crabbox): deslop z0361 tests

* test(ui): format retained board validator fixture

* test: retain regression coverage and drop invalid fixture cleanups
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: voice-call Channel integration: voice-call extensions: crabbox gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant