Keep precompiled shaders and pipelines current #325

Manually merged
github merged 2 commits from gh-pr/325/head into gh-pr/325/base 2026-11-27 17:03:15 +00:00
Owner

@⁠TaynanGT on GitHub · 2026-11-27 16:53 UTC · original
TaynanGT:fix/ultrareview-cache → main · +131 −38 · 9 files · 2 commits · merged 2026-11-27 16:58 UTC

A pipeline that failed to produce a host PSO stays eligible for the next warm-up. Older completion records are ambiguous and get one retry. The quarantine for failed workers still works as before.

Both launchers now ask the executable whether shader pretranslation is needed. It checks the active translation key and the source paths, so an old cache directory cannot skip the first scan after a translator update. A scan with I/O errors or a failed cache write remains eligible to run again.

The regression tests cover refused pipelines, legacy completion records, and mismatches in the shader cache key and source path. PowerShell and Bash syntax checks passed locally.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/325) `TaynanGT:fix/ultrareview-cache` → `main` · +131 −38 · 9 files · 2 commits · merged 2026-11-27 16:58 UTC A pipeline that failed to produce a host PSO stays eligible for the next warm-up. Older completion records are ambiguous and get one retry. The quarantine for failed workers still works as before. Both launchers now ask the executable whether shader pretranslation is needed. It checks the active translation key and the source paths, so an old cache directory cannot skip the first scan after a translator update. A scan with I/O errors or a failed cache write remains eligible to run again. The regression tests cover refused pipelines, legacy completion records, and mismatches in the shader cache key and source path. PowerShell and Bash syntax checks passed locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:03:14 +00:00
github manually merged commit 0cb3131abf into gh-pr/325/base 2026-11-27 17:03:15 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 16:53 UTC · original · edited 2026-11-27 16: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-27T16:55:21.641964Z 0cb3131 PR opened
🔒 Security Review ✅ Completed 2026-11-27T16:56:29.529433Z 0cb3131 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-27 16:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/325#issuecomment-7223793727) · edited 2026-11-27 16:56 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"0cb3131abf8ded2400c5dc1bf72d3b9a59c3b578","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":"0cb3131abf8ded2400c5dc1bf72d3b9a59c3b578","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"0cb3131abf8ded2400c5dc1bf72d3b9a59c3b578","mergeGateEnabled":false,"pullRequestNumber":325,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <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-27T16:55:21.641964Z">2026-11-27T16:55:21.641964Z</relative-time> | `0cb3131` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T16:56:29.529433Z">2026-11-27T16:56:29.529433Z</relative-time> | `0cb3131` | 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>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 16:55 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0cb3131abf

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 16:55 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/325#pullrequestreview-6091252869) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `0cb3131abf` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
@ -167,0 +174,4 @@
}
crate::host::host()?;
let mut key = blake3::Hasher::new();
key.update(&build());
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 16:55 UTC · original

P2 Badge Include the translator source fingerprint in scan completion keys

When a translator update adds support for previously refused shaders without changing TRANSLATOR_VERSION, the completion key remains unchanged: build() uses the version by default, not SOURCE. Such updates explicitly leave the version unchanged according to crates/victory-shader/src/lib.rs. Because a scan can record completion even when some shaders fail translation, both launchers subsequently skip the scan that would populate those newly supported shaders. Include SOURCE in the batch completion key independently of the per-shader cache key so a new translator build gets another scan.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 16:55 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/325#discussion_r4721915805) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Include the translator source fingerprint in scan completion keys** When a translator update adds support for previously refused shaders without changing `TRANSLATOR_VERSION`, the completion key remains unchanged: `build()` uses the version by default, not `SOURCE`. Such updates explicitly leave the version unchanged according to `crates/victory-shader/src/lib.rs`. Because a scan can record completion even when some shaders fail translation, both launchers subsequently skip the scan that would populate those newly supported shaders. Include `SOURCE` in the batch completion key independently of the per-shader cache key so a new translator build gets another scan. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -412,0 +415,4 @@
for path in paths {
let path = path.canonicalize().ok()?;
let metadata = path.metadata().ok()?;
let modified = metadata.modified().ok()?.duration_since(std::time::UNIX_EPOCH).ok()?;
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 16:55 UTC · original

P2 Badge Account for descendant changes when stamping source directories

When a configured source is a directory, modifying an existing shader file or adding files within a nested directory does not change the source root's size or modification time. The completion stamp therefore remains valid after those game assets change, and shaders --if-needed skips scanning the new shader content indefinitely unless another key input changes. Both launchers normally scan directories, so the freshness check needs to account for descendant files rather than only the root directory's metadata.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 16:55 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/325#discussion_r4721915815) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Account for descendant changes when stamping source directories** When a configured source is a directory, modifying an existing shader file or adding files within a nested directory does not change the source root's size or modification time. The completion stamp therefore remains valid after those game assets change, and `shaders --if-needed` skips scanning the new shader content indefinitely unless another key input changes. Both launchers normally scan directories, so the freshness check needs to account for descendant files rather than only the root directory's metadata. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.