fix(victory): create cache/pipelines in warm on a clean cache (#497) #507
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/507"
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?
Imported from LooperSalty/AnyXboxX. Originally posted by Lewandox on 2026-11-27T14:50:21Z.
Change
Fix
victory warmfailing on a clean first-run cache withError: The system cannot find the path specified. (os error 3)(ERROR_PATH_NOT_FOUND), which abortsanyxboxx-launcher(== Warming the shader cache ==→== finished, exit code 1 ==) andanyxboxx run --warm/--precompilebefore the game ever runs:third_party/victory/apps/victory/src/warm.rs,folder()previously calledcfg.cache_subdir("shaders")?.with_file_name("pipelines"), creating<cache>/shaderswhile leaving<cache>/pipelinesnon-existent on a fresh machine where no game run has recorded pipelines yet.<cache>/pipelines/warm-done.txtwithOpenOptions::openthen failed with Windowsos error 3(ERROR_PATH_NOT_FOUND), with no path context attached to theio::Error.shadersandpipelinesviacfg.cache_subdir(...)(which also enforcesensure_outside_repo) and attach path context when openingwarm-done.txt,slow-pipelines.txtandwarm-bad.txt.Linked issue: Fixes #497
Verification
Oracle and test data
Configwhosecache_dirdoes not yet exist,cfg.cache_subdir("shaders")?.with_file_name("pipelines")leaves<cache>/pipelinesabsent andOpenOptions::open(dir.join("warm-done.txt"))returnsThe system cannot find the path specified. (os error 3)on Windows.warm::tests::clean_first_run_creates_both_shaders_and_pipelines_cache_dirsfails withos error 3.Checklist
E_NOTIMPL), never a fake success.test_readme_sync.pychecks it).AI assistance: diagnosed, implemented and verified with AI coding assistance.