warm: create the pipelines folder on a fresh cache #456
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!456
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-456"
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?
@Jackster on GitHub · 2026-11-27 02:57 UTC · original
Jackster:fix/warm-fresh-cache→a-publier· +37 −2 · 3 files · 1 commits · openWhat
victory warmfails on a cache the title has never written to — the ordering the README describes:Why
warm::folder()derived<cache>\pipelinesfromcache_subdir("shaders"), which creates only<cache>\shaders.run()then openedwarm-done.txt,slow-pipelines.txtandwarm-bad.txtwithcreate(true)inside the missing folder —create(true)makes a file, never a directory.The folder is otherwise made by a title run (
victory-gpu'spipeline.rsandpipeline/library.rs), so this only bites anyone who runswarmfirst. The existing test hid it by pre-creating the folder.Change
folder()creates the folder, and names the path if it cannot.0 pipelines known ... 0 to makeline, and leaves the emptypipelinesfolder and book files behind.warm_creates_the_missing_pipelines_folderstarts from a cache with nopipelinesfolder: it runswarm --limit 0, checks the folder andwarm-done.txtexist, then that a secondwarm --usedrun succeeds. On4eb6cfdit fails with the same os error 3.shadersis the step that helps before a first run;warmneeds pipelines from an earlier run on the same driver, so on a fresh cache it has nothing to make.Testing
cargo test -p victory --lockedand--all-features(warm_bad: 2 passed each)cargo test -p xtask --locked— the documented-switch and asset-policy checks over the README changecargo clippy -p victory -p xtask --all-targets --locked -- -D warnings, default and--all-featuresRelated, though distinct: #293 is the same "no cache yet" confusion for
shadersandtranslate --warm.README tells new users to run `victory warm --used` before their first run. On a cache the title has never written to, <cache>\pipelines does not exist: folder() derived it from cache_subdir("shaders"), which only creates <cache>\shaders, then run() opened warm-done.txt and the other book files inside the missing folder and failed with os error 3. Create the folder in folder(), with a context naming the path. Zero known pipelines now exits 0, prints "0 pipelines known ... 0 to make", and leaves the empty pipelines folder and book files behind, as the README's ordering expects. The in-game recorder is unchanged. Add warm_creates_the_missing_pipelines_folder to warm_bad.rs: it starts from a cache with no pipelines folder, runs warm --limit 0, checks the folder and warm-done.txt are created, then that a second warm --used run succeeds. It fails before this change with the same os error 3. README: say that `shaders` is the step that helps before a first run and that `warm` needs pipelines from an earlier run on the same driver, since a fresh cache has none to make.@lvndrpup on GitHub · 2026-11-27 03:55 UTC · original · reviewed
Checked on Windows 11 build 26300, Rust 1.98.1, debug:
cargo test -p victory --test warm_badwarm_creates_the_missing_pipelines_folder4eb6cfdwith only this PR's test file0 pipelines known, 0 made before …, 0 bad; 0 to make, 1 processes, thenError: The system cannot find the path specified. (os error 3)63b110f)At
63b110fthe wholecargo test -p victorypasses (33 tests). It also merges cleanly with #305, which changes the same test file.@adrianmjim on GitHub · 2026-11-27 06:51 UTC · original
Tested on RX 7900 XT (RDNA3), driver 32.0.32029.2010, Windows 11 26300, Rust 1.98.1, release. Base is
4eb6cfd, PR is63b110f. I ran the realvictory.exe warmon a fresh emptyVICTORY_CACHE_DIR, withVICTORY_D3D12_ADAPTER=4294967295(no device).4eb6cfd63b110fwarm(default jobs)warm --usedwarm --limit 0 --jobs 1, thenwarm --limit 0 --jobs 1 --usedon the same cachepipelines\has warm-done, warm-bad and slow-pipelines files<cache>\pipelinesis a fileError: creating <cache>\pipelines, caused by os error 183, exit 1Interaction with #403 (
6aea6e8):warm.rsalone, a fresh cache prints its new hint (no pipelines recorded: ...) and then still fails with os error 3.play.ps1 -Warmrunswarm --used, so it fails on a fresh cache without this PR.warmexits 0.warm.rsmerges cleanly.README.mdconflicts with #403. Both add a paragraph after the same block sayingwarmhas nothing to make before a recorded run. The README conflict with #389 is only an adjacent hunk.Minor, not from this PR: an empty
warmends withsum -0 s. With this fix, that is now the normal output on a fresh cache.Not tested:
warmwith a real host device and recorded pipelines.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.