Skip to content

test(core,ui,browser): remove low-value tests (batch d366) - #179129

Merged
steipete merged 31 commits into
mainfrom
tcr/land-d366-1792562437
Oct 21, 2026
Merged

steipete merged 31 commits into
mainfrom
tcr/land-d366-1792562437

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated fixtures and assertion plumbing make these test suites harder to maintain.

User Impact

No user-visible or production behavior changes. This batch consolidates test setup and equivalent assertions while retaining distinct error, security, cancellation, recovery, and lifecycle checks.

Why This Change Was Made

Replayed 29 of the 30 requested commits onto pinned main 71b42f2f6ad3930c4f45514c133f3183aafb0de5. The test-only helpers consolidate subprocess observation, Postgres teardown, secret-provider fixtures, and inference-state cleanup. The requested batch is kept together; no production owner or public contract changes.

Production LOC: +0 / -0. Test/support LOC: +4,679 / -7,289 (net -2,610) across 99 test/support files, plus 33 removed baseline lines in config/test-mock-exports-baseline.txt (100 files total), from git diff --numstat against the pinned base.

Evidence

  • Frozen-lockfile install passed.
  • node_modules/.bin/oxfmt --write <99 changed files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <99 changed TS/TSX files>: exit 0.
  • git diff --check 71b42f2f6ad3930c4f45514c133f3183aafb0de5: passed.
  • CI-only operator instruction: no local Vitest, check-changed, tsgo, Crabbox, or Testbox. Hosted openclaw/ci-gate supplies runtime/typecheck proof. Local test wall time: not run; hosted timing pending.
  • Every supplied shard report explicitly says tests and coverage were not run under CI-only mode. There is no measured coverage totals line to quote and no coverage-preservation percentage is claimed.
  • Full-batch autoreview completed in two passes. Its two entrypoint-metadata findings were rejected: src/plugins/discovery.ts discovers configured directories through DEFAULT_PLUGIN_ENTRY_CANDIDATES, which includes both index.ts and index.cjs. Existing discovery tests exercise metadata-free index loading.
  • First hosted CI run caught batch-caused fixture typing, an unbound helper method, and changed mock-export signatures. Repair commit b40b391470319 gives the store fixture an explicit checked return type, narrows callbacks to callable mocks, uses an arrow property for output waiting, and documents each intentional mock-isolation boundary. No baseline allowance was raised.
  • Second hosted baseline job accepted the isolation annotations and identified exactly 33 stale baseline rows. Commit 5e45797f28933 removes only those rows. No source behavior changed; the unchanged-code review is reused. The baseline text file is formatter-excluded.
  • Focused autoreview of the repair delta: scoped-clean, no actionable P0–P2 findings. Formatting, plain oxlint and diff-check passed again. Fresh-head CI remains the gate.
  • No changed path matches the current CODEOWNERS rules.

Replay decisions

  • Skipped aeef49836683d01de267e42a2cce8d403bad7ec1 (z0727): six conflicts and dependence on earlier campaign-only composer/controller helpers absent from current main. Preserved current main's newer composer and draft setup, including nonconflicting portions by skipping the whole commit.
  • 815dd61d9d1243d4928f3f862247ab535ca7eb88 (z0732): dropped follow-up edits to markdown-streaming-highlight.test.ts and mcp-app-security.test.ts; kept their already-replayed versions and newer main Mermaid/security cases. Kept six clean file changes.
  • 28fc9a4c1ebe025a91a1ea1079145e26ded3f13f (z0729): kept install-target/is-main cleanup; dropped JSON-file and JSON-UTF8 edits, preserving newer atomic replacement, directory-target, serialization, and Unicode cases.
  • 74efda98902bac7d51d0db34d9a43040f8dbc505 (z0729): kept four clean files; dropped is-main, JSON-file, JSON-UTF8, and launchd-stop-timeout follow-up edits, preserving current main additions and earlier accepted cleanup.
  • 63a2c7c42ab18ca3847be091a8f1fbdb1737cfb2 (z0738): dropped legacy-JSON follow-up rewrite, preserving current main's removed reset hook and valid migration fixture. Kept six clean file changes and the earlier accepted legacy-JSON cleanup.
  • Other commits applied in requested order without conflicts. The baseline-only follow-up removes exactly 33 obsolete mock-export rows listed by hosted CI; no allowance is added or expanded.
Per-shard landing inventory

LOC includes test support and is measured against the pinned main, not the earlier campaign revision. Declaration counts are static syntactic test declarations, not expanded or executed cases; tabulation changes these counts. Coverage status in every original shard report: not run (CI-only).

Shard Files Test/support LOC before → after Test declarations before → after Coverage totals
z0727 0 skipped skipped not measured
z0728 8 1084 → 811 (-273) 41 → 33 not measured
z0729 5 588 → 450 (-138) 16 → 11 not measured
z0730 8 1082 → 857 (-225) 23 → 23 not measured
z0731 8 1076 → 868 (-208) 24 → 22 not measured
z0732 8 1078 → 834 (-244) 32 → 31 not measured
z0733 7 1077 → 859 (-218) 19 → 19 not measured
z0734 8 1076 → 799 (-277) 26 → 23 not measured
z0735 8 1076 → 905 (-171) 21 → 18 not measured
z0736 8 1075 → 895 (-180) 11 → 11 not measured
z0737 5 1107 → 990 (-117) 22 → 20 not measured
z0738 8 1100 → 861 (-239) 26 → 24 not measured
z0739 9 1068 → 883 (-185) 12 → 12 not measured
z0742 9 1066 → 931 (-135) 14 → 12 not measured

z0728

  • extensions/browser/src/browser/pw-tools-core.annotate.test.ts
  • extensions/browser/src/browser/pw-tools-core.responses.test.ts
  • extensions/browser/src/browser/pw-tools-core.trace.test.ts
  • extensions/browser/src/browser/relay-daemon.test.ts
  • extensions/browser/src/browser/runtime-lifecycle.shutdown-race.test.ts
  • extensions/browser/src/browser/runtime-lifecycle.unhandled-rejections.test.ts
  • extensions/browser/src/browser/screenshot-annotate.test.ts
  • extensions/browser/src/browser/server.historical-target.test.ts

z0729

  • src/infra/install-target.test.ts
  • src/infra/is-main.test.ts
  • src/infra/lifecycle-tail-retention.test-support.ts
  • src/infra/lifecycle-timer-retention.test-support.ts
  • src/infra/machine-model.test.ts

z0730

  • src/config/io.cron-owner-refusal.test.ts
  • src/config/io.eacces.test.ts
  • src/config/io.runtime-models.test.ts
  • src/config/io.write-effects.test-support.ts
  • src/config/official-external-channel-secret-schema.test.ts
  • src/config/plugin-auto-enable.test-helpers.ts
  • src/config/resolution-facts.test.ts
  • src/config/runtime-group-policy.test.ts

z0731

  • src/cli/program/build-program.test.ts
  • src/cli/program/command-registry.test.ts
  • src/cli/program/config-guard.legacy-state.test.ts
  • src/cli/program/configure-dispatch.test.ts
  • src/cli/program/register.backup.test.ts
  • src/cli/program/register.configure.persistence.test.ts
  • src/cli/program/register.migrate.test.ts
  • src/cli/program/register.storage.test.ts

z0732

  • ui/src/components/markdown-streaming-highlight.test.ts
  • ui/src/components/mascot-animator.test.ts
  • ui/src/components/mcp-app-context-strip.test.tsx
  • ui/src/components/mcp-app-panel.test.tsx
  • ui/src/components/mcp-app-retirement.test.tsx
  • ui/src/components/mcp-app-security.test.ts
  • ui/src/components/mcp-app-view-lifecycle.test.ts
  • ui/src/components/menu-check-alignment.browser.test.ts

z0733

  • src/plugins/contracts/plugin-testing-harness.contract.test.ts
  • src/plugins/contracts/provider-catalog-deprecation.contract.test.ts
  • src/plugins/contracts/registry.retry.test.ts
  • src/plugins/contracts/runtime-import-side-effects.contract.test.ts
  • src/plugins/contracts/runtime-seams.contract.test.ts
  • src/plugins/contracts/shape.contract.test.ts
  • src/plugins/contracts/shared-upstream-model.contract.test.ts

z0734

  • src/agents/model-auth-availability.native.test.ts
  • src/agents/model-auth-env.provider-aliases.test.ts
  • src/agents/model-auth.no-auth.test.ts
  • src/agents/model-auth.oauth-refresh-fail-closed.test.ts
  • src/agents/model-auth.workspace-plugin.test.ts
  • src/agents/model-catalog-entry.test.ts
  • src/agents/model-catalog.configured.test.ts
  • src/agents/model-catalog.planning.test.ts

z0735

  • src/system-agent/setup-inference-auth-options.test.ts
  • src/system-agent/setup-inference-detect.lifecycle.test.ts
  • src/system-agent/setup-inference-provider-snapshot.test.ts
  • src/system-agent/setup-inference-state.test-support.ts
  • src/system-agent/setup-inference-transition.test.ts
  • src/system-agent/setup-inference-utility.test.ts
  • src/system-agent/setup-native-runtime.test.ts
  • src/system-agent/system-agent.lifecycle.test.ts

z0736

  • src/flows/doctor-health-contribution-runners.config.deferred.test.ts
  • src/flows/doctor-health-contribution-runners.state.codex.test.ts
  • src/flows/doctor-health-contributions.test-support.ts
  • src/flows/doctor-health-startup.test.ts
  • src/flows/doctor-health.deletion-recovery.test.ts
  • src/flows/doctor-health.nocow.test.ts
  • src/flows/doctor-health.plugin-load.test.ts
  • src/flows/doctor-health.update-scope.test.ts

z0737

  • src/infra/postgres-sync/locks-worker.test-support.ts
  • src/infra/postgres-sync/postgres.test-support.ts
  • src/infra/postgres-sync/read-facts.postgres.test.ts
  • src/infra/postgres-sync/reuse.postgres.test.ts
  • src/infra/postgres-sync/session-publication.postgres.test.ts

z0738

  • src/infra/state-migrations.agent-owner-guidance.test.ts
  • src/infra/state-migrations.derived-cleanup.test.ts
  • src/infra/state-migrations.legacy-json.test.ts
  • src/infra/state-migrations.mcp-oauth-faults.test-support.ts
  • src/infra/state-migrations.meeting-transcripts-stage-cleanup.test.ts
  • src/infra/supervisor-markers.test.ts
  • src/infra/system-presence.version.test.ts
  • src/infra/system-run-approval-context.test.ts

z0739

  • src/secrets/plugin-secret-provider.test-support.ts
  • src/secrets/prepared-plugin-input.test.ts
  • src/secrets/resolve-store.test.ts
  • src/secrets/resolve.manifest-registry.test.ts
  • src/secrets/resolve.mixed-failures.test.ts
  • src/secrets/runtime.auth.integration.test.ts
  • src/secrets/runtime.gateway-auth.integration.test.ts
  • src/secrets/runtime.loadable-plugin-origins.test.ts
  • src/secrets/runtime.test-support.ts

z0742

  • src/cli/gateway-cli/crash-loop-recovery.test.ts
  • src/cli/gateway-cli/dev.integration.test.ts
  • src/cli/gateway-cli/pre-bootstrap.reset-invalid-config.test.ts
  • src/cli/gateway-cli/register-restart-handoff.test.ts
  • src/cli/gateway-cli/run-loop.forced-cron.process.test.ts
  • src/cli/gateway-cli/run-loop.forced-cron.test-support.ts
  • src/cli/gateway-cli/run-loop.model-acquisition.process.test.ts
  • src/cli/gateway-cli/run-loop.model-acquisition.test-support.ts
  • src/cli/gateway-cli/run-loop.process.test-support.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 complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@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-21T06:50:28.317997Z 5e45797 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
steipete enabled auto-merge (squash) October 21, 2026 06:14
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui cli CLI command changes agents Agent runtime and tooling extensions: browser size: XL labels Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 06:22
@steipete steipete changed the title test: remove low-value tests (batch d366) test(core,ui,browser): remove low-value tests (batch d366) Oct 21, 2026
@steipete
steipete enabled auto-merge (squash) October 21, 2026 06:30
@steipete
steipete disabled auto-merge October 21, 2026 06:41
@steipete
steipete enabled auto-merge (squash) October 21, 2026 06:46
@steipete
steipete merged commit 9b9364c into main Oct 21, 2026
137 of 138 checks passed
@steipete
steipete deleted the tcr/land-d366-1792562437 branch October 21, 2026 07:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…179129)

* test(browser): deslop z0728 tests

* test(browser): deslop z0728 tests

* test(config): deslop z0730 tests

* test(config): deslop z0730 tests

* test(config): deslop z0730 tests

* test(plugins): deslop z0733 tests

* test(cli): deslop z0731 tests

* test(cli): deslop z0731 tests

* test(ui): deslop z0732 tests

* test(ui): deslop z0732 tests

* test(model-auth): deslop z0734 tests

* test(model-auth): deslop z0734 tests

* test(model-auth): deslop z0734 tests

* test(infra): deslop z0729 tests

* test(infra): deslop z0729 tests

* test(system-agent): deslop z0735 tests

* test(system-agent): deslop z0735 tests

* test(system-agent): deslop z0735 tests

* test(doctor): deslop z0736 tests

* test(doctor): deslop z0736 tests

* test(doctor): deslop z0736 tests

* test(secrets): deslop z0739 tests

* test(postgres-sync): deslop z0737 tests

* test(postgres-sync): deslop z0737 tests

* test(postgres-sync): deslop z0737 tests

* test(infra): deslop z0738 tests

* test(infra): deslop z0738 tests

* test(gateway-cli): deslop z0742 tests

* test(gateway-cli): deslop z0742 tests

* test: repair batch d366 fixture types and isolation contracts

* test: prune obsolete d366 mock export allowances
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 cli CLI command changes extensions: browser size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant