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

Open
opened 2026-11-26 21:19:15 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1864
Author: @thiefyzheng
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/scratch-aftermath


📝 Commits (1)

  • a00e24b tests: vk_aftermath's LEONIDA_AFTERMATH_DIR is per-run (process_temp_dir), not one fixed temp folder

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 runtime/test/vk_aftermath_test.cpp (+3 -2)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1864 **Author:** [@thiefyzheng](https://github.com/thiefyzheng) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/scratch-aftermath` --- ### 📝 Commits (1) - [`a00e24b`](https://github.com/ubiquitarianism/leonida/commit/a00e24b0225ceb5cbaef7b8c0e68898d7d920a76) tests: vk_aftermath's LEONIDA_AFTERMATH_DIR is per-run (process_temp_dir), not one fixed temp folder ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/vk_aftermath_test.cpp` (+3 -2) </details> ### 📄 Description ## 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1878
No description provided.