Skip to content

test(providers,core): remove low-value tests (batch d048) - #159298

Merged
steipete merged 11 commits into
mainfrom
tcr/land-d048-1790466527
Sep 27, 2026
Merged

steipete merged 11 commits into
mainfrom
tcr/land-d048-1790466527

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes repeated test executions and fixture boilerplate from nine audited test-reduction shards in maintainer campaign batch d048.

User Impact

No user-visible or production-code change. This batch removes 2,024 net test lines and 70 test declarations while retaining the distinct transport, cancellation, redaction, Unicode, memory-limit, and provider-contract regressions.

Why This Change Was Made

Consolidates overlapping scenarios at their stronger existing boundaries, removes metadata inventories and shared-helper replays, and simplifies repeated fixtures. All ten supplied commits applied in order on main at 374f893 without conflicts, skipped commits, or dropped hunks. The supplied Deepgram follow-up keeps Promise executors side-effect-only. Independent review then restored the Vydra video download size-limit and explicit capability checks, plus Deepgram lowercase authorization-override coverage (39 lines, three declarations). The suggested escaped-Digest restoration was rejected because the retained encoded quoted-pairs, serialized Digest headers, and nested serialization cases already protect that grammar.

The diff changes 40 test files: +997 / -3,021 lines, net -2,024. Production and separate test-support files: +0 / -0. Changed-file test LOC is 8,449 -> 6,425; declarations are 403 -> 333. Parameter tables count as one declaration, so declaration counts differ from executed test counts. No changed paths match the current CODEOWNERS rules.

Evidence

Saved in-shard coverage evidence is listed below; it is campaign evidence, not a fresh coverage measurement of this rebased head. The s321, s322, and s317 report prose predates successful follow-up snapshots; their totals were recomputed from those saved before/after snapshots. Every compared group passed, with no per-file covered-counter drops. Historical infrastructure failures in shard reports are not claimed as passed checks.

Shard files, reductions, and coverage totals
Shard Changed test files Test LOC before -> after Declarations before -> after
s310 Tencent extensions/tencent/{config-compat,index,onboard}.test.ts 784 -> 530 (-254) 23 -> 17 (-6)
s306 Inworld extensions/inworld/{speech-provider,tts}.test.ts 779 -> 594 (-185) 38 -> 28 (-10)
s303 Vydra extensions/vydra/{image-generation-provider,shared,speech-provider,video-generation-provider}.test.ts 923 -> 658 (-265) 30 -> 22 (-8)
s321 SearXNG extensions/searxng/src/{searxng-client,searxng-client.transport,searxng-search-provider}.test.ts 685 -> 475 (-210) 22 -> 17 (-5)
s307 link-understanding src/link-understanding/{detect,runner,runner.transport}.test.ts 794 -> 656 (-138) 30 -> 22 (-8)
s322 normalization-core packages/normalization-core/src/{boolean-coercion,cjk-chars,code-points,error-coercion,json-coercion,markdown-plain-text,number-coercion,phone-presentation,record-coerce,result,stable-stringify,string-normalization,utf16-slice}.test.ts (result.test.ts deleted) 1,590 -> 1,431 (-159) 117 -> 112 (-5)
s313 media-core packages/media-core/src/{attachment-classify,base64,mime}.test.ts 986 -> 571 (-415) 57 -> 46 (-11)
s320 acp-core packages/acp-core/src/{error-format,session-interaction-mode,session-lineage-meta,session}.test.ts; packages/acp-core/src/runtime/{error-text,errors,session-identifiers}.test.ts 1,162 -> 904 (-258) 62 -> 50 (-12)
s317 Deepgram, including executor fix extensions/deepgram/{audio,realtime-transcription-provider}.test.ts 746 -> 606 (-140) 24 -> 19 (-5)

Totals lines from the shard reports:

s310: covered statements 83 -> 83 (0); branches 41 -> 41 (0); functions 22 -> 22 (0)
s306: covered statements 120 -> 120 (0); branches 96 -> 96 (0); functions 27 -> 27 (0)
s303: covered statements 164 -> 164 (0); branches 120 -> 120 (0); functions 34 -> 34 (0)
s307: covered statements 127 -> 128 (1); branches 87 -> 88 (1); functions 20 -> 20 (0)
s313: covered statements 411 -> 411 (0); branches 367 -> 367 (0); functions 68 -> 68 (0)
s320: covered statements 470 -> 470 (0); branches 362 -> 362 (0); functions 62 -> 62 (0)

Follow-up totals recomputed from s321-before.json/s321-after.json, s322-before.json/s322-after-local.json, and s317-before.json/s317-after-local.json:

s321: covered statements 111 -> 111 (0); branches 75 -> 75 (0); functions 23 -> 23 (0)
s322: covered statements 684 -> 684 (0); branches 639 -> 639 (0); functions 160 -> 160 (0)
s317: covered statements 183 -> 183 (0); branches 120 -> 120 (0); functions 26 -> 26 (0)

@clawsweeper

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

@clawsweeper

clawsweeper Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 9:21 PM ET / September 27, 2026, 01:21 UTC.

ClawSweeper review

What this changes

Consolidates repeated fixtures and assertions in provider and core tests for audio, search, media, ACP sessions, normalization, and link handling.

Merge readiness

✅ Ready for maintainer review

Current main does not contain this test cleanup. The reviewed high-risk areas retain checks for provider limits, link filtering, and session cleanup, and no concrete patch defect or safe replacement warrants closing this PR.

Priority: P3
Reviewed head: 0362d693e56bf7011e8b70c27446b32331b07aa5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The cleanup has a clear coverage rationale, retained boundary checks, and focused validation evidence, with no concrete defect found.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The changed owner is the test suite, with no production entry point or stored-data contract changed; the supplied Repository State identifies this as a member-authored PR. The body reports a prior-head Testbox run of the remaining changed suites and final-head focused provider checks, but those command results are not a claim of production runtime proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed owner is the test suite, with no production entry point or stored-data contract changed; the supplied Repository State identifies this as a member-authored PR. The body reports a prior-head Testbox run of the remaining changed suites and final-head focused provider checks, but those command results are not a claim of production runtime proof.
Evidence reviewed 9 items Introduced scope: The pinned merge-base-to-head delta changes test files only; it does not add production, dependency, workflow, or stored-data code.
Still unique to this PR: The verified test merge changes the same test paths relative to its current-main parent. The branch has no containing release tag.
Retained provider boundary checks: The final Vydra suite still checks the configured video download cap and the submit, poll, and download request policy.
Findings None None.
Security None None.

How this fits together

These tests feed provider and core behavior through fixtures and local transports into Vitest. Their results provide CI regression signals; this branch does not change production code.

flowchart LR
A[Production modules] --> C[Provider and core tests]
B[Fixtures and local transports] --> C
C --> D[Vitest runner]
D --> E[CI regression signal]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -2024. Total -2024 across 40 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 40 983 3007 -2024
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 40 983 3007 -2024

Review metrics

None.

Technical review

Best possible solution:

Keep one strong regression check for each distinct provider and core contract while allowing this smaller suite to replace repeated fixture and helper checks.

Do we have a high-confidence way to reproduce the issue?

Not applicable: the PR consolidates tests rather than reporting a production defect. Current main still has the test cases targeted by the cleanup.

Is this the best way to solve the issue?

Yes: the sampled removals consolidate repeated checks while retaining representative transport, limit, security-filtering, and lifecycle coverage at their owning boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f8a3418494f0.

Labels

Label changes:

  • add P3: This is an internal test-maintenance change without a production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is an internal test-maintenance change without a production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • teddytennant: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • xialonglee: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 cf877db into main Sep 27, 2026
118 of 122 checks passed
@steipete
steipete deleted the tcr/land-d048-1790466527 branch September 27, 2026 01:26
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Sep 27, 2026
33 upstream commits, including two low-value test batches (d048, d049)
and Ultrafast for supported models (openclaw#158703). No file outside the
generated set changed on both sides.

Two conflicts, both generated: docs/.generated/config-baseline.counts.json
and docs/.generated/config-baseline.sha256. This time the two sides moved
different columns. This branch took the channel count from 3748 to 3750,
and upstream's openclaw#158703, the only upstream commit on those files, took the
plugin count from 4349 to 4350, so the combined count is channel 3750 and
plugin 4350. Both files came from upstream and were regenerated, along
with the channel metadata, which upstream did not touch.

build:docker ran in a separate detached checkout of this commit outside the
nested node_modules install. Regenerating there changed the counts and hash files and left
the channel metadata identical, giving core 2463, channel 3750, plugin
4350 as predicted, this branch's channel hash and upstream's plugin hash.
The three generated-file checks pass there. The lockfile did not move.
No test this branch moved was deleted upstream in this range. The one
test file upstream deleted outright (openclaw#159298) is one this branch never
touched.

Feishu: 105 files and 1850 tests in the extension project, 17 files and
319 tests in the database-workers project, all 122 Feishu test files on
disk. The forwarder test and the routing guards pass, 1964 tests.
tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the
line-cap, max-lines and assertion-safety ratchets against upstream/main,
oxlint and oxfmt on the 42 changed code files all pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…59298)

* test(tencent): deslop s310 tests

* test(inworld): deslop s306 tests

* test(vydra): deslop s303 tests

* test(searxng): deslop s321 tests

* test(link-understanding): deslop s307 tests

* test(normalization-core): deslop s322 tests

* test(media-core): deslop s313 tests

* test(acp-core): deslop s320 tests

* test(deepgram): deslop s317 tests

* test(deepgram): keep promise executors side-effect only

* test(providers): retain distinct contract coverage after reduction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant