Repository navigation
Conversation
On Linux the script stopped at '--wine is required outside Windows' even with WINE naming the Wine to use (e.g. UMU-Proton's files/bin/wine), while run_wine_tests.py already defaults --wine to $WINE. --wine now defaults to $WINE (blank counts as unset); --wine still wins when both are given.
xel1uz
left a comment
There was a problem hiding this comment.
The Linux precedence cases pass, but on native Windows an ambient WINE now changes a launch even when the caller omits --wine. With a missing binary the parser exits 2; with an existing one, the guest path builder prefixes an already native drive path with Z:. All five new Wine tests skip on Windows.
The inline change restored native paths in the Windows check while preserving the five Wine tests and six reference tests on Ubuntu. Please add a native-Windows regression case and qualify the CLI help accordingly. The original Wine change is draft #313; the description currently points to #312. AI-assisted review, CPU only.
| ap.add_argument("--shaders", type=Path, required=True, help="shader root containing spirv/") | ||
| ap.add_argument("--out", type=Path, help="new or empty folder (default: a temporary folder, removed afterwards)") | ||
| ap.add_argument("--wine", help="run the loader through this Wine binary") | ||
| ap.add_argument("--wine", default=os.environ.get("WINE") or None, |
There was a problem hiding this comment.
Read the environment default on hosts that use Wine for the guest. An explicit --wine still takes precedence.
| ap.add_argument("--wine", default=os.environ.get("WINE") or None, | |
| ap.add_argument("--wine", default=(os.environ.get("WINE") or None) if os.name != "nt" else None, |
|
Thank you for catching that, @xel1uz! Pushed follow-up commit
|
lixonik
left a comment
There was a problem hiding this comment.
Rechecked the follow-up at df763ce9 on native Windows and Ubuntu under WSL. With the same inherited WINE pointing to a missing path and no explicit flag, the first PR head exited 2 on native Windows and the follow-up left the native launch selected. The three Windows cases passed, and all eight tests passed under Ubuntu. A separate CLI run on Ubuntu launched a synthetic wrapper from a relative WINE path containing spaces, forwarded --wine-arg, and preserved an explicit --wine override. The wrapper was launched after the runner switched into its output overlay.
AI-assisted review. CPU-only checks with synthetic inputs and launchers.
xel1uz
left a comment
There was a problem hiding this comment.
Approving df763ce9: the follow-up resolves what I requested.
- Native Windows (Python 3.12,
WINEset to a missing path, no--wine):tests/test_run_guest_scene_wine.py8 tests OK (the 3 Windows-mode cases pass, the 5 POSIX cases skip),tests/test_guest_scene_reference.py6/6 OK. -
- Bite check: with
scripts/run_guest_scene.pyfrom the first head (f3cd82af), the 3 Windows-mode cases fail.
- Bite check: with
-
-
- Linux (Ubuntu 26.04, Python 3.14): both files OK on the PR head and on the PR merged with current
main(merges without conflicts).
AI-assisted review, CPU only.
- Linux (Ubuntu 26.04, Python 3.14): both files OK on the PR head and on the PR merged with current
-
What changed
Carries forward
old-pr/10047(draft #313, original commit by @SkippySteve) rebased cleanly ontomain(2e026b03e), preserving the original author commit and adding a follow-up fix for native Windows:@SkippySteve):scripts/run_guest_scene.py: default--wineto$WINEwhen--wineis omitted (blank counts as unset;--winestill overrides), include the missing binary path in--wine: not found: ..., and update CLI/docstring messages.tests/test_run_guest_scene_wine.py: 5 unit tests covering$WINEpickup,--wine-argwith$WINE,--wineoverriding$WINE, missing/empty$WINErefusal outside Windows, and nonexistent$WINEreporting.df763ce9f, addressing @xel1uz's review):scripts/run_guest_scene.py: only read$WINEas the default outside Windows (os.name != "nt"), qualify the docstring /--winehelp text (default: $WINE outside Windows), and keep--wine-arg requires --wineon Windows.tests/test_run_guest_scene_wine.py: addRunGuestSceneWindowsEnvTest(3 tests, runs on every platform via aSimpleNamespacestub onrunner.os) confirming ambientWINE(existing or missing) is ignored on Windows, explicit--winestill works, and--wine-argrequires explicit--wine.Item ID
OLD-10047(carries forwardold-pr/10047/ draft run_guest_scene: take the Wine from $WINE when --wine is not given #313, Open PRs from the original repo: 251 old-pr/* branches, reopened as draft PRs #17)Verification
Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only):
TMPDIR=/var/tmp python3 -I tests/test_run_guest_scene_wine.py -v-> 8/8 OK (5 POSIX + 3 Windows-mode tests)python3 -I tests/test_guest_scene_reference.py -v-> 6/6 OKHEAD~1(without the Windows guard) -> FAILED (3 failures) across all 3 Windows ambient-WINEchecks; mutation check vsmain-> FAILED (3 failures, 2 errors); restoringHEADreturns to 8/8 OK.python3 -m compileall -q scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py-> OKpython3 -I scripts/check_no_game_data.py scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py-> OKpython3 -I tests/test_ci_registration.py-> 15/15 OKpython3 -I tests/test_text_write_line_endings.py-> 3/3 OKChecklist