[PR #86] [CLOSED] tests: give the mod manager the launcher its platform looks for #138

Closed
opened 2026-11-26 20:16:55 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/86
Author: @wavehs
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: tests-win-mods-launcher


📝 Commits (1)

  • 4486565 tests: give the mod manager the launcher its platform looks for

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 tests/test_leonida_mods.py (+3 -0)

📄 Description

Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository's issue index (#18) has no entry for it. No open pull request touches this file.

Depends on: none.

What and why

tools/leonida_mods.py:493 picks the runtime launcher by platform — ("gta6rt.exe",) on Windows, ("gta6rt.sh", "gta6rt.exe") everywhere else — and test_run_print_builds_gta6rt_command wrote only gta6rt.sh. On the Windows runner run --dry-run --print therefore exited 2 with

ERROR: C:\Users\RUNNER~1\...\port has no gta6rt executable; build the runtime stage first

instead of printing the command, and the test failed on its (code, err) == (0, "") assertion (the check job on 9ec34cdff).

The fixture now writes both launchers. POSIX still finds the .sh first, so what the test checks is unchanged.

Tested

macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files:

tree tests/test_leonida_mods.py
main@9ec34cdff OK (POSIX: the .sh is found)
this commit OK

The Windows shape is reproduced by calling runtime_executable() on a port that holds only gta6rt.sh with os.name set to "nt": it raises ModsError: ... has no gta6rt executable; build the runtime stage first, the CI message; with gta6rt.exe added it returns that file. Not run on Windows itself.

compileall clean, check_no_game_data.py clean.

AI-assisted: yes.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: test-only.)

🔄 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/86 **Author:** [@wavehs](https://github.com/wavehs) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `tests-win-mods-launcher` --- ### 📝 Commits (1) - [`4486565`](https://github.com/ubiquitarianism/leonida/commit/4486565b7fac5d447f80b2f510221a91cb4f9e64) tests: give the mod manager the launcher its platform looks for ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_leonida_mods.py` (+3 -0) </details> ### 📄 Description Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository's issue index (#18) has no entry for it. No open pull request touches this file. Depends on: none. ### What and why `tools/leonida_mods.py:493` picks the runtime launcher by platform — `("gta6rt.exe",)` on Windows, `("gta6rt.sh", "gta6rt.exe")` everywhere else — and `test_run_print_builds_gta6rt_command` wrote only `gta6rt.sh`. On the Windows runner `run --dry-run --print` therefore exited 2 with ``` ERROR: C:\Users\RUNNER~1\...\port has no gta6rt executable; build the runtime stage first ``` instead of printing the command, and the test failed on its `(code, err) == (0, "")` assertion (the `check` job on `9ec34cdff`). The fixture now writes both launchers. POSIX still finds the `.sh` first, so what the test checks is unchanged. ### Tested macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files: | tree | `tests/test_leonida_mods.py` | |---|---| | `main@9ec34cdff` | `OK` (POSIX: the `.sh` is found) | | this commit | `OK` | The Windows shape is reproduced by calling `runtime_executable()` on a port that holds only `gta6rt.sh` with `os.name` set to `"nt"`: it raises `ModsError: ... has no gta6rt executable; build the runtime stage first`, the CI message; with `gta6rt.exe` added it returns that file. Not run on Windows itself. `compileall` clean, `check_no_game_data.py` clean. AI-assisted: yes. ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: test-only.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:16:55 +01:00
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#138
No description provided.