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

Merged
MoonEyes merged 2 commits from upstream-pr/3359 into main 2026-12-03 17:55:51 +00:00
MoonEyes commented 2026-12-03 16:19:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T16:19:45Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5630423517 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3359). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T16:19:45Z. --- 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)_
Kal0s-design commented 2026-12-03 17:14:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-03T17:14:35Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7386194848 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3359#issuecomment-7386194848). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-03T17:14:35Z. --- 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).
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!3359
No description provided.