Depth-resolve test: fall back to generated/depth_edge_vs.spv #3359

Manually merged
github merged 2 commits from github-bot/gh-3359 into main 2026-12-03 18:06:51 +00:00 AGit
Owner

@⁠MoonEyes on GitHub · 2026-12-03 16:19 UTC · original
ProjectLeonida:fix/depth-resolve-spv-path → main · +5 −2 · 1 files · 2 commits · merged 2026-12-03 17:55 UTC

Claimed in the coordination issue as: #2978 (claim comment in #3312)

Fixes: #2978

What and why

d3d12_depth_resolve_test copied LEONIDA_DEPTH_EDGE_VS_SPV, an absolute path baked in on the CI runner, with a throwing std::filesystem::copy_file. Run from the extracted runtime-windows artifact, the path does not exist and the test aborts with 0xC0000409. It now goes through vktest::shader_fixture_path (keeps the compiled path if it exists, else generated/<name> relative to the working directory, as the other d3d12 tests do) and testfiles::copy_file, so a truly missing file prints both paths and exits 1. CMakeLists.txt is unchanged.

Tested

  • python -I scripts/check_no_game_data.py, test_docs_* (59), the five tests/test_cmake_*.py files and cmake -S runtime configure on Linux.
  • Reviewed read-only: signatures, includes and the artifact flow of docs/testing.md read by hand against the MSVC build.
  • Not run: the test itself (Windows and GPU), and no red/green, which needs the CI artifact.

GPUs tested: n/a

AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5 (verdict OK, line wrap applied).

Checklist

  • Based on current main and merges cleanly.
  • One topic; the same defect in other tests is listed as a finding: in #3312 for a follow-up.
  • No game data, keys or decryption.
  • Not a translator rule.

Generated by Claude Code

**@⁠MoonEyes** on GitHub · 2026-12-03 16:19 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3359) `ProjectLeonida:fix/depth-resolve-spv-path` → `main` · +5 −2 · 1 files · 2 commits · merged 2026-12-03 17:55 UTC Claimed in the coordination issue as: #2978 (claim comment in #3312) Fixes: #2978 ### What and why `d3d12_depth_resolve_test` copied `LEONIDA_DEPTH_EDGE_VS_SPV`, an absolute path baked in on the CI runner, with a throwing `std::filesystem::copy_file`. Run from the extracted `runtime-windows` artifact, the path does not exist and the test aborts with 0xC0000409. It now goes through `vktest::shader_fixture_path` (keeps the compiled path if it exists, else `generated/<name>` relative to the working directory, as the other d3d12 tests do) and `testfiles::copy_file`, so a truly missing file prints both paths and exits 1. `CMakeLists.txt` is unchanged. ### Tested - `python -I scripts/check_no_game_data.py`, `test_docs_*` (59), the five `tests/test_cmake_*.py` files and `cmake -S runtime` configure on Linux. - Reviewed read-only: signatures, includes and the artifact flow of `docs/testing.md` read by hand against the MSVC build. - Not run: the test itself (Windows and GPU), and no red/green, which needs the CI artifact. GPUs tested: n/a AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5 (verdict OK, line wrap applied). ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; the same defect in other tests is listed as a `finding:` in #3312 for a follow-up. - [x] No game data, keys or decryption. - [x] Not a translator rule. --- _Generated by [Claude Code](https://claude.ai/code)_
d3d12_depth_resolve_test copied LEONIDA_DEPTH_EDGE_VS_SPV, the build machine's
absolute path, straight into std::filesystem::copy_file. Run from the extracted
runtime-windows CI artifact that path does not exist, copy_file threw and the
test aborted with 0xC0000409.

Use vktest::shader_fixture_path, which the other d3d12 tests already use for
their compiled shaders: it keeps the compiled path when the file exists and
otherwise falls back to generated/<name> relative to the working directory.
Copy with testfiles::copy_file so a missing file prints the paths and fails
with exit code 1 instead of aborting.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DDMsHwsknvo96XTWag2WiL
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DDMsHwsknvo96XTWag2WiL
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 16:31:35 +00:00
Author
Owner

@⁠Kal0s-design on GitHub · 2026-12-03 17:14 UTC · original

Ran natively on Windows 11, head 01c6d923a merged into current main (fba6f09ce, clean merge).

No findings. Red/green reproduced with MSVC (CMake + Ninja, RelWithDebInfo). The fixture depth_edge_vs.spv isn't in the checkout; it's compiled by glslangValidator into the build's generated/. To mimic the extracted artifact I hid the build's generated/ and ran the exe from a folder holding a copy of it as generated/.

d3d12_depth_resolve_test main merge
normal CTest-style run from the build dir 0 0, same output
compiled path gone, generated/<name> in cwd 0xC0000409 (uncaught throw from copy_file) 0, same summary as the normal run (71/71 vs WARP, 128 host comparisons, the 20 edge MIN/MAX pairs)
fixture missing everywhere 0xC0000409 1, cannot copy ... names the missing file

No new MSVC warnings in the touched file. The main column was measured on the previous main (717b90233); nothing under runtime/ changed between the two.

Not checked: a real downloaded CI artifact (simulated as above), CTest itself.

GPUs tested: one NVIDIA desktop card (native Vulkan), plus WARP for the host comparisons.
AI-assisted: yes (Claude Code).

**@⁠Kal0s-design** on GitHub · 2026-12-03 17:14 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3359#issuecomment-7386194848) Ran natively on Windows 11, head `01c6d923a` merged into current `main` (`fba6f09ce`, clean merge). No findings. Red/green reproduced with MSVC (CMake + Ninja, RelWithDebInfo). The fixture `depth_edge_vs.spv` isn't in the checkout; it's compiled by glslangValidator into the build's `generated/`. To mimic the extracted artifact I hid the build's `generated/` and ran the exe from a folder holding a copy of it as `generated/`. | `d3d12_depth_resolve_test` | `main` | merge | |---|---|---| | normal CTest-style run from the build dir | 0 | 0, same output | | compiled path gone, `generated/<name>` in cwd | 0xC0000409 (uncaught throw from `copy_file`) | 0, same summary as the normal run (71/71 vs WARP, 128 host comparisons, the 20 edge MIN/MAX pairs) | | fixture missing everywhere | 0xC0000409 | 1, `cannot copy ...` names the missing file | No new MSVC warnings in the touched file. The `main` column was measured on the previous `main` (`717b90233`); nothing under `runtime/` changed between the two. Not checked: a real downloaded CI artifact (simulated as above), CTest itself. GPUs tested: one NVIDIA desktop card (native Vulkan), plus WARP for the host comparisons. AI-assisted: yes (Claude Code).
github manually merged commit dd5bbcd6af into main 2026-12-03 18:06:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3359
No description provided.