Repository navigation
Conversation
Contributor
|
Tested
AI-assisted. |
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: BUILD-1938, temporary-frame slice of this three-part claim, carried into #5934.
Depends on: #5830, #4119, #4436 (shared-file conflicts / merge ordering; this patch builds independently on main).
What and why
Running
sandbox.py --check --scene saved.bincurrently asks the renderer to writesaved.bin.ppm, then unconditionally removes that file. If the user already has an image there, the check overwrites and deletes it, including when the renderer exits with a failure.Allocate a separate temporary PPM for the check, and clean up that owned file afterward. An explicitly saved scene remains available, and an existing sibling image is preserved.
Tested
Base
561b65a832218fbb9e6d2effd392a8eef093a3f8; patch heada91e42fb1ef378c3c1215070ca8f46ec56d54eb0.python -I -B tests/test_sandbox_output.py -v: four tests pass. Covers preservation of an existing image with renderer exits 0/1/77, cleanup of temporary scenes/frames, a launch exception and the absence of a leftover image beside a saved scene. The preservation regression fails on the original implementation.test_sandbox_pick.py(6),test_sandbox_scene.py(10), andtest_text_write_line_endings.py(3) pass.git diff --checkpasses.The three new slices merge cleanly with one another. This slice has one
tools/sandbox.pyconflict with #5830: retain itsdrawcommand construction and this patch's temporary frame allocation. That resolution was tested in the integration checkout. The older deferred/shadow refactors also overlap the shared file and already conflict with current main. All fixtures are synthetic; no game files.AI-assisted: yes, Codex.
Checklist