Repository navigation
test(plugins, model-picker, terminal): remove low-value tests (batch d043) - #159108
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 September 26, 2026, 3:02 PM ET / 19:02 UTC. ClawSweeper reviewWhat this changesThe branch consolidates and removes tests across bundled plugins, model selection, and terminal rendering without changing production code. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. Current main still has the tests this coherent cleanup proposes to prune, and no merged replacement is identified. The inspected security and behavior contracts retain stronger tests. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s plugin, model-selection, and terminal test suites check runtime behavior before changes merge. Test fixtures and production owners feed those suites; their results feed CI. flowchart TD
A[Test fixtures] --> C[Surviving test suites]
B[Production owners] --> C
C --> D[Behavior assertions]
D --> E[CI checks]
E --> F[Merge signal]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -2373. Total -2373 across 38 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one strong test at the owning behavior boundary for each contract while removing duplicate fixture assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this is test maintenance, not a reported runtime defect. The relevant validation is execution of the changed suites at the PR head. Is this the best way to solve the issue? Yes. Consolidating tests around their behavior owners is appropriate, and the inspected surviving suites retain the key contracts; measured cost is still needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b29a243dcd7f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…d043) (openclaw#159108) * test(moonshot): deslop s264 tests * test(a2a): deslop s265 tests * test(model-picker): deslop s266 tests * test(logbook): deslop s268 tests * test(deepseek): deslop s269 tests * test(zoom-meetings): deslop s263 tests * test(parallel): deslop s272 tests * test(terminal): deslop s270 tests * test(perplexity): deslop s273 tests * test(brave): deslop s261 tests
What Problem This Solves
Batch d043 removes duplicate test cases, fixture self-comparisons, copied inventories, and repeated setup that add maintenance and CI cost without distinct contract protection.
User Impact
No user-visible behavior change. Production code, test support, configuration, dependencies, and baselines are unchanged. The replay removes 2,373 net test lines across 38 files (+1,182 / -3,555).
Why This Change Was Made
Replay the ten validated campaign commits onto main at
2b2ae319c923751bc9621af6942867ccf4f3302e. All ten applied; none were skipped. There were no conflicts, manual resolutions, or dropped hunks. Existing main changes are preserved.Retain the cancellation, authority, persistence, ordering, protocol, terminal safety, and platform regressions. Named keeper suites survive, including shared provider-stream tests, model-selection owner tests, Logbook read/prune tests, meeting node-policy tests, and Parallel MCP envelope tests. Perplexity's cited Brave date-range case remains in this batch.
No changed path matches the current CODEOWNERS rules.
Evidence
pnpm install --frozen-lockfile --prefer-offline.node_modules/.bin/oxfmt --write <files>. Plainnode_modules/.bin/oxlint -c .oxlintrc.json <files>passed before every replay commit and again before push.git diff --check origin/mainpassed; the worktree is clean.node scripts/check-changed.mjs --dry-run -- <38 changed paths>passed and selected the expected core/extension typechecks, lint, and boundary guards.tbx_01m3fexnpzsatwp30serqx4afn(run) was allocated successfully, but its 30-minute idle lease expired while the overloaded local host prepared the source capsule. The focused command did not reach test execution. The fresh changed-check gate is also unrun while this source-staging operation remains active. No executed replay test or changed check failed.node scripts/crabbox-wrapper.mjs run --id <lease> --timing-json --shell -- "CI=1 pnpm install --frozen-lockfile --prefer-offline >/dev/null && CI=1 pnpm test <36 surviving changed files and 3 keeper suites>", preceded by exact source-hash verification. The additional keepers areparallel-mcp-envelope.test.ts, coremeeting-bot/node-invoke-policy.test.ts, andprovider-stream-shared.test.ts.openclaw/ci-gategates the pinned squash auto-merge. Independent autoreview is running against the pinned PR base.Coverage below is the original in-shard before/after evidence, not a newly measured coverage run on this rebased head. Nine shards preserve all covered statement/branch/function totals. s272 loses one covered statement and one branch (0.43% and 0.64%), within both 1% limits; its stronger MCP envelope keeper remains. No coverage groups were excluded.
The original s266 changed gate encountered an unrelated max-lines failure in
src/agents/embedded-agent-runner/run/attempt-session-replay.test.ts, reproduced on that shard's starting revision. Current replay validation is reported above.Per-shard files and reduction evidence
Declarations count static
it/testcalls (one per parameterized table), separately from executed table rows. Across the source shards, declarations fall 450 → 381 (-69), and executed cases fall 879 → 686 (-193).extensions/moonshot/:index.test.ts,media-understanding-provider.test.ts,native-video.test.ts,onboard.test.ts,provider-catalog.test.ts,src/kimi-web-search-provider.test.tsextensions/a2a/src/:channel.test.ts,gateway.test.ts,http.test.ts,inbound.test.ts,outbound.test.ts,protocol.test.tssrc/model-picker/:apply-session-model-selection.test.ts, deletedcapabilities.test.tsextensions/logbook/:index.test.ts,src/analyze.test.ts,src/observation-reads.test.ts,src/service-lifecycle.test.ts,src/service.test.ts,src/store.test.tsextensions/deepseek/:index.test.ts,onboard.test.ts,provider-policy-api.test.tsextensions/zoom-meetings/src/:config.test.ts, deletednode-invoke-policy.test.ts,runtime-setup.test.ts,runtime.test.ts,transports/zoom-meetings-platform-adapter.test.ts,transports/zoom-meetings-urls.test.tsextensions/parallel/src/parallel-web-search-provider.test.tspackages/terminal-core/src/:ansi.test.ts,display-string.test.ts,links.test.ts,table.test.tsextensions/perplexity/src/perplexity-web-search-provider.test.tsextensions/brave/src/:brave-web-search-provider.merge.test.ts,brave-web-search-provider.preflight.test.ts,brave-web-search-provider.test.tsOriginal shard coverage totals (statements; branches; functions):
Production LOC: +0 / -0. Separate test-support LOC: +0 / -0. Test LOC: +1,182 / -3,555.