Repository navigation
test(providers,core): remove low-value tests (batch d048) - #159298
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: needs maintainer review before merge. Reviewed September 26, 2026, 9:21 PM ET / September 27, 2026, 01:21 UTC. ClawSweeper reviewWhat this changesConsolidates 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 Review scores
Verification
How this fits togetherThese 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -2024. Total -2024 across 40 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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.
…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
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
Totals lines from the shard reports:
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: