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

Open
VlREX wants to merge 1 commit from upstream-pr/447 into main
VlREX commented 2026-11-25 00:54:27 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by VlREX on 2026-11-25T00:54:27Z.


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

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594605501 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/447). Originally posted by [VlREX](https://github.com/VlREX) on 2026-11-25T00:54:27Z. --- ## 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).
chatgpt-codex-connector[bot commented 2026-11-25 01:12:05 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:54:39Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149014744 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/447#issuecomment-7149014744). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T00:54:39Z. --- <!-- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/447:upstream-pr/447'
git switch 'upstream-pr/447'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/447'
git switch 'upstream-pr/447'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/447'
git switch 'upstream-pr/447'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/447'
git switch 'main'
git merge --squash 'upstream-pr/447'
git switch 'main'
git merge --ff-only 'upstream-pr/447'
git switch 'main'
git merge 'upstream-pr/447'
git push origin 'main'
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
fxceless/victory-fork!447
No description provided.