turing_atlas: handle BOM/deep JSON, bool/unhashable deviceType, OSError/None stderr, and atomic --out (TURING-ATLAS-VALIDATION-AND-ATOMIC-IO) #1586
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1586"
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?
Imported from ubiquitarianism/leonida. Originally posted by IlyassRS3 on 2026-11-25T05:14:19Z.
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)
Imported from ubiquitarianism/leonida. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T05:14:29Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T10:21:32Z.
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)