upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorxel1uz <xel1uz@users.noreply.github.com>2026-11-25 08:15:47 +0100
committerxel1uz <xel1uz@users.noreply.github.com>2026-11-25 08:15:47 +0100
commit24278bbdc9e1d3feda253f0449663438d71f2cb8 (patch)
tree461e29042e96053fbec85e05caa40d5ee732d6ec /tests/test_run_gpu_tests_python_assembler.py
parent42537e7b6f84c233ac009b924d3a25d2a1178197 (diff)
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).
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions