tests: vk_aftermath's LEONIDA_AFTERMATH_DIR is per-run, not one fixed temp folder (TEST-SCRATCH-FIXED-AFTERMATH) #1864

Closed
thiefyzheng wants to merge 1 commit from upstream-pr/1864 into main
thiefyzheng commented 2026-11-25 13:33:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by thiefyzheng on 2026-11-25T13:33:45Z.


TEST-SCRATCH-FIXED-AFTERMATH

Claimed on #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163890441); covers the residual site of @Diegobecker07's 12-site scratch finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163742268). The other 11 files are already migrated by open #1579 (whoalin1) — this PR takes only the one file #1579 does not touch.

What

runtime/test/vk_aftermath_test.cpp set LEONIDA_AFTERMATH_DIR to temp_directory_path() / "leonida_aftermath_test" — one fixed folder, so two simultaneous runs share one Aftermath dump/marker directory. It now uses the repo idiom, testfiles::process_temp_dir("aftermath_test") (<temp>/aftermath_test_<pid>, per run), the same helper 23 sibling test sites use; #include "test_temp_dir.h" exactly as d3d12 siblings include it. Pure path-construction change: no directory creation added (none existed), no cleanup added (crash dumps must survive the run, as today) — only the sharing conflict goes away. Grep confirms no other occurrence of the fixed name in the repo.

What was run, and what was not

  • Verified mechanically against the actual sources: include/namespace idiom matches sibling tests; process_temp_dir contract read from test_temp_dir.h; single-site confirmed by git grep.
  • NOT compiled with MSVC and not run: building vk_aftermath_test requires -DLEONIDA_AFTERMATH_SDK=<Nsight Aftermath SDK> (the target does not exist without it, runtime/CMakeLists.txt:2252+), and no Aftermath SDK is installed on our build host. A reviewer with the SDK compiling this target once is the remaining check; the change is 3 lines using an idiom the tree already builds 23 times, so the compile risk is minimal — but it is not zero, and this PR does not claim otherwise.
  • Also NOT run with the actual SDK/GPU; the path is only exercised via the env-var fallback branch.

Attribution

AI-assisted (GLM 5.3 Flash worker implementation, contributor verification, orchestration).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5492334620 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1864). Originally posted by [thiefyzheng](https://github.com/thiefyzheng) on 2026-11-25T13:33:45Z. --- ## TEST-SCRATCH-FIXED-AFTERMATH Claimed on #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163890441); covers the residual site of @Diegobecker07's 12-site scratch finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163742268). The other 11 files are already migrated by open #1579 (whoalin1) — this PR takes only the one file #1579 does not touch. ### What `runtime/test/vk_aftermath_test.cpp` set `LEONIDA_AFTERMATH_DIR` to `temp_directory_path() / "leonida_aftermath_test"` — one fixed folder, so two simultaneous runs share one Aftermath dump/marker directory. It now uses the repo idiom, `testfiles::process_temp_dir("aftermath_test")` (`<temp>/aftermath_test_<pid>`, per run), the same helper 23 sibling test sites use; `#include "test_temp_dir.h"` exactly as d3d12 siblings include it. Pure path-construction change: no directory creation added (none existed), no cleanup added (crash dumps must survive the run, as today) — only the sharing conflict goes away. Grep confirms no other occurrence of the fixed name in the repo. ### What was run, and what was not - Verified mechanically against the actual sources: include/namespace idiom matches sibling tests; `process_temp_dir` contract read from `test_temp_dir.h`; single-site confirmed by `git grep`. - **NOT compiled with MSVC and not run**: building `vk_aftermath_test` requires `-DLEONIDA_AFTERMATH_SDK=<Nsight Aftermath SDK>` (the target does not exist without it, `runtime/CMakeLists.txt:2252+`), and no Aftermath SDK is installed on our build host. A reviewer with the SDK compiling this target once is the remaining check; the change is 3 lines using an idiom the tree already builds 23 times, so the compile risk is minimal — but it is not zero, and this PR does not claim otherwise. - Also NOT run with the actual SDK/GPU; the path is only exercised via the env-var fallback branch. ### Attribution AI-assisted (GLM 5.3 Flash worker implementation, contributor verification, orchestration).
zmasi commented 2026-11-28 20:40:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T20:40:06Z.


#1864 | head a00e24b022 (merged cleanly with main 1bc055e6c2) | MSVC 19.44 /W4 /WX /permissive- /EHsc /utf-8 compile + link of runtime/test/vk_aftermath_test.cpp against gta6rt_aftermath (Vulkan::Headers) + unarmed & LEONIDA_AFTERMATH_FAULT_TEST=1 skip-gate runs | red on main: vk_aftermath_test.cpp uses shared fixed temp_directory_path() / "leonida_aftermath_test" | green on PR+main: vk_aftermath_test.cpp compiles and links cleanly under MSVC 19.44 /W4 /WX with 0 warnings/errors (resolving testfiles::process_temp_dir("aftermath_test") from test_temp_dir.h and closing the MSVC compile/link check noted in the PR description) and exits 77 (SKIP) cleanly when unarmed and when built without LEONIDA_AFTERMATH_SDK; check_no_game_data.py 0 violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7245452836 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1864#issuecomment-7245452836). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T20:40:06Z. --- #1864 | head a00e24b0225ceb5cbaef7b8c0e68898d7d920a76 (merged cleanly with main 1bc055e6c2dedaa0de23ec79d8c4007c1dff1fb3) | MSVC `19.44` `/W4 /WX /permissive- /EHsc /utf-8` compile + link of `runtime/test/vk_aftermath_test.cpp` against `gta6rt_aftermath` (`Vulkan::Headers`) + unarmed & `LEONIDA_AFTERMATH_FAULT_TEST=1` skip-gate runs | red on main: `vk_aftermath_test.cpp` uses shared fixed `temp_directory_path() / "leonida_aftermath_test"` | green on PR+main: `vk_aftermath_test.cpp` compiles and links cleanly under MSVC `19.44` `/W4 /WX` with `0` warnings/errors (resolving `testfiles::process_temp_dir("aftermath_test")` from `test_temp_dir.h` and closing the MSVC compile/link check noted in the PR description) and exits `77` (`SKIP`) cleanly when unarmed and when built without `LEONIDA_AFTERMATH_SDK`; `check_no_game_data.py` `0` violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes
OreoFR commented 2026-11-28 21:55:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:55:16Z.


Verified by OreoFR

  • Base: main c1ecf04ed + PR head a00e24b02; green run in a merge package of 15 PRs, no new ctest failure vs main
  • Test: ctest -R ^vk_aftermath$
  • Red on main: SKIP
  • Green with the PR: SKIP (builds)
  • Verdict: READY (build only) (test-only PR; the test needs LEONIDA_AFTERMATH_FAULT_TEST=1 and loses the GPU device on purpose, not run while the GPU was shared)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246368893 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1864#issuecomment-7246368893). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:55:16Z. --- **Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `a00e24b02`; green run in a merge package of 15 PRs, no new ctest failure vs main - Test: `ctest -R ^vk_aftermath$` - Red on main: SKIP - Green with the PR: SKIP (builds) - Verdict: READY (build only) (test-only PR; the test needs LEONIDA_AFTERMATH_FAULT_TEST=1 and loses the GPU device on purpose, not run while the GPU was shared) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:38:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:38:22Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317941646 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1864#issuecomment-7317941646). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:38:22Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

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!1864
No description provided.