[PR #1239] run_guest_scene: take the Wine from $WINE when --wine is not given (OLD-10047) #1271

Open
opened 2026-11-26 20:20:40 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1239
Author: @IlyassRS3
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-10047-run-guest-scene-wine


📝 Commits (2)

  • f3cd82a run_guest_scene: take the Wine from $WINE when --wine is not given
  • df763ce run_guest_scene: ignore ambient WINE on native Windows

📊 Changes

2 files changed (+129 additions, -4 deletions)

View changed files

📝 scripts/run_guest_scene.py (+7 -4)
➕ tests/test_run_guest_scene_wine.py (+122 -0)

📄 Description

What changed

Carries forward old-pr/10047 (draft #313, original commit by @SkippySteve) rebased cleanly onto main (2e026b03e), preserving the original author commit and adding a follow-up fix for native Windows:

  1. Original commit (@SkippySteve):
    • scripts/run_guest_scene.py: default --wine to $WINE when --wine is omitted (blank counts as unset; --wine still 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 $WINE pickup, --wine-arg with $WINE, --wine overriding $WINE, missing/empty $WINE refusal outside Windows, and nonexistent $WINE reporting.
  2. Follow-up commit (df763ce9f, addressing @xel1uz's review):
    • scripts/run_guest_scene.py: only read $WINE as the default outside Windows (os.name != "nt"), qualify the docstring / --wine help text (default: $WINE outside Windows), and keep --wine-arg requires --wine on Windows.
    • tests/test_run_guest_scene_wine.py: add RunGuestSceneWindowsEnvTest (3 tests, runs on every platform via a SimpleNamespace stub on runner.os) confirming ambient WINE (existing or missing) is ignored on Windows, explicit --wine still works, and --wine-arg requires explicit --wine.

Item ID

  • Coordination issue #14 item: OLD-10047 (carries forward old-pr/10047 / draft #313, #17)
  • Depends on: none

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 OK
  • Mutation check vs HEAD~1 (without the Windows guard) -> FAILED (3 failures) across all 3 Windows ambient-WINE checks; mutation check vs main -> FAILED (3 failures, 2 errors); restoring HEAD returns to 8/8 OK.
  • python3 -m compileall -q scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py -> OK
  • python3 -I scripts/check_no_game_data.py scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py -> OK
  • python3 -I tests/test_ci_registration.py -> 15/15 OK
  • python3 -I tests/test_text_write_line_endings.py -> 3/3 OK

Checklist

  • No game files, binaries, shaders, textures, audio, or logs quoting them
  • No keys, decryption, or online services
  • Claimed in the coordination issue (#14) before opening this PR
  • AI-assisted: yes (carried forward, audited, rebased, updated per review, and regression-verified with AI assistance; original commit by @SkippySteve preserved)

🔄 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/ubiquitarianism/leonida/pull/1239 **Author:** [@IlyassRS3](https://github.com/IlyassRS3) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-10047-run-guest-scene-wine` --- ### 📝 Commits (2) - [`f3cd82a`](https://github.com/ubiquitarianism/leonida/commit/f3cd82af03002723c0bed8614ab76e03bc8029fe) run_guest_scene: take the Wine from $WINE when --wine is not given - [`df763ce`](https://github.com/ubiquitarianism/leonida/commit/df763ce9fbf1e4b4e3fc59391385286ebd7847ab) run_guest_scene: ignore ambient WINE on native Windows ### 📊 Changes **2 files changed** (+129 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_guest_scene.py` (+7 -4) ➕ `tests/test_run_guest_scene_wine.py` (+122 -0) </details> ### 📄 Description ## What changed Carries forward `old-pr/10047` (draft #313, original commit by @SkippySteve) rebased cleanly onto `main` (`2e026b03e`), preserving the original author commit and adding a follow-up fix for native Windows: 1. **Original commit (`@SkippySteve`)**: - `scripts/run_guest_scene.py`: default `--wine` to `$WINE` when `--wine` is omitted (blank counts as unset; `--wine` still 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 `$WINE` pickup, `--wine-arg` with `$WINE`, `--wine` overriding `$WINE`, missing/empty `$WINE` refusal outside Windows, and nonexistent `$WINE` reporting. 2. **Follow-up commit (`df763ce9f`, addressing @xel1uz's review)**: - `scripts/run_guest_scene.py`: only read `$WINE` as the default outside Windows (`os.name != "nt"`), qualify the docstring / `--wine` help text (`default: $WINE outside Windows`), and keep `--wine-arg requires --wine` on Windows. - `tests/test_run_guest_scene_wine.py`: add `RunGuestSceneWindowsEnvTest` (3 tests, runs on every platform via a `SimpleNamespace` stub on `runner.os`) confirming ambient `WINE` (existing or missing) is ignored on Windows, explicit `--wine` still works, and `--wine-arg` requires explicit `--wine`. ## Item ID - Coordination issue #14 item: `OLD-10047` (carries forward `old-pr/10047` / draft #313, #17) - Depends on: none ## 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 OK** - Mutation check vs `HEAD~1` (without the Windows guard) -> **FAILED (3 failures)** across all 3 Windows ambient-`WINE` checks; mutation check vs `main` -> **FAILED (3 failures, 2 errors)**; restoring `HEAD` returns to 8/8 OK. - `python3 -m compileall -q scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py` -> OK - `python3 -I scripts/check_no_game_data.py scripts/run_guest_scene.py tests/test_run_guest_scene_wine.py` -> OK - `python3 -I tests/test_ci_registration.py` -> **15/15 OK** - `python3 -I tests/test_text_write_line_endings.py` -> **3/3 OK** ## Checklist - [x] No game files, binaries, shaders, textures, audio, or logs quoting them - [x] No keys, decryption, or online services - [x] Claimed in the coordination issue (#14) before opening this PR - [x] AI-assisted: yes (carried forward, audited, rebased, updated per review, and regression-verified with AI assistance; original commit by @SkippySteve preserved) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
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
starred/leonida#1271
No description provided.