Skip to content

test: remove low-value tests (batch d355) - #178968

Merged
steipete merged 35 commits into
mainfrom
tcr/land-d355-1792550878
Oct 21, 2026
Merged

steipete merged 35 commits into
mainfrom
tcr/land-d355-1792550878

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces repeated test fixtures and assertion scaffolding in the maintainer-authorized test cleanup campaign (batch d355).

User Impact

No production or user-visible behavior change. Existing behavioral checks remain the target contract; this consolidates test setup and removes low-value repetition. No schema, dependency, public API, or runtime changes.

Why This Change Was Made

Replays the 30 requested commits onto pinned main b27d3ec05df5ea247caf521a6a9ed7fde48cc083. All 30 commits were replayed; z0586 has no net changes after conservative conflict resolution. One follow-up removes its now-unused fixture expansion; follow-ups fix four CI-reported callback-return errors and drops three review-flagged file reductions. Final diff: 109 test/support files, +5933/-9381 lines (net -3448); production +0/-0. Additionally removes exactly 13 stale mock-export baseline rows identified by hosted CI.

Conflict handling:

  • Dropped z0586 edits to backup-create-stream, backup-create.worktrees, backup-database-resources, and backup-sqlite-snapshot.performance rather than replacing current-main cancellation, ownership, snapshot, or worktree proof. Removed the remaining backup fixture options after confirming no surviving caller used them.
  • For the second z0589 commit, retained the preceding replayed versions of processes-panel and question-progress rather than accepting obsolete panel selectors or changing current-main mobile/progress expectations.
  • All other requested commits applied without conflicts. Only the mock-export baseline changed: 13 exact stale rows were removed as requested by CI; no entries were added or relaxed. Later CI required per-factory isolation explanations for rewritten mocks; these preserve the existing fake behavior and are not blanket baseline exceptions.
  • Rebased once after GitHub reported a merge conflict. All 34 code/test commits remained patch-identical; only baseline context changed. Kept main's neighboring stale-entry removal and retained the same 13-entry shrink.
  • Review: dropped auth.xai-upgrade, Matrix summary, and anchor preparation reductions, retaining complete model definitions, well-formed negative security fixtures, and early-spawn failure cleanup from main.
  • CI: restored non-returning beforeEach bodies in cli-auth-seam and systemd.environment-preservation, plus void cleanup callbacks in embedding-providers and models/list.refresh-completion. The first two CI runs exposed these callback-return regressions. A later run required explicit export-key comparators and per-factory isolation comments; no assertions, retry limits, or timeouts were weakened.
  • No changed path matches this checkout's CODEOWNERS rules.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <changed files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed files>: exit 0.
  • git diff --check b27d3ec05df5ea247caf521a6a9ed7fde48cc083: passed.
  • Per the operator's CI-only instruction, no local Vitest, check-changed, tsgo, coverage, or Testbox runs. Local test wall time: not run. Hosted openclaw/ci-gate is the behavioral proof and merge gate; CI duration is pending.
  • The source shard reports explicitly state that tests and coverage were not run in CI-only mode. No measured coverage totals or <=1% coverage-loss claim is made.
  • First independent review identified three accepted findings, addressed by restoring the affected files to main. A jsdom finding was rejected: it named an out-of-scope UI path, and the actual changed test explicitly defines require via createRequire. The corrected full diff passed a complete P0-P2 review; the subsequent refresh-cleanup and isolation/sorting corrections each passed focused P0-P2 review. The subsequent 13-row baseline prune also passed focused P0-P2 review.
Per-shard final diff inventory

LOC is added/deleted test and test-support lines against the pinned base. Declaration delta is a static count of changed direct it/test declarations and common chained variants, not an executed case count; table expansion can preserve cases despite fewer declarations.

Shard Test/support LOC Static declaration delta Coverage totals
z0586 +0/-0 0 Not measured (CI-only)
z0589 +308/-533 0 Not measured (CI-only)
z0590 +357/-609 -6 Not measured (CI-only)
z0591 +319/-595 -3 Not measured (CI-only)
z0592 +349/-664 -4 Not measured (CI-only)
z0593 +597/-916 -7 Not measured (CI-only)
z0594 +633/-889 -7 Not measured (CI-only)
z0595 +625/-903 -3 Not measured (CI-only)
z0596 +492/-681 -6 Not measured (CI-only)
z0597 +450/-759 -7 Not measured (CI-only)
z0598 +387/-596 -3 Not measured (CI-only)
z0599 +444/-589 0 Not measured (CI-only)
z0600 +316/-559 -1 Not measured (CI-only)
z0601 +400/-566 -2 Not measured (CI-only)
z0604 +256/-522 -1 Not measured (CI-only)

z0586

All hunks dropped; current main retained.

z0589

ui/src/e2e/plugins-settings-keyboard.e2e.test.ts, ui/src/e2e/plugins-settings-refresh.e2e.test.ts, ui/src/e2e/processes-panel.e2e.test.ts, ui/src/e2e/profile-page.real-gateway.e2e.test.ts, ui/src/e2e/pwa-manifest-credentials.e2e.test.ts, ui/src/e2e/question-footer.test-support.ts, ui/src/e2e/question-progress.e2e.test.ts, ui/src/e2e/required-worker-routing.e2e.test.ts

z0590

src/agents/code-mode-lifecycle.test-support.ts, src/agents/code-mode-retention.test-support.ts, src/agents/code-mode-shell-source.test.ts, src/agents/code-mode-state.test.ts, src/agents/code-mode-worker-lifecycle.test.ts, src/agents/compaction.summarize-fallback.test.ts, src/agents/compaction.summary-format.test.ts, src/agents/compaction.tool-result-details.test.ts, src/agents/configured-model-entries.test.ts

z0591

ui/src/e2e/compact-identity-menu.e2e.test.ts, ui/src/e2e/composer-text-readability.e2e.test.ts, ui/src/e2e/config-composer-fixtures.test-support.ts, ui/src/e2e/config-enum-controls.e2e.test.ts, ui/src/e2e/config-number-controls.e2e.test.ts, ui/src/e2e/config-open-file-feedback.e2e.test.ts, ui/src/e2e/config-quick-thinking-persistence.e2e.test.ts, ui/src/e2e/connection-settings.e2e.test.ts

z0592

extensions/matrix/src/matrix/actions/messages.read-message.test.ts, extensions/matrix/src/matrix/actions/pins.test.ts, extensions/matrix/src/matrix/actions/profile.test.ts, extensions/matrix/src/matrix/actions/verification.test.ts

z0593

extensions/anthropic/cli-auth-seam.test.ts, extensions/anthropic/cli-output.test.ts, extensions/anthropic/doctor-contract-api.test.ts, extensions/anthropic/forward-compat-generation.test.ts, extensions/anthropic/lazy-import.test.ts, extensions/anthropic/live-discovery-auth.test.ts, extensions/anthropic/model-contract-cases.test-support.ts, extensions/anthropic/openclaw.plugin.test.ts

z0594

ui/src/pages/usage/helpers.node.test.ts, ui/src/pages/usage/query.test.ts, ui/src/pages/usage/refresh-policy.test.ts, ui/src/pages/usage/usage-details.test.ts, ui/src/pages/usage/usage-page-calendar-selection.test.ts, ui/src/pages/usage/usage-page-exports.test.ts, ui/src/pages/usage/usage-page-retention.test.ts, ui/src/pages/usage/view-availability.test.ts

z0595

packages/gateway-protocol/src/schema/audit-run.test.ts, packages/gateway-protocol/src/schema/audit.test.ts, packages/gateway-protocol/src/schema/background-preferences.test.ts, packages/gateway-protocol/src/schema/desktop.test.ts, packages/gateway-protocol/src/schema/human-mentions.test.ts, packages/gateway-protocol/src/schema/nodes.test.ts, packages/gateway-protocol/src/schema/projects.test.ts, packages/gateway-protocol/src/schema/protocol-validation.test-support.ts, packages/gateway-protocol/src/schema/session-github-publication.test.ts

z0596

src/daemon/service-inspection-budget.test.ts, src/daemon/service-layout.test.ts, src/daemon/service-policy-preservation.test.ts, src/daemon/service-rebind-guard.test.ts, src/daemon/service-rebind.test.ts, src/daemon/service-stage.test.ts, src/daemon/systemd-deadline-clock-step.test.ts, src/daemon/systemd.environment-preservation.test.ts

z0597

src/agents/embedded-agent-runner/run/attempt-transcript-helpers.presence.test.ts, src/agents/embedded-agent-runner/run/attempt-transcript-lifecycle.test.ts, src/agents/embedded-agent-runner/run/attempt-transcript-recovery.test.ts, src/agents/embedded-agent-runner/run/attempt-yield-handoff.test.ts, src/agents/embedded-agent-runner/run/auth-store.test.ts, src/agents/embedded-agent-runner/run/compaction-retry-aggregate-timeout.test.ts, src/agents/embedded-agent-runner/run/compaction-timeout.test.ts, src/agents/embedded-agent-runner/run/execution-phase-diagnostics.test.ts

z0598

src/commands/models/auth-authority.test-support.ts, src/commands/models/auth-login-gateway.test.ts, src/commands/models/auth-model-policy.test.ts, src/commands/models/auth-order.test.ts, src/commands/models/auth-refresh.test.ts, src/commands/models/fallbacks-shared.test.ts, src/commands/models/list.refresh-completion.test.ts

z0599

test/gateway-cold-agent-abort.e2e.test.ts, test/gateway-models-api-key-discovery.e2e.test.ts, test/gateway-restart.test-support.ts, test/gateway-session-end-shutdown.e2e.test.ts, test/git-hooks-pre-commit-freshness.test.ts, test/git-hooks-pre-commit.test-support.ts, test/helpers/built-gateway-proof.ts, test/imessage-reply-alias.integration.test.ts, test/jsdom-compat.test.ts

z0600

src/plugins/effective-plugin-ids.test.ts, src/plugins/embedding-provider-runtime.test.ts, src/plugins/embedding-providers.test.ts, src/plugins/enable.capability-authority.test.ts, src/plugins/enable.test.ts, src/plugins/gateway-startup-plugin-plan.acpx.test.ts, src/plugins/gateway-startup-plugin-plan.bundled-discovery.test.ts

z0601

src/process/supervisor/anchor-protocol.test-support.ts, src/process/supervisor/darwin-process-command.native.test.ts, src/process/supervisor/service-child-cleanup.test.ts, src/process/supervisor/service-child-group-anchor.input-lifetime.test.ts, src/process/supervisor/service-child-group-anchor.retirement.test.ts, src/process/supervisor/service-child-relay-host.diagnostics.test.ts, src/process/supervisor/service-child-relay-host.readiness.real.test.ts, src/process/supervisor/service-child-relay-host.test-support.ts

z0604

src/plugin-sdk/approval-client-helpers.test.ts, src/plugin-sdk/approval-handler-runtime.test.ts, src/plugin-sdk/browser-bridge.test.ts, src/plugin-sdk/channel-lifecycle.queue.test.ts, src/plugin-sdk/channel-message.test.ts, src/plugin-sdk/channel-pairing.store.test.ts, src/plugin-sdk/channel-pairing.test.ts, src/plugin-sdk/channel-route.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 complete

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

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 21, 2026 02:53
@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:42:32.733101Z f46e592 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 app: web-ui App: web-ui gateway Gateway runtime commands Command implementations agents Agent runtime and tooling extensions: anthropic size: XL labels Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 02:57
@steipete
steipete enabled auto-merge (squash) October 21, 2026 02:59
@steipete
steipete disabled auto-merge October 21, 2026 03:06
@steipete
steipete enabled auto-merge (squash) October 21, 2026 03:09
@steipete
steipete disabled auto-merge October 21, 2026 03:18
@steipete
steipete enabled auto-merge (squash) October 21, 2026 03:21
@steipete
steipete disabled auto-merge October 21, 2026 03:32
@steipete
steipete enabled auto-merge (squash) October 21, 2026 03:35
@steipete
steipete disabled auto-merge October 21, 2026 03:36
@steipete
steipete force-pushed the tcr/land-d355-1792550878 branch from ad2f2dd to f46e592 Compare October 21, 2026 03:38
@steipete
steipete enabled auto-merge (squash) October 21, 2026 03:38
@steipete
steipete merged commit 4274227 into main Oct 21, 2026
133 of 135 checks passed
@steipete
steipete deleted the tcr/land-d355-1792550878 branch October 21, 2026 03:51
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* test(infra): deslop z0586 tests

* test(ui): deslop z0589 tests

* test(ui): deslop z0589 tests

* test(ui): deslop z0591 tests

* test(ui): deslop z0591 tests

* test(matrix): deslop z0592 tests

* test(matrix): deslop z0592 tests

* test(usage): deslop z0594 tests

* test(usage): deslop z0594 tests

* test(anthropic): deslop z0593 tests

* test(anthropic): deslop z0593 tests

* test(protocol): deslop z0595 tests

* test(protocol): deslop z0595 tests

* test(plugins): deslop z0600 tests

* test(agents): deslop z0597 tests

* test(agents): deslop z0597 tests

* test(daemon): deslop z0596 tests

* test(daemon): deslop z0596 tests

* test(daemon): deslop z0596 tests

* test(models): deslop z0598 tests

* test(models): deslop z0598 tests

* test(integration): deslop z0599 tests

* test(integration): deslop z0599 tests

* test(integration): deslop z0599 tests

* test(agents): deslop z0590 tests

* test(agents): deslop z0590 tests

* test(plugin-sdk): deslop z0604 tests

* test(process): deslop z0601 tests

* test(process): deslop z0601 tests

* test(process): preserve input fixture cleanup on setup failure

* test(infra): drop unused backup fixture expansion after replay

* test: preserve hook lifecycles and independent regression fixtures

* test(models): keep refresh cleanup callback void

* test: document isolated mocks and retain explicit export sorting

* test: prune superseded mock export baseline entries
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 commands Command implementations extensions: anthropic gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant