Repository navigation
Conversation
|
Tested b573fff on Arch Linux, Python 3.14.10, CPU only: pass — tests/test_gamedata_reader.py 25/25 OK. Negative control: merge-base tool → 2 failures + 1 error (depth-failure counting, all-failures status, continue-after-failure); restored, green again. No game files. AI-assisted. |
|
Tested b573fff on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
|
Tested b573fff on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): pass What I ran:
The earlier comments ran the test file and the negative control. I added these checks with hand-made XML only. The depth limit is unchanged. No The failed item is reported, and later items are converted (CLI,
The last row checks that the JSON export (outside the new Nits, none blocking:
Overlap: #4291 ( AI-assisted (Claude Code). |
A well-formed XML document can exceed the recursive Reader conversion depth.
run()currently lets its RecursionError escape, so the CLI prints a traceback and aborts the batch before later ordinary documents are converted or exported. Count this as a per-document conversion failure and continue, using the existing not_well_formed/parse_errors accounting.Claim: #7333 (comment) (new narrow per-document conversion-depth failure handling item).
The change adds RecursionError only to the exception tuple around reader.read(). It keeps the current behavior for mixed batches (exit 0 when documents are read) and all-failed batches (exit 1 with the existing no-document error). No recursion-limit changes, invented depth limit, mock Reader, or fragment-recovery changes. Independent of #4291's opt-in recovery work and #3264's index/CLI diagnostics.
Validation on Windows 11, portable CPython 3.12.10, CPU only, against main 6f58bd2:
The fixture has max(2000, sys.getrecursionlimit()+100) nested nodes. ElementTree parses it successfully, while conversion exceeds Python's existing call-depth limit. API and real subprocess CLI checks verify that a later shallow document is counted and exported with correct JSON content; shallow input alone succeeds; two depth failures produce the existing all-failed status without a traceback or output directory.
Synthetic XML only; no game files, GPU/driver validation or C++ runtime changes. AI-assisted with Codex.