GPU: a save before the early list was loaded leaves the early list file alone #2324
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2326"
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 Marvisak/VIctory. Originally posted by denkencar-sketch on 2026-11-25T10:42:31Z.
Summary
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.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T10:54:09Z.
Review: COMMENTED
A save before the early list was loaded leaves the early file alone (early_text Some/None split). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Pipeline-library save cluster with #2327/#2328 (and #2232 earlier).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:20:26Z.
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
Imported from Marvisak/VIctory. Originally posted by denkencar-sketch on 2026-11-25T23:12:09Z.
Closing per triage: \save()\ only writes after \USED\ has already been loaded on \main, so \early_text(None)\ is unreachable.
Pull request closed