Skip to content

test(chat,ui,gateway,whatsapp): remove low-value tests (batch d157) - #174116

Merged
steipete merged 12 commits into
mainfrom
tcr/land-d157-1792145978
Oct 16, 2026
Merged

steipete merged 12 commits into
mainfrom
tcr/land-d157-1792145978

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated fixture setup and assertion scaffolding make the chat, UI config, Gateway bootstrap, and WhatsApp tests harder to maintain.

User Impact

No intended user-visible behavior change. This is test/support-only consolidation; production code is unchanged. Distinct security, privacy, ordering, cancellation, and lifecycle assertions remain. No runtime speedup or fresh coverage percentage is claimed.

Why This Change Was Made

Replay campaign batch d157 onto main at df84daa, preserving current-main additions. Shared fixture builders replace repetitive setup; equivalent cases use tables. Existing production owners and test boundaries are unchanged.

Nine of ten supplied commits were retained (some partially):

  • Chat: 0cb3f538886, 7fab51be330, b50915d714f.
  • UI: dcac1233da0, 8181603676c.
  • Gateway: 47a0da42ac1, 87f489422c8, excluding client.test.ts.
  • WhatsApp: 49be16c0973 excluding channel-outbound, channel-react-action, and doctor-contract; cbd5a62fb4c retained only the broadcast-groups file.

Skipped 196905a778f (x7052): all seven plugin files conflict with current-main rewrites and expanded ownership/alias coverage. Retain current main rather than replay older fixture shapes over those contracts.

Conflict resolution:

  • Chat composer-persistence: kept main's interrupted-send normalization, failed-attachment durability, and draft-presence notification regressions; adapted two load calls to the new local alias.
  • Gateway client.test.ts: dropped both commits' hunks to retain current callback-failure, protocol-transition, timestamp, and read-only-auth coverage.
  • WhatsApp first pass: retained main's expanded approval metadata, upload metadata/reaction routing, and Doctor credential/default-account matrices.
  • WhatsApp second pass: retained only the clean broadcast-groups consolidation; dropped the seven other file hunks because current setup, durable-auth, directory, media, and approval fixtures diverged. The first pass's five clean file changes remain.
  • Removed exactly two obsolete entries from config/test-mock-exports-baseline.txt after preserving both modules' exports with importOriginal; CI identified these exact stale entries. No new baseline allowances, production seams, dependencies, or visual product changes.

Evidence

CI-only mode per maintainer instruction: no local Vitest, check-changed, tsgo, builds, or Testbox. Hosted PR CI and required openclaw/ci-gate provide behavioral proof.

Passed on the replayed diff:

  • node_modules/.bin/oxfmt --write (27 changed files).
  • node_modules/.bin/oxlint -c .oxlintrc.json (27 changed files), exit 0.
  • git diff --check against the replay base, exit 0.
  • pnpm install --frozen-lockfile --prefer-offline, exit 0.

An initial shell path-list invocation selected no files; it was corrected to explicit argument-array invocation, which formatted all 27 files successfully. No tests or coverage ran in either invocation. CI exposed and prompted narrow fixture repairs: a redundant Boolean conversion, an untyped asynchronous microphone mock, two renamed closed mocks, a missing describe import for a preserved main-side regression, and the generic Solid signal initializer. The closed mocks now preserve original exports; their two exact stale baseline entries were removed. Independent review runs alongside CI.

The previous UI run also timed out in four untouched appearance-picker browser tests; this is not claimed as pre-existing without independent proof. The fresh run must resolve or attribute that failure before merge.

Actual replay deltas

Counts below are against the pinned replay base, not the older shard snapshots. Declarations count textual it/test declarations, including each/for declarations once, not expanded cases.

Shard Changed files Test/support LOC before → after Declaration count before → after
x7043 chat 8 3972 → 3154 (-818) 97 → 90
x7053 UI 9 4463 → 3695 (-768) 36 → 36
x7050 Gateway 5 1447 → 1110 (-337) 27 → 24
x7056 WhatsApp 5 2423 → 2064 (-359) 75 → 73
x7052 plugins 0 (skipped) 0 delta 0 delta
Total 27 12305 → 10023 (-2282) 235 → 223

Production LOC: +0/-0. Test files: net -2292. Baseline: -2 lines. Test-support files: net +10, including the new shared 145-line config/composer fixture helper.

Original shard report coverage status

The supplied reports are historical source-lane evidence, not fresh proof of this replay:

  • x7043: "No tests, coverage, builds, or typechecking ran under CI-only mode." Final source report: 139 → 138 expanded cases after moving a duplicate provider case's identity assertions into its existing table.
  • x7053: "Tests, coverage, and typechecking remain deferred to hosted CI." Source report retains 36 declarations and 42 tool-counted expanded cases.
  • x7050: "Tests and coverage were not run, per CI-only mode." Source report states no cases deleted; SSH host variants became separate table rows.
  • x7056: "No tests or coverage ran under CI-only mode." Source report states 85 → 86 expanded cases from separate credential-directory rows.
  • x7052 (skipped): "Tests, coverage, and typechecks were not run, per CI-only mode."

No report supplies a measured coverage-totals line; do not infer the older campaign's ≤1% coverage gate was measured for these commits.

Files by shard

x7043 — ui/src/pages/chat/: chat-thread-reply-attribution.test.ts; chat-tool-activity-coalesce.test.ts; chat-view-notices.test.tsx; composer-dictation.test.ts; composer-microphone-picker.test.ts; composer-persistence-restore.test.ts; composer-persistence.test.ts; creation-composer-handoff.test.ts.

x7053 — ui/src/e2e/: composer-draft-fences.test-support.ts; composer-draft-store.e2e.test.ts; composer-recovery-fences.e2e.test.ts; config-composer-fixtures.test-support.ts; config-controls-visual.e2e.test.ts; config-form-defaults.e2e.test.ts; config-form-guidance.e2e.test.ts; config-form-integrity.e2e.test.ts; config-safe-write.e2e.test.ts.

x7050 — src/gateway/: cli-session-history.test-support.ts; client-bootstrap.auth.test.ts; client-bootstrap.test.ts; client.ssh.test.ts; config-get-response.test.ts.

x7056 — extensions/whatsapp/src/: auto-reply.broadcast-groups.combined.test.ts; channel.setup.test.ts; connection-controller.test.ts; directory-config.test.ts; media.test.ts.

No changed path matches the repository CODEOWNERS entries.

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

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

chatgpt-codex-connector Bot commented Oct 16, 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-16T11:11:44.620841Z 4126091 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: whatsapp-web Channel integration: whatsapp-web app: web-ui App: web-ui gateway Gateway runtime size: XL labels Oct 16, 2026
@steipete
steipete disabled auto-merge October 16, 2026 10:41
Remove a redundant boolean conversion and retain the asynchronous microphone mock contract. No assertion or runtime behavior changes.
@steipete
steipete enabled auto-merge (squash) October 16, 2026 10:43
@steipete
steipete disabled auto-merge October 16, 2026 10:51
@steipete
steipete enabled auto-merge (squash) October 16, 2026 10:53
@steipete
steipete disabled auto-merge October 16, 2026 11:03
@steipete
steipete enabled auto-merge (squash) October 16, 2026 11:06
@steipete
steipete merged commit ef116dc into main Oct 16, 2026
114 checks passed
@steipete
steipete deleted the tcr/land-d157-1792145978 branch October 16, 2026 11:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…penclaw#174116)

* test(chat): deslop x7043 tests

* test(chat): deslop x7043 tests

* test(chat): deslop x7043 tests

* test(ui): deslop x7053 tests

* test(ui): deslop x7053 tests

* test(gateway): deslop x7050 tests

* test(gateway): deslop x7050 tests

* test(whatsapp): deslop x7056 tests

* test(whatsapp): deslop x7056 tests

* test: fix typed fixture lint after batch replay

Remove a redundant boolean conversion and retain the asynchronous microphone mock contract. No assertion or runtime behavior changes.

* test(gateway): preserve bootstrap mock exports

* test: repair replayed UI fixtures and prune obsolete mock baseline
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: whatsapp-web Channel integration: whatsapp-web gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant