mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3325] [Other] test suite is not clean on a Linux source-build machine: 48 setup-golden failures, and one module needs pytest #1350
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#1350
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?
Originally created by @Dmitry-B on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3325
Two independent reasons why
python -m unitteston a normal Linux install cannot finish clean. Neitheris an engine or server problem: both are in the test side. Both reproduced in a clean worktree of the
same commit, with no local files.
Problem 1:
tools/test_setup_goldenexpectsstrata-vision.exe, so every golden entry fails on LinuxProblem: on Linux,
python -m unittest tools.test_setup_goldenfails 48 subtests. The only differingfield in every one of them is the vision binary name:
setup.pywritesstrata-vision(correct forLinux), the recorded baseline in
tools/test_setup_golden.jsonhasstrata-vision.exe.Environment: Strata
e88ee39d(0.2.0-beta, 12 commits past thev0.2.0-betatag), Ubuntu 26.04.1,kernel 7.0.0-38, Python 3.14.4, RTX 4090 (the GPU is not involved in these tests), machine with a
source-built engine. Reproduced in
git worktree /tmp/gold-check e88ee39d- a clean tree, without ourlocal configs and scripts.
Reproduce (in the clean worktree, with the project venv):
Expected and actual, from the assertion with
maxDiff = None(the whole config matches except thesetwo lines):
All 25 entries of
tools/test_setup_golden.jsoncarry"exe": "<T>/engine/strata-vision.exe"in theirvisionblock (grep -c strata-vision.exeon that file: 25).Suspected path:
normalize()intools/test_setup_golden.py:52removes the platform engine name withre.sub(... setup.EXE ..., "<EXE>", ...), so the main binary compares platform-independently - but itdoes nothing about
setup.VEXE(setup.py:668:VEXE = "strata-vision.exe" if WIN else "strata-vision").The same treatment of
VEXE(andHVEXE) as ofEXEwould make the baseline platform-independent theway it already is for the engine binary.
Reproduction status: reproduced locally, 48/48 subtests, in a clean worktree of the same commit. Note:
the same run on engine 0.1.44.1 in October gave 8 failures from this module; the number grew with the
fixture, the cause is the same.
Problem 2:
tools/test_nvfp4_local_pack.pyimports pytest, which is not inrequirements.txtProblem: running the suite the way the repository runs it (
python -m unittest) produces an importerror instead of a skip, so a full-suite run always has at least one red item on a fresh install.
Reproduce:
Expected: either the module skips itself without pytest (as other optional-dependency tests do), or
pytest is listed in the development requirements.
Actual: after
pip install pytest(9.1.1) into the project venv, the same module passes: 9 passed,2 skipped. So nothing in the module is broken on Linux - only the dependency is not declared.
Reproduction status: reproduced locally (before and after installing pytest).
Not investigated
The other failures of a full run on this machine are machine state, not code, and are listed here only
so that the counts above can be read: 4 tests of
tools.test_strata_mcpstart their own server on port8080, which on this machine is the running production service; 2 of
tools.test_setup_engine_hashassume a downloaded engine (engine/BUILD.jsonhas"source": "local"on a machine that always compiles the engine); one
serve/test_keepawaketiming test passes on re-run.@Niko1221 commented on GitHub (Oct 27, 2026):
Thanks for the clear report. Both are test-side only and still on main. Fixed in 0.2.7: The golden file no longer depends on the platform name of the vision binary, and test_nvfp4_local_pack skips without pytest.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7