GPU: a save before the early list was loaded leaves the early list file alone #2326
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2326
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2326/head"
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?
@denkencar-sketch on GitHub · 2026-11-25 10:42 UTC · original
denkencar-sketch:fix/plib-002→main· +25 −3 · 1 files · 1 commits · closed without mergingSummary
save()read the early-list state directly, so a save made before the early list was loaded wrote that file empty and erased the keys earlier runs had recorded.early_textnow leaves the file alone when the list was not loaded.Testing
Test
an_unloaded_early_list_is_not_written_emptyfails if the unloaded case writes an empty list and passes with this change. It testsearly_text, not the file write insave().cargo test --workspace --lockedpasses apart from known flakes:modules::dstorage::tests::a_page_list_filled_after_its_request_startsfails now and then onmaintoo, and so does a parallel-run flake invictory-gpu's lib tests (watch::anddescriptor::host::tests, 2 of 40 runs on pristinemain).This touches
save()like #2327 and #2328 do: they conflict textually only in adjacent test blocks inlibrary.rs. Not tried: a run in the game.AI-assisted.
@Marvisak on GitHub · 2026-11-25 15:20 UTC · original
Automated triage for the maintainers.
Proposed close. The case this guards against cannot happen on
main. Incrates/victory-gpu/src/pipeline/library.rs,save()returns early unlessadded,prebuilt_changedorUSED_CHANGEDis set, and each of those is only set afterUSEDhas been loaded:make::early, which callswanted_earlyand soused(), or throughmake::ready, which callsnote_usedbefore anything is made;keep_early_list()before it builds anything, and its doc comment says it exists so that a save keeps the list.So when
save()writes,USEDis alwaysSome, and the newearly_text(None)branch never runs; the added test exercises only the helper, not a reachable path. A call sequence onmainwhere a save writes the early list whileUSEDisNonewould change this verdict. CI: passing.This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.
Generated by Claude Code
@denkencar-sketch on GitHub · 2026-11-25 23:12 UTC · original
Closing per triage: \save()\ only writes after \USED\ has already been loaded on \main, so \early_text(None)\ is unreachable.
Pull request closed