Keep concurrent warm completion records readable #4958
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4958"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T15:29:09Z.
What it changes
Two warm processes can use the same cache. The formatted write to
warm-done.txtsends the fingerprint, name and line breaks to the file in separate writes. If a second process appends between them, the warm-up can lose both completion records and make those pipelines again on a later launch.Format each completion record before appending it, both for regular warming and after a shared pipeline library save. The record format and reader stay compatible with existing files.
How it was tested
5fabb46eand4359d5176a41dd8a8eb9dcdcdd0632a10e21c3aewith two append handles to one synthetic file. It scheduled the second logical append after the first write call. Main issued four writes for a record and recovered neither new mark. The patch issued one and recovered both. The prior record stayed readable in both runs.cargo xtask policy --stagedaccepted the one changed file. The change combined cleanly with #4823, #4840 and the proposed worker-launch patch on #4778.Checked for overlap
warm-done.txt, warm marks and concurrent appends. #4485 handles the preload record inpreloaded.txt. #4891 handles the binary pipeline book. #4823 and #4840 handle selection before warming.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-12-01T16:23:12Z.
Review: APPROVED
Reviewed pps/victory/src/warm.rs: combining each completion mark into a single write_all buffer in ppend_done_mark prevents interleaved partial lines when multiple warm processes append to the shared cache. Verified on Windows: cargo test -p victory --bin victory warm::tests -- --test-threads=1 (12 passed, 0 failed).
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.