tests: compare the fuzzer and first-look paths after resolve() #75

Manually merged
github merged 1 commit from gh-pr/75/head into gh-pr/75/base 2026-11-26 08:43:17 +00:00
Owner

@⁠wavehs on GitHub · 2026-11-24 02:13 UTC · original
wavehs:tests-win-canonical-paths → main · +8 −4 · 2 files · 1 commits · merged 2026-11-24 03:09 UTC

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 these. No open pull request touches these two files.

Depends on: none.

What and why

Both tools canonicalise the directory they were given before they use it, and the Windows check job fails on the resulting difference — five assertions across two files:

  • tools/lds_fuzz.py:1216 and tools/valu_fuzz.py do parent = Path(a.work).resolve() and print work dir {work} under it. tempfile hands out the 8.3 name on Windows, so the printed folder is C:\Users\runneradmin\... while the test holds C:\Users\RUNNER~1\...:
FAIL: test_failed_translation_reports_retained_output_and_creates_parent ... (fuzzer='lds_fuzz')
AssertionError: 'C:\\Users\\RUNNER~1\\...\\lds_fuzz_b9rtlw83' not found in
              'work dir C:\\Users\\runneradmin\\...\\lds_fuzz_b9rtlw83\nsynthetic failure\n'

(the same assertion for valu_fuzz, and two more in test_existing_files_and_other_runs_survive comparing the same run folders against the captured output)

  • tests/test_first_look_paths.py compares the loader report with str(image) / str(game); PowerShell's Resolve-Path gives the script the long path (runneradmin), not the 8.3 one (RUNNER~1).

Both now compare Path.resolve(), which is what the tools themselves use. On POSIX and on a checkout outside the temporary directory this changes nothing; on macOS the short /var/folders/... path matches only as a suffix of the resolved /private/var/folders/..., which is why this stayed green here.

Tested

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

tree test_fuzzer_work_isolation.py test_first_look_paths.py
main@9ec34cdff OK (passes by the /private suffix accident) OK (skipped=1) — Windows-only
this commit OK OK (skipped=1)

The Windows failure itself is the check job log quoted above (9ec34cdff, run 45306800350, job 138157329747); a short RUNNER~1... string is not found in the runneradmin... message. I have no Windows host to re-run it.

compileall clean, check_no_game_data.py clean. Not run: Windows, any GPU test.

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 02:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/75) `wavehs:tests-win-canonical-paths` → `main` · +8 −4 · 2 files · 1 commits · merged 2026-11-24 03:09 UTC 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 these. No open pull request touches these two files. Depends on: none. ### What and why Both tools canonicalise the directory they were given before they use it, and the Windows `check` job fails on the resulting difference — five assertions across two files: - `tools/lds_fuzz.py:1216` and `tools/valu_fuzz.py` do `parent = Path(a.work).resolve()` and print `work dir {work}` under it. `tempfile` hands out the 8.3 name on Windows, so the printed folder is `C:\Users\runneradmin\...` while the test holds `C:\Users\RUNNER~1\...`: ``` FAIL: test_failed_translation_reports_retained_output_and_creates_parent ... (fuzzer='lds_fuzz') AssertionError: 'C:\\Users\\RUNNER~1\\...\\lds_fuzz_b9rtlw83' not found in 'work dir C:\\Users\\runneradmin\\...\\lds_fuzz_b9rtlw83\nsynthetic failure\n' ``` (the same assertion for `valu_fuzz`, and two more in `test_existing_files_and_other_runs_survive` comparing the same run folders against the captured output) - `tests/test_first_look_paths.py` compares the loader report with `str(image)` / `str(game)`; PowerShell's `Resolve-Path` gives the script the long path (`runneradmin`), not the 8.3 one (`RUNNER~1`). Both now compare `Path.resolve()`, which is what the tools themselves use. On POSIX and on a checkout outside the temporary directory this changes nothing; on macOS the short `/var/folders/...` path matches only as a suffix of the resolved `/private/var/folders/...`, which is why this stayed green here. ### Tested macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files: | tree | `test_fuzzer_work_isolation.py` | `test_first_look_paths.py` | |---|---|---| | `main@9ec34cdff` | `OK` (passes by the `/private` suffix accident) | `OK (skipped=1)` — Windows-only | | this commit | `OK` | `OK (skipped=1)` | The Windows failure itself is the `check` job log quoted above (`9ec34cdff`, run 45306800350, job 138157329747); a short `RUNNER~1...` string is not found in the `runneradmin...` message. I have no Windows host to re-run it. `compileall` clean, `check_no_game_data.py` clean. Not run: Windows, any GPU test. 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.)
Both tools resolve the directory before they use it: lds_fuzz/valu_fuzz take
Path(--work).resolve() and print the run folder under it, and the first-look
script hands the loader the path Resolve-Path returns. tempfile gives the 8.3
name (RUNNER~1) on Windows, so the printed canonical path (runneradmin) is not
the string the test held, and five assertions failed in the check job.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:43:16 +00:00
github manually merged commit a54fec1002 into gh-pr/75/base 2026-11-26 08:43:17 +00:00
Author
Owner

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

Rebased onto main@e09a55529 (it moved with the merged viewer/atomics/f64 batch); the diff is unchanged and both files still pass here: tests/test_fuzzer_work_isolation.py OK, tests/test_first_look_paths.py OK (skipped, Windows-only).

**@⁠wavehs** on GitHub · 2026-11-24 02:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/75#issuecomment-7120194185) Rebased onto `main@e09a55529` (it moved with the merged viewer/atomics/f64 batch); the diff is unchanged and both files still pass here: `tests/test_fuzzer_work_isolation.py` OK, `tests/test_first_look_paths.py` OK (skipped, Windows-only).
This discussion has been locked. Commenting is limited to contributors.
No description provided.