Skip to content

test(config,ui,channels): remove low-value tests (batch d282) - #177219

Merged
steipete merged 34 commits into
mainfrom
tcr/land-d282-1792403331
Oct 19, 2026
Merged

steipete merged 34 commits into
mainfrom
tcr/land-d282-1792403331

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated fixtures, assertion scaffolding, and overlapping test declarations make the targeted suites harder to maintain.

User Impact

No production or user-visible behavior change. This is a test-only cleanup across 12 campaign shards; distinct authority, security, persistence, lifecycle, and browser contracts must remain protected.

Why This Change Was Made

Replay batch d282 onto pinned main b53de64a729ee1f9b6babc4095acfe30da302e93. Consolidate fixtures and assertions, table equivalent scenarios, and remove overlapping declarations. No runtime files, dependencies, runtime configuration, or public APIs change; two test baselines shrink.

Applied 29 of 30 supplied commits in order. Skipped 8b8c915c89ecdf74cd75082f191a92cfc256cc78 (final x8408 rewrite): its broader fixture rewrite conflicts with newer trajectory regressions; retaining current-main proof takes precedence over additional cleanup.

Trajectory conflict resolution preserves main's timestamp, session-delete cascade, JSONL separator, exact-byte-boundary, and both 3,000/6,000-character eviction cases. Kept the relocated shared path helper, updated the new boundary test to use it, and retained conflicting trailing-window/count-budget declarations. No other manual replay conflicts.

Review restored the full baseline files for narration pacing, transport presence projection, admission-order diagnostics, controlled popovers, and delivery-context derivation. Their cleanup hunks are dropped so independent contracts remain unchanged. A later main conflict was resolved by retaining the entire current modal-dialog test file, including the native focus fix from #177200. At that rebase, all remaining patch bytes matched the independently reviewed corrected patch. Subsequent CI repairs also restored the complete baseline tooltip, skills-page, and Twilio media-stream files; corrected optional media-value assertions; removed a redundant numeric conversion; documented seven existing mock isolation boundaries and removed their obsolete baseline entries; and reduced the timeout-race baseline from 7 to the CI-observed 1. Hosted review also identified two lost modal-footer assertions; the complete baseline skills-view test file is restored to retain both contracts.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <32 changed TS/TSX files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <32 changed TS/TSX files>: exit 0.
  • git diff --check b53de64a729ee1f9b6babc4095acfe30da302e93: passed.
  • Per maintainer CI-only instruction: no local Vitest, check-changed, typecheck, or Testbox runs. Hosted openclaw/ci-gate is the behavioral gate.
  • Independent autoreview completed: five coverage findings accepted by restoring baseline files; two findings rejected after checking current Solid 2 exports and the generic queue API. Follow-up reviews cover the corrective deltas; the two-file optional-media/lint correction was independently scoped-clean.
  • First CI run exposed tuple/literal inference errors, a missing Matrix store type argument, type-aware lint issues, and an optional-property assertion mismatch. Corrected from the exact job logs; fresh-head CI is required. Additional first-head defects in UI fixture consolidation were handled by dropping the affected cleanup, without suppressions, retries, or weakened assertions.
  • Production LOC: +0/-0. Test files: +4,220/-6,864 (net -2,644). Test-support files: +363/-300 (net +63). Test-baseline metadata: +1/-8 (net -7). Total: net -2,588.
  • CODEOWNERS: no changed file matches an owned path in the current CODEOWNERS.

Shard evidence

LOC includes each shard's test support. Declaration counts are static it/test/each/for call-site counts, not expanded runtime cases. Source reports describe an earlier pass, so current replay metrics below are recomputed from the pinned base rather than copied from those reports. Every supplied shard report explicitly states tests/coverage were not run under CI-only mode; there is no coverage totals line available and no <=1% coverage-loss claim is made.

Shard Test/support LOC before → after Declaration sites before → after Coverage totals
x8391 690 → 607 (-83) 16 → 15 Not measured (CI-only)
x8400 1389 → 1102 (-287) 45 → 42 Not measured (CI-only)
x8401 1106 → 783 (-323) 37 → 33 Not measured (CI-only)
x8402 298 → 282 (-16) 9 → 9 Not measured (CI-only)
x8404 1433 → 1068 (-365) 13 → 11 Not measured (CI-only)
x8405 1353 → 1120 (-233) 20 → 18 Not measured (CI-only)
x8406 628 → 549 (-79) 12 → 11 Not measured (CI-only)
x8407 580 → 499 (-81) 8 → 7 Not measured (CI-only)
x8408 1682 → 1465 (-217) 36 → 34 Not measured (CI-only)
x8410 893 → 616 (-277) 27 → 26 Not measured (CI-only)
x8411 1323 → 1031 (-292) 1 → 1 Not measured (CI-only)
x8412 1311 → 983 (-328) 38 → 33 Not measured (CI-only)
Files by shard (remaining net changes)
  • x8391: ui/src/components/solid/menu-lifecycle.browser.test.tsx, ui/src/components/solid/overlay-style.browser.test.tsx
  • x8400: src/config/validation.dm-policy.test.ts, src/config/validation.policy.test.ts, src/config/write-lock.drainage.test.ts, src/config/write-lock.sources.test.ts, src/config/zod-schema.gateway-auth.test.ts
  • x8401: src/utils/fetch-timeout.test.ts, src/utils/queue-helpers.test.ts, src/utils/run-with-concurrency.test.ts, src/utils/usage-format.test.ts
  • x8402: ui/src/pages/skills/library-uploads.test.tsx, ui/src/pages/skills/skills.test-support.ts
  • x8404: src/agents/subagents/announce/subagent-announce-direct-completion-media.test.ts, src/agents/subagents/announce/subagent-announce-direct-delivery.test.ts, src/agents/subagents/announce/subagent-announce-overrides.test-support.ts
  • x8405: extensions/matrix/doctor-contract-api.archive-scan.test.ts, extensions/matrix/doctor-contract-api.import.test.ts, extensions/matrix/doctor-contract-api.test-support.ts, extensions/matrix/doctor-contract-api.test.ts
  • x8406: src/gateway/server-broadcast.live-text.test.ts, src/gateway/server-broadcast.test-support.ts
  • x8407: src/state/openclaw-agent-canonical-validation-schema.test.ts
  • x8408: src/trajectory/runtime-store-writer.test.ts, src/trajectory/runtime-store.sqlite.test.ts
  • x8410: extensions/voice-call/src/providers/mock.test.ts, extensions/voice-call/src/providers/plivo.test.ts, extensions/voice-call/src/providers/telnyx.test.ts
  • x8411: extensions/browser/chrome-extension/bootstrap-diagnostics.test-support.ts, extensions/browser/chrome-extension/bootstrap.chromium.test.ts
  • x8412: extensions/googlechat/src/setup.test.ts, extensions/googlechat/src/targets.test.ts

@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 09:51
@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-19T10:31:24.388664Z f9fb578 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: googlechat Channel integration: googlechat channel: matrix Channel integration: matrix channel: voice-call Channel integration: voice-call app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling extensions: browser size: XL labels Oct 19, 2026
@steipete
steipete disabled auto-merge October 19, 2026 09:58

@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: cd9cc24ec7

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

Comment thread ui/src/pages/skills/view.test.ts Resolved
@steipete
steipete enabled auto-merge (squash) October 19, 2026 09:59
@steipete
steipete force-pushed the tcr/land-d282-1792403331 branch from 47379d0 to b367cfd Compare October 19, 2026 10:07
@steipete
steipete disabled auto-merge October 19, 2026 10:15
@steipete
steipete enabled auto-merge (squash) October 19, 2026 10:21

@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: d960591337

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

Comment thread ui/src/pages/skills/view.test.ts Resolved
@steipete
steipete disabled auto-merge October 19, 2026 10:26
@steipete
steipete enabled auto-merge (squash) October 19, 2026 10:27
@clawsweeper clawsweeper Bot added 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. 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 test fixtures and equivalent cases across core, plugins, and UI while shrinking two test baselines.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test consolidation with retained boundary assertions and passing relevant hosted checks; the aggregate CI gate is still pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only cleanup has no changed shipped behavior requiring contributor media; hosted tests support the retained contracts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
Reason: Maintainer-approved cleanup reduces repeated setup while preserving independent security, persistence, delivery, and UI contracts.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored cleanup open; no actionable introduced defect was found, and its existing CI gate remains pending.

Priority: P3
Reviewed head: f9fb578f10ab6dec96f62457e3652e2bdeba9f34

Before merge

None.

Findings

None.

Agent review details

How this fits together

These suites feed synthetic inputs through core, plugin, and UI owners and assert delivery, authorization, migration, storage, and lifecycle contracts.

flowchart LR
  A[Synthetic fixtures] --> B[Consolidated test suites]
  B --> C[Core and plugin owners]
  B --> D[UI components]
  C --> E[Contract assertions]
  D --> E
  E --> F[Hosted CI gate]
Loading

Technical review

Best possible solution:

Merge the test-only consolidation once the existing exact-head CI gate passes.

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

This PR addresses duplicated test scaffolding rather than a reported runtime defect; source inspection confirms that scope.

Is this the best way to solve the issue?

Reusing existing fixtures and parameterizing equivalent scenarios is appropriate, and the inspected consolidations retain distinct failure boundaries.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Subagent recovery and completion delivery keeps the original intent (1118597: Protect rejected recovery handoff settlement and source revocation; earlier recovery receipts also prevent duplicate completion.)
  • Gateway live-text delivery keeps the original intent (13f4924: Reset recipient text baselines after one observer unsubscribes while preserving remaining observers.)
  • Matrix migration fixtures keeps the original intent (f876030: Share historical-state fixtures while preserving distinct migration contexts and assertions.)
  • Canonical schema migration preservation keeps the original intent (974443a: Detect lost or altered session history and retained schema objects during migration.)
  • Bounded concurrency keeps the original intent (e270ccb: Bound pending promise allocation while preserving ordering, caller context, error handling, and submitted factories.)
  • Skill-library uploads keeps the original intent (f2e5268: Disable client uploads while retaining text editing and existing support files.)
  • Browser native bootstrap keeps the original intent (fada067: Protect deterministic extension identity, native-host framing, pairing, and installation context.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests -2581, Other -7. Total -2588 across 34 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 32 4512 7093 -2581
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 1 8 -7
Total 34 4513 7101 -2588

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and support +4,512/-7,093 The net reduction removes repeated fixtures and declarations without adding runtime machinery.

Labels

Label changes:

  • add P3: This is maintenance of test suites with no intended production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 maintenance of test suites with no intended production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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, 6:43 AM ET / 10:43 UTC.

@steipete
steipete merged commit 9f7a75d into main Oct 19, 2026
137 of 139 checks passed
@steipete
steipete deleted the tcr/land-d282-1792403331 branch October 19, 2026 10:52
steipete added a commit that referenced this pull request Oct 19, 2026
Model the documented standalone benchmark from #177195 as a production Knip entry. Remove the unused TTS test-support alias left by #177175; production Talk continues to use the canonical speech-text fallback directly.

Validated 58 focused tests, CLI help, targeted typecheck and lint, formatting, and P2 review. All three deadcode scans ran: unused files are clean; full-tree dependencies and exports retain only the unrelated BroadcastFrame type introduced by #177219.
steipete added a commit that referenced this pull request Oct 19, 2026
The test fixture introduced by #177219 is its only consumer. Preserve the local generic frame type and the canonical production EventFrame schema and broadcast contracts.

Validated 18 broadcast tests, targeted typecheck and lint, formatting, P2 review, and all three CI deadcode commands on the pre-integration head.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
…aw#177219)

* test(config): deslop x8400 tests

* test(config): deslop x8400 tests

* test(config): deslop x8400 tests

* test(ui): deslop x8391 tests

* test(matrix): deslop x8405 tests

* test(matrix): deslop x8405 tests

* test(agents): deslop x8404 tests

* test(agents): deslop x8404 tests

* test(agents): deslop x8404 tests

* test(utils): deslop x8401 tests

* test(utils): deslop x8401 tests

* test(utils): preserve strict timeout log assertions

* test(skills): deslop x8402 tests

* test(skills): deslop x8402 tests

* test(skills): deslop x8402 tests

* test(state): deslop x8407 tests

* test(state): deslop x8407 tests

* test(state): deslop x8407 tests

* test(gateway): deslop x8406 tests

* test(gateway): deslop x8406 tests

* test(gateway): deslop x8406 tests

* test(voice-call): deslop x8410 tests

* test(voice-call): deslop x8410 tests

* test(browser): deslop x8411 tests

* test(browser): deslop x8411 tests

* test(trajectory): deslop x8408 tests

* test(trajectory): deslop x8408 tests

* test(googlechat): deslop x8412 tests

* test(googlechat): deslop x8412 tests

* style(test): format trajectory conflict resolution

* test(trajectory): preserve new boundary regression fixture path

* test: preserve boundary coverage and repair batch fixture types

* test: retain UI fixtures and reconcile cleanup ratchets

* test(skills): preserve modal action footer contracts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
Model the documented standalone benchmark from openclaw#177195 as a production Knip entry. Remove the unused TTS test-support alias left by openclaw#177175; production Talk continues to use the canonical speech-text fallback directly.

Validated 58 focused tests, CLI help, targeted typecheck and lint, formatting, and P2 review. All three deadcode scans ran: unused files are clean; full-tree dependencies and exports retain only the unrelated BroadcastFrame type introduced by openclaw#177219.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
The test fixture introduced by openclaw#177219 is its only consumer. Preserve the local generic frame type and the canonical production EventFrame schema and broadcast contracts.

Validated 18 broadcast tests, targeted typecheck and lint, formatting, P2 review, and all three CI deadcode commands on the pre-integration head.
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: googlechat Channel integration: googlechat channel: matrix Channel integration: matrix channel: voice-call Channel integration: voice-call extensions: browser 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