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

Manually merged
github merged 1 commit from gh-pr/531/head into gh-pr/531/base 2026-11-26 09:06:43 +00:00
Owner

@⁠nickfmbg on GitHub · 2026-11-24 07:03 UTC · original
nickfmbg:fix/bindless-churn-temp-dir → main · +5 −1 · 1 files · 1 commits · merged 2026-11-24 07:39 UTC

Claimed in the coordination issue as: TEST-CHURN-TEMP-DIR (#14)

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

**@⁠nickfmbg** on GitHub · 2026-11-24 07:03 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/531) `nickfmbg:fix/bindless-churn-temp-dir` → `main` · +5 −1 · 1 files · 1 commits · merged 2026-11-24 07:39 UTC Claimed in the coordination issue as: TEST-CHURN-TEMP-DIR (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### 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)
Both ctest entries run d3d12_bindless_churn_test with one fixed
%TEMP%\leonida_bindless_churn_test folder. Under ctest -j the first to finish
removes the folder and the other fails creating its pipeline ("cannot open
...\index.json"). The folder now carries the process id, as
d3d12_execute_indirect_validation_test does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:06:41 +00:00
github manually merged commit ace35e632b into gh-pr/531/base 2026-11-26 09:06:43 +00:00
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 07:39 UTC · original

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

**@⁠QemmHD** on GitHub · 2026-11-24 07:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/531#issuecomment-7125225524) 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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.