Commit Graph

11 Commits

Author SHA1 Message Date
40136ef79a tests: skip sandbox_scene's POSIX-only atomic-output tests on Windows (CI-MAIN-WINDOWS-TESTS)
#1669 added TestAtomicSceneOutput, which runs the tool through a shell, caps the file size with RLIMIT_FSIZE and checks POSIX file modes. On Windows two of its tests fail (`exec: : not found`, mode 438 != 416), so `check` stays red. Skip the class there; it still runs on Linux and macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:34:23 +01:00
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
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
8a0a907d33 sandbox_scene: reject non-finite or overflowing --center coordinates 2026-11-23 22:26:33 +01: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
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