Repository navigation
test(agents,gateway,plugins): remove low-value tests (batch d011) - #166818
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 7, 2026, 11:39 PM ET / October 8, 2026, 03:39 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch consolidates overlapping tests and redirects test inventories and Windows CI to the surviving suites. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Blocked before merge - 5 items remain This maintainer-sponsored cleanup remains useful. The earlier generic upgrade blocker is unsupported by the introduced changes, and no concrete patch defect was established in the reviewed consolidation paths; current-head validation still has an unattributed failure. Priority: P3 Before merge
FindingsNone. Provenance
Tests
Agent review detailsHow this fits togetherOpenClaw’s test infrastructure selects regression suites for agents, Gateway services, plugins, and shared packages. These changes reorganize those suites and their CI selection without changing the shipped runtime. flowchart TD
A[Changed files] --> B[CI test selection]
B --> C[Surviving owner suites]
D[Consolidated regression cases] --> C
C --> E[Test results]
E --> F[Required CI gate]
Technical reviewBest possible solution: Keep distinct regressions with their existing owner suites and resolve the failing check through baseline comparison before normal CI-gated landing. Do we have a high-confidence way to reproduce the issue? Not applicable to the cleanup itself. GitHub supplies a concrete current-head test failure, but this read-only review did not reproduce or establish its cause. Is this the best way to solve the issue? Yes for the reviewed consolidation approach: moving retained assertions into surviving suites and updating their existing selection owners avoids parallel implementations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f0fff3ce7b88. Merge-risk optionsMaintainer options:
TestingProof path: unit tests only. Added test files: 58. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Stored data modelPersistent data-model change detected: LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
|
288017b to
53bbc8f
Compare
This comment has been minimized.
This comment has been minimized.
Port w1012 onto the campaign lane while preserving its newer recovery, authority, registry-access, and cleanup coverage. Keep the lane allocation readiness test and carry newer GC fixture cleanup into the consolidation. Testbox: 164 tests passed across all 10 surviving test files, no skips; 265.49s from fresh main plus the 16 resolved shard paths. Targeted oxlint, oxfmt, diff checks, and independent review passed.
Port w1099 while retaining the lane recovery assertions and lifecycle teardown. Preserve the already-applied inbound worktree fix and provide both placement readers in recovery fixtures for current main. Validation: 67 tests passed across 7 files on Blacksmith Testbox from the small-delta proof checkout. Targeted oxlint, oxfmt, whitespace checks, and final autoreview passed.
53bbc8f to
3173158
Compare
|
Admin-landing exact head
|
14 upstream commits. openclaw#166818 removes low-value tests across several areas, including seven Feishu test files. In extensions/feishu/src/send.test.ts it deletes the test that checked a send works without the Feishu runtime text helpers and moves that condition into beforeEach for every test in the file. This branch had changed one line in that deleted test, adding the accountId the send now passes to resolveMarkdownTableMode, so the two sides conflicted. The merge follows upstream's pruning and takes upstream's send.test.ts. The accountId forwarding is still covered by this branch's send.markdown-tables.test.ts, which checks the posted text for a named account and for the channel default rather than the arguments of a mock. openclaw#166599 changes extensions/feishu/src/tool-result.ts and adds tests, and merged without conflict. Every Feishu file this merge changes is identical to upstream/main, and every other file is the same as the previous branch head. Upstream did not change the config baseline in this range. The merge took upstream's generated files and regenerated all three from this merge with build:docker in a separate detached checkout. Counts are core 2495, channel 3876 and plugin 4527, the same as the previous branch head, and every hash matches it. The generated metadata differs from upstream/main only by the two Feishu markdown.tables entries. The three generated-file checks pass there. Feishu: 102 files and 1502 tests in the extension project, 17 files and 217 tests in the database-workers project, all passing. The drop from 1523 and 218 is the tests openclaw#166818 removed less the ones openclaw#166599 added. The forwarder test and the routing guards pass, 503 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines, assertion-safety, database-worker, test-timeout-race and test-mock-exports ratchets against upstream/main, oxlint with unused-directive errors and oxfmt on the 42 changed code files all pass.
…enclaw#166818) * test(agents): deslop w1012 tests Port w1012 onto the campaign lane while preserving its newer recovery, authority, registry-access, and cleanup coverage. Keep the lane allocation readiness test and carry newer GC fixture cleanup into the consolidation. Testbox: 164 tests passed across all 10 surviving test files, no skips; 265.49s from fresh main plus the 16 resolved shard paths. Targeted oxlint, oxfmt, diff checks, and independent review passed. * test(models): deslop w1105 tests * test(buzz): deslop w1106 tests * test(agents): deslop w1095 tests * test(feishu): deslop w1102 tests * test(gateway): deslop w1103 tests * test(doctor): deslop w1101 tests * test(markdown): deslop w1104 tests * test(gateway): deslop w1099 tests Port w1099 while retaining the lane recovery assertions and lifecycle teardown. Preserve the already-applied inbound worktree fix and provide both placement readers in recovery fixtures for current main. Validation: 67 tests passed across 7 files on Blacksmith Testbox from the small-delta proof checkout. Targeted oxlint, oxfmt, whitespace checks, and final autoreview passed. * test(infra): deslop w1100 tests * test: retain Windows coverage after test consolidation * test: preserve transport coverage routing after consolidation * test(infra): retain current read-only token assertions * test: retain distinct safety and lifecycle coverage
Upstream openclaw#166818 folded service.naming.test.ts into service.canonical-paths.test.ts; move the base-mismatch reuse cases into the consolidated allocation suite.
What Problem This Solves
The test suite repeats fixture setup and cases already protected by stronger owner tests. Batch d011 consolidates ten campaign shards and removes those redundant replays while preserving distinct authorization, recovery, lifecycle, and platform contracts.
User Impact
No runtime behavior, public API, configuration, or storage change. The final candidate removes 115 test declarations and 3,538 net lines across 99 files. Runtime production LOC is unchanged; tests are +5,877/-9,402 (net -3,525), test support +1/-1, and test routing/configuration +3/-16 (net -13).
Why This Change Was Made
All ten selected commits are replayed onto main at
40d735e451b19b939a0a4289096d7cd89a8f7812; none are skipped. The final base refresh was conflict-free andgit range-diffconfirmed all 14 commits were patch-identical. Testbox proof below ran on the earlier961f5c0b709962bd1338edb4d71559583fbd4f2fbase; hosted CI validates the refreshed head. The cleanup consolidates retained cases and removes obsolete inventory entries. Independent review led to retaining or strengthening 52 distinct contracts; nine duplicate findings were rejected using their existing primary-owner tests and shared implementation.Replay and review resolutions:
server.sessions.recover.test.tsafter the one Git conflict: its asynchronous placement reader already exists after83a95401fb8, so the redundant campaign fixture extraction is dropped.7a75498beb6) in the moved device-auth test. The original campaign directory-listing assertion predates that change.requireArrayprivate in the list-change test helper: the consolidation removed its external test consumer, whilefindSessionstill needs the local helper.No changed path matches the current CODEOWNERS file. The mock-export baseline edit is shrink-only. Historical Bun qualification hashes remain intact; changed or missing test bytes use the existing Vitest fallback.
Evidence
Local frozen installation, targeted oxfmt, plain oxlint (exit 0), and whitespace checks passed.
On Blacksmith Testbox run 37690699186, all originally surviving changed-test targets and their routing owners obtained passing results across the repaired focused runs. The final follow-up run before review restorations passed 576 tests with two existing skips. Initial failures from the stale Windows test path and superseded SQLite assertion were repaired and passed their reruns.
The full changed-file gate on
d0f862d5753passed core, extension, script, and root-test typechecks plus its initial guards. Its full-tree unused-export scan found the obsoleterequireArrayexport; that export is now private. The gate did not reach its later lint stages.Infrastructure gap: the final focused restoration tests followed by the full changed-file rerun could not start: Testbox reported
Blacksmith Testbox has finished; create a new lease. Thus the latest review-retention edits and private-helper repair have local formatting/plain-lint proof, but their final Testbox rerun is unexecuted. Hostedopenclaw/ci-gateremains the merge gate under the campaign infrastructure-gap rule. Both task leases are stopped/completed:tbx_01m4c4btf6vq3a4p9001t46pqpandtbx_01m4c4s5qdnm3w11nfdrj85nbr. The final independent review continues alongside hosted CI; actionable findings will disable auto-merge for repair.Commands used:
pnpm install --frozen-lockfile --prefer-offline;node_modules/.bin/oxfmt --write <changed files>;node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>;git diff --check origin/main; the repository Crabbox wrapper withCI=1 pnpm test <focused files>andOPENCLAW_TESTBOX=1 node scripts/check-changed.mjs --base 961f5c0b709962bd1338edb4d71559583fbd4f2f -- <changed paths>.The table counts only test files changed by this final replay; unchanged files are excluded. Declaration counts do not expand parameterized rows. The coverage totals are the original in-shard measurements, preceding current-main replay and review retention restores, not newly measured coverage of this head. Each original covered-statement/branch loss is within 1%. The w1101 coverage comparison is a passing subset: receipt-retirement, recovery-generations, and recovery-shared-owners were excluded after seven inherited failures. Several historical changed-file checks were interrupted, and unsupported per-case attribution used the campaign's source/owner-test fallback. Those historical limitations are not presented as current-head passing proof.
Per-shard files and original coverage totals
w1012
scripts/lib/ci-proof-test-inventory.mtsscripts/lib/vitest-shard-metadata.mtssrc/agents/worktrees/service.acceleration.test.tssrc/agents/worktrees/service.canonical-paths.test.tssrc/agents/worktrees/service.capacity.test.tssrc/agents/worktrees/service.configured-root.test.tssrc/agents/worktrees/service.diagnostics.test.tssrc/agents/worktrees/service.eviction-nesting.test.tssrc/agents/worktrees/service.eviction.test.tssrc/agents/worktrees/service.exact-state-races.test.tssrc/agents/worktrees/service.exact-state.test.tssrc/agents/worktrees/service.gc-maintenance.test.tssrc/agents/worktrees/service.gc-performance.test.tssrc/agents/worktrees/service.gc.test.tssrc/agents/worktrees/service.naming.test.tstest/vitest/vitest.database-worker-core-paths.mjsw1105
src/commands/models/auth.test.tssrc/commands/models/list.probe.resources.test.tssrc/commands/models/list.probe.targets.test.tssrc/commands/models/list.probe.test.tsw1106
extensions/buzz/src/buzz-bus.history-catchup.test.tsextensions/buzz/src/buzz-bus.mentions.test.tsextensions/buzz/src/buzz-bus.profile-lifecycle.test.tsextensions/buzz/src/buzz-bus.test.tsextensions/buzz/src/buzz-bus.thread-mentions.test.tsextensions/buzz/src/gateway.cold-start-recovery.test.tsextensions/buzz/src/gateway.lifecycle.test.tsextensions/buzz/src/gateway.test.tsextensions/buzz/src/types.test.tsw1095
src/agents/agent-tools.read.host-operations.test.tssrc/agents/agent-tools.read.host-write-integrity.test.tssrc/agents/agent-tools.read.workspace-mutations.test.tssrc/agents/agent-tools.read.workspace-root-guard.test.tssrc/agents/isolated-completion.operator-model-policy.test.tssrc/agents/isolated-completion.test.tssrc/agents/isolated-completion.utility.test.tssrc/agents/provider-transport-fetch.headers.test.tssrc/agents/provider-transport-fetch.sse.test.tssrc/agents/provider-transport-fetch.test.tssrc/agents/isolated-completion.plugin-scope.test.tsw1102
config/test-mock-exports-baseline.txtextensions/feishu/src/bot.bot-threads.test.tsextensions/feishu/src/bot.broadcast.test.tsextensions/feishu/src/send.reply-fallback.test.tsextensions/feishu/src/send.retry.test.tsextensions/feishu/src/send.test.tsextensions/feishu/src/send.thread-history.test.tsw1103
src/gateway/server.plugin-http-auth.test.tssrc/gateway/server.plugin-http-role-scopes.test.tssrc/gateway/server-http.probe.test.tsw1101
scripts/lib/ci-command-test-plan.mtsscripts/lib/ci-proof-test-inventory.mtssrc/commands/doctor-session-sqlite.receipt-recovery.test.tssrc/commands/doctor-session-sqlite.recovery.test.tssrc/commands/doctor-session-sqlite.restore-history.test.tssrc/commands/doctor-session-sqlite.restore-paths.test.tssrc/commands/doctor-session-sqlite.restore-publication.test.tssrc/commands/doctor-session-sqlite.retained-source-verification.test.tssrc/commands/doctor-session-sqlite.retirement-disposal.test.tssrc/commands/doctor-session-sqlite.retirement-mutations.test.tssrc/commands/doctor-session-sqlite.retirement-verification.test.tssrc/commands/doctor-session-sqlite.shared-orphan.test.tssrc/commands/doctor-session-sqlite.source-conflict-recovery.test.tssrc/commands/doctor-session-sqlite.targets.test.tsw1104
packages/markdown-core/src/ir.block-metadata.test.tspackages/markdown-core/src/ir.blockquote-spacing.test.tspackages/markdown-core/src/ir.chunking.test.tspackages/markdown-core/src/ir.dunder-identifiers.test.tspackages/markdown-core/src/ir.emphasis-cjk.test.tspackages/markdown-core/src/ir.fenced-content.test.tspackages/markdown-core/src/ir.hr-spacing.test.tspackages/markdown-core/src/ir.links.test.tspackages/markdown-core/src/ir.metadata-work.test.tspackages/markdown-core/src/ir.nested-lists.test.tspackages/markdown-core/src/ir.raw-html.test.tspackages/markdown-core/src/ir.table-block.test.tspackages/markdown-core/src/ir.test.tspackages/markdown-core/src/ir.text-edits.test.tsw1099
scripts/lib/ci-proof-test-inventory.mtssrc/gateway/server.sessions.fast-mode-compat.test.tssrc/gateway/server.sessions.list-changed.test.tssrc/gateway/server.sessions.permission-root.test.tssrc/gateway/server.sessions.permissions-hooks.test.tssrc/gateway/server.sessions.placement-projection.test.tssrc/gateway/server.sessions.plugin-ownership.test.tssrc/gateway/server.sessions.preview-resolve.test.tssrc/gateway/server.sessions.list-changed.test-helpers.tsw1100
src/infra/device-auth-store.test.tssrc/infra/device-auth-store.worker.test.tssrc/infra/session-event-wake.poll-disposition.test.tssrc/infra/session-event-wake.preemption.test.tssrc/infra/state-migrations.workspace-setup.multi-agent.test.tssrc/infra/state-migrations.workspace-setup.portable-move.test.tssrc/infra/state-migrations.workspace-setup.test.tssrc/infra/unhandled-rejections.fatal-detection.test.tssrc/infra/unhandled-rejections.plugin-sync-hooks.test.tssrc/infra/unhandled-rejections.test.tsRejected duplicate review findings
Retained proof: Feishu recovery in
send.concurrent.test.ts; SDK error extraction and missing-ID partial delivery insend.reply-fallback.test.ts; single-object message parsing insend.test.ts; caller compare-and-delete inserver.sessions.delete-state-lifecycle.test.ts; shared sync-hook rejection containment inunhandled-rejections.plugin-sync-hooks.test.tsthroughrunSyncMessageHookStep; the common abort/throw handoff insession-event-wake.poll-disposition.test.ts; SIGTERM cancellation, deferred disposal, and lock/listener release inlist.probe.resources.test.ts; and HEAD/non-read probe methods inserver-http.probe.test.tsplus the real Gateway requests inserver/plugin-legacy-listeners.test.ts. The preview maximum remains protected bysession-display-projection.test.ts, and this batch strengthens the existing RPC test to prove forwarding of a smaller requested budget.