fix(cache): recover cleared roots and verify publication #2826

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

@⁠LgscobraPT on GitHub · 2026-11-29 17:46 UTC · original
LgscobraPT:fix/pipeline-cache-recovery → main · +134 −17 · 1 files · 1 commits · open

What it changes

  • Let an already-open conversion cache recreate its root on a miss after the directory has been cleared. When the cache root itself is a symlink directly to the deleted directory, recreate that target without replacing the symlink; keep the returned path and canonical per-key lock path. This does not add general recovery for chains of dangling links. Check the target against the asset policy before creating it.
  • After a failed staging rename, only accept a destination whose bytes actually match the conversion output. A stale, unreadable, or incomplete file no longer turns a failed publication into success. Staging cleanup and the original rename error are preserved.

How it was tested

  • GPU, profile and wave size: not applicable. These changes affect cache files, not generated shader bytes or the rendering path.
  • All three new regressions failed before their respective fixes and passed after them. The Linux victory-pipeline suite passed all 15 tests, including concurrent misses and recovery through a relative directory symlink. Strict package Clippy and cargo xtask policy --staged passed.
  • The package and its test targets passed the x86_64-pc-windows-msvc cross-check with the local blake3/pure feature override. Native Windows tests and GPU runtime were not run.

Checked for overlap

  • Searched by convert_and_store, publish_staging, cache-directory removal, and rename recovery. #2072 concerns coalescing shader translations; it does not change these recovery conditions.

AI-assisted: yes.

**@⁠LgscobraPT** on GitHub · 2026-11-29 17:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2826) `LgscobraPT:fix/pipeline-cache-recovery` → `main` · +134 −17 · 1 files · 1 commits · open ## What it changes - Let an already-open conversion cache recreate its root on a miss after the directory has been cleared. When the cache root itself is a symlink directly to the deleted directory, recreate that target without replacing the symlink; keep the returned path and canonical per-key lock path. This does not add general recovery for chains of dangling links. Check the target against the asset policy before creating it. - After a failed staging rename, only accept a destination whose bytes actually match the conversion output. A stale, unreadable, or incomplete file no longer turns a failed publication into success. Staging cleanup and the original rename error are preserved. ## How it was tested - GPU, profile and wave size: not applicable. These changes affect cache files, not generated shader bytes or the rendering path. - All three new regressions failed before their respective fixes and passed after them. The Linux `victory-pipeline` suite passed all 15 tests, including concurrent misses and recovery through a relative directory symlink. Strict package Clippy and `cargo xtask policy --staged` passed. - The package and its test targets passed the `x86_64-pc-windows-msvc` cross-check with the local `blake3/pure` feature override. Native Windows tests and GPU runtime were not run. ## Checked for overlap - [x] Searched by `convert_and_store`, `publish_staging`, cache-directory removal, and rename recovery. #2072 concerns coalescing shader translations; it does not change these recovery conditions. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:50:26 +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/2826/head:github-bot/gh-2826'
git switch 'github-bot/gh-2826'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2826'
git switch 'github-bot/gh-2826'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2826'
git switch 'github-bot/gh-2826'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2826'
git switch 'main'
git merge --squash 'github-bot/gh-2826'
git switch 'main'
git merge --ff-only 'github-bot/gh-2826'
git switch 'main'
git merge 'github-bot/gh-2826'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2826
No description provided.