Skip to content

test(core,plugins,scripts): remove low-value tests (batch d354) - #178949

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d354-1792549411
Oct 21, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d354-1792549411

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated test setup, expected-object construction, and assertion boilerplate obscure the contracts covered by these suites. This batch consolidates that scaffolding without changing product behavior.

User Impact

No user-visible behavior, API, configuration, or migration changes. Production LOC: +0 / -0. Test and test-support LOC: +5533 / -8926, net -3393, across 99 test/support files. The mock-export baseline additionally shrinks by two obsolete entries; total diff: 100 files, +5533 / -8928 (net -3395).

Why This Change Was Made

Replay 29 of 30 requested campaign commits onto pinned main b6bf52d. Shared fixtures and table-driven cases retain distinct security, authority, lifecycle, cancellation, and cleanup assertions. The only newly added file is a QA Lab test-support helper.

Skipped 7529e8f199b916c430d8ac49d66bde5806d49a08 (z0575): all eight files conflicted with substantially newer main tests; main's cases and fixtures were retained unchanged. No claim that those cleanups are already equivalent.

Conflict resolutions: all three z0576 commits retain current Doctor refusal/recovery wording while consolidating assertions and deadline cases. For both z0586 commits, archive-helpers.test.ts stays unchanged because main has additional archive/root-layout contracts; backup-volatile-filter.test.ts retains every current path-classification case and only takes the first commit's safe shared path assertions. Its second conflicting rewrite was dropped. All other requested commits applied.

CODEOWNERS: no changed path matches the current CODEOWNERS entries. No changelog edit (release-owned).

Evidence

Run 39535717784 accepted both mock-isolation explanations and requested pruning their two obsolete baseline entries. Removed exactly those entries; no new exceptions or test changes. Independent review of the two-line baseline removal was scoped-clean. Its completed lint, type, and changed-file test jobs passed; final-head CI remains the merge gate.

Fresh-head run 39534381708 passed the repaired lint/type checks and changed-file test jobs, but mock-exports rejected two modified full mock factories. Added narrowly scoped mock-isolation explanations for fixture-owned secret resolution and simulated Gateway lifecycle/RPCs; independent review confirmed both comments are accurate. All other baseline ratchets in that run passed. A final fresh-head CI run remains required.

Initial hosted run 39533390444 found batch-caused test-type and type-aware lint errors. Repair commit restores stale fixture references, contextual typing for legacy config fixtures and approval callbacks, the real internal realtime request type, a stable local instance capture, undefined filtering before Promise.allSettled, and an Error-only throw. No casts, suppressions, assertions, or production behavior were weakened. Fresh-head CI is required; the failed initial run is not passing evidence.

  • Dependency setup: pnpm install --frozen-lockfile --prefer-offline passed.
  • Changed files: node_modules/.bin/oxfmt --write passed; node_modules/.bin/oxlint -c .oxlintrc.json exited 0 on all 99 changed TS files; git diff --check against the pinned base passed.
  • Tests, check-changed, typechecking, coverage, and Testbox were deliberately not run under the operator's CI-only rule. Hosted openclaw/ci-gate is the required proof. No Testbox leases created.
  • Independent full-diff review completed. Restored the non-empty conflicting crestodian fixture. Rejected stdout-cleanup finding: the existing afterEach calls vi.restoreAllMocks before database cleanup. Rejected duplicate Android-wiring assertion request: ci-workflow-planning.test.ts already exercises actual lane selection and success/skipped/failure/cancelled gate outcomes. A second independent review of the repair diff was scoped-clean at P0–P2.
  • Source shard reports explicitly say coverage was not run under CI-only mode; they contain no measured coverage totals. Those reports are not coverage proof.

Replayed shard inventory

Counts below are the actual final diff against pinned main, including all listed passes for each shard. Declarations are static syntax counts, not executed or expanded case totals.

Shard Files Test/support LOC before → after Declarations before → after Coverage totals from report
z0576 8 1246 → 997 (-249) 22 → 19 Not run: CI-only
z0577 8 1242 → 961 (-281) 16 → 14 Not run: CI-only
z0578 5 1240 → 951 (-289) 34 → 32 Not run: CI-only
z0579 8 1242 → 1029 (-213) 22 → 22 Not run: CI-only
z0580 8 1059 → 795 (-264) 11 → 9 Not run: CI-only
z0581 8 1237 → 946 (-291) 32 → 30 Not run: CI-only
z0582 7 1051 → 884 (-167) 13 → 11 Not run: CI-only
z0583 8 1236 → 875 (-361) 27 → 27 Not run: CI-only
z0584 8 1234 → 1014 (-220) 56 → 55 Not run: CI-only
z0585 8 1234 → 943 (-291) 43 → 38 Not run: CI-only
z0586 7 1126 → 982 (-144) 25 → 24 Not run: CI-only
z0587 8 1226 → 919 (-307) 25 → 22 Not run: CI-only
z0588 8 1231 → 915 (-316) 60 → 56 Not run: CI-only

z0575 is omitted from this inventory because its entire commit was skipped.

z0576 changed files
  • src/commands/doctor-hosted-gateway.test.ts
  • src/commands/doctor-install-policy.test.ts
  • src/commands/doctor-legacy-config.secret-inputs.test.ts
  • src/commands/doctor-lint.crabbox.test.ts
  • src/commands/doctor-lint.native-capture.test.ts
  • src/commands/doctor-lint.plugin-availability.test.ts
  • src/commands/doctor-lint.snapshot-cleanup.test.ts
  • src/commands/doctor-maintenance.agent-lease-wait.test.ts
z0577 changed files
  • extensions/acpx/src/config.test.ts
  • extensions/acpx/src/pi-session-catalog-node.test.ts
  • extensions/acpx/src/process-lease.test.ts
  • extensions/acpx/src/runtime-native-permissions.process.test.ts
  • extensions/acpx/src/runtime-preactive-cancellation.process.test.ts
  • extensions/acpx/src/runtime-process-cleanup.process.test.ts
  • extensions/acpx/src/runtime-process.test-support.ts
  • extensions/acpx/src/runtime.admission-retention.test-support.ts
z0578 changed files
  • extensions/matrix/src/matrix/account-state.postgres.test.ts
  • extensions/matrix/src/matrix/client.test.ts
  • extensions/matrix/src/matrix/config-update.import.test.ts
  • extensions/matrix/src/matrix/deps.test.ts
  • extensions/matrix/src/matrix/profile.test.ts
z0579 changed files
  • extensions/openai/realtime-quicksilver-socket-adapter.test.ts
  • extensions/openai/realtime-quicksilver-socket-worker.test.ts
  • extensions/openai/realtime-quicksilver-transcript-publication.test.ts
  • extensions/openai/realtime-sideband-call.test.ts
  • extensions/openai/realtime-talk-defaults.test.ts
  • extensions/openai/realtime-transcription-provider.test-support.ts
  • extensions/openai/realtime-voice-outgoing-response.test.ts
  • extensions/openai/realtime-voice.optional-capture.test.ts
z0580 changed files
  • test/e2e/qa-lab/runtime/gateway-provider-refusal-product-proof.e2e.test.ts
  • test/e2e/qa-lab/runtime/gateway-provider-timeout-recovery.fixture.test.ts
  • test/e2e/qa-lab/runtime/gateway-rate-limit-prompt-cache.e2e.test.ts
  • test/e2e/qa-lab/runtime/gateway-rpc-models.e2e.test.ts
  • test/e2e/qa-lab/runtime/gateway-rpc-tools-skills.e2e.test.ts
  • test/e2e/qa-lab/runtime/gateway-rpc.test-support.ts
  • test/e2e/qa-lab/runtime/gateway-whatsapp-login-authority.e2e.test.ts
  • test/e2e/qa-lab/runtime/mcp-gateway-transport.e2e.test.ts
z0581 changed files
  • test/scripts/agent-plugin-gateway-e2e.test.ts
  • test/scripts/android-access-workflow.test.ts
  • test/scripts/android-pin-version.test.ts
  • test/scripts/android-release-artifacts.test.ts
  • test/scripts/android-release-e2e-diagnostics.test.ts
  • test/scripts/android-release-e2e-workflow.test.ts
  • test/scripts/android-store-version.test.ts
  • test/scripts/anthropic-cache-prefix-stability.test.ts
z0582 changed files
  • src/gateway/desktop/audio-observe.integration.test.ts
  • src/gateway/desktop/audio.test-support.ts
  • src/gateway/desktop/computer-process.runtime.test.ts
  • src/gateway/desktop/desktop.test-support.ts
  • src/gateway/desktop/host-observe.integration.test.ts
  • src/gateway/desktop/observe-bridge.remote-ingress.test.ts
  • src/gateway/desktop/rfb-view-only-filter.test.ts
z0583 changed files
  • src/security/audit-gateway-auth-selection.test.ts
  • src/security/audit-gateway-http-auth.test.ts
  • src/security/audit-gateway.test.ts
  • src/security/audit-node-command-findings.test.ts
  • src/security/audit-rosterless.test.ts
  • src/security/audit-sandbox-browser.test.ts
  • src/security/audit-small-model-risk.test.ts
  • src/security/audit-summary.test.ts
z0584 changed files
  • extensions/whatsapp/src/accounts.test.ts
  • extensions/whatsapp/src/accounts.whatsapp-auth.test.ts
  • extensions/whatsapp/src/approval-native.test.ts
  • extensions/whatsapp/src/auto-reply.web-auto-reply.routing.test.ts
  • extensions/whatsapp/src/channel-actions.test.ts
  • extensions/whatsapp/src/channel.acp-bindings.test.ts
  • extensions/whatsapp/src/channel.status.test.ts
  • extensions/whatsapp/src/doctor.test.ts
z0585 changed files
  • src/agents/identity-avatar.test.ts
  • src/agents/identity.test.ts
  • src/agents/internal-events.test.ts
  • src/agents/internal-runtime-context.test.ts
  • src/agents/internal-session-effects.cleanup.test.ts
  • src/agents/interrupted-input-context.integration.test.ts
  • src/agents/isolated-completion.plugin-scope.test.ts
  • src/agents/isolated-completion.usage.test.ts
z0586 changed files
  • src/infra/backup-create-family.test-support.ts
  • src/infra/backup-create-stream.test.ts
  • src/infra/backup-create.worktrees.test.ts
  • src/infra/backup-database-resources.test.ts
  • src/infra/backup-retention.test.ts
  • src/infra/backup-sqlite-snapshot.performance.test.ts
  • src/infra/backup-volatile-filter.test.ts
z0587 changed files
  • src/commands/doctor/shared/legacy-config-migrations.agent-rosters.test.ts
  • src/commands/doctor/shared/legacy-config-migrations.runtime.system-agent.test.ts
  • src/commands/doctor/shared/legacy-config-write-ownership.test.ts
  • src/commands/doctor/shared/legacy-context-budget.test.ts
  • src/commands/doctor/shared/legacy-runtime-session-migration.test.ts
  • src/commands/doctor/shared/legacy-tools-by-sender.test.ts
  • src/commands/doctor/shared/missing-configured-plugin-install.health.test.ts
  • src/commands/doctor/shared/missing-configured-plugin-install.test-helpers.ts
z0588 changed files
  • src/shared/assistant-error-format.test.ts
  • src/shared/bounded-serial-queue.test.ts
  • src/shared/channel-read-authority.test.ts
  • src/shared/chat-message-content.test.ts
  • src/shared/device-bootstrap-profile.test.ts
  • src/shared/device-pairing-access.test.ts
  • src/shared/entry-status.test.ts
  • src/shared/frontmatter.test.ts

@clawsweeper

clawsweeper Bot commented Oct 21, 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 21, 2026 02:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T03:17:31.507650Z c2c8e20 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: whatsapp-web Channel integration: whatsapp-web gateway Gateway runtime commands Command implementations agents Agent runtime and tooling extensions: acpx extensions: openai size: XL labels Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 02:36
@steipete
steipete enabled auto-merge (squash) October 21, 2026 02:41
@steipete
steipete disabled auto-merge October 21, 2026 02:52
@steipete
steipete enabled auto-merge (squash) October 21, 2026 02:55
@steipete
steipete disabled auto-merge October 21, 2026 03:06
@steipete
steipete enabled auto-merge (squash) October 21, 2026 03:09
@steipete
steipete merged commit 8792e3a into main Oct 21, 2026
129 of 131 checks passed
@steipete
steipete deleted the tcr/land-d354-1792549411 branch October 21, 2026 03:37
steipete added a commit that referenced this pull request Oct 21, 2026
Reverse the fetch transport change from #178949 so the virtual-clock fixture uses its previous callback-based loopback client. Keep all provider hold, progress, bootstrap, cleanup, and deadline assertions unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…claw#178949)

* test(acpx): deslop z0577 tests

* test(acpx): deslop z0577 tests

* test(matrix): deslop z0578 tests

* test(matrix): deslop z0578 tests

* test(qa-lab): deslop z0580 tests

* test(qa-lab): deslop z0580 tests

* test(openai): deslop z0579 tests

* test(openai): deslop z0579 tests

* test(openai): deslop z0579 tests

* test(security): deslop z0583 tests

* test(desktop): deslop z0582 tests

* test(desktop): deslop z0582 tests

* test(desktop): deslop z0582 tests

* test(whatsapp): deslop z0584 tests

* test(scripts): deslop z0581 tests

* test(scripts): deslop z0581 tests

* test(scripts): deslop z0581 tests

* test(doctor): deslop z0576 tests

* test(doctor): deslop z0576 tests

* test(doctor): deslop z0576 tests

* test(shared): deslop z0588 tests

* test(shared): deslop z0588 tests

* test(agents): deslop z0585 tests

* test(agents): deslop z0585 tests

* test(agents): deslop z0585 tests

* test(doctor): deslop z0587 tests

* test(doctor): deslop z0587 tests

* test(infra): deslop z0586 tests

* test(infra): deslop z0586 tests

* test: preserve fixture contracts after batch cleanup

* test: explain isolated provider and gateway mocks

* test: prune explained mocks from export baseline
roboclaw-bot added a commit to MertBasar0/openclaw that referenced this pull request Oct 21, 2026
Resolve the worker test import conflict with openclaw#178949, which removed the baseline ws client and audio clock imports.

Co-authored-by: jalehman <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
Reverse the fetch transport change from openclaw#178949 so the virtual-clock fixture uses its previous callback-based loopback client. Keep all provider hold, progress, bootstrap, cleanup, and deadline assertions unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: matrix Channel integration: matrix channel: whatsapp-web Channel integration: whatsapp-web commands Command implementations extensions: acpx extensions: openai gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant