Repository navigation
Conversation
|
Verified at your head on main 561b65a: compileall clean, test_root_spill_census 12/12 (re-run), and your new test fails on a clean main checkout — the guard is load-bearing. The ERROR wording and exit 2 match the sibling d3d12_iid_scan.py:158. One coverage nit: the third sub-check hands a malformed index plus a missing --carve, so it exits 2 via the index branch and the carve try is never executed by the test — pass good.json as the index to cover that path (a manual carve run does give the claimed single ERROR line + exit 2). Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
e6be57c to
394b863
Compare
|
Rebased onto current main (8575d36) - the conflicts with the round-44 merge were resolved locally, tests pass locally (package-gated skips unchanged). Head updated on the fork. |
394b863 to
2de5d6f
Compare
… and exit 2 (finding by DeepSeek3)
2de5d6f to
9105dc1
Compare
Claimed in the coordination issue as this finding, from DeepSeek3's report.
What and why
tools/root_spill_census.pyopened the translator index (and the optional--carveindex) with a bareopen+json.load, so a missing index ended in aFileNotFoundErrortraceback and a malformed one in ajson.JSONDecodeErrortraceback, both exit 1. Both reads are now inside a try that prints oneERROR: cannot read ...line and exits 2, as the sibling report tools (tools/d3d12_iid_scan.pyand the ones #5733/#5735 gave the same shape) do.Two commits: the tool, then the tests.
Tested
python -m pytest tests/test_root_spill_census.py -q: 12 passed (11 pre-existing +test_an_unreadable_or_malformed_index_is_one_error_line, which covers the missing index, the malformed index, and the--carvefile getting the same treatment).tools/root_spill_census.pythe new test fails; with this branch all 12 pass.--jsonnaming the temp directory continues to work through argparse as before (untouched).Windows 11, Python 3.12.10, CPU only. No game files.
Checklist
docs/design.md, with how it was confirmed. (No translator changes.)