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

Open
github-bot wants to merge 1 commit from github-bot/gh-1864 into main AGit
Owner

@⁠thiefyzheng on GitHub · 2026-11-25 13:33 UTC · original
thiefyzheng:fix/scratch-aftermath → main · +3 −2 · 1 files · 1 commits · open

TEST-SCRATCH-FIXED-AFTERMATH

Claimed on #1608 (#1608); covers the residual site of @⁠Diegobecker07's 12-site scratch finding (#1608). 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).

**@⁠thiefyzheng** on GitHub · 2026-11-25 13:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1864) `thiefyzheng:fix/scratch-aftermath` → `main` · +3 −2 · 1 files · 1 commits · open ## TEST-SCRATCH-FIXED-AFTERMATH Claimed on #1608 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608); covers the residual site of @⁠Diegobecker07's 12-site scratch finding (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608). 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:09:15 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1864/head:github-bot/gh-1864'
git switch 'github-bot/gh-1864'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1864'
git switch 'github-bot/gh-1864'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1864'
git switch 'github-bot/gh-1864'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1864'
git switch 'main'
git merge --squash 'github-bot/gh-1864'
git switch 'main'
git merge --ff-only 'github-bot/gh-1864'
git switch 'main'
git merge 'github-bot/gh-1864'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.