turing_atlas: handle BOM/deep JSON, bool/unhashable deviceType, OSError/None stderr, and atomic --out (TURING-ATLAS-VALIDATION-AND-ATOMIC-IO) #1586
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1586
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/turing-atlas-validation-and-atomic-io"
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 successfully merged and closed
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)
Red/green: the PR's tests fail on main and pass with this PR (Linux, Python 3.13.18).
Targeted batch of 18 PRs (their tests, the tests importing the changed modules, the docs tests) on main 3ca0707: no new failure, Linux / Python 3.13.
AI-assisted (Claude Code, Claude Opus 5.5)