make_game: gta6rt.sh resolves a relative WINE before changing to the game folder (OLD-10028) #1233
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1233"
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?
Imported from ubiquitarianism/leonida. Originally posted by IlyassRS3 on 2026-11-24T20:39:38Z.
What changed
Carries forward
old-pr/10028(draft #296, original commit by @SkippySteve) rebased cleanly onto currentmain(2e026b03e), preserving the original author commit and adapting the new assertion formain's macOS physical-path comparison:@SkippySteve):make_game.py(wine_launcher): beforecd "${game%.}", anchor any relativeWINEpath containing/(case ${WINE-} in /*) ;; */*) WINE=$PWD/$WINE ;; esac) against the caller's$PWD, leaving absolute paths and barePATHnames (e.g.wine) unchanged.tests/test_make_game_platform.py: exercise a relativeWINE="Proton 9.0/files/bin/wine"symlink from the caller's working directory.IlyassRS3):tests/test_make_game_platform.py: comparereal(self.game)andreal(self.out)in the new assertion (matchingmain'sreal(...)helper in the same test) so the test also passes whenTMPDIRis under a symlinked path such as macOS's/var/folders -> /private/var/folders.Item ID
OLD-10028(carries forwardold-pr/10028/ draft #296, #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_make_game_platform.py -v-> 46/46 OK (note: without thereal(...)follow-up commit,TMPDIR=/var/tmpfailed because/var/tmpresolves to/private/var/tmp)python3 -I tests/test_make_game_platform.py-> 46/46 OKmake_game.pytoupstream/mainwhile keepingtests/test_make_game_platform.py) -> FAILED (errors=1) withgta6rt.sh: ... /game/Proton 9.0/files/bin/wine: No such file or directory(exit 126); restoring the fix returns to 46/46 OK.python3 -m compileall -q make_game.py tests/test_make_game_platform.py-> OKpython3 -I scripts/check_no_game_data.py make_game.py tests/test_make_game_platform.py-> OKpython3 -I tests/test_ci_registration.py-> 15/15 OKpython3 -I tests/test_text_write_line_endings.py-> 3/3 OKChecklist
TMPDIRassertion, and regression-verified with AI assistance; original commit by @SkippySteve preserved)Imported from ubiquitarianism/leonida. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T20:39:53Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:28:54Z.
#1233 | head
bb2cd5a9e2(merged cleanly onto origin/main48bae6cade) | Windows 11 (10.0.26200.9974), Python 3.12.10, Git Bash | AI-assisted: yesIndependent Verification (Windows 11)
+14/-0acrossmake_game.pyandtests/test_make_game_platform.py).python -I scripts/check_no_game_data.py make_game.py tests/test_make_game_platform.pypassed (rc=0).origin/main48bae6cadevs#1233 + origin/main):origin/main): Generatedgta6rt.shviamake_game.runtime(...)with spaces in caller, game, and output folder names and ransh gta6rt.sh --dry-runfrom the caller folder withWINE="Proton 9.0/files/bin/wine"-> exited127(.../game dir/Proton 9.0/files/bin/wine: No such file or directory) becausecd "${game%.}"ran before resolving relative$WINE.#1233 + origin/main): Thecase ${WINE-}guard (/*) ;; */*) WINE=$PWD/$WINE ;;) resolves relative paths containing/against caller$PWDprior tocd "${game%.}"while leaving absolute paths (/*) and barePATHcommand names (wine) unchanged ->sh gta6rt.sh --dry-runexited0withCWDin the game folder and expected--dry-run ./fake_title.exe --overlay ...arguments.python -I tests/test_make_game_platform.py->48 ran, OK (skipped=4)python -I tests/test_make_game_argparse.py->38/38passed (OK).Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T00:44:41Z.
Independent run of #1233 (python -I, no build, no game; GPU not used).
bb2cd5a9e2829530dbd0(PR merged into it locally withgit merge --no-ff, clean,make_game.pyandtests/test_make_game_platform.pyonly)skipIf(os.name == "nt", "executes the generated POSIX launcher")), so that test was also run in WSL2 Ubuntu (Linux 5.15, CPython 3.12.3,python3 -I) on a copy of each tree.Commands:
python -I tests/test_make_game_platform.py(Windows, then the same under WSL), plus the 46 other test files that mentionmake_gameandtest_ci_registration.py,test_text_write_line_endings.py,test_tool_stdout_encoding.py,test_check_no_game_data.py,test_docs_cli_flags.py,test_docs_env_vars.py, one process each.make_game.pyreverted (to main, merged tree; and to the merge-base, head tree) and the test kept:test_wine_first_boot_uses_the_packaged_game_and_shader_pathserrors, the generated launcher exits 127 (command not found, the relative WINE is resolved from the game folder). 1 error, 46 or 48 tests run. On native Windows there is no red, the test is skipped there.test_make_game_pipelines.py(3),test_make_game_preflight.py(1),test_progress_dashboard.py(1),test_tool_stdout_encoding.py(1),test_docs_cli_flags.py(1). Nothing new fails merged.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T00:53:59Z.
Merged after enlight3d's red/green check (check) (RTX 3090, driver 621.40, Windows 11) and a local re-check here. Merged after local re-verification: this PR merged onto
main87a39df94without conflict, and its test file(s) (tests/test_make_game_platform.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.