mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2691] [CLOSED] tools tests: the golden compare takes either platform's engine names, on both sides #4217
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#4217
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/2691
Author: @clothespin
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:test-golden-engine-names📝 Commits (1)
2b5e9cetools tests: the golden compare takes either platform's engine names, on both sides📊 Changes
1 file changed (+22 additions, -2 deletions)
View changed files
📝
tools/test_setup_golden.py(+22 -2)📄 Description
Title
Issue: none. No open issue or pull request covers this (searched
test_setup_golden,strata-vision.exeandgolden).It is a test-only bug, separate from #2041, which is where I hit it.
Summary
tools/test_setup_golden.pycannot match the committed baseline on Linux. The baseline was recorded on Windows, so itsfive unsloth UD-Q4_K_XL configs hold
"<T>/engine/strata-vision.exe", while on Linux setup writesstrata-vision(
setup.py:498,VEXE = "strata-vision.exe" if WIN else "strata-vision").normalize()replaced onlysetup.EXE, andonly in the config it had just written - the baseline read back in
setUpClasswas compared as it was. EveryUD-Q4_K_XL case therefore differs on Linux: 8 failures, on a clean checkout of
origin/main(296b59d2) as much as on abranch. One commit,
tools/test_setup_golden.pyonly;tools/test_setup_golden.jsonis untouched.Re-recording with
--writeis not the fix. On Linux it changes exactly those five lines and nothing else, which makesthe baseline Linux-spelled and moves all five onto Windows.
What changed
canonical()maps either platform's spelling of an engine name to one placeholder (<EXE>,<VEXE>), andcanonical_all()runs it through the baseline insetUpClass, so a file recorded on either platform compares on both.Both names come from
setup.EXEandsetup.VEXEwith the extension stripped, so they cannot drift away from setup.normalize()now callscanonical().#973's rule is kept: only the whole name matches, sostrata-device.exe,strata-x.logandstrata-vision-benchareleft alone.
tools/test_setup_golden.jsonis untouched, so nothing about what the baseline asserts changes - only howthe two sides are compared.
Left alone:
setup.py, the baseline JSON, every other test.How I checked
Linux, no GPU used,
python tools/test_setup_golden.py:origin/main(296b59d2):FAILED (failures=8)- 5 intest_yes, 3 intest_enter_for_every_question(the other two UD-Q4_K_XL profiles are skipped by the existingram < 48guard);OK, 4 tests;"<T>/engine/strata-vision.exe"and"<T>/engine/strata-vision"both reduce to"<T>/engine/<VEXE>", as dostrata.exeandstratato<EXE>, so Windows - where both sides already agree -behaves as it did;
strata-device.exe,strata-x.log,strata-vision-benchand an already-replaced<EXE>comeback unchanged.
tools/test_setup_*.pyandtools/test_strata_mcp.pypasses as it did before the change.Not tested
canonical()mapsstrata-vision.exeto<VEXE>on bothsides of the compare, which is what
normalize()already did to the live side, so the change should be a no-op there--writewould produce one; I reverted it rather than commit a platform-specificbaseline.
Extra Notes
tools/test_setup_engine_hash.pyfails 2 tests onmain, unrelated to this and left as it is:AssertionError: SystemExit not raisedintest_a_first_install_stops_because_there_is_nothing_to_fall_back_to, andAssertionError: 'keeping the engine that is installed' not found in ''intest_updating_keeps_the_installed_engine_instead_of_stopping. Both areget_prebuilt()'s SHA-256 refusal. Worth itsown issue.
python tools/test_setup_golden.pyreports those 8 failures on #2041's branch too, which makes thatPR's "tests pass" line need a caveat it would rather not have.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.