D3D12-RUNTIME-DEPTH-RESOLVE-ARTIFACT-PATH: use packaged depth edge shader fixture #2988

Closed
owenjbendon-creator wants to merge 1 commit from upstream-pr/2988 into main
owenjbendon-creator commented 2026-12-01 22:32:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by owenjbendon-creator on 2026-12-01T22:32:52Z.


Claimed in the coordination issue as: RUNTIME-D3D12-DEPTH-RESOLVE-ARTIFACT-PATH — https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7327753919

Fixes: #2978

What and why

The runtime-windows artifact ships generated/depth_edge_vs.spv, but d3d12_depth_resolve_test.exe passed its compile-time CI build path directly to std::filesystem::copy_file. When run from the extracted artifact directory, that path does not exist and the uncaught filesystem exception aborts the test with 0xC0000409.

This uses Mandy's existing vktest::shader_fixture_path packaged-shader fallback and testfiles::copy_file diagnostic wrapper. The local build path is still preferred when present; otherwise the test finds generated/depth_edge_vs.spv beside the artifact as documented in docs/testing.md. edge_container is initialized only after a successful copy, so a genuinely missing shader fails cleanly instead of entering the edge path with incomplete setup.

Tested

  • Red: extracted runtime-windows artifact 15521844071 from run 46705543929, commit 9f0d351cc8874c12e5aab7399cd1c0b4de80750c; ran d3d12_depth_resolve_test.exe from the artifact directory. Exit -1073740791 (0xC0000409); generated/depth_edge_vs.spv is present.
  • ctest --test-dir <build> -R shader_fixture_path --output-on-failure: 1/1 passed. This is the existing regression test for preferring the built shader and falling back to generated/<filename>.
  • python -I scripts/check_no_game_data.py runtime/test/d3d12_depth_resolve_test.cpp: clean.
  • git diff --check: clean.
  • An independent read-only reviewer found no remaining blocking issues.
  • Not run: a locally rebuilt patched d3d12_depth_resolve_test.exe; this host has Windows SDK 10.0.22621 and the runtime requires 10.0.26100 or newer. CI should rebuild the artifact and confirm the green end-to-end case.

GPUs tested: n/a (no GPU code changed).

AI-assisted: yes. Implementation by Codex (GPT-5); independent read-only review by a separate Codex reviewer session.

Checklist

  • Based on current main (c4ca5761508f136c5530482093bb3053b0bad4fa) and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.
  • No translator rule changed, so docs/design.md is unchanged.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5595811464 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2988). Originally posted by [owenjbendon-creator](https://github.com/owenjbendon-creator) on 2026-12-01T22:32:52Z. --- Claimed in the coordination issue as: `RUNTIME-D3D12-DEPTH-RESOLVE-ARTIFACT-PATH` — https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7327753919 Fixes: #2978 ### What and why The `runtime-windows` artifact ships `generated/depth_edge_vs.spv`, but `d3d12_depth_resolve_test.exe` passed its compile-time CI build path directly to `std::filesystem::copy_file`. When run from the extracted artifact directory, that path does not exist and the uncaught filesystem exception aborts the test with `0xC0000409`. This uses Mandy's existing `vktest::shader_fixture_path` packaged-shader fallback and `testfiles::copy_file` diagnostic wrapper. The local build path is still preferred when present; otherwise the test finds `generated/depth_edge_vs.spv` beside the artifact as documented in `docs/testing.md`. `edge_container` is initialized only after a successful copy, so a genuinely missing shader fails cleanly instead of entering the edge path with incomplete setup. ### Tested - Red: extracted `runtime-windows` artifact `15521844071` from run `46705543929`, commit `9f0d351cc8874c12e5aab7399cd1c0b4de80750c`; ran `d3d12_depth_resolve_test.exe` from the artifact directory. Exit `-1073740791` (`0xC0000409`); `generated/depth_edge_vs.spv` is present. - `ctest --test-dir <build> -R shader_fixture_path --output-on-failure`: 1/1 passed. This is the existing regression test for preferring the built shader and falling back to `generated/<filename>`. - `python -I scripts/check_no_game_data.py runtime/test/d3d12_depth_resolve_test.cpp`: clean. - `git diff --check`: clean. - An independent read-only reviewer found no remaining blocking issues. - Not run: a locally rebuilt patched `d3d12_depth_resolve_test.exe`; this host has Windows SDK 10.0.22621 and the runtime requires 10.0.26100 or newer. CI should rebuild the artifact and confirm the green end-to-end case. GPUs tested: n/a (no GPU code changed). AI-assisted: yes. Implementation by Codex (GPT-5); independent read-only review by a separate Codex reviewer session. ### Checklist - [x] Based on current `main` (`c4ca5761508f136c5530482093bb3053b0bad4fa`) and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. - [x] No translator rule changed, so `docs/design.md` is unchanged.
andrew-ai commented 2026-12-01 22:36:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T22:36:53Z.


Checked the fixture setup at 8c97a4a13 in a small native Windows C++ executable compiled from the patched call site and both repository helper headers. The build and relocated package directories contained distinguishable synthetic bytes.

  • Missing build path, packaged generated/depth_edge_vs.spv present: exit 0; destination contained the package bytes.
  • Both sources present, fresh destination: exit 0; destination contained the build bytes.
  • Neither source present, stale vs.spv already in the destination: exit 1 with the copy diagnostic; the stale file did not make setup succeed.

Toolchain limitation: on this machine's MinGW GCC 10.2, attempting the second copy over the existing first destination returned “File exists” despite overwrite_existing. A fresh destination isolated source preference in the second case. I did not establish that overwrite behavior on MSVC.

This checks setup through the copy and error return only. The patched full GPU executable remains unverified here. The upstream Runtime workflow is workflow_dispatch-only, so a normal PR CI run does not produce the runtime-windows artifact. Codex-assisted for #2570.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328098365 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2988#issuecomment-7328098365). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T22:36:53Z. --- Checked the fixture setup at 8c97a4a13 in a small native Windows C++ executable compiled from the patched call site and both repository helper headers. The build and relocated package directories contained distinguishable synthetic bytes. - Missing build path, packaged generated/depth_edge_vs.spv present: exit 0; destination contained the package bytes. - Both sources present, fresh destination: exit 0; destination contained the build bytes. - Neither source present, stale vs.spv already in the destination: exit 1 with the copy diagnostic; the stale file did not make setup succeed. Toolchain limitation: on this machine's MinGW GCC 10.2, attempting the second copy over the existing first destination returned “File exists” despite overwrite_existing. A fresh destination isolated source preference in the second case. I did not establish that overwrite behavior on MSVC. This checks setup through the copy and error return only. The patched full GPU executable remains unverified here. The upstream Runtime workflow is workflow_dispatch-only, so a normal PR CI run does not produce the runtime-windows artifact. Codex-assisted for #2570.
owenjbendon-creator commented 2026-12-01 22:43:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by owenjbendon-creator on 2026-12-01T22:43:58Z.


CI update: the consolidated Windows check job failed only in tests/test_xcl_compare.py::test_live_title_after_eof_returns_hung_check_for_restart while cleaning a TemporaryDirectory (PermissionError: [WinError 32] The process cannot access the file because it is being used by another process). The runner reports 655/656 test files passed; this PR changes only runtime/test/d3d12_depth_resolve_test.cpp, and no failing code in test_xcl_compare.py is touched.

The workflow cannot be rerun from this contributor account (Must have admin rights). A maintainer rerun of the failed job would distinguish the CI temp-directory race from a regression. The change-scope, no-game-data, and semantic-tests jobs pass.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328256740 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2988#issuecomment-7328256740). Originally posted by [owenjbendon-creator](https://github.com/owenjbendon-creator) on 2026-12-01T22:43:58Z. --- CI update: the consolidated Windows `check` job failed only in `tests/test_xcl_compare.py::test_live_title_after_eof_returns_hung_check_for_restart` while cleaning a `TemporaryDirectory` (`PermissionError: [WinError 32] The process cannot access the file because it is being used by another process`). The runner reports 655/656 test files passed; this PR changes only `runtime/test/d3d12_depth_resolve_test.cpp`, and no failing code in `test_xcl_compare.py` is touched. The workflow cannot be rerun from this contributor account (`Must have admin rights`). A maintainer rerun of the failed job would distinguish the CI temp-directory race from a regression. The `change-scope`, `no-game-data`, and `semantic-tests` jobs pass.
aslan2142 commented 2026-12-02 00:45:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-02T00:45:01Z.


Thank you for the careful work and verification on the depth resolve test fixture path. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. We really appreciate the contribution.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7330914701 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2988#issuecomment-7330914701). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-02T00:45:01Z. --- Thank you for the careful work and verification on the depth resolve test fixture path. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. We really appreciate the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2988
No description provided.