Repository navigation
test(fixtures): remove low-value tests (batch d228) - #175702
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated 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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
1cce38f to
d985836
Compare
* 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
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
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.
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.tsextensions/signal/src/accounts.test.tsextensions/signal/src/approval-reactions.test.tsextensions/signal/src/client-container.test.tsextensions/signal/src/client-container.websocket.test.tsextensions/signal/src/client-unix.test.tsextensions/signal/src/client.test-support.tsextensions/signal/src/client.test.tsextensions/signal/src/core.test.tsx7763
test/scripts/upgrade-survivor-mobile-pairing.test.tstest/scripts/upgrade-survivor-native-app-server.test.tstest/scripts/upgrade-survivor-native-assignments.test.tstest/scripts/upgrade-survivor-package-activation.test.tstest/scripts/upgrade-survivor-plugin-policy.test.tstest/scripts/upgrade-survivor-plugin-registry.test.tstest/scripts/upgrade-survivor-probe-gateway.test.tstest/scripts/upgrade-survivor-project-worktree-startup.test.tsx7758
test/scripts/realtime-talk-live-smoke.test.tstest/scripts/release-approval-receipt.test.tstest/scripts/release-approval-workflows.test.tsx7764
extensions/matrix/src/matrix/client/config.test.tsextensions/matrix/src/matrix/client/create-client.storage.test.tsextensions/matrix/src/matrix/client/file-sync-store.sdk.test.tsextensions/matrix/src/matrix/client/file-sync-store.test.tsextensions/matrix/src/matrix/client/shared.lifecycle.test.tsextensions/matrix/src/matrix/client/shared.test.tsextensions/matrix/src/matrix/client/storage.test.tsextensions/matrix/src/matrix/client/sync-store.test-support.tsx7766
src/cli/update-cli/update-command-executor-native-runtime.test-support.tssrc/cli/update-cli/update-command-executor-reader.test.tssrc/cli/update-cli/update-command-executor-retained.test.tssrc/cli/update-cli/update-command-executor-settlement.test.tssrc/cli/update-cli/update-command-failure-recovery.test.tssrc/cli/update-cli/update-command-finalize-refusal.test.tssrc/cli/update-cli/update-command-foreground.test.tssrc/cli/update-cli/update-command-fresh-doctor-authority.test.tsx7761
src/commands/doctor/shared/automatic-config-repair.test.tssrc/commands/doctor/shared/channel-doctor.test.tssrc/commands/doctor/shared/channel-legacy-config-migrate.test.tssrc/commands/doctor/shared/channel-plugin-blockers.test.tssrc/commands/doctor/shared/codex-route-session-repair.test.tssrc/commands/doctor/shared/codex-route-warnings.test.tssrc/commands/doctor/shared/config-flow-steps.test.tssrc/commands/doctor/shared/context-engine-host-compat.test.tsx7769
ui/src/e2e/chat-large-paste-99213.e2e.test.tsui/src/e2e/chat-live-final-order.e2e.test.tsui/src/e2e/chat-markdown-alignment.e2e.test.tsui/src/e2e/chat-markdown-table-interactions.e2e.test.tsui/src/e2e/chat-mention-search.e2e.test.tsui/src/e2e/chat-metadata-observation.e2e.test.tsui/src/e2e/chat-mobile-bubble-margin.test-support.tsx7768
src/gateway/session-observer-model.test.tssrc/gateway/session-observer-preparation.test.tssrc/gateway/session-observer-suite.test-support.tssrc/gateway/session-observer.terminal.test.tssrc/gateway/session-observer.test.tssrc/gateway/session-observer.worker.test.tssrc/gateway/session-projection-allocation.benchmark.test.tssrc/gateway/session-repository-materialization.test.tssrc/gateway/session-repository-publication-handoff.test.tsx7770
extensions/browser/chrome-extension/background.access-mode.test.tsextensions/browser/chrome-extension/background.creation-lifecycle.test.tsextensions/browser/chrome-extension/background.document-navigation.test.tsextensions/browser/chrome-extension/background.fetch-continuation.test.tsextensions/browser/chrome-extension/background.initial-target.test.tsextensions/browser/chrome-extension/background.lifecycle-test-helpers.tsextensions/browser/chrome-extension/background.native-cleanup.test.tsextensions/browser/chrome-extension/background.relay-lifecycle.test.tsextensions/browser/chrome-extension/background.test.tsx7773
test/e2e/qa-lab/plugins/candidate-test-support.tstest/e2e/qa-lab/plugins/canvas-agent-node.e2e.test.tstest/e2e/qa-lab/plugins/clawhub-release-candidate-install.test.tstest/e2e/qa-lab/plugins/clawhub-release-policy-contracts.e2e.test.tstest/e2e/qa-lab/plugins/discord-show-widget-contextual-presenter.e2e.test.tstest/e2e/qa-lab/plugins/feishu-crabline.real-gateway.candidate.e2e.test.mtstest/e2e/qa-lab/plugins/file-transfer-exact-approval.e2e.test.tstest/e2e/qa-lab/plugins/node-gateway-fixture.tstest/e2e/qa-lab/plugins/plugin-lifecycle-probe.e2e.test.tstest/e2e/qa-lab/plugins/slack-crabline-roundtrip.candidate.e2e.test.mtsx7772
src/agents/prepared-model-catalog-worker.directory.integration.test.tssrc/agents/prepared-model-catalog-worker.metadata.integration.test.tssrc/agents/prepared-model-catalog-worker.native-renewal.integration.test.tssrc/agents/prepared-model-catalog-worker.native.integration.test.tssrc/agents/prepared-model-catalog-worker.reuse.integration.test.tssrc/agents/prepared-model-catalog-worker.secrets.test.tssrc/agents/prepared-model-runtime.scoped-refresh.test.tsx7767
extensions/workboard/src/cli.test.tsextensions/workboard/src/command.test.tsextensions/workboard/src/dispatcher-ownership.test.tsextensions/workboard/src/dispatcher.test.tsextensions/workboard/src/gateway.cards-list.test.tsextensions/workboard/src/gateway.test.tsextensions/workboard/src/test/interaction-fixtures.tsTest metadata:
config/test-mock-exports-baseline.txtis shrink-only (-10 lines), exactly the obsolete rows named by hosted CI.