gtavi-probe exits 1 on an unsupported host platform even when every path translation succeeds (macOS tooling run: 2 of 53 cases fail) #8

Closed
opened 2026-11-26 20:43:56 +00:00 by github-bot · 0 comments
Owner

@⁠etsukow on GitHub · 2026-11-24 08:37 UTC · original

Found while building this repository's own tooling natively on macOS arm64 (not a claimed host; CI covers MSVC/GCC/Clang on Windows and Linux, and src/platform/platform_unsupported.cpp is the intended fallback).

Two cases fail there, for one reason:

  • gtavi_tests: platform_query_reports_host_facts at tests/platform_tests.cpp:26 expects query_platform_info().ok(), but detail::query_os_version() returns UnsupportedPlatform on Darwin (platform_unsupported.cpp), so the check fails.
  • gtavi_probe_mounts: print_platform_info() in tools/probe/main.cpp returns 1 when the platform query fails, and main folds that into the exit code before doing any path work. Running the probe with --mount/--to-posix/--to-windows prints all three expected translations and still exits 1, which makes the tests/probe_mounts.cmake harness report Custom mount translation failed (1) even though the translations it checks are all present in the output.

So on an unsupported host the diagnostic front end cannot be used for its main documented purpose (comparing path-translation behaviour) and its own mount test cannot run.

Options, from smallest:

  1. probe: in path-translation mode, log the platform-query failure but let the translation exit code stand; keep the nonzero exit only when probe is asked for host facts (there is no such explicit mode today; --help says it always prints host information);
  2. add __APPLE__ to current_platform() plus a Darwin query_os_version() (uname works as on Linux) and a Platform::MacOS, which also makes gtavi_tests green on the tooling-only host family contributors on Apple silicon already use for the GPU work.

Not a compatibility claim about the game: the guest still needs Windows or Linux hosts. Happy to implement either; the README's Platform Support table would need one line updated either way.

AI-assisted (omp).

**@⁠etsukow** on GitHub · 2026-11-24 08:37 UTC · [original](https://github.com/JamesCicada/GTAVI-Recomp/issues/8) Found while building this repository's own tooling natively on macOS arm64 (not a claimed host; CI covers MSVC/GCC/Clang on Windows and Linux, and `src/platform/platform_unsupported.cpp` is the intended fallback). Two cases fail there, for one reason: - `gtavi_tests`: `platform_query_reports_host_facts` at `tests/platform_tests.cpp:26` expects `query_platform_info().ok()`, but `detail::query_os_version()` returns `UnsupportedPlatform` on Darwin (`platform_unsupported.cpp`), so the check fails. - `gtavi_probe_mounts`: `print_platform_info()` in `tools/probe/main.cpp` returns 1 when the platform query fails, and `main` folds that into the exit code before doing any path work. Running the probe with `--mount/--to-posix/--to-windows` prints all three expected translations and still exits 1, which makes the `tests/probe_mounts.cmake` harness report `Custom mount translation failed (1)` even though the translations it checks are all present in the output. So on an unsupported host the diagnostic front end cannot be used for its main documented purpose (comparing path-translation behaviour) and its own mount test cannot run. Options, from smallest: 1. probe: in path-translation mode, log the platform-query failure but let the translation exit code stand; keep the nonzero exit only when probe is asked for host facts (there is no such explicit mode today; `--help` says it always prints host information); 2. add `__APPLE__` to `current_platform()` plus a Darwin `query_os_version()` (`uname` works as on Linux) and a `Platform::MacOS`, which also makes `gtavi_tests` green on the tooling-only host family contributors on Apple silicon already use for the GPU work. Not a compatibility claim about the game: the guest still needs Windows or Linux hosts. Happy to implement either; the README's Platform Support table would need one line updated either way. AI-assisted (omp).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:43:56 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.