Repository navigation
refactor(lmstudio): consolidate provider setup test fixtures - #117660
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 6:15 PM ET / 22:15 UTC. ClawSweeper reviewWhat this changesThe PR consolidates repeated LM Studio provider-setup test fixtures around shared public test helpers and typed LM Studio-local fixture builders, without intending to change production behavior. Merge readinessKeep this fresh, assigned, maintainer-labeled test refactor open for normal maintainer review. The visible patch uses the intended public plugin-test SDK seams and reports focused remote validation, but this read-only checkout could not hydrate the complete PR blob after its promisor remote failed DNS resolution, so an independent full parity review is incomplete. Priority: P3 Review scores
Verification
How this fits togetherLM Studio is a bundled provider plugin whose setup routines construct provider configuration, selected-model data, and authentication outcomes. Its test suite invokes those plugin-owned routines through public Plugin SDK contracts and checks the resulting config and runtime interactions. flowchart LR
A[Provider setup test cases] --> B[Public test SDK helpers]
B --> C[LM Studio fixture builders]
C --> D[LM Studio setup routines]
D --> E[Provider config and auth outcomes]
E --> F[Assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -365. Total -365 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Review the complete branch in a fully hydrated checkout, verify that each setup scenario and matcher remains equivalent, and then land the test-only cleanup without changing LM Studio runtime behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors test fixtures rather than reporting a runtime failure. The supplied body reports focused and adjacent remote test runs, but this review did not execute tests in the read-only checkout. Is this the best way to solve the issue? Unclear: consolidating onto existing public Plugin SDK test helpers matches the extension boundary, but the unavailable complete PR blob prevents independently confirming every claimed assertion and table-case parity detail. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 59f1f4f3fdd7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
LM Studio's provider-setup coverage repeated configuration construction, wizard plumbing, model fixtures, discovery setup, and authentication assertions throughout one oversized suite. Maintaining those copies obscured the actual auth, retry, cancellation, and provider-selection invariants.
Why This Change Was Made
Use the existing public plugin-test SDK queued-wizard and non-exiting-runtime helpers, the canonical deferred and record helpers, and small strongly typed LM Studio-specific fixtures. Keep every existing scenario, table row, matcher, assertion argument, and provider-owner boundary unchanged.
User Impact
No production code or user-visible behavior changes. Maintainers get the identical LM Studio setup and discovery coverage with 365 fewer test lines.
Evidence
extensions/lmstudio/src/setup.test.tschanges: 1,629 -> 1,264 lines; +363/-728, net -365. Production LOC delta: 0.[3, 3, 5, 2, 4], 83 matcher chains plus two asymmetric matchers, and unchanged actual/expected matcher arguments.d216075d40ade8db8b011119ac005992d97fe11733d8c6bf003c3777dc53e2df; ordered matcher/argument SHA-256:a5879fb042224026e42051ea4f1503bc7e595988522f98675fdf129108d7d66f.tbx_01kyzn72qpq7g602qza2prm3t6:corepack pnpm test extensions/lmstudio/src/setup.test.ts— 45/45 passed.corepack pnpm test extensions/lmstudio/index.test.ts extensions/lmstudio/src/runtime.test.ts extensions/lmstudio/src/models.test.ts extensions/ollama/src/setup.non-interactive-auth.test.ts— 84/84 passed across four files.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 corepack pnpm check:changed— passed, including extension-test typecheck, changed-file lint, formatting, dead-export checks, and plugin boundaries.gpt-5.6-solxhigh owner/dependency-contract review: CLEAN. Fresh structured.agents/skills/autoreview/scripts/autoreview --mode uncommitted --engine codex --model gpt-5.6-sol --thinking xhigh: CLEAN.git merge-tree --write-tree origin/main bce7088fd1ffa54ac11a2d3dd95d4b8a3ec007b9passed against59f1f4f3fdd744837a6f69aa1e2652c2d1e4fc49; no touched-file drift.