Repository navigation
spirv_metal_set0: publish assembled output atomically - #8882
Barbital11111 wants to merge 3 commits into
Conversation
|
Tested on Apple M1 Max, macOS 27.2.1 arm64, Python 3.12.16: 1 failure — a real portability bug in the new staging assertions, not a flake.
Root cause: the tool resolves Suggested fix: compare against No game files. AI-assisted (Devin). |
|
Fixed in 5414565. Both staging assertions now compare with the resolved destination directory, matching the path the tool uses. With TMPDIR pointing at a directory symlink on WSL Ubuntu, the previous head failed the round-trip test with the alias/physical-path mismatch. At the new head all 27 tests passed under the same TMPDIR. The 27 tests also passed on native Windows. This run did not use macOS. AI-assisted (Codex). |
|
Tested
Same atomic-publication trade-off as #8918, and the failed write names the staging file rather than the requested output. 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. |
Summary
When the assembler writes part of a module and exits with an error, the wrapper can leave the existing destination truncated. An in-place conversion also loses its input.
Assemble into a private directory on the destination volume and replace the destination after a successful assembly. Preserve direct output for stdout and special files, symlink targets, and permission bits.
Depends on: #8730
Coordination claim
Validation
AI-assisted (Codex). Synthetic inputs only.