[PR #3236] [CLOSED] [Other] tests: three suite gaps a live PC showed (no engine, setup, serve, or docs change) #4517

Closed
opened 2026-11-07 15:36:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 0ead540 tests: 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.py died 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 new HadamardTests/NativeExpertsV5Tests classes hit NameError: 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.
  • six tools/test_conversation_cache_*.py files fail when run from the repo root (python -m unittest), as the suite is run, because tools/ is not on sys.path.

After: the iq_pack file imports without gguf-py (iq_pack needs numpy + gguf_reader only, 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.

Closed in the 0.2.0-beta tracker reset; rebased on main and re-verified per the reset note.

Approach

Guarded import + setUpClass skip in test_iq_pack.py (split_model's gate1 default moved to runtime so the module imports without gguf-py); DEFAULT_PORT patch in test_strata_mcp.py; sys.path insert 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_pack and python 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3236 **Author:** [@Buddychek](https://github.com/Buddychek) **Created:** 10/19/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `tests/live-pc-suite-gaps` --- ### 📝 Commits (1) - [`0ead540`](https://github.com/Niko1221/Strata/commit/0ead5404b6a1103b1a99031b1009c21f72c0aed1) tests: three suite gaps a live PC showed (no engine, setup, serve, or docs change) ### 📊 Changes **8 files changed** (+42 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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.py` died 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 new `HadamardTests`/`NativeExpertsV5Tests` classes hit `NameError: 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. - six `tools/test_conversation_cache_*.py` files fail when run from the repo root (`python -m unittest`), as the suite is run, because `tools/` is not on `sys.path`. After: the iq_pack file imports without gguf-py (`iq_pack` needs numpy + `gguf_reader` only, 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 + `setUpClass` skip in `test_iq_pack.py` (`split_model`'s `gate1` default moved to runtime so the module imports without gguf-py); `DEFAULT_PORT` patch in `test_strata_mcp.py`; `sys.path` insert 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_pack` and `python 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:36:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4517
No description provided.