mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #75] [MERGED] tests: compare the fuzzer and first-look paths after resolve() #127
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#127
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/75
Author: @wavehs
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:tests-win-canonical-paths📝 Commits (1)
a54fec1tests: compare the fuzzer and first-look paths after resolve()📊 Changes
2 files changed (+8 additions, -4 deletions)
View changed files
📝
tests/test_first_look_paths.py(+3 -1)📝
tests/test_fuzzer_work_isolation.py(+5 -3)📄 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 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
checkjob fails on the resulting difference — five assertions across two files:tools/lds_fuzz.py:1216andtools/valu_fuzz.pydoparent = Path(a.work).resolve()and printwork dir {work}under it.tempfilehands out the 8.3 name on Windows, so the printed folder isC:\Users\runneradmin\...while the test holdsC:\Users\RUNNER~1\...:(the same assertion for
valu_fuzz, and two more intest_existing_files_and_other_runs_survivecomparing the same run folders against the captured output)tests/test_first_look_paths.pycompares the loader report withstr(image)/str(game); PowerShell'sResolve-Pathgives 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:
test_fuzzer_work_isolation.pytest_first_look_paths.pymain@9ec34cdffOK(passes by the/privatesuffix accident)OK (skipped=1)— Windows-onlyOKOK (skipped=1)The Windows failure itself is the
checkjob log quoted above (9ec34cdff, run 45306800350, job 138157329747); a shortRUNNER~1...string is not found in therunneradmin...message. I have no Windows host to re-run it.compileallclean,check_no_game_data.pyclean. Not run: Windows, any GPU test.AI-assisted: yes.
Checklist
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.