Repository navigation
rdna2spirv: name a part --merge cannot read instead of tracebacking - #3196
Conversation
|
Checked b306c0d on Windows 11, Python 3.15.2 — CPU only (this path has no GPU part). AI-assisted check.
The |
|
Tested b306c0d on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
b306c0d to
4ffbc4e
Compare
|
Tested
Heads-up: this and #3306 both add tests at the same place in |
|
Tested 4ffbc4e merged with main 3faac55 on native Windows (Python 3.13.1, llvm-mc 23.1.6) and with main 98fa503 on Linux (Python 3.12.16): pass. tests/test_rdna2spirv_merge.py and the other rdna2spirv and shader_checks tests: Windows 7/7, Linux 7/7. Negative control with main's tools/rdna2spirv.py: test_rdna2spirv_merge fails (1 failure, 1 error on Windows; 1 failure, 1 error on Linux). |
--mergealready fails closed on a partial set, disagreeing markers, a malformedshards.jsonand an empty set. A part that is not valid JSON was the hole: a shard killed mid-write leaves a truncatedindex.part<i>.json, and the merge died with aJSONDecodeErrortraceback and exit 1 instead of saying what to do. The other merge failures are oneShardSetErrorline and exit 2.Now an unreadable or undecodable part is
cannot read <part>: <reason>; delete that part and run --shard <i>/<n> again— exit 2, no traceback, noindex.json. Independent of #2964 (that one is the empty complete set); the two touch different lines ofmerge_shard_parts.python -I tests/test_rdna2spirv_merge.py— 25 tests OK (unit + CLI case for a truncated part);python -I tests/test_rdna2spirv_cli.py— 18 OK. Synthetic parts only, no game files or GPU.AI-assisted.