Repository navigation
GPU: a save before the early list was loaded leaves the early list file alone - #2326
denkencar-sketch wants to merge 1 commit into
Conversation
…le alone It wrote the file empty, erasing the keys earlier runs recorded.
catminou4
left a comment
There was a problem hiding this comment.
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).
|
Automated triage for the maintainers. Proposed close. The case this guards against cannot happen on
So when This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label. Generated by Claude Code |
|
Closing per triage: \save()\ only writes after \USED\ has already been loaded on \main, so \early_text(None)\ is unreachable. |
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.