pipeline: keep stale warm-bad.txt entries in runtime until warm-done.txt confirms them #387
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!387
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-387"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@BlueCatsz on GitHub · 2026-11-26 23:26 UTC · original
BlueCatsz:fix/runtime-warm-bad-require-warm-done→a-publier· +172 −47 · 5 files · 1 commits · openFollow-up to #294 (suggested by @adrianmjim in this post-merge review comment).
Why
In #294, both
victory warmand the running title (crates/victory-gpu/src/pipeline/make.rs) switched toknown::parse_bad_keys, which dropswarm-bad.txtentries as soon asknown::fingerprint()changes (for example after a driver update,TRANSLATOR_VERSIONbump, or shader switch change).victory warm, retrying stale entries immediately is safe because compilations run in isolated child processes with a 180 s hang timeout (apps/victory/src/warm.rs).make.rs), compilations run in-process with no compile timeout and the VEH crash guard (make.rs::compiler_crashed) only catches access violations below0x10000. Dropping stalewarm-bad.txtentries in the title beforevictory warmhas re-tested them risks repeating 180 s hangs (hung for 180 s) or unguarded compiler crashes in-game.What changed
crates/victory-gpu/src/pipeline/known.rs:WARM_DONE_FILE = "warm-done.txt"andparse_done_keys(reused byapps/victory/src/warm.rs).parse_bad_lineused by bothparse_bad_keys(victory warm, unchanged behavior) and newparse_runtime_bad_keys.parse_runtime_bad_keys(bad_text, done_text, fingerprint)keeps stale-fingerprint entries (fp != fingerprint) quarantined in the title untilwarm-done.txtcontains<fingerprint> <key>under the current fingerprint. Current-fingerprint entries and legacy/manual bare-key entries remain quarantined unconditionally (even ifwarm-done.txtalso lists the key).runtime_bad_keys_keep_stale_entries_until_warm_done_confirms_them.crates/victory-gpu/src/pipeline/make.rs:bad_keysnow callsknown::parse_runtime_bad_keysusingwarm-bad.txtandwarm-done.txt, preserving the lazy early exit whenVICTORY_WARM_BAD=0orwarm-bad.txtis empty/missing (without eagerly callingknown::fingerprint()).apps/victory/src/warm.rs&apps/victory/src/main.rs:known::WARM_DONE_FILEandknown::parse_done_keysinwarm::runand updatedvictory warm --helpto explain thatvictory warmretries stalewarm-bad.txtentries automatically and the title clears them oncewarm-done.txtrecords them under the new fingerprint.apps/victory/tests/warm_bad.rs:warm_bad_fingerprint_override_again_and_helpto verifywarm --helpmentionswarm-done.txtand that after rotating the fingerprint (VICTORY_WAVE_WIDE=0),parse_runtime_bad_keyskeeps the stale tagged key quarantined beforevictory warmruns and clears it oncevictory warmwriteswarm-done.txt(while keeping legacy bare-key entries quarantined).Tradeoff: Users who never run
victory warmand only rely on runtime VEH catches keep stale entries quarantined across driver/translator updates until they runvictory warmor setVICTORY_WARM_BAD=0(matching pre-#294 runtime behavior).Verification
x86_64-unknown-linux-gnu):cargo --offline test -p xtask: 9 passed, 0 failed (policy::tests::repository_passes_policy,switches::documented_switches_are_read).git diff --check: clean.windows-latestfork CI (Run 45909509717, unmodified.github/workflows/ci.yml):Clippy(--workspace --all-targets --locked -- -D warnings, Default &--all-features): passed (0 warnings).Default tests(cargo test --workspace --locked): passed —victory(25 unit + 2census+ 3translate_host_wave+ 1warm_bad),victory-gpu(397 passed, 0 failed, 34 ignored, includingbad_keys_expire_with_fingerprint_and_skip_comments,runtime_bad_keys_keep_stale_entries_until_warm_done_confirms_them, anda_pipeline_on_the_bad_list_is_not_compiled),xtask(9 passed).Diagnostics tests(cargo test --workspace --all-features --locked -- --test-threads=1): passed —victory(26 unit + 2 + 3 + 1warm_bad),victory-gpu(446 passed, 0 failed, 34 ignored),xtask(9 passed).AI Use
Prepared with AI assistance (Antigravity) and verified against the unit, CLI, and full workspace CI checks above.
@MamaLeVrai on GitHub · 2026-11-27 01:23 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
84b8583:cargo test --release -p victory-gpu --lib397 passed, 0 failed, 34 ignored.AI-assisted (Claude Code); no game data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.