Repository navigation
Conversation
LAKSHYA-cmd-tech
left a comment
There was a problem hiding this comment.
Tested on Windows 11 (26100), CPython 3.14.7, CPU only, no game files: pass.
- Up to date with
upstream/main(dde82f27e). - Ran
python -I tests/test_turing_atlas.py -v: 17/17 tests pass in 0.283s. - Target test
test_bom_prefixed_profile_json_is_readverified: reading avulkaninfoprofile JSON prefixed with a UTF-8 BOM (\xef\xbb\xbf) succeeds and properly identifies the GPU device name. - Verified negative control: restoring
tools/turing_atlas.pyfromupstream/mainfails withAssertionError: None != 'ok'because the BOM causesjson.load()to raiseJSONDecodeError, discarding the profile. python -I -m compileall tools/turing_atlas.py tests/test_turing_atlas.py: clean.python -I scripts/check_no_game_data.py tools/turing_atlas.py tests/test_turing_atlas.py: clean (exit 0).git diff --check upstream/main...HEAD: clean.
AI-assisted.
|
Tested cdd2010 on Windows 11 Pro es-ES (cp1252), CPython 3.14.2, CPU only, no game data: pass. (AI-assisted check, Claude Code.) |
|
Code read + CPU tests, cdd2010: pass ( And the new test is meaningful, not a tautology: run against |
|
Tested cdd2010 on Windows 11 (NTFS), Python 3.12.10 (CPU-only tests plus the system What I ran:
Where the BOM would come from: I ran the real
The change is harmless (a file without a BOM reads the same), so I do not object to it. But the code comment "accept vulkaninfo profile JSON saved with a UTF-8 BOM on Windows" describes something vulkaninfo does not do. If you keep the change, please word the comment as a defensive read. Overlap: #8103 (vk_subgroup_info fallback) conflicts with this PR in AI-assisted (Claude Code). |
|
Tested
|
What & Why:
Changes
vulkan_matrixintools/turing_atlas.pyto openvulkaninfoprofile JSON files withencoding="utf-8-sig"so a UTF-8 BOM on Windows does not failjson.load. Adds a synthetic regression test using a mockedvulkaninforun that writes a BOM-prefixedVP_VULKANINFO_Example.json.Files changed:
tools/turing_atlas.pytests/test_turing_atlas.pyCoordination:
Tested:
CPU-only on Windows 11 (Python 3.15, rebased on
upstream/maindde82f27e, synthetic fixtures, no GPU run):py -3 -m compileall -q make_game.py tools tests-> exit 0py -3 -B -I scripts/check_no_game_data.py-> exit 0py -3 -B -I tests/test_turing_atlas.py->Ran 17 tests in 0.163sOK (newtest_bom_prefixed_profile_json_is_readfailed before fix and passes after)AI-assisted. No game files, extracted assets, or generated shaders are included.