warm: a pipeline the compiler once crashed on is never retried (and VICTORY_WARM_BAD=0 is ignored) #280

Closed
opened 2026-11-26 18:52:44 +00:00 by github-bot · 1 comment
Owner

@⁠itsonewi on GitHub · 2026-11-26 18:51 UTC · original

What happens

In apps/victory/src/warm.rs the two lists victory warm keeps are treated differently:

  • the done list is keyed by the build's fingerprint: entries are written "{fingerprint} {key}" (:82) and only those matching known::fingerprint() are read back (:41-46);
  • the bad list is not: it is read as bare keys (:49-50) and every key in it is excluded unconditionally (:57), so --again cannot retry them (again || !done.contains(key) is still ANDed with !bad.contains(key)) and no driver or translator change ever expires them;
  • crates/victory-gpu/src/pipeline/make.rs:109-131, which reads the same file from a running title, honours VICTORY_WARM_BAD=0; warm.rs does not read that switch at all.

A pipeline whose compilation hung or crashed the driver's compiler under one driver, or one translator build, therefore stays excluded from victory warm for the life of the cache.

Why it matters

A driver update is exactly when the fingerprint moves and everything else is re-warmed. The refused pipelines are skipped silently, the title compiles them at their first draw, and the first-run stutter victory warm exists to remove comes back. The only workaround is deleting warm-bad.txt by hand from the cache folder.

Suggested fix

Store bad entries as "{fingerprint} {key} {why}" like the done list and skip only the keys of the current fingerprint; or at least let --again and VICTORY_WARM_BAD=0 clear them. While there: make.rs:119-127 skips # comment lines, warm.rs:50 does not, though the file is documented as accepting them.

AI use

Found by reading apps/victory/src/warm.rs, crates/victory-gpu/src/pipeline/make.rs and pipeline/known.rs. No code was built or run.

**@⁠itsonewi** on GitHub · 2026-11-26 18:51 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/280) ## What happens In `apps/victory/src/warm.rs` the two lists `victory warm` keeps are treated differently: * the **done** list is keyed by the build's fingerprint: entries are written `"{fingerprint} {key}"` (`:82`) and only those matching `known::fingerprint()` are read back (`:41-46`); * the **bad** list is not: it is read as bare keys (`:49-50`) and every key in it is excluded unconditionally (`:57`), so `--again` cannot retry them (`again || !done.contains(key)` is still ANDed with `!bad.contains(key)`) and no driver or translator change ever expires them; * `crates/victory-gpu/src/pipeline/make.rs:109-131`, which reads the same file from a running title, honours `VICTORY_WARM_BAD=0`; `warm.rs` does not read that switch at all. A pipeline whose compilation hung or crashed the driver's compiler under one driver, or one translator build, therefore stays excluded from `victory warm` for the life of the cache. ## Why it matters A driver update is exactly when the fingerprint moves and everything else is re-warmed. The refused pipelines are skipped silently, the title compiles them at their first draw, and the first-run stutter `victory warm` exists to remove comes back. The only workaround is deleting `warm-bad.txt` by hand from the cache folder. ## Suggested fix Store bad entries as `"{fingerprint} {key} {why}"` like the done list and skip only the keys of the current fingerprint; or at least let `--again` and `VICTORY_WARM_BAD=0` clear them. While there: `make.rs:119-127` skips `#` comment lines, `warm.rs:50` does not, though the file is documented as accepting them. ## AI use Found by reading `apps/victory/src/warm.rs`, `crates/victory-gpu/src/pipeline/make.rs` and `pipeline/known.rs`. No code was built or run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:52:44 +00:00
Author
Owner

@⁠lerapeurdu62280-debug on GitHub · 2026-11-26 21:20 UTC · original

Two open PRs touch this and conflict with each other (warm.rs, known.rs, make.rs): #294 (@⁠BlueCatsz) and #305 (@⁠loyodea, which describes itself as "a narrower option alongside #294"). I tested both on a-publier cd8dfc0 plus #330 (for a-publier's own Clippy lint), on Windows 10 Pro 19045, RX 6600, Rust 1.98.1:

#294 #305
Entries scoped by known::fingerprint() (retried automatically after a driver or translator change: the core of this issue) yes, new lines <fingerprint> <key> <reason>; legacy bare keys still apply no, bare keys still apply forever
victory warm honours VICTORY_WARM_BAD=0 yes yes
# comments and blank lines in warm-bad.txt skipped (shared parser) skipped (shared parser)
cargo test -p victory 23 + 2 passed, 0 failed 22 + 2 passed, 0 failed
victory-gpu pipeline::make / known:: tests 14 passed 13 passed
Clippy -D warnings (victory, victory-gpu) clean clean

Both are sound. Only #294 fixes the stale-quarantine problem itself; #305 gives a manual way out. So #294 is the one that closes this issue, and #305's CLI regression test (default skips, explicit retries, --again, --used, --limit) would be worth carrying over if #294 lands.

AI-assisted: yes (Claude Code)

**@⁠lerapeurdu62280-debug** on GitHub · 2026-11-26 21:20 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/280#issuecomment-7203630697) Two open PRs touch this and conflict with each other (`warm.rs`, `known.rs`, `make.rs`): #294 (@⁠BlueCatsz) and #305 (@⁠loyodea, which describes itself as "a narrower option alongside #294"). I tested both on `a-publier` `cd8dfc0` plus #330 (for `a-publier`'s own Clippy lint), on Windows 10 Pro 19045, RX 6600, Rust 1.98.1: | | #294 | #305 | |---|---|---| | Entries scoped by `known::fingerprint()` (retried automatically after a driver or translator change: the core of this issue) | yes, new lines `<fingerprint> <key> <reason>`; legacy bare keys still apply | no, bare keys still apply forever | | `victory warm` honours `VICTORY_WARM_BAD=0` | yes | yes | | `#` comments and blank lines in `warm-bad.txt` | skipped (shared parser) | skipped (shared parser) | | `cargo test -p victory` | 23 + 2 passed, 0 failed | 22 + 2 passed, 0 failed | | `victory-gpu` `pipeline::make` / `known::` tests | 14 passed | 13 passed | | Clippy `-D warnings` (`victory`, `victory-gpu`) | clean | clean | Both are sound. Only #294 fixes the stale-quarantine problem itself; #305 gives a manual way out. So #294 is the one that closes this issue, and #305's CLI regression test (default skips, explicit retries, `--again`, `--used`, `--limit`) would be worth carrying over if #294 lands. AI-assisted: yes (Claude Code)
This discussion has been locked. Commenting is limited to contributors.
No description provided.