Repository navigation
Conversation
|
I tested two local trial merges at this PR's head
The branch still targets main directly. These observations are for the rebase when either output-repair change lands. |
|
Independent native Windows check of 95b063d6 with CPython 3.12.8. All eight targeted tests passed. A second process was refused while the same synthetic shader cache was locked, even with a different temporary directory. A separate work directory and reuse after failure both passed. In an additional check, an atomic replacement changed the synthetic archive's contents and Windows file identity while preserving its size and modification time. The next build refreshed the shader module. A following run reused the cache without running the tools again. AI-assisted. |
Claimed in the coordination issue as ASSET-607. Original claim · Current board
Depends on: #3665, #5586, #2585, #2031
What and why
Replacing
shaders.rpfwith another archive containing the same shader names could make a successful build return the old SPIR-V. A regression test reproduces this on8575d36ewith two 1,024-byte synthetic archives sharing a filename, size and mtime. One immediate operand changes.The shaders stage records the archive and carver digest after carving succeeds, then records the unpacker and manifest reader digest after unpacking succeeds. A changed archive or carver invalidates dependent outputs, including partial shards. An unpacker change keeps the DXBCs. Moving an identical archive reuses the completed build. Existing work folders rebuild once to establish provenance. Low-space preflight applies the same input check before waiving the shader-space reservation.
Two builds targeting the same shader cache now take an OS lock in the work folder. The lock is released on process exit and also covers path aliases and callers with different temporary directories. Independent work folders can still build in parallel.
Merge coordination. This branch builds directly on main. Local trial merges found overlapping hunks with #3665 (output repair) and #5586 (a shared preflight fixture). #2585 already conflicts with main and overlaps our resume code. #2031 has the same pre-existing fixture conflict with main before and after this change. The input fingerprints and the neighboring output-repair checks can coexist.
Tested
spirv-valfor Vulkan 1.2 and 1.3.test_image_atomics_guardandtest_image_store_d16. The broadertest_make_game*.pysweep also has the same 15 existing failures/errors on both. The text-newline check reports the same two untouched files. Python compilation, the game-data scan of changed files andgit diff --checkpassed.An independent contributor also ran eight targeted tests on native Windows with CPython 3.12.8. All eight passed. Replacing the archive while keeping its size and mtime refreshed the module, then the warm retry reused it. Windows results
The local checks used synthetic archives on CPU. Pairwise integration checks with #3665 and #5586
AI-assisted: yes.