tests: d3d12_bindless_churn and its --validated run each get their own temp folder (TEST-CHURN-TEMP-DIR) #531

Merged
nickfmbg merged 1 commit from upstream-pr/531 into main 2026-11-24 07:39:23 +00:00
nickfmbg commented 2026-11-24 07:03:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by nickfmbg on 2026-11-24T07:03:39Z.


Claimed in the coordination issue as: TEST-CHURN-TEMP-DIR (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7124547328)

What and why

d3d12_bindless_churn and d3d12_bindless_churn_validated are the same executable (d3d12_bindless_churn_test, with and without --validated), and both used one fixed %TEMP%\leonida_bindless_churn_test folder for the translated shader and its index.json. Under ctest -j they run at the same time; the first to finish calls remove_all on the folder, and the other then fails:

[rt] d3d12: cannot open %TEMP%\leonida_bindless_churn_test\index.json
line 142: SUCCEEDED(device->CreateComputePipelineState(&pso_desc, IID_PPV_ARGS(&pso.p)))

The folder now carries the process id, as d3d12_execute_indirect_validation_test and d3d12_conservative_tier3_test already do. I checked the other executables registered as more than one ctest entry; none of them shares a fixed temp folder.

Tested

  • Before, on main 8f481cf: ctest -R "^d3d12_bindless_churn" -j 4 --repeat until-fail:3 failed d3d12_bindless_churn_validated in the first round; each test passes when run alone.
  • After: the same command with --repeat until-fail:5 passes 5 rounds, both tests, and leaves no leonida_bindless_churn_test* folder in %TEMP%.
  • Built with MSVC 14.44.35207 (scripts\build_runtime.ps1, RelWithDebInfo).

GPUs tested: NVIDIA GeForce RTX 3050 6GB Laptop GPU, NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Home 26300.9974

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5467669398 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/531). Originally posted by [nickfmbg](https://github.com/nickfmbg) on 2026-11-24T07:03:39Z. --- Claimed in the coordination issue as: TEST-CHURN-TEMP-DIR (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7124547328) ### What and why `d3d12_bindless_churn` and `d3d12_bindless_churn_validated` are the same executable (`d3d12_bindless_churn_test`, with and without `--validated`), and both used one fixed `%TEMP%\leonida_bindless_churn_test` folder for the translated shader and its `index.json`. Under `ctest -j` they run at the same time; the first to finish calls `remove_all` on the folder, and the other then fails: ``` [rt] d3d12: cannot open %TEMP%\leonida_bindless_churn_test\index.json line 142: SUCCEEDED(device->CreateComputePipelineState(&pso_desc, IID_PPV_ARGS(&pso.p))) ``` The folder now carries the process id, as `d3d12_execute_indirect_validation_test` and `d3d12_conservative_tier3_test` already do. I checked the other executables registered as more than one ctest entry; none of them shares a fixed temp folder. ### Tested - Before, on `main` `8f481cf`: `ctest -R "^d3d12_bindless_churn" -j 4 --repeat until-fail:3` failed `d3d12_bindless_churn_validated` in the first round; each test passes when run alone. - After: the same command with `--repeat until-fail:5` passes 5 rounds, both tests, and leaves no `leonida_bindless_churn_test*` folder in `%TEMP%`. - Built with MSVC 14.44.35207 (`scripts\build_runtime.ps1`, RelWithDebInfo). GPUs tested: NVIDIA GeForce RTX 3050 6GB Laptop GPU, NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Home 26300.9974 AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
QemmHD commented 2026-11-24 07:39:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T07:39:20Z.


Merging. Why merged: d3d12_bindless_churn and its --validated run now use separate temp folders per process, fixing a race between parallel runs.
Why it's good: security-reviewed; reproduced on main d42773d (the pair failed 4 of 6 runs at -j2); with this PR 8 of 8 runs passed and no stale folders were left.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7125225524 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/531#issuecomment-7125225524). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T07:39:20Z. --- Merging. Why merged: d3d12_bindless_churn and its --validated run now use separate temp folders per process, fixing a race between parallel runs. Why it's good: security-reviewed; reproduced on main d42773d (the pair failed 4 of 6 runs at -j2); with this PR 8 of 8 runs passed and no stale folders were left. AI-assisted (Claude Code, Claude Opus 5.5).
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!531
No description provided.