runtime/test: d3d12_depth_resolve_test.exe aborts (0xC0000409) when run from CI runtime-windows artifact #2978

Closed
opened 2026-12-01 22:16:47 +00:00 by hhhhi804yh7-blip · 1 comment
hhhhi804yh7-blip commented 2026-12-01 22:16:47 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by hhhhi804yh7-blip on 2026-12-01T22:16:47Z.


Following docs/testing.md ("Run one test from the Windows artifact") by extracting runtime-windows artifact 15521844071 (run 46705543929, commit 9f0d351cc8874c12e5aab7399cd1c0b4de80750c) and running .\d3d12_depth_resolve_test.exe aborts immediately with exit code -1073740791 (0xC0000409).

Root cause

  • runtime/CMakeLists.txt:3812 defines LEONIDA_DEPTH_EDGE_VS_SPV="" using the CI runner's absolute build path (D:/a/mandy/mandy/runtime/build/generated/depth_edge_vs.spv).
  • runtime/test/d3d12_depth_resolve_test.cpp:394 passes LEONIDA_DEPTH_EDGE_VS_SPV directly to std::filesystem::copy_file without checking whether the path exists or falling back to generated/depth_edge_vs.spv relative to the executable (which is present in the extracted runtime-windows archive).

Tested on NVIDIA GeForce RTX 5050 (driver 617.42, Windows 11 26300.9711).

AI-assisted (Gemini 4 Hydrogen; verified on host CI artifact and source inspection).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6731885536 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2978). Originally posted by [hhhhi804yh7-blip](https://github.com/hhhhi804yh7-blip) on 2026-12-01T22:16:47Z. --- Following `docs/testing.md` ("Run one test from the Windows artifact") by extracting `runtime-windows` artifact `15521844071` (run `46705543929`, commit `9f0d351cc8874c12e5aab7399cd1c0b4de80750c`) and running `.\d3d12_depth_resolve_test.exe` aborts immediately with exit code `-1073740791` (`0xC0000409`). ### Root cause - `runtime/CMakeLists.txt:3812` defines `LEONIDA_DEPTH_EDGE_VS_SPV=""` using the CI runner's absolute build path (`D:/a/mandy/mandy/runtime/build/generated/depth_edge_vs.spv`). - `runtime/test/d3d12_depth_resolve_test.cpp:394` passes `LEONIDA_DEPTH_EDGE_VS_SPV` directly to `std::filesystem::copy_file` without checking whether the path exists or falling back to `generated/depth_edge_vs.spv` relative to the executable (which is present in the extracted `runtime-windows` archive). Tested on `NVIDIA GeForce RTX 5050` (driver `617.42`, Windows 11 `26300.9711`). *AI-assisted (Gemini 4 Hydrogen; verified on host CI artifact and source inspection).*
MoonEyes commented 2026-12-03 15:48:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T15:48:58Z.


This was generated by AI during triage.

Agent Brief

Category: bug
Summary: Make the Windows depth-resolve test work from the extracted CI artifact

Current behavior:
Running d3d12_depth_resolve_test.exe from the extracted runtime-windows artifact aborts with 0xC0000409. The test uses a build-time absolute path for depth_edge_vs.spv; that path points to the CI workspace and is invalid after extraction, even though the generated shader is present beside the executable in the artifact.

Desired behavior:
The test locates its required shader from the extracted artifact and runs independently of the original build directory. If a required input is missing, it reports a clear test failure rather than aborting.

Key interfaces:

  • The depth-resolve test's shader input path — must remain valid when the test executable and its generated shader are moved together.
  • The runtime-windows artifact layout — must contain the test's required generated shader alongside the executable.

Acceptance criteria:

  • Extract the Windows artifact to a directory unrelated to the CI build path and run the test; it no longer aborts because of a stale absolute path.
  • The test also runs from the normal Windows build output.
  • If the shader input is absent, the test reports a clear failure instead of terminating with 0xC0000409.
  • No game files or assets are added to the repository.

Out of scope:

  • Runtime rendering behavior in the game.
  • Changes to shader generation unrelated to packaging the test input.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383779431 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2978#issuecomment-7383779431). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T15:48:58Z. --- > *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** Make the Windows depth-resolve test work from the extracted CI artifact **Current behavior:** Running `d3d12_depth_resolve_test.exe` from the extracted `runtime-windows` artifact aborts with `0xC0000409`. The test uses a build-time absolute path for `depth_edge_vs.spv`; that path points to the CI workspace and is invalid after extraction, even though the generated shader is present beside the executable in the artifact. **Desired behavior:** The test locates its required shader from the extracted artifact and runs independently of the original build directory. If a required input is missing, it reports a clear test failure rather than aborting. **Key interfaces:** - The depth-resolve test's shader input path — must remain valid when the test executable and its generated shader are moved together. - The `runtime-windows` artifact layout — must contain the test's required generated shader alongside the executable. **Acceptance criteria:** - [ ] Extract the Windows artifact to a directory unrelated to the CI build path and run the test; it no longer aborts because of a stale absolute path. - [ ] The test also runs from the normal Windows build output. - [ ] If the shader input is absent, the test reports a clear failure instead of terminating with `0xC0000409`. - [ ] No game files or assets are added to the repository. **Out of scope:** - Runtime rendering behavior in the game. - Changes to shader generation unrelated to packaging the test input.
Sign in to join this conversation.
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#2978
No description provided.