Repository navigation
test(core,codex,ui): remove low-value tests (batch d092) - #160879
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated 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. |
steipete
enabled auto-merge (squash)
September 29, 2026 01:49
steipete
disabled auto-merge
September 29, 2026 01:55
steipete
enabled auto-merge (squash)
September 29, 2026 02:29
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, plainoxlint -c .oxlintrc.jsonon all changed TS/JS files, andgit diff --check: passed.CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <selected files>. Run, leasetbx_01m3n5pty9yw8j70rszhz54rhx; verified sourceebfba98b19561f7209c9ba715e082b925ccf7475/ tree94c0c97c40f1db6ccfcdbac92012c9c31cc4edd6.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.dd7339d3db10e1988d9e2f15e143f7cc7a407601:pnpm test test/scripts/ci-warm-vitest-caches.test.ts test/scripts/ci-node-test-plan.test.tspassed 221 tests; targeted type-aware lint passed. Testbox run. The hosted failure above is the failing-before evidence; the existing assertions were retained.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), andsrc/config/config-env-vars.ts(798/700). Those files and.oxlintrc.jsonare byte-identical between the replay base and this branch.A clean detached checkout of plain main
215bfee54d47d474adddd0fd47c21d8e819405fbreproduced 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 onsrc/node-host/node-worker-supervisor.ts(1322/700). The Doctor failure was already repaired on main by4f0fd71f57c. 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/testdeclaration 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.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, andtest/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).