Repository navigation
test(providers,media,i18n): remove low-value tests (batch d049) - #159292
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, 8:59 PM ET / September 27, 2026, 00:59 UTC. ClawSweeper reviewWhat this changesThe branch consolidates and removes tests for provider plugins, media generation, Admin HTTP RPC, and Control UI translations without changing production code. Merge readiness✅ Ready for maintainer review Keep open. Current main still has the targeted test duplication, and the pinned branch is a coherent cleanup. The inspected retained tests and shared contracts preserve the key request, provider, media, and localization checks. Priority: P3 Review scores
Verification
How this fits togetherProvider plugins and the media runtime turn configured model and media requests into agent results; the Control UI locale registry turns browser language and saved preferences into translated text. This PR changes the tests around those paths. flowchart LR
A[Provider settings and requests] --> B[Provider plugins]
B --> C[Agent model and media results]
D[Browser language and preference] --> E[Locale registry]
E --> F[Control UI text]
G[Focused tests] --> B
G --> E
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -1738. Total -1738 across 24 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one high-signal test at each owner boundary, with shared contracts guarding generic behavior and focused suites guarding vendor-specific outcomes. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR addresses test maintenance rather than a reported runtime defect. The pinned diff and remaining tests provide the review path. Is this the best way to solve the issue? Yes. The branch keeps boundary-level checks and relies on shared contracts for generic behavior instead of repeating copied fixtures and catalog values. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 038b10b48de0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…claw#159292) * test(vercel-ai-gateway): deslop s343 tests * test(mistral): deslop s312 tests * test(groq): deslop s323 tests * test(together): deslop s327 tests * test(azure-speech): deslop s324 tests * test(media-generation): deslop s319 tests * test(qianfan): deslop s340 tests * test(cerebras): deslop s325 tests * test(admin-http-rpc): deslop s326 tests * test(i18n): deslop s316 tests
…k invariants The shipped-locale invariants in translate.test.ts started deriving their locale sweep from SUPPORTED_LOCALES (openclaw#159292), which accidentally broke the source-only locale flow from openclaw#131015: a locale registered before the post-merge control-ui-locale-refresh workflow commits its translation memory intentionally bootstraps from English copy, so the three "localized in shipped locale bundles" tests fail for it. Hold only locales with committed <locale>.tm.jsonl memory to those invariants. The exemption derives from the memory file's presence, so it retires itself once the refresh workflow lands translations and cannot hide a regression for any memory-backed locale. Unblocks the Catalan locale PR (openclaw#139033).
What Problem This Solves
Repeated provider fixtures, copied catalogs, and duplicate helper-level tests add maintenance and execution cost without independently protecting behavior.
User Impact
No user-visible or production behavior changes. This batch simplifies 24 test files while retaining provider authentication, error handling, media limits, HTTP cleanup, and localization regressions.
Why This Change Was Made
Replays all ten d049 campaign commits onto current main. Repeated setup is shared within each owner, duplicated cases are removed, and useful assertions are retained at registered-provider or request boundaries. DeepInfra's malformed-envelope regression remains present for the shared catalog reader.
The only replay conflict was in Azure Speech's speech-provider test. Main's newer SDK mock, default byte-limit setup, cleanup, and explicit configured-byte-limit forwarding assertion were preserved; the campaign's common synthesis fixture was applied around them. No commits were skipped, and no production seams or baselines changed.
Production/support LOC: +0 / -0. Test LOC: +675 / -2413, net -1738. No changed paths match the current CODEOWNERS rules.
Per-shard reductions and original coverage evidence
LOC reflects this replay against its main base. Declarations count static it/test sites, not expanded parameterized cases.
Original completed shard reports contain these totals (each also reports no per-file drops):
Five original reports stopped on Testbox infrastructure before after-coverage comparison. Their available baseline totals are:
These five baselines do not establish a before/after coverage result. The Mistral report's earlier -329 LOC figure is superseded by the supplied commit's -323 LOC.
Evidence
bd3f74c251abe40b02b35663a06d73d598575017. 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 <all 24 changed paths>". Testbox run, leasetbx_01m3g2dsd68vsxr41n5zm1ky2b.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 24 changed paths>passed: repository guards, formatting, core/UI and extension test typechecks, dead exports, and typed lint. Changed-gate Testbox run, leasetbx_01m3g3xjtxtgzmtjxg9xyaxmk1, command time 25m21.581s, exit 0. Both task Testbox leases were stopped. Blacksmith cleanup may mark backing Actions steps cancelled; wrapper exit/timing evidence reports success.