Keep concurrent warm completion records readable #4959
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!4959
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 15:29 UTC · original
andrewpozdnakov7-jpg:codex2/fix/warm-done-single-append→main· +7 −2 · 1 files · 1 commits · openWhat 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 #4824, #4841 and the proposed worker-launch patch on #4779.Checked for overlap
warm-done.txt, warm marks and concurrent appends. #4486 handles the preload record inpreloaded.txt. #4892 handles the binary pipeline book. #4824 and #4841 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.
@Dukestar69 on GitHub · 2026-12-01 16:23 UTC · original · approved these changes
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.