Skip to content

test(fixtures): remove low-value tests (batch d228) - #175702

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d228-1792254945
Oct 17, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d228-1792254945

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated setup and assertion boilerplate obscures the behavior protected by these test suites. This replays campaign batch d228 onto main at 25acc45, consolidating fixtures and low-value repetition without changing production code.

Solution and impact

All 30 requested commits were applied in order, followed by two focused repair commits for hosted-CI and independent-review findings. Shared helpers are test-only. No runtime behavior, public API, schema, dependency, workflow, or test-routing changes are intended. UI changes are test fixtures only, not visual product changes. No CODEOWNERS paths are touched.

Exact diff: production +0/-0 LOC; test files +13,463/-20,807 LOC; test support +869/-400 LOC; test metadata +0/-10 LOC. Total +14,332/-21,217 across 94 files (net -6,885).

Replay decisions

  • Package activation: retained main's publication-recovery and verification-recovery scenarios alongside stranded-first-hop while simplifying fixtures.
  • Release beta verifier: dropped this file's cleanup from both script commits; retained main's complete file because new rerun, registry, and deadline cases overlap the old singleton-table simplification.
  • PR proof policy: dropped this file's cleanup completely after CI exposed retained main cases still referencing a removed helper. Main's authored-content, HTML-comment, separator, and out-of-scope evidence cases remain unchanged.
  • Matrix storage: retained the ambiguous-device metadata regression and adapted its fixture to the compacted helpers.
  • Catalog secrets: retained main's marker and environment-template credential cases in the new tuple table.
  • No whole commits skipped. Removed exactly ten obsolete mock-baseline rows identified by hosted CI after the corresponding mock-isolation contracts were documented; no additions or widened exceptions.

Evidence

The first hosted run (39050607969) identified batch-caused fixture/type failures. Repairs retain the intended assertions: bound matcher/helper closures, explicit fixture types, typed cleanup promises, mock-isolation explanations, the full Matrix ambiguous-device check, and an independent undefined-property assertion for release receipts. No retries, timeouts, skips, or weakened assertions were used. The unrelated UI snapshot-store failure was fixed on main by 25acc45 and is included via rebase; no inherited-failure merge exception is requested. The initial independent review was stopped during snapshot verification so it could not certify stale inputs. The completed four-pass independent review found four P2 coverage regressions; all were accepted and fixed: complete RPC registration as an unordered set, five records on the continuation page, exact approval API endpoint binding, and representative preserved session metadata. No findings were rejected. A follow-up review covers the repair commit. The second CI run (39051473315) reduced failures to a room-entry type guard, a detached browser callback, and the ten stale mock-baseline rows; those are repaired as well.

CI-only validation, per maintainer instruction: pnpm install --frozen-lockfile --prefer-offline completed; node_modules/.bin/oxfmt --write on all changed TypeScript files passed; node_modules/.bin/oxlint -c .oxlintrc.json on all changed TypeScript files exited 0; git diff --check against the pinned base passed. No Vitest, check-changed, tsgo, builds, coverage, or Testbox runs were performed locally. No leases were created. Hosted openclaw/ci-gate is the runtime/typecheck proof and merge gate.

Static counts below compare only changed test files against the pinned base (support excluded from test LOC). Expanded counts are syntax-based estimates, not executed-case measurements: helper/table extraction can change what the counter sees. In particular Signal 149→148 and Update CLI 100→88 need runtime review; no executed-case preservation or coverage result is claimed from these counts.

Shard Area Test LOC before → after Declarations Static expanded
x7765 Signal 3382 → 2645 107 → 93 149 → 148
x7763 Upgrade survivor 3387 → 2780 50 → 47 72 → 72
x7758 Scripts 1151 → 917 16 → 16 63 → 63
x7764 Matrix 3385 → 2637 82 → 74 100 → 100
x7766 Update CLI 3169 → 2990 33 → 33 100 → 88
x7761 Doctor 3388 → 2636 80 → 70 98 → 101
x7769 UI test fixtures 3066 → 2292 26 → 25 41 → 41
x7768 Gateway 3478 → 2994 59 → 56 93 → 93
x7770 Browser 3328 → 2489 85 → 81 115 → 115
x7773 QA lab 3373 → 2673 23 → 19 24 → 24
x7772 Agents 3075 → 2559 24 → 23 41 → 41
x7767 Workboard 3420 → 2646 72 → 71 78 → 79

Coverage totals from the source reports: all 12 shards explicitly say tests/coverage were not run under CI-only mode; no statement/branch totals are available. Their earlier per-file reduction targets were not universally reached. This PR makes no coverage-gate claim.

Changed files by shard

x7765

  • extensions/signal/src/account-selection.test.ts
  • extensions/signal/src/accounts.test.ts
  • extensions/signal/src/approval-reactions.test.ts
  • extensions/signal/src/client-container.test.ts
  • extensions/signal/src/client-container.websocket.test.ts
  • extensions/signal/src/client-unix.test.ts
  • extensions/signal/src/client.test-support.ts
  • extensions/signal/src/client.test.ts
  • extensions/signal/src/core.test.ts

x7763

  • test/scripts/upgrade-survivor-mobile-pairing.test.ts
  • test/scripts/upgrade-survivor-native-app-server.test.ts
  • test/scripts/upgrade-survivor-native-assignments.test.ts
  • test/scripts/upgrade-survivor-package-activation.test.ts
  • test/scripts/upgrade-survivor-plugin-policy.test.ts
  • test/scripts/upgrade-survivor-plugin-registry.test.ts
  • test/scripts/upgrade-survivor-probe-gateway.test.ts
  • test/scripts/upgrade-survivor-project-worktree-startup.test.ts

x7758

  • test/scripts/realtime-talk-live-smoke.test.ts
  • test/scripts/release-approval-receipt.test.ts
  • test/scripts/release-approval-workflows.test.ts

x7764

  • extensions/matrix/src/matrix/client/config.test.ts
  • extensions/matrix/src/matrix/client/create-client.storage.test.ts
  • extensions/matrix/src/matrix/client/file-sync-store.sdk.test.ts
  • extensions/matrix/src/matrix/client/file-sync-store.test.ts
  • extensions/matrix/src/matrix/client/shared.lifecycle.test.ts
  • extensions/matrix/src/matrix/client/shared.test.ts
  • extensions/matrix/src/matrix/client/storage.test.ts
  • extensions/matrix/src/matrix/client/sync-store.test-support.ts

x7766

  • src/cli/update-cli/update-command-executor-native-runtime.test-support.ts
  • src/cli/update-cli/update-command-executor-reader.test.ts
  • src/cli/update-cli/update-command-executor-retained.test.ts
  • src/cli/update-cli/update-command-executor-settlement.test.ts
  • src/cli/update-cli/update-command-failure-recovery.test.ts
  • src/cli/update-cli/update-command-finalize-refusal.test.ts
  • src/cli/update-cli/update-command-foreground.test.ts
  • src/cli/update-cli/update-command-fresh-doctor-authority.test.ts

x7761

  • src/commands/doctor/shared/automatic-config-repair.test.ts
  • src/commands/doctor/shared/channel-doctor.test.ts
  • src/commands/doctor/shared/channel-legacy-config-migrate.test.ts
  • src/commands/doctor/shared/channel-plugin-blockers.test.ts
  • src/commands/doctor/shared/codex-route-session-repair.test.ts
  • src/commands/doctor/shared/codex-route-warnings.test.ts
  • src/commands/doctor/shared/config-flow-steps.test.ts
  • src/commands/doctor/shared/context-engine-host-compat.test.ts

x7769

  • ui/src/e2e/chat-large-paste-99213.e2e.test.ts
  • ui/src/e2e/chat-live-final-order.e2e.test.ts
  • ui/src/e2e/chat-markdown-alignment.e2e.test.ts
  • ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts
  • ui/src/e2e/chat-mention-search.e2e.test.ts
  • ui/src/e2e/chat-metadata-observation.e2e.test.ts
  • ui/src/e2e/chat-mobile-bubble-margin.test-support.ts

x7768

  • src/gateway/session-observer-model.test.ts
  • src/gateway/session-observer-preparation.test.ts
  • src/gateway/session-observer-suite.test-support.ts
  • src/gateway/session-observer.terminal.test.ts
  • src/gateway/session-observer.test.ts
  • src/gateway/session-observer.worker.test.ts
  • src/gateway/session-projection-allocation.benchmark.test.ts
  • src/gateway/session-repository-materialization.test.ts
  • src/gateway/session-repository-publication-handoff.test.ts

x7770

  • extensions/browser/chrome-extension/background.access-mode.test.ts
  • extensions/browser/chrome-extension/background.creation-lifecycle.test.ts
  • extensions/browser/chrome-extension/background.document-navigation.test.ts
  • extensions/browser/chrome-extension/background.fetch-continuation.test.ts
  • extensions/browser/chrome-extension/background.initial-target.test.ts
  • extensions/browser/chrome-extension/background.lifecycle-test-helpers.ts
  • extensions/browser/chrome-extension/background.native-cleanup.test.ts
  • extensions/browser/chrome-extension/background.relay-lifecycle.test.ts
  • extensions/browser/chrome-extension/background.test.ts

x7773

  • test/e2e/qa-lab/plugins/candidate-test-support.ts
  • test/e2e/qa-lab/plugins/canvas-agent-node.e2e.test.ts
  • test/e2e/qa-lab/plugins/clawhub-release-candidate-install.test.ts
  • test/e2e/qa-lab/plugins/clawhub-release-policy-contracts.e2e.test.ts
  • test/e2e/qa-lab/plugins/discord-show-widget-contextual-presenter.e2e.test.ts
  • test/e2e/qa-lab/plugins/feishu-crabline.real-gateway.candidate.e2e.test.mts
  • test/e2e/qa-lab/plugins/file-transfer-exact-approval.e2e.test.ts
  • test/e2e/qa-lab/plugins/node-gateway-fixture.ts
  • test/e2e/qa-lab/plugins/plugin-lifecycle-probe.e2e.test.ts
  • test/e2e/qa-lab/plugins/slack-crabline-roundtrip.candidate.e2e.test.mts

x7772

  • src/agents/prepared-model-catalog-worker.directory.integration.test.ts
  • src/agents/prepared-model-catalog-worker.metadata.integration.test.ts
  • src/agents/prepared-model-catalog-worker.native-renewal.integration.test.ts
  • src/agents/prepared-model-catalog-worker.native.integration.test.ts
  • src/agents/prepared-model-catalog-worker.reuse.integration.test.ts
  • src/agents/prepared-model-catalog-worker.secrets.test.ts
  • src/agents/prepared-model-runtime.scoped-refresh.test.ts

x7767

  • extensions/workboard/src/cli.test.ts
  • extensions/workboard/src/command.test.ts
  • extensions/workboard/src/dispatcher-ownership.test.ts
  • extensions/workboard/src/dispatcher.test.ts
  • extensions/workboard/src/gateway.cards-list.test.ts
  • extensions/workboard/src/gateway.test.ts
  • extensions/workboard/src/test/interaction-fixtures.ts

Test metadata: config/test-mock-exports-baseline.txt is shrink-only (-10 lines), exactly the obsolete rows named by hosted CI.

@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 blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 17, 2026 16:42
@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-17T17:18:53.970140Z ea81d90 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: matrix Channel integration: matrix channel: signal Channel integration: signal app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes commands Command implementations agents Agent runtime and tooling plugin: workboard extensions: browser size: XL labels Oct 17, 2026
@steipete
steipete disabled auto-merge October 17, 2026 16:50
@steipete
steipete force-pushed the tcr/land-d228-1792254945 branch from 1cce38f to d985836 Compare October 17, 2026 16:54
@steipete
steipete enabled auto-merge (squash) October 17, 2026 16:54
@steipete
steipete disabled auto-merge October 17, 2026 17:04
@steipete
steipete enabled auto-merge (squash) October 17, 2026 17:16
@steipete
steipete merged commit a7e3184 into main Oct 17, 2026
140 of 142 checks passed
@steipete
steipete deleted the tcr/land-d228-1792254945 branch October 17, 2026 17:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
* test(signal): deslop x7765 tests

* test(signal): compact x7765 fixtures and assertions

* test(upgrade-survivor): deslop x7763 tests

* test(upgrade-survivor): deslop x7763 fixtures and assertions

* test(upgrade-survivor): tighten x7763 fixture reuse

* test(scripts): deslop x7758 tests

* test(scripts): deslop x7758 tests

* test(matrix): deslop x7764 tests

* test(matrix): deslop x7764 tests

* test(matrix): deslop x7764 tests

* test(update-cli): deslop x7766 tests

* test(update-cli): deslop x7766 tests

* test(update-cli): deslop x7766 tests

* test(doctor): deslop x7761 tests

* test(doctor): deslop x7761 tests

* test(ui): deslop x7769 tests

* test(ui): deslop x7769 tests

* test(gateway): deslop x7768 tests

* test(gateway): deslop x7768 tests

* test(gateway): deslop x7768 tests

* test(browser): deslop x7770 tests

* test(browser): deslop x7770 tests

* test(qa-lab): deslop x7773 tests

* test(qa-lab): deslop x7773 tests

* test(agents): deslop x7772 tests

* test(agents): deslop x7772 tests

* test(agents): deslop x7772 tests

* test(workboard): deslop x7767 tests

* test(workboard): deslop x7767 tests

* test(workboard): align x7767 dispatch fixture types

* test: repair d228 fixtures against current contracts

* test: retain boundary coverage in d228 cleanup
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: matrix Channel integration: matrix channel: signal Channel integration: signal cli CLI command changes commands Command implementations extensions: browser gateway Gateway runtime plugin: workboard size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant