GPU: preserve successful shader translations on cache I/O failure #447

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

@⁠VlREX on GitHub · 2026-11-25 00:54 UTC · original
VlREX:virex/shader-cache-resilience → main · +94 −19 · 2 files · 1 commits · open

Problem

cached() currently propagates Cache::get_or_convert errors even when translation succeeded and only publishing the optional cache entry failed. This can discard usable shaders.

Change

Retain the conversion result for the current request. Return successful in-memory translations even when writing or renaming the cache entry fails; do not retry a genuine translation failure. Cache hits and damaged-entry recovery remain unchanged. No cache key, format or shader semantics change.

Validation

Added two focused Rust regression tests for a blocked cache publication and a translator failure, each asserting one translation call. Native Rust/Windows and game tests have not been run. No measured performance or rendering claim. Based on a803c87c. AI-assisted (ChatGPT).

**@⁠VlREX** on GitHub · 2026-11-25 00:54 UTC · [original](https://github.com/fxceless/victory-fork/pull/447) `VlREX:virex/shader-cache-resilience` → `main` · +94 −19 · 2 files · 1 commits · open ## Problem `cached()` currently propagates `Cache::get_or_convert` errors even when translation succeeded and only publishing the optional cache entry failed. This can discard usable shaders. ## Change Retain the conversion result for the current request. Return successful in-memory translations even when writing or renaming the cache entry fails; do not retry a genuine translation failure. Cache hits and damaged-entry recovery remain unchanged. No cache key, format or shader semantics change. ## Validation Added two focused Rust regression tests for a blocked cache publication and a translator failure, each asserting one translation call. Native Rust/Windows and game tests have not been run. No measured performance or rendering claim. Based on a803c87c. AI-assisted (ChatGPT).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:43:33 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:54 UTC · original · edited 2026-11-25 00:56 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T00:55:59.109669Z fe4e274 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 00:54 UTC · [original](https://github.com/fxceless/victory-fork/pull/447#issuecomment-7149014744) · edited 2026-11-25 00:56 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"fe4e274c4d567bd517f55b5af6d87be6fef585c3","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T00:55:59.109669Z">2026-11-25T00:55:59.109669Z</relative-time> | `fe4e274` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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/447/head:github-bot/gh-447'
git switch 'github-bot/gh-447'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-447'
git switch 'github-bot/gh-447'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-447'
git switch 'github-bot/gh-447'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-447'
git switch 'main'
git merge --squash 'github-bot/gh-447'
git switch 'main'
git merge --ff-only 'github-bot/gh-447'
git switch 'main'
git merge 'github-bot/gh-447'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.