mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1864] tests: vk_aftermath's LEONIDA_AFTERMATH_DIR is per-run, not one fixed temp folder (TEST-SCRATCH-FIXED-AFTERMATH) #1878
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1878
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
a00e24btests: 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.cppsetLEONIDA_AFTERMATH_DIRtotemp_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
process_temp_dircontract read fromtest_temp_dir.h; single-site confirmed bygit grep.vk_aftermath_testrequires-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.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.