mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #1586] turing_atlas: handle BOM/deep JSON, bool/unhashable deviceType, OSError/None stderr, and atomic --out (TURING-ATLAS-VALIDATION-AND-ATOMIC-IO) #1606
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#1606
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/1586
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/turing-atlas-validation-and-atomic-io📝 Commits (1)
4694482turing_atlas: handle BOM/deep JSON, bool/unhashable deviceType, OSError/None stderr, and atomic --out📊 Changes
2 files changed (+166 additions, -15 deletions)
View changed files
📝
tests/test_turing_atlas.py(+114 -0)📝
tools/turing_atlas.py(+52 -15)📄 Description
Item:
TURING-ATLAS-VALIDATION-AND-ATOMIC-IO(unclaimed — coordination issue #14 is at GitHub's 2,500-comment cap with no successor open issue yet, and 0 open PRs touchtools/turing_atlas.py).Summary
TypeError: 'NoneType' object is not subscriptableinvalidate_cases()whenspirv-asfails withstderr=None, and report"missing"whenspirv-valfails to launch (rv is None); catchOSError(includingPermissionError) inrun()rather than onlyFileNotFoundError.VP_VULKANINFO_*.jsonwithutf-8-sig(handling Windows UTF-8 BOM) and skipRecursionErroron malformed deeply nested JSON instead of abortingvulkan_matrix().deviceNamein_extract_profile()and guarddeviceTypelookup in_device_rank()totype(dtype) in (int, str)so unhashable values do not raiseTypeErrorandbool(True == 1) does not falsely rank asVK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU.--outatomically viafile_mode.published_mode+replace_retry.replace(leaving any previous atlas intact on write failure and keeping direct writes for non-regular targets), enforceallow_nan=False, and accept optionalargv=Noneinmain().Verification
python3 -W error -I tests/test_turing_atlas.py -v: 21/21 passed.python3 -I tools/turing_atlas.py --help: passed.python3 -I tests/test_text_write_line_endings.py: 3/3 passed.python3 -I scripts/check_no_game_data.py tools/turing_atlas.py tests/test_turing_atlas.py: passed.python3 -m compileall -q tools/turing_atlas.py tests/test_turing_atlas.py: passed.main:tools/turing_atlas.py):failures=2, errors=3across all 5 new regression tests.AI-assisted: yes
GPUs tested: none (synthetic vulkaninfo/SPIR-V mocks only, no game data)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.