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

Merged
wavehs merged 2 commits from upstream-pr/23 into main 2026-11-24 02:26:18 +00:00
wavehs commented 2026-11-24 01:56:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-24T01:56:08Z.


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.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464601840 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/23). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-24T01:56:08Z. --- 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.)
wavehs commented 2026-11-24 02:23:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-24T02:23:34Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7120092663 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/23#issuecomment-7120092663). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-24T02:23:34Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!23
No description provided.