tests: compare the guest-scene record with the loader path the runner resolves #23

Manually merged
github merged 2 commits from gh-pr/23/head into gh-pr/23/base 2026-11-26 08:40:58 +00:00
Owner

@⁠wavehs on GitHub · 2026-11-24 01:56 UTC · original
wavehs:test-guest-scene-record-realpath → main · +7 −2 · 1 files · 2 commits · merged 2026-11-24 02:26 UTC

Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. No open pull request touches tests/test_guest_scene_reference.py.

Depends on: none.

What and why

tests/test_guest_scene_reference.py fails its launch-failure case on macOS (test_guest_scene_reference.py:120, 1 failed), which is one of the two red files in the standard-library loop:

AssertionError: '/private/var/folders/.../invalid.exe' != '/var/folders/.../invalid.exe'

scripts/run_guest_scene.py:348 resolves --loader, --guest and --shaders before it starts, so the run record deliberately holds the physical path. tempfile hands out /var/folders/... on macOS, which is a symlink to /private/var/folders/..., so the expectation has to be resolved too. The assertion now compares with str(bad_loader.resolve()); nothing else in the test changes, and on Linux and Windows resolve() is a no-op there.

Test file only; no tool code.

Tested

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

tree tests/test_guest_scene_reference.py
main@9ec34cdff FAILED (failures=1) — the diff above
this commit Ran 6 tests ... OK

tests/test_dev_guest_scene.py also OK, compileall clean, check_no_game_data.py clean. Not run: Windows, real Linux, any GPU test, the translator suite.

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.)
**@⁠wavehs** on GitHub · 2026-11-24 01:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/23) `wavehs:test-guest-scene-record-realpath` → `main` · +7 −2 · 1 files · 2 commits · merged 2026-11-24 02:26 UTC Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. No open pull request touches `tests/test_guest_scene_reference.py`. Depends on: none. ### What and why `tests/test_guest_scene_reference.py` fails its launch-failure case on macOS (`test_guest_scene_reference.py:120`, `1 failed`), which is one of the two red files in the standard-library loop: ``` AssertionError: '/private/var/folders/.../invalid.exe' != '/var/folders/.../invalid.exe' ``` `scripts/run_guest_scene.py:348` resolves `--loader`, `--guest` and `--shaders` before it starts, so the run record deliberately holds the physical path. `tempfile` hands out `/var/folders/...` on macOS, which is a symlink to `/private/var/folders/...`, so the expectation has to be resolved too. The assertion now compares with `str(bad_loader.resolve())`; nothing else in the test changes, and on Linux and Windows `resolve()` is a no-op there. Test file only; no tool code. ### Tested `main@9ec34cdff`, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files: | tree | `tests/test_guest_scene_reference.py` | |---|---| | `main@9ec34cdff` | `FAILED (failures=1)` — the diff above | | this commit | `Ran 6 tests ... OK` | `tests/test_dev_guest_scene.py` also OK, `compileall` clean, `check_no_game_data.py` clean. Not run: Windows, real Linux, any GPU test, the translator suite. 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.)
run_guest_scene.py resolves --loader, --guest, --shaders and --out before it
starts (line 348), so the run record holds the physical path. tempfile gives
/var/folders/... on macOS, a symlink to /private/var/folders/..., and the
launch-failure test compared the record with the unresolved spelling.
The runner resolves --out (run_guest_scene.py:355) and prints the physical
report path; the two encoding subtests compared the tempfile spelling. On
Windows that is the 8.3 name (RUNNER~1) against the expanded runneradmin, two
of the three failures the check job reported in this file; on macOS the
unresolved /var spelling only matched as the tail of /private/var.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:40:56 +00:00
github manually merged commit 0d927e57e9 into gh-pr/23/base 2026-11-26 08:40:58 +00:00
Author
Owner

@⁠wavehs on GitHub · 2026-11-24 02:23 UTC · original

Extended with the other two Windows failures in the same file (the Windows check job on 9ec34cdff reported three here, not one):

FAIL: test_redirected_cli_preserves_unicode_paths_and_guest_diagnostic ... (encoding='cp1252')
AssertionError: b'C:\\Users\\RUNNER~1\\...\\report.json' not found in b'FAIL: full: exit code 7\r\nC:\\Users\\runneradmin\\...\\report.json\r\n'

and the same for utf-8. The runner resolves --out (run_guest_scene.py:355) and prints the physical report path, so those two subtests now compare str(report.resolve()); on macOS the unresolved /var spelling only matched as the tail of /private/var, which is why it stayed green here. tests/test_guest_scene_reference.py is 6 tests OK on the branch.

**@⁠wavehs** on GitHub · 2026-11-24 02:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/23#issuecomment-7120092663) Extended with the other two Windows failures in the same file (the Windows `check` job on `9ec34cdff` reported three here, not one): ``` FAIL: test_redirected_cli_preserves_unicode_paths_and_guest_diagnostic ... (encoding='cp1252') AssertionError: b'C:\\Users\\RUNNER~1\\...\\report.json' not found in b'FAIL: full: exit code 7\r\nC:\\Users\\runneradmin\\...\\report.json\r\n' ``` and the same for `utf-8`. The runner resolves `--out` (`run_guest_scene.py:355`) and prints the physical report path, so those two subtests now compare `str(report.resolve())`; on macOS the unresolved `/var` spelling only matched as the tail of `/private/var`, which is why it stayed green here. `tests/test_guest_scene_reference.py` is 6 tests OK on the branch.
This discussion has been locked. Commenting is limited to contributors.
No description provided.