Skip to content

test(plugins, model-picker, terminal): remove low-value tests (batch d043) - #159108

Merged
steipete merged 10 commits into
mainfrom
tcr/land-d043-1790445796
Sep 26, 2026
Merged

steipete merged 10 commits into
mainfrom
tcr/land-d043-1790445796

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

  • Local dependency installation passed: pnpm install --frozen-lockfile --prefer-offline.
  • All 36 surviving changed files passed node_modules/.bin/oxfmt --write <files>. Plain node_modules/.bin/oxlint -c .oxlintrc.json <files> passed before every replay commit and again before push. git diff --check origin/main passed; 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.
  • Fresh Testbox proof gap: Blacksmith Testbox 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.
  • Intended focused command: 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 are parallel-mcp-envelope.test.ts, core meeting-bot/node-invoke-policy.test.ts, and provider-stream-shared.test.ts.
  • This batch follows the maintainer-authorized infrastructure exception: original shard proof below remains available, fresh validation limitations are explicit, and hosted openclaw/ci-gate gates 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/test calls (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).

Shard Files touched (relative to prefix) Test LOC added / deleted (net) Declarations before → after Original executed cases
s264 Moonshot 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.ts +283 / -654 (-371) 36 → 30 58 → 46
s265 A2A extensions/a2a/src/: channel.test.ts, gateway.test.ts, http.test.ts, inbound.test.ts, outbound.test.ts, protocol.test.ts +70 / -250 (-180) 57 → 54 112 → 89
s266 model picker src/model-picker/: apply-session-model-selection.test.ts, deleted capabilities.test.ts +97 / -405 (-308) 25 → 16 44 → 27
s268 Logbook extensions/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.ts +130 / -248 (-118) 66 → 61 97 → 84
s269 DeepSeek extensions/deepseek/: index.test.ts, onboard.test.ts, provider-policy-api.test.ts +140 / -457 (-317) 32 → 25 38 → 26
s263 Zoom meetings extensions/zoom-meetings/src/: config.test.ts, deleted node-invoke-policy.test.ts, runtime-setup.test.ts, runtime.test.ts, transports/zoom-meetings-platform-adapter.test.ts, transports/zoom-meetings-urls.test.ts +88 / -347 (-259) 46 → 34 98 → 85
s272 Parallel extensions/parallel/src/parallel-web-search-provider.test.ts +18 / -150 (-132) 44 → 35 50 → 38
s270 terminal packages/terminal-core/src/: ansi.test.ts, display-string.test.ts, links.test.ts, table.test.ts +57 / -271 (-214) 96 → 85 240 → 193
s273 Perplexity extensions/perplexity/src/perplexity-web-search-provider.test.ts +70 / -200 (-130) 13 → 13 49 → 34
s261 Brave extensions/brave/src/: brave-web-search-provider.merge.test.ts, brave-web-search-provider.preflight.test.ts, brave-web-search-provider.test.ts +229 / -573 (-344) 35 → 28 93 → 64

Original shard coverage totals (statements; branches; functions):

s264: covered statements 224 -> 224 (0); branches 145 -> 145 (0); functions 48 -> 48 (0)
s265: covered statements 366 -> 366 (0); branches 199 -> 199 (0); functions 50 -> 50 (0)
s266: covered statements 95 -> 95 (0); branches 99 -> 99 (0); functions 8 -> 8 (0)
s268: covered statements 629 -> 629 (0); branches 305 -> 305 (0); functions 134 -> 134 (0)
s269: covered statements 76 -> 76 (0); branches 59 -> 59 (0); functions 23 -> 23 (0)
s263: covered statements 143 -> 143 (0); branches 121 -> 121 (0); functions 58 -> 58 (0)
s272: covered statements 233 -> 232 (-1); branches 156 -> 155 (-1); functions 43 -> 43 (0)
s270: covered statements 829 -> 829 (0); branches 667 -> 667 (0); functions 123 -> 123 (0)
s273: covered statements 142 -> 142 (0); branches 134 -> 134 (0); functions 24 -> 24 (0)
s261: covered statements 175 -> 175 (0); branches 137 -> 137 (0); functions 33 -> 33 (0)

Production LOC: +0 / -0. Separate test-support LOC: +0 / -0. Test LOC: +1,182 / -3,555.

@clawsweeper

clawsweeper Bot commented Sep 26, 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) September 26, 2026 18:57
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 26, 2026, 3:02 PM ET / 19:02 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: b7eb679b6a02a54168796c20508865dc6d66072b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The cleanup is coherent and preserves the inspected contract tests; measured cost is the remaining evidence gap.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only branch changes no production behavior or stored-data contract. The PR supplies original shard comparisons; its fresh focused replay did not execute, and hosted exact-head checks remained pending in the captured context.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only branch changes no production behavior or stored-data contract. The PR supplies original shard comparisons; its fresh focused replay did not execute, and hosted exact-head checks remained pending in the captured context.
Evidence reviewed 9 items Introduced change: The pinned introduction and verified test merge change test files only; current main still contains the unpruned suites.
A2A command guard: The surviving inbound test checks rejection before dispatch, matching the production guard for peer slash commands.
Zoom policy keeper: The shared meeting policy suite still checks that caller-supplied commands are replaced with trusted configured overrides.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

  • Resolve merge risk (P1) - The stated CI-cost reduction has case counts but no measured wall time for the materially changed test files, as required by the repository’s test policy.
  • Complete next step (P2) - Record measured single-worker wall time for materially changed test files and CI seconds once hosted checks complete, or cite a maintainer-approved exception covering cost reporting.
Agent review details

Security

None.

PR surface

Tests -2373. Total -2373 across 38 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 38 1185 3558 -2373
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 38 1185 3558 -2373

Review metrics

Metric Value Why it matters
Original shard executions 879 → 686 cases (-193) The historical shard comparison shows less test work, though it does not measure wall-time savings on this head.
Original shard coverage 9 of 10 unchanged; 1 lost one statement and one branch This bounds the reported coverage change while keeping the historical and fresh validation evidence distinct.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one strong test at the owning behavior boundary for each contract while removing duplicate fixture assertions.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is internal test maintenance with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only branch changes no production behavior or stored-data contract. The PR supplies original shard comparisons; its fresh focused replay did not execute, and hosted exact-head checks remained pending in the captured context.

Label justifications:

  • P3: This is internal test maintenance with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only branch changes no production behavior or stored-data contract. The PR supplies original shard comparisons; its fresh focused replay did not execute, and hosted exact-head checks remained pending in the captured context.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ac0ae1c adds extensions/brave/src/brave-web-search-provider.preflight.test.ts:13 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ac0ae1c824d8; files: extensions/brave/src/brave-web-search-provider.preflight.test.ts)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add measured test wall times and CI seconds to the PR body when hosted results are available.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 8d8bd43 into main Sep 26, 2026
125 of 132 checks passed
@steipete
steipete deleted the tcr/land-d043-1790445796 branch September 26, 2026 19:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: a2a extensions: brave extensions: deepseek extensions: moonshot extensions: parallel extensions: perplexity P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: logbook Logbook automatic work journal plugin plugin: zoom Zoom plugin rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant