Skip to content

test(core,codex,ui): remove low-value tests (batch d092) - #160879

Merged
steipete merged 12 commits into
mainfrom
tcr/land-d092-1790636775
Sep 29, 2026
Merged

steipete merged 12 commits into
mainfrom
tcr/land-d092-1790636775

Conversation

@steipete

@steipete steipete commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The test suite carries overlapping fixtures, repeated schema matrices, and helper-level assertions that duplicate stronger owner tests. This batch consolidates ten previously audited shards.

User Impact

No user-visible behavior change. The batch removes 13,458 net test/support lines while retaining the documented security, ownership, migration, recovery, and rendering regressions.

Why This Change Was Made

Keep the primary behavioral tests and remove duplicate variants. The only product change removes an unused test-only loader injection from the Codex command dispatcher (11 net lines); real commands retain the same lazy import and configuration resolution. CI cache warming no longer references the deleted status test or its now-unused unit-fast config.

All ten requested commits were replayed in order onto 2594ae8f9870cfc68f5695d8472f50dca743d79c, without conflicts or skipped hunks. Main's newer status cases were already preserved by the source-lane port. The replay's focused planner test caught the stale 17-file expectation; the follow-up aligns it to the remaining 16 files and removes the empty config consumer. Hosted CI then caught a cache-warm fixture that replaced the production file inventory with mixed unit-fast/tooling files while inheriting the new tooling-only config list. The fixture now owns its matching mixed configs explicitly; all existing Node/Bun partition and failure-cleanup assertions remain. No checks or assertions were disabled.

No changed path matches the current CODEOWNERS rules. No configuration, schema, dependency, release artifact, or changelog changes.

Evidence

  • oxfmt --write, plain oxlint -c .oxlintrc.json on all changed TS/JS files, and git diff --check: passed.
  • Focused Testbox run: 915 tests passed across 42 files, covering every surviving changed test file plus the CI planner owner. Command: CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <selected files>. Run, lease tbx_01m3n5pty9yw8j70rszhz54rhx; verified source ebfba98b19561f7209c9ba715e082b925ccf7475 / tree 94c0c97c40f1db6ccfcdbac92012c9c31cc4edd6.
  • OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all changed paths>: all selected typechecks, boundary checks, formatting, ratchets, doctor contract tests, and dead-export scans passed. The gate then stopped at core lint on inherited max-lines errors; it is not claimed as a fully green run. Run.
  • All checks after the inherited core-lint stop were run separately on the verified candidate and passed: targeted extension/script/test-root lint, Docker E2E boundaries, raw-HTTP2 import boundary, legacy-store guard, media helper guard, runtime sidecar loaders, and runtime import cycles. Same Testbox lease; wrapper exit 0.
  • Independent autoreview of the complete diff against its pinned main base: three passes, scoped-clean, no findings at the skill's default P0 threshold. A fresh review of the one-line CI fixture repair was also scoped-clean.
  • CI fixture repair on dd7339d3db10e1988d9e2f15e143f7cc7a407601: pnpm test test/scripts/ci-warm-vitest-caches.test.ts test/scripts/ci-node-test-plan.test.ts passed 221 tests; targeted type-aware lint passed. Testbox run. The hosted failure above is the failing-before evidence; the existing assertions were retained.
  • ClawSweeper has not produced a review verdict: its input-safety check placed automated review on hold. The independent reviews above completed; no scanner policy was changed.

The inherited core-lint failures on the replay base were src/gateway/worker-environments/node-launch-adapter.test.ts (1009/1000), src/gateway/talk/relay/session-create.ts (702/700), src/commands/doctor/shared/missing-configured-plugin-install.repair.ts (746/700), and src/config/config-env-vars.ts (798/700). Those files and .oxlintrc.json are byte-identical between the replay base and this branch.

A clean detached checkout of plain main 215bfee54d47d474adddd0fd47c21d8e819405fb reproduced the same core-lint step, node --import ./scripts/tsx.mjs scripts/run-oxlint-shards.mts --only=core, on Testbox. Main still fails on node-launch-adapter (now 1045/1000), Talk session creation (702/700), and config environment handling (798/700), and additionally on src/node-host/node-worker-supervisor.ts (1322/700). The Doctor failure was already repaired on main by 4f0fd71f57c. None of these failing files is changed by this PR. This batch does not weaken the lint rules or repair unrelated main failures.

Per-shard reduction and campaign coverage

LOC and static it/test declaration counts below are from the replayed commits. Table rows in parameterized tests are not separate declarations. Coverage totals are the original in-shard campaign measurements, not a new whole-repository coverage run after replay. Every shard stayed within 1% covered-statement and covered-branch loss. Some shards intentionally stopped short of a 50% reduction to retain distinct regressions.

Shard Test/support LOC + / - (net) Declarations before -> after Covered totals before -> after
t0131 +152 / -493 (-341) 17 -> 11 statements 1367 -> 1358 (-9); branches 863 -> 856 (-7); functions 249 -> 249 (0)
t0124 +721 / -3367 (-2646) 183 -> 78 statements 2294 -> 2289 (-5); branches 2273 -> 2262 (-11); functions 362 -> 362 (0)
t0134 +99 / -1340 (-1241) 175 -> 77 statements 1048 -> 1046 (-2); branches 663 -> 660 (-3); functions 157 -> 155 (-2)
t0094 +724 / -4170 (-3446) 234 -> 119 statements 6757 -> 6739 (-18); branches 3862 -> 3831 (-31); functions 1272 -> 1271 (-1)
t0135 +163 / -990 (-827) 99 -> 53 statements 1203 -> 1203 (0); branches 565 -> 565 (0); functions 171 -> 171 (0)
t0111 +461 / -1693 (-1232) 61 -> 33 statements 673 -> 672 (-1); branches 449 -> 448 (-1); functions 178 -> 178 (0)
t0137 +28 / -83 (-55) 8 -> 4 statements 619 -> 619 (0); branches 158 -> 158 (0); functions 71 -> 71 (0)
t0146 +464 / -1087 (-623) 44 -> 32 statements 1714 -> 1708 (-6); branches 1124 -> 1121 (-3); functions 361 -> 360 (-1)
t0141 +1661 / -4048 (-2387) 171 -> 125 statements 5346 -> 5343 (-3); branches 3954 -> 3945 (-9); functions 991 -> 991 (0)
t0136 +119 / -780 (-661) 63 -> 19 statements 1137 -> 1137 (0); branches 429 -> 428 (-1); functions 146 -> 146 (0)

The t0141 report predates recovery; its later saved before/after coverage snapshots include both passing groups and establish the totals above. The original status report predates its current-main port; the LOC/declaration numbers here reflect that port, including the retained newer cases.

t0131 files: src/commands/doctor-session-sqlite.shared-store.test.ts, src/commands/doctor-session-sqlite.test.ts.

t0124 files: ui/src/pages/chat/chat-thread.nested-activity.test.ts, ui/src/pages/chat/chat-thread.question.test.ts, ui/src/pages/chat/chat-thread.test.ts.

t0134 files: src/logging/redact.test.ts.

t0094 files: src/infra/outbound/deliver.custody.integration.test.ts, src/infra/outbound/deliver.matrix.test-support.ts, src/infra/outbound/deliver.question-generation.test.ts, src/infra/outbound/deliver.queue-adapter-availability.test.ts, src/infra/outbound/deliver.queue-block-intent.integration.test.ts, src/infra/outbound/deliver.queue-dispatch-evidence.integration.test.ts, src/infra/outbound/deliver.queue-integration.test.ts, src/infra/outbound/deliver.target-adoption.test.ts, src/infra/outbound/deliver.test.ts.

t0135 files: src/config/zod-schema.agent-defaults.test.ts, src/config/zod-schema.agents.test.ts, src/config/zod-schema.audit-execution-identity.test.ts, src/config/zod-schema.cloud-workers.test.ts, src/config/zod-schema.core.test.ts, src/config/zod-schema.cron-retention.test.ts, src/config/zod-schema.cron-triggers.test.ts, src/config/zod-schema.desktop.test.ts, src/config/zod-schema.gateway-auth.test.ts, src/config/zod-schema.logging-levels.test.ts, src/config/zod-schema.markdown-tables.test.ts.

t0111 files: scripts/lib/ci-node-test-plan.mts, src/commands/status.scan-execute.test.ts, src/commands/status.scan-memory.test.ts, src/commands/status.scan-overview.test.ts, src/commands/status.scan-result.test.ts, src/commands/status.scan.fast-json.test.ts, src/commands/status.scan.shared.test.ts, src/commands/status.scan.test.ts, src/commands/status.service-summary.test.ts.

t0137 files: src/config/zod-schema.visible-replies.test.ts, src/config/zod-schema.worktree-root.test.ts.

t0146 files: src/acp/control-plane/manager.accepted-controls.test.ts, src/acp/control-plane/manager.accepted-ownership.test.ts, src/acp/control-plane/manager.backend-failover.test.ts, src/acp/control-plane/manager.cancel-session.test.ts, src/acp/control-plane/manager.failover.test.ts, src/acp/control-plane/manager.initialize-session.test.ts, src/acp/control-plane/manager.operator-model-policy.test.ts, src/acp/control-plane/manager.owner.test.ts.

t0141 files: extensions/codex/src/command-dispatch.ts, extensions/codex/src/commands.authority.test.ts, extensions/codex/src/commands.detach.test.ts, extensions/codex/src/commands.diagnostics-confirmation.test.ts, extensions/codex/src/commands.native-subagent-retention.test.ts, extensions/codex/src/commands.test.ts.

t0136 files: src/config/zod-schema.models.test.ts, src/config/zod-schema.providers-whatsapp.test.ts, src/config/zod-schema.providers.lazy-runtime.test.ts, src/config/zod-schema.proxy.test.ts, src/config/zod-schema.session-maintenance-extensions.test.ts, src/config/zod-schema.session-sharing.test.ts, src/config/zod-schema.startup-import.test.ts, src/config/zod-schema.talk.test.ts, src/config/zod-schema.tls.test.ts, src/config/zod-schema.tts.test.ts, src/config/zod-schema.typing-mode.test.ts.

Additional replay repairs: test/scripts/ci-node-test-plan.test.ts, scripts/lib/ci-node-test-plan.mts, and test/scripts/ci-warm-vitest-caches.test.ts.

Final split: tests/support +4,594 / -18,052 (net -13,458); production +3 / -14 (net -11); tooling +1 / -2 (net -1).

@clawsweeper

clawsweeper Bot commented Sep 29, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts commands Command implementations extensions: codex size: XL labels Sep 29, 2026
@steipete
steipete enabled auto-merge (squash) September 29, 2026 01:49
@steipete
steipete disabled auto-merge September 29, 2026 01:55
@steipete
steipete enabled auto-merge (squash) September 29, 2026 02:29
@steipete
steipete merged commit 58b1860 into main Sep 29, 2026
203 checks passed
@steipete
steipete deleted the tcr/land-d092-1790636775 branch September 29, 2026 02:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…0879)

* test(doctor): deslop t0131 tests

* test(ui): deslop t0124 tests

* test(logging): deslop t0134 tests

* test(outbound): deslop t0094 tests

* test(config): deslop t0135 tests

* test(status): deslop t0111 tests

* test(config): deslop t0137 tests

* test(acp): deslop t0146 tests

* test(codex): deslop t0141 tests

* test(config): deslop t0136 tests

* test(ci): align cache warm seed after status test cleanup

* test(ci): declare cache warm fixture configs explicitly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui commands Command implementations extensions: codex scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant