Commit Graph

18 Commits

Author SHA1 Message Date
423ccd7a95 Merge pull request #1669 from xel1uz/fix/sandbox-scene-atomic-out
sandbox_scene: write --out atomically
2026-11-29 19:59:14 +01:00
dd35db8337 Merge pull request #2442 from kirigayakazima/codex/sandbox-scene-entities-alias
sandbox_scene: protect the placement input from output aliases
2026-11-28 20:42:08 +01:00
458370d773 Merge pull request #2444 from kirigayakazima/codex/sandbox-scene-stream-autocenter
sandbox_scene: stream placements when finding the automatic center
2026-11-28 16:13:00 +01:00
ab2c132233 sandbox_scene: stream placements when finding the automatic center 2026-11-27 18:12:15 +08:00
cb82451594 sandbox_scene: downsample sRGB albedo in linear light 2026-11-27 18:11:47 +08:00
096fce1d45 sandbox_scene: protect the placement input from output aliases 2026-11-27 18:11:14 +08:00
24278bbdc9 sandbox_scene: write --out atomically
Repro on upstream/main: bash -c 'trap "" XFSZ; ulimit -f 1; python3 -I tools/sandbox_scene.py --entities /home/hampa/.hermes/profiles/mikuling/cache/scratch/sandbox-scene-large-repro/entities.jsonl --models /home/hampa/.hermes/profiles/mikuling/cache/scratch/sandbox-scene-large-repro/models --center 0 0 --out /home/hampa/.hermes/profiles/mikuling/cache/scratch/sandbox-scene-large-repro/baseline.bin' returned 2 ([Errno 27] File too large); existing output changed from 20 bytes to 1024 bytes.

After atomic write, the same repro returned 2 and preserved the existing output at 20 bytes; no temporary file remained.

Successful synthetic output matched upstream byte-for-byte (2256 bytes; SHA-256 c456bc9bd29f8f0d4dd36a983fd70c8fb25ebadbb9a4bd6c97672c2f11a09493).

Regression tests: upstream implementation failed test_failed_write_preserves_existing_output (1 failed, 14 passed, 5 subtests); fixed implementation passed (15 passed, 5 subtests).
2026-11-25 08:15:47 +01:00
4c28be4b79 Merge PR #9543 2026-11-23 17:07:05 -05:00
8a0a907d33 sandbox_scene: reject non-finite or overflowing --center coordinates 2026-11-23 22:26:33 +01:00
2f37ce0c67 Stream sandbox placements when a scene center is supplied 2026-11-23 15:22:56 -06:00
6cef0eb445 docs: point sandbox_scene at its --help usage line (#6621)
Squash-merged after diff review of PR #6621
2026-11-23 11:13:42 -06:00
5eb8f1d467 Validate sandbox scene radius and prop cap (#6658)
Squash-merged after diff review of PR #6658
2026-11-23 11:04:13 -06:00
0805d30d54 sandbox_scene: choose the default center from resolved model keys (#6859)
Squash-merged after diff review of PR #6859 - sandbox_scene: choose the default center from resolved model keys
2026-11-23 09:49:20 -06:00
27a80ca819 sandbox_scene: --out that names a folder is refused up front with a clear message (#6204)
Squash-merged after diff review of PR #6204 - sandbox_scene: --out that names a folder is refused up front with a clear message
2026-11-23 08:24:33 -06:00
ef2685699e ASSET-422: Keep scanning sandbox candidates until usable props are placed (#5146)
Squash-merged after review of PR #5146 - ASSET-422: Keep scanning sandbox candidates until usable props are placed
2026-11-23 08:10:47 -06:00
fce42020dd sandbox_scene: an unwritable --out or unreadable input is one error line, not a traceback 2026-11-23 00:49:03 -03:00
33905dc9dd Fix what the round-43 merges broke (pytest)
Merges that each passed alone but clash together:
- v_cmp_class_f64: the earlier cmp_class_f64 (685d16ed9) (operand-form checks, test_cmp_class_f64) and the later f64 branch
  in cmp_class both handled the opcode; f64 goes to cmp_class_f64 again, f16 stays in cmp_class.
- rdna2spirv CLI tests: spirv-as/spirv-val now run in the output folder with the staging file's bare name, so
  the test doubles resolve it against cwd; assemble_spirv decodes the output only when it is bytes. (The doubles
  had been writing .spirv-*.tmp files into the repository root.)
- ps_w64 fixtures (TEST-722): an 18th fixture (ps_w64_a_discard) landed; its killed lanes export nothing and
  keep the clear value.
- first_light: a run without an OBJ removes mesh.bin, and harness_env reads manifest["files"]; batch_glb's stats
  name failures and dropped textures; run_gpu_tests reports a frame never written as a missing readback
  (TEST-837).
- make_game TRANSLATION_SOURCES and runtime.yml's paths include spirv_opt.py and report_paths.py (and
  wave64_emulate_opt.py), which the translator imports.
Repo rules: stdout guard on six tools; encoding on two opens (gen_gdk_runtime_classes' helper is read_utf8);
newline on one write; anim_skeleton_match's joaat encodes like hashdict.joaat; test_feature_scan's new test is
listed with the others its globals() runner reaches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:07:41 -05:00
feee3e6c1f Real-shader sandbox: placed props through a translated VS/PS pair
vk_sandbox draws the props around a point with one translated game VS/PS
pair chosen by signature and descriptor layout: a real camera through the
VS constants, DiffuseTex albedo through the bindless set and the PS's own
S#, depth, and a fly/walk/drive window. tools/sandbox.py packs the scene
(tools/sandbox_scene.py), picks the pair and runs it; --check prints
counts only. docs/sandbox.md has the table layout and the measurements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PiKMETzszqwfnV8QQyzocY
2026-11-22 17:48:57 -03:00