mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3236] [CLOSED] [Other] tests: three suite gaps a live PC showed (no engine, setup, serve, or docs change) #4517
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4517
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3236
Author: @Buddychek
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:tests/live-pc-suite-gaps📝 Commits (1)
0ead540tests: three suite gaps a live PC showed (no engine, setup, serve, or docs change)📊 Changes
8 files changed (+42 additions, -4 deletions)
View changed files
📝
tools/test_conversation_cache_disabled.py(+2 -0)📝
tools/test_conversation_cache_growth.py(+2 -0)📝
tools/test_conversation_cache_http_smoke.py(+2 -0)📝
tools/test_conversation_cache_isolation.py(+2 -0)📝
tools/test_conversation_cache_parity.py(+2 -0)📝
tools/test_conversation_cache_soak.py(+2 -0)📝
tools/test_iq_pack.py(+26 -4)📝
tools/test_strata_mcp.py(+4 -0)📄 Description
Problem and result
On a live PC (Windows 11, RTX 4090, a Strata server serving on the default port 8080) three suite gaps made the tools tests fail for reasons unrelated to the code under test:
tools/test_iq_pack.pydied at import on a checkout without llama.cpp's gguf-py (_paths.gguf_py()exits hard there). After the rebase onto current main, upstream's newHadamardTests/NativeExpertsV5Testsclasses hitNameError: name 'iq_pack' is not defined(18 errors).tools/test_strata_mcp.py: the discovery scans were answered by the live server on 8080, not by the tests' own servers.tools/test_conversation_cache_*.pyfiles fail when run from the repo root (python -m unittest), as the suite is run, becausetools/is not onsys.path.After: the iq_pack file imports without gguf-py (
iq_packneeds numpy +gguf_readeronly, so it is imported unguarded), the GGUF-fixture classes (Compatibility, Conversion, SplitArtifact, NativeExpertsV5) skip with a named reason, the MCP tests see only their own servers, and the cache tests run from the repo root. No engine, setup, serve, or docs change.Related discussion
Closed in the 0.2.0-beta tracker reset; rebased on main and re-verified per the reset note.
Approach
Guarded import +
setUpClassskip intest_iq_pack.py(split_model'sgate1default moved to runtime so the module imports without gguf-py);DEFAULT_PORTpatch intest_strata_mcp.py;sys.pathinsert in the six cache tests.Validation
Passed, rebased on 0.2.0-beta main (
e88ee39d), Windows 11, Python 3.15:python -m unittest tools.test_iq_packandpython tools/test_iq_pack.py: 3 ran / 4 skipped, exit 0 (both start forms; the 4 skips are the GGUF-fixture classes on a checkout without llama.cpp).tools.test_strata_mcp: OK, exit 0.tools.test_conversation_cache_disabled/_growth/_isolation: 14 tests OK, exit 0.Not run: the full tools suite in CI; no engine, setup, serve, or docs code touched.
Limits
The skips are conditional on gguf-py being absent; with llama.cpp cloned the classes run as before. No behavior change for any shipped code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.