Skip to content

test(providers,media,i18n): remove low-value tests (batch d049) - #159292

Merged
steipete merged 10 commits into
mainfrom
tcr/land-d049-1790466589
Sep 27, 2026
Merged

steipete merged 10 commits into
mainfrom
tcr/land-d049-1790466589

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

Shard Test files Test LOC before → after (delta) Declaration delta
s343 extensions/vercel-ai-gateway/{index,provider-catalog,thinking}.test.ts 352 → 218 (-134) -5
s312 extensions/mistral/{api,media-understanding-provider,memory-embedding-adapter,model-definitions,onboard,realtime-transcription-provider}.test.ts 1096 → 773 (-323) -12
s323 extensions/groq/index.test.ts 378 → 279 (-99) 0
s327 extensions/together/video-generation-provider.test.ts 468 → 245 (-223) -1
s324 extensions/azure-speech/{speech-provider,tts}.test.ts 592 → 503 (-89) -2
s319 src/media-generation/{provider-assets,registry,runtime-shared}.test.ts 794 → 597 (-197) -6
s340 extensions/qianfan/index.test.ts 240 → 63 (-177) -1
s325 extensions/cerebras/onboard.test.ts 352 → 279 (-73) -3
s326 extensions/admin-http-rpc/src/handler.test.ts 450 → 304 (-146) -4
s316 ui/src/i18n/lib/{lit-controller,registry,translate}.test.ts; ui/src/i18n/test/translate.test.ts; ui/src/i18n/transcripts-loading.test.ts 919 → 642 (-277) -10

Original completed shard reports contain these totals (each also reports no per-file drops):

s343: covered statements 78 -> 78 (0); branches 67 -> 67 (0); functions 21 -> 21 (0)
s340: covered statements 18 -> 18 (0); branches 6 -> 6 (0); functions 2 -> 2 (0)
s325: covered statements 36 -> 36 (0); branches 18 -> 18 (0); functions 6 -> 6 (0)
s326: covered statements 73 -> 73 (0); branches 43 -> 43 (0); functions 14 -> 14 (0)
s316: covered statements 475 -> 475 (0); branches 112 -> 112 (0); functions 78 -> 78 (0)

Five original reports stopped on Testbox infrastructure before after-coverage comparison. Their available baseline totals are:

s312: stmts=170/198, branches=82/118, fns=34, failed=0
s323: 81/93 statements, 43/50 branches, 12 functions
s327: statements 76/102, branches 38/63, functions 10; 0 failed groups
s324: 124 statements, 136 branches, 33 functions covered
s319: 228 statements, 170 branches, 42 functions; all groups passed

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

  • Frozen installation passed on the landing branch.
  • Targeted oxfmt, plain Oxlint, and git diff --check passed; changed-check dry run classified the expected core, plugin, and UI test lanes.
  • Blacksmith Testbox focused validation passed: 185 tests in 24 files across six Vitest shards, 79.33s test-runner wall time, Linux Node 24.19.0. The wrapper verified source 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, lease tbx_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, lease tbx_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.
  • Plain local Oxlint and diff-check passed again immediately before push; worktree clean.
  • Independent autoreview of the pinned diff completed with no findings at its default P0 threshold. A separate source review found no actionable regression in media-generation, i18n, or Admin HTTP. GitHub's required openclaw/ci-gate remains the merge gate.

@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, 8:59 PM ET / September 27, 2026, 00:59 UTC.

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The cleanup is coherent and retains representative contract checks, with focused test execution reported for the pinned head.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The changed owners are tests around provider registration, media requests, Admin HTTP responses, and locale selection; production behavior is unchanged. Repository State identifies this as a member-authored PR, and the body reports focused Testbox execution of the changed tests. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed owners are tests around provider registration, media requests, Admin HTTP responses, and locale selection; production behavior is unchanged. Repository State identifies this as a member-authored PR, and the body reports focused Testbox execution of the changed tests. No stored-data contract changes.
Evidence reviewed 7 items Pinned change scope: The merge-base-to-head delta changes only test files; the verified test merge changes the same paths against its main parent.
Still needed on main: Current main retains the static Qianfan catalog test removed by this branch, so the cleanup is not already present there. No tag contains the PR head.
Admin HTTP boundary remains covered: Retained tests check representative allowed methods, reject an excluded method before dispatch, and exercise response forwarding.
Findings None None.
Security None None.

How this fits together

Provider 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -1738. Total -1738 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 24 676 2414 -1738
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 676 2414 -1738

Review metrics

Metric Value Why it matters
Static test declarations 44 fewer across 10 shards This measures the reduced test registration surface; parameterized runtime cases are separate.

Technical review

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

Labels

Label changes:

  • add P3: This is test maintenance with no production behavior change or identified urgent regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is test maintenance with no production behavior change or identified urgent regression.
  • 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)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • qingminlong: 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 43bae89 into main Sep 27, 2026
120 of 128 checks passed
@steipete
steipete deleted the tcr/land-d049-1790466589 branch September 27, 2026 01:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…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
jcorrius added a commit to jcorrius/openclaw that referenced this pull request Oct 2, 2026
…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).
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