[PR #2554] [CLOSED] tests: the golden setup configs name the image encoder as <VEXE>, so they compare on Linux too #4119

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2554
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed

Base: main ← Head: chief-serve/golden-vexe


📝 Commits (1)

  • 5c56648 tests: the golden setup configs name the image encoder as , so they compare on Linux too

📊 Changes

2 files changed (+7 additions, -6 deletions)

View changed files

📝 tools/test_setup_golden.json (+5 -5)
📝 tools/test_setup_golden.py (+2 -1)

📄 Description

Same family as #1935 (setup tests that pass or fail depending on the PC), but not in its list.

What it changes. tools/test_setup_golden.py's normalize() takes the engine's platform name out of a config
(<EXE>, #973) but not the image encoder's: setup.VEXE is strata-vision.exe on Windows and strata-vision
elsewhere. The five Unsloth UD-Q4_K_XL baselines with images were recorded on Windows, so on Linux the test failed
8 checks (test_yes x5, test_enter_for_every_question x3: '<T>/engine/strata-vision' != '<T>/engine/strata-vision.exe').
normalize() now also turns the encoder's whole name into <VEXE>, with the same whole-name pattern as <EXE>, and
those five baselines say <T>/engine/<VEXE>.

What it leaves alone. setup.py, and every other baseline value (the diff of test_setup_golden.json is the
five vision.exe lines). The existing pattern's lookarounds are [w.-] (a literal w, probably meant as \w);
I kept them as they are for both names rather than change what <EXE> matches.

How it was checked. On Linux (Ubuntu, Python 3.14): python3 tools/test_setup_golden.py fails 8 on
upstream/main, OK with this change. python3 tools/test_setup_golden.py --write on Linux records a file identical
to the committed one. Windows was not run; with setup.EXE/setup.VEXE set to the Windows names, a reviewer checked
that ...\engine\strata-vision.exe normalizes to <T>/engine/<VEXE> and that strata.exe does not match inside it.

🤖 Generated with Claude 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/2554 **Author:** [@qiuzan2001](https://github.com/qiuzan2001) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chief-serve/golden-vexe` --- ### 📝 Commits (1) - [`5c56648`](https://github.com/Niko1221/Strata/commit/5c56648f714032e4c1662ec7258c056a588ddcdf) tests: the golden setup configs name the image encoder as <VEXE>, so they compare on Linux too ### 📊 Changes **2 files changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_setup_golden.json` (+5 -5) 📝 `tools/test_setup_golden.py` (+2 -1) </details> ### 📄 Description Same family as #1935 (setup tests that pass or fail depending on the PC), but not in its list. **What it changes.** `tools/test_setup_golden.py`'s `normalize()` takes the engine's platform name out of a config (`<EXE>`, #973) but not the image encoder's: `setup.VEXE` is `strata-vision.exe` on Windows and `strata-vision` elsewhere. The five Unsloth UD-Q4_K_XL baselines with images were recorded on Windows, so on Linux the test failed 8 checks (`test_yes` x5, `test_enter_for_every_question` x3: `'<T>/engine/strata-vision'` != `'<T>/engine/strata-vision.exe'`). `normalize()` now also turns the encoder's whole name into `<VEXE>`, with the same whole-name pattern as `<EXE>`, and those five baselines say `<T>/engine/<VEXE>`. **What it leaves alone.** `setup.py`, and every other baseline value (the diff of `test_setup_golden.json` is the five `vision.exe` lines). The existing pattern's lookarounds are `[w.-]` (a literal `w`, probably meant as `\w`); I kept them as they are for both names rather than change what `<EXE>` matches. **How it was checked.** On Linux (Ubuntu, Python 3.14): `python3 tools/test_setup_golden.py` fails 8 on `upstream/main`, OK with this change. `python3 tools/test_setup_golden.py --write` on Linux records a file identical to the committed one. Windows was not run; with `setup.EXE`/`setup.VEXE` set to the Windows names, a reviewer checked that `...\engine\strata-vision.exe` normalizes to `<T>/engine/<VEXE>` and that `strata.exe` does not match inside it. 🤖 Generated with [Claude Code](https://claude.com/claude-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:33:21 +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#4119
No description provided.