mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #548] [MERGED] TEST-NATIVE-FOLDER-FAILURES: cover Windows short-path lookup failures #594
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#594
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/548
Author: @RedMiS7
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:codex/test-native-folder-failures📝 Commits (1)
9be0932TEST-NATIVE-FOLDER-FAILURES: cover Windows short-path lookup failures📊 Changes
1 file changed (+53 additions, -0 deletions)
View changed files
📝
tests/test_native_tool_paths.py(+53 -0)📄 Description
Claimed in the coordination issue as: TEST-NATIVE-FOLDER-FAILURES (claim)
Depends on: #483 (the existing UTF-8-code-page test failure on this Windows host; its fix is not copied into this PR)
What and why
Add four Windows-only tests in
NativeFolderLookupto exercise five controlled outcomes ofGetShortPathNameW:The API is mocked, so these tests do not create directories or depend on a volume keeping 8.3 short names. The existing code-page tests are untouched, and there are no runtime changes.
Tested
Windows 11 build 26200, CPython 3.10.11 and Anaconda Python 3.13.9; CPU only, no game files.
python -I tests/test_native_tool_paths.py NativeFolderLookup: 4 tests passed, no skips.py -3.13 -I tests/test_native_tool_paths.py NativeFolderLookup: 4 tests passed, no skips.py -3.13 -I tests/test_native_tool_paths.py: 12 tests, 8 passed, 1 failed, 3 skipped. The failure is the originalNativeFolder.test_a_folder_outside_the_code_page_gets_its_short_name_or_none, also reproduced before this change on the same base. The three skips needspirv-asandspirv-val.py -3.13 -I scripts/check_no_game_data.py tests/test_native_tool_paths.pyandgit diff --check: passed.py -3.13 -I scripts/run_semantic_tests.py tests/semantic: 465 files, 6105 tests, 2 files failed in 289 s with 12 jobs. Bothtest_sopc_validationandtest_unary_f16_validationreport missingspirv-as/spirv-valon PATH. This PR does not change the translator or any semantic-suite file.GPUs tested: n/a (mocked Windows API and CPU tests only)
AI-assisted: yes (OpenAI Codex)
Checklist
mainatd42773d07; GitHub reports Able to merge.Draft while #483 remains open and the environment limitations above remain recorded.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.