Report first-use list read failures with warm --used #4841
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4841
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4840"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 10:55 UTC · original
andrewpozdnakov7-jpg:codex2/fix/warm-used-file→main· +16 −9 · 1 files · 1 commits · openWhat it changes
victory warm --usedselects pipelines fromearly-pipelines.txt. A failed read currently becomes an empty list, so the warm-up can report zero work and succeed even though it could not read its input.Reuse preload's checked reader for the first-use list.
warm --usedreports a read failure with the filename. An absent list still means no earlier run, and an unrestrictedwarmcan continue when its optional ordering list is unreadable.How it was tested
5fabb46eand releasev2026.11.30.03each returned an empty list when the selected path was a directory.f3e7bbe46c7aedce6a9a7b0a6675143e514889aareturned a contextualPermissionDeniedfor--used. The fixture also covered a missing list, a valid list and the unrestricted mode.cargo xtask policy --stagedpassed for the one changed file.Checked for overlap
known-pipelines.binjournal. #4786 checks the shader book. #4824 allows an explicit full preload to skip first-use mode detection.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this into another commit.AI-assisted with OpenAI Codex.
@gut0to on GitHub · 2026-12-01 15:17 UTC · original · reviewed
AI-assisted review: I checked the new missing-versus-unreadable list handling and its callers. I used AI assistance and verified that this diff adds no regression test for the two modes.
@ -179,1 +184,3 @@let early = std::fs::read_to_string(dir.join("early-pipelines.txt")).unwrap_or_default();let early = early_pipeline_list(&dir);// Without --used, the list only decides which pipelines to warm first.let early = if used { early? } else { early.unwrap_or_default() };@gut0to on GitHub · 2026-12-01 15:17 UTC · original
Could this behavior get a focused temp-file test? A missing early-pipelines.txt is normal, while invalid UTF-8 must propagate an error for --used and remain ignorable when the list only sets priority. Those branches decide whether preload fails clearly or can expand to a full pipeline warm-up, but this diff adds no regression test for either case.
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.