Repository navigation
perf(test): reduce LM Studio stream suite setup - #124136
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 15, 2026 09:37
Contributor
Author
|
Land-ready proof for exact head
Native review artifacts validate with |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The 26-test LM Studio stream suite rebuilt the Plugin SDK, LLM, provider, and stream module graph before every test. That made this focused suite unnecessarily slow and memory-heavy, with roughly 11 seconds of test-body time and about 1.5 GiB peak RSS in the controlled baseline.
Why This Change Was Made
The suite now installs exact mocks for the three seams consumed by the stream owner and imports the real stream module once. Each test receives a unique production cache namespace through its LM Studio base URL, preserving within-test preload deduplication, cooldown, retry, canonical-model-key, cancellation, compatibility, and payload behavior without adding a test-only production seam.
Real model-loading behavior remains owned by
models.test.ts; provider-header and runtime API-key behavior remains owned byruntime.test.ts. This is an AI-assisted maintainer change that I reviewed and understand.User Impact
There is no product runtime behavior change. Maintainers and CI get a materially lighter LM Studio stream test suite while retaining the same 26 tests and owner-boundary coverage.
Evidence
Controlled same-Testbox A/B, excluding one warmup per state: https://github.com/openclaw/openclaw/actions/runs/31876152650
Behavior and isolation proof:
git diff --check: passed.tbx_01m02c3dgm6hg08dm0rr55hzp9: https://github.com/openclaw/openclaw/actions/runs/31877142937origin/main: clean, no accepted/actionable findings.53ed70cc8b9b69d3eff77e549d291ccd0cbac26d.No release, package publication, version bump, dependency change, schema/protocol change, baseline/snapshot/budget change, or
CHANGELOG.mdedit is included or requested.