Skip to content

test: remove low-value tests (batch d371) - #179267

Merged
steipete merged 31 commits into
mainfrom
tcr/land-d371-1792570873
Oct 21, 2026
Merged

steipete merged 31 commits into
mainfrom
tcr/land-d371-1792570873

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Test fixtures and repeated assertions add maintenance overhead. This replays the bounded d371 cleanup batch onto main at 7f6d2b75845e.

User Impact

No intended production or UI behavior change. All 72 changed files are tests or test-only support; production LOC is +0/-0. Test/support LOC is +4,807/-7,540 (net -2,733).

Why This Change Was Made

Consolidates repeated fixtures, setup/cleanup, table cases, and redundant assertions while retaining distinct boundary coverage. This batch includes 27 of the 30 supplied commits, in order. No production seams are removed.

Replay decisions

  • Skipped 074bd6f3d2f2 and ff5ea6d7d332 (z0795) as a pair: main has newer selected-child exit observation and process cleanup changes, including d4cc34f495f5; preserving current main is safer than transplanting the conflicting lifecycle refactor.
  • Skipped 4ac5676f85bb (z0805): the Twilio cleanup overlaps retained webhook/terminal-state tests and main's diagnostic-removal change f7908148d72e. Kept main's entire test file.
  • z0792: dropped the second commit's conflicted discovery-test hunk, retaining the first commit's clean changes and main's explicit discovery counters and current scoped-report API. Applied the other files and follow-up commit.
  • z0809: retained main's trusted external bridge-command case and adapted it to the consolidated invocation fixture; the non-Meet URL negative case remains in the new rejection table. All other nonconflicting hunks applied.
  • No baseline files or production files changed. No changed path matches the current CODEOWNERS rules.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <72 changed files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <72 changed files>: exited 0.
  • git diff --check 7f6d2b75845efbe8edd89a7117de1f540a594af4: passed.
  • Per the explicit CI-only work order, no local tests, coverage, typecheck, check-changed, or Testbox execution. No leases created. Required openclaw/ci-gate supplies execution proof. Independent review runs during CI.
  • Source reports explicitly state coverage was not run under CI-only mode; no coverage totals or <=1% coverage claim is available. The measurements below are from the actual replay, not the older report snapshots. Declaration counts are static it/test call-site counts (tables count once), not executed test counts. Runtime/case preservation is subject to CI and review.
Per-shard replay measurements and files
Shard Test/support LOC before → after Static declarations before → after In-shard coverage totals
z0797 896 → 666 18 → 18 Not run (CI-only source report)
z0801 971 → 770 37 → 37 Not run (CI-only source report)
z0800 890 → 633 24 → 19 Not run (CI-only source report)
z0802 735 → 531 18 → 18 Not run (CI-only source report)
z0803 878 → 658 18 → 17 Not run (CI-only source report)
z0799 893 → 677 19 → 15 Not run (CI-only source report)
z0807 853 → 729 16 → 16 Not run (CI-only source report)
z0792 962 → 731 18 → 14 Not run (CI-only source report)
z0806 869 → 601 29 → 27 Not run (CI-only source report)
z0804 877 → 714 9 → 9 Not run (CI-only source report)
z0809 838 → 614 29 → 24 Not run (CI-only source report)
z0812 830 → 619 28 → 28 Not run (CI-only source report)
z0810 835 → 769 14 → 14 Not run (CI-only source report)
z0808 923 → 805 9 → 9 Not run (CI-only source report)
z0795 Unchanged (skipped) Unchanged Not run (CI-only source report)
z0805 Unchanged (skipped) Unchanged Not run (CI-only source report)

z0797

  • extensions/workboard/src/dispatcher.races.test.ts
  • extensions/workboard/src/dispatcher.workspace-diagnostics.test.ts
  • extensions/workboard/src/lifecycle-sync.archived-session.test.ts
  • extensions/workboard/src/store-lifecycle.test.ts
  • extensions/workboard/src/store-subscription-scope.test.ts
  • extensions/workboard/src/store.attempts.test.ts

z0801

  • packages/gateway-protocol/src/cron-validators.test.ts
  • packages/gateway-protocol/src/openclaw.schema.test.ts
  • packages/gateway-protocol/src/session-approval-validators.test.ts
  • packages/gateway-protocol/src/transcripts.test.ts
  • packages/gateway-protocol/src/worker-session-tools-compat.test.ts

z0800

  • extensions/ollama/src/setup-pull.test.ts
  • extensions/ollama/src/stream-plain-text-tool-call.transport.test.ts
  • extensions/ollama/src/stream-runtime.hosted-thinking.test.ts
  • extensions/ollama/src/stream-wait.test.ts
  • extensions/ollama/src/usage.test.ts
  • extensions/ollama/src/wsl2-crash-loop-check.test.ts

z0802

  • packages/agent-core/src/harness/compaction/compaction-cut-point.test.ts
  • packages/agent-core/src/harness/compaction/compaction-provenance.test.ts
  • packages/agent-core/src/harness/compaction/compaction-summary-cap.test.ts
  • packages/agent-core/src/harness/compaction/compaction-summary-output-budget.test.ts

z0803

  • extensions/synology-chat/src/outbound-media.test.ts

z0799

  • src/gateway/worker-environments/workspace-generated-paths.test.ts
  • src/gateway/worker-environments/workspace-manifest.test.ts
  • src/gateway/worker-environments/workspace-quiescence.test.ts
  • src/gateway/worker-environments/workspace-result-staging.concurrent.test.ts
  • src/gateway/worker-environments/workspace-rsync-path.test.ts

z0807

  • extensions/browser/src/browser/routes/agent.act.insert-text.chromium.test.ts
  • extensions/browser/src/browser/routes/agent.content.chromium.test.ts
  • extensions/browser/src/browser/routes/basic.lifecycle-admission.test.ts
  • extensions/browser/src/browser/routes/chromium.test-support.ts
  • extensions/browser/src/browser/routes/existing-session.test-support.ts
  • extensions/browser/src/browser/routes/profile-capabilities.test.ts
  • extensions/browser/src/browser/routes/request.test-support.ts
  • extensions/browser/src/browser/routes/tabs.attach-only.test.ts

z0792

  • src/plugins/stale-local-bundled-plugin-install-records.test.ts
  • src/plugins/status-effective-plugin-discovery.test.ts
  • src/plugins/tool-factory-context.test.ts
  • src/plugins/tools.onboarding.test.ts
  • src/plugins/tools.optional.test-helpers.ts

z0806

  • src/infra/net/fetch-guard.authority.test.ts
  • src/infra/net/guarded-body-stream.test.ts
  • src/infra/net/node-proxy-agent.test.ts
  • src/infra/net/pinned-dispatcher-pool.test.ts
  • src/infra/net/proxy-env.test.ts
  • src/infra/net/runtime-fetch.test.ts

z0804

  • src/gateway/server.config-record-keys.test.ts
  • src/gateway/server.health-request-lifetime.test.ts
  • src/gateway/server.mcp-app-discovery.test.ts
  • src/gateway/server.sessions-send.direct-reply.test-support.ts
  • src/gateway/server.sessions.compaction-accounting.test.ts
  • src/gateway/server.sessions.process-cleanup.test.ts
  • src/gateway/server.sessions.reset-acp-authority.test.ts
  • src/gateway/server.worktree-preparation.test.ts

z0809

  • extensions/google-meet/src/cli-export.test.ts
  • extensions/google-meet/src/config.test.ts
  • extensions/google-meet/src/drive.test.ts
  • extensions/google-meet/src/node-invoke-policy.test.ts
  • extensions/google-meet/src/oauth.test.ts
  • extensions/google-meet/src/runtime-cleanup.test.ts

z0812

  • extensions/tlon/src/urbit/auth.ssrf.test.ts
  • extensions/tlon/src/urbit/channel-ops.test.ts
  • extensions/tlon/src/urbit/channel-ops.transport.test.ts
  • extensions/tlon/src/urbit/fetch.test.ts
  • extensions/tlon/src/urbit/send.test.ts
  • extensions/tlon/src/urbit/upload.test.ts

z0810

  • ui/src/pages/connection/connection-page.test.ts

z0808

  • src/infra/database-engine/subagent-registry.conformance.test.ts
  • src/infra/database-engine/transcript-reader.conformance.test.ts
  • src/infra/database-engine/transcript-reports.conformance.test.ts
  • src/infra/database-engine/update-command.conformance.test.ts
  • src/infra/database-engine/worktree-backup-discovery.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 in progress

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

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 21, 2026 08:23
@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-21T09:17:22.287261Z bbaf919 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.

@steipete

Copy link
Copy Markdown
Contributor Author

Independent review completed all two passes through P2. All three findings were checked against current source and rejected; no actionable finding remains:

  • Wizard fixture: packages/gateway-protocol/src/schema/wizard.ts declares executor with Type.Optional. WizardStepSchema is a single closed object, not a discriminated object union; its placeholder and options fields are preserved by the existing Omit. The alleged missing required field/type collapse does not apply.
  • Connection-page fixture: packages/gateway-protocol/src/schema/runtime-vitals.ts declares degradedSinceMs with Type.Optional. SystemInfoResult derives directly from that schema via Static; the omitted timestamp is permitted.
  • Ordinary workspace size guard: the unchanged workspace-reconcile-recovery.test.ts case “returns only changed current payload paths” constructs the ordinary large file at MAX_RECONCILIATION_FILE_BYTES + 1 and asserts rejection. workerWorkspaceTransferPaths in workspace-result-staging.ts delegates directly to parseChangedWorkspaceResult. Removing this limit from the owner therefore still fails retained boundary proof; the deleted assertion was duplicate coverage.

Auto-merge was disabled by this batch's lander while investigating and restored on the unchanged reviewed head 1c5d5e212e3f211bfd0049da136bd5f6d75d1ac4. No local tests/typechecks were run, per the CI-only rule. Hosted CI remains the execution proof.

@steipete
steipete enabled auto-merge (squash) October 21, 2026 08:30
@steipete
steipete disabled auto-merge October 21, 2026 08:34
@steipete
steipete enabled auto-merge (squash) October 21, 2026 08:37
@steipete

Copy link
Copy Markdown
Contributor Author

CI correction for head 516fda7830329fba220d64123285df8641525e4f:

The first run failed only the mock-export ratchet at extensions/ollama/src/wsl2-crash-loop-check.test.ts: https://github.com/openclaw/openclaw/actions/runs/39568958684/job/119118783029. Restored that entire file byte-for-byte to pinned main rather than changing the mock-export baseline or adding a suppression. No assertion, retry, timeout, or guard was weakened. Focused independent re-review through P2 is scoped-clean.

Updated replay totals supersede the initial body measurements: 71 files, test/support +4,795/-7,499 (net -2,704); production +0/-0. z0800 now touches only the other five listed Ollama files: 781 → 553 LOC, static declarations 19 → 14. All other shard figures and replay decisions remain unchanged. Original 27 supplied commits are represented, followed by the one hunk-restoration commit; the same three supplied commits remain skipped.

Oxfmt, plain oxlint (exit 0), and git diff --check passed again. No tests, coverage, typechecks, check-changed, or Testbox runs locally. Fresh-head hosted CI is the proof; squash auto-merge is pinned to this head. This comment updates the evidence without editing the PR body and re-triggering extra checks.

@steipete
steipete disabled auto-merge October 21, 2026 08:47
@steipete
steipete enabled auto-merge (squash) October 21, 2026 08:52
@steipete
steipete disabled auto-merge October 21, 2026 09:03
@steipete
steipete enabled auto-merge (squash) October 21, 2026 09:04
@steipete

Copy link
Copy Markdown
Contributor Author

CI fixture repairs are pushed in d87622541e4cd8c2926adcc40c7b0d85fee0aa3b and bbaf919af14f8d5f7263161ff2a2f7e16796144a (after the WSL2 hunk restoration):

  • Type-aware lint: dispatcher assertions now retain the actual mock functions; the V2 plugin callback keeps its context receiver.
  • Core test types: explicitly typed the install-record table, wrapped gate release for the abort listener, and reused the known scope key rather than an optional property.
  • Extension test types: made the Ollama provider URL callback argument optional with its existing undefined default, matching the shorter rows.
  • Follow-up lint: the remaining unbound-method diagnostic identified the destructured tool fixture helper itself. Converted that stateless helper to an arrow function. The preceding callback wrapper did not address this location; the exact diagnostic is now addressed without a suppression.

No assertions, cases, timeouts, retries, or production behavior were weakened. Independent review of all six repairs is scoped-clean through P2. Oxfmt, plain oxlint (exit 0), and diff check passed over all changed files; no local tests/typechecks/check-changed or Testbox use.

Current total: 71 test/support files, +4,847/-7,547 (net -2,700). Production remains +0/-0. The 27 replayed supplied commits and three skipped commits are unchanged; three follow-up commits restore the WSL2 hunk and repair these fixture contracts. Focused review of the last helper correction is also scoped-clean. Fresh exact-head CI is required, with squash auto-merge pinned to bbaf919af14f8d5f7263161ff2a2f7e16796144a.

@steipete
steipete disabled auto-merge October 21, 2026 09:21
@steipete

Copy link
Copy Markdown
Contributor Author

The latest lint follow-up is ac39d04cb5f2a3d3da01de1ac0be26432b70f518: declared the optional Ollama table argument as providerBaseUrl?: string instead of assigning an undefined default. This addresses the exact no-useless-default-assignment diagnostic in extension lint, while keeping the shorter rows type-correct. Independent scoped review is clean; formatting, plain oxlint, and diff check pass. No assertion or case changes; no local tests/typecheck/Testbox runs.

Totals remain 71 test/support files, +4,847/-7,547 (net -2,700); production +0/-0. The supplied-commit accounting remains 27 applied and three skipped, now with four focused follow-up commits. Auto-merge is pinned to the new head; final proof must come from its fresh hosted CI.

@steipete
steipete enabled auto-merge (squash) October 21, 2026 09:23
@steipete
steipete merged commit 5e8e46c into main Oct 21, 2026
117 checks passed
@steipete
steipete deleted the tcr/land-d371-1792570873 branch October 21, 2026 09:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
* test(workboard): deslop z0797 tests

* test(workboard): deslop z0797 tests

* test(gateway-protocol): deslop z0801 tests

* test(ollama): deslop z0800 tests

* test(ollama): deslop z0800 tests

* test(compaction): deslop z0802 tests

* test(synology-chat): deslop z0803 tests

* test(gateway): deslop z0799 tests

* test(gateway): deslop z0799 tests

* test(gateway): deslop z0799 tests

* test(browser): deslop z0807 tests

* test(plugins): deslop z0792 tests

* test(plugins): deslop z0792 tests

* test(plugins): deslop z0792 tests

* test(infra): deslop z0806 tests

* test(infra): deslop z0806 tests

* test(gateway): deslop z0804 tests

* test(gateway): deslop z0804 tests

* test(gateway): deslop z0804 tests

* test(google-meet): deslop z0809 tests

* test(google-meet): deslop z0809 tests

* test(tlon): deslop z0812 tests

* test(connection): deslop z0810 tests

* test(connection): deslop z0810 tests

* test(connection): deslop z0810 tests

* test(database-engine): deslop z0808 tests

* test(database-engine): deslop z0808 tests

* test(ollama): preserve grandfathered WSL2 mock fixture

* test: preserve fixture types and method receivers

* test(plugins): keep extracted fixture helper bound

* test(ollama): declare optional provider URL explicitly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant