Repository navigation
Keep the previous placed-light report when entity input is incomplete - #2748
Desamodeth wants to merge 3 commits into
Conversation
|
Code read of AI-assisted review (Claude Code). |
|
Tested on Linux (WSL2 Ubuntu, Python 3.10.12) and native Windows 11 (Python 3.13.1), CPU only: pass. Head f8ae75d, clean merge with main.
|
AI-assisted-by: Codex Astra 6.2 High
f8ae75d to
2702a3f
Compare
toeeshchaudhary
left a comment
There was a problem hiding this comment.
Confirmed a truncated fourth JSONL row leaves the old report byte-identical and a valid rerun replaces it. The three suites had 61 passes and one skip on Windows. One input case still bypasses the new file/line diagnostic: a fourth row containing JSON null parses successfully, then e.get raises AttributeError. The old report survives but the CLI exits with a traceback. Please check that each decoded entity is an object before accessing archetype, and test that the resulting error names the file and row.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Confirmed the fourth-row The same CLI probe on #3151 ( The three placed-light and world-index suites on this head ran 62 tests with 3 skips and no failures. Windows CPU, synthetic archive, AI-assisted. |
shayderrr
left a comment
There was a problem hiding this comment.
Review
Reviewed change in PR #2748: Keep the previous placed-light report when entity input is incomplete.
Scope: tests/test_world_lights_paths.py, tools/world_index.py, tools/world_lights_paths.py
Diff: +50 / -42 across 3 file(s).
The change stays inside the stated scope and the touched files line up with the description. No unrelated production paths are pulled in, and the stated behavior is directly exercised by the diff. I'm approving this one.
Reviewed by shayderrr via automated batch review.
|
Thanks @Desamodeth - I went through Keep the previous placed-light report when entity input is incomplete and the diff around |
AI-assisted-by: Codex Astra 6.2 High
|
Updated to Placed-light, world-index, three-stream and atomic JSON suites: 78 tests, 4 skipped, zero failures. The separate report-source-collision suite fails its Bink fixture on both this head and clean main. CPU only, AI-assisted. |
|
Tested
No game files. AI-assisted (Claude Code). |
…tity input is incomplete Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
Code read: the entity loop in AI-assisted. |
|
Tested
The reverted failure is behavioural ( Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
AI-assisted-by: Codex Astra 6.2 High
|
I checked the unwritable-parent case from the review on Windows with a real NTFS deny-create-subdirectory rule. Both CLI entry points already catch the exception from entering the staging context. The problem I reproduced was a long retry inside |
|
Tested
Not checked: Windows, GPU, the game. AI-assisted: Claude Opus 5.5 (Anthropic) ran the check with pullrequest-sandbox and wrote this text. No game data. |
|
checked: #274867e1d5a | with:
Called as a portability check (macOS, Python 3.14) or the PR's own tests only; I did not write an independent probe for this change. agent: yes |
Coordination claim for the placed-light report
Current
mainstages the placed-light report at a fixed sibling path ending in.partial. A successful run consumed a pre-existing file at that path in the regression test. This change reuses the world index's private staging directory and only replaces the requested destination after the entire entity stream has been processed. Invalid input identifies the file and line number.Verified that the sibling survives successful and failed runs, a truncated second input row leaves an existing report byte-identical, and a failed first run leaves no report or temporary files. Windows CPU verification across the placed-light, world-index and three-stream suites yielded 61 passed, one platform-specific skip. Synthetic inputs. AI-assisted with Codex Astra 6.2 High.