Pipeline: an entry published by another writer during conversion is used (fixes #890) #1070
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!1070
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1070/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?
@acleofe on GitHub · 2026-11-24 15:27 UTC · original
fix/pipeline-cache-publish-race→main· +64 −2 · 1 files · 1 commits · closed without mergingWhat
When
Cache::get_or_convertcannot rename its staged output into place but the entry exists by then, it returns the entry instead of the rename error. The staging file is still removed, and a failure with no entry there is still an error.Why
Two converters of the same key can race: the loser's
renamereplaces the winner's file, which on Windows fails with access denied while anything holds that file open without delete sharing (antivirus, another process, a mapping). The entry is content-addressed by converter id, version and input, so the winner's output is the loser's; the conversion succeeded and the result is there.Test
an_entry_published_meanwhile_is_used(Windows): a converter publishes its own key's entry while converting and holds it open with read sharing only. Before this changeget_or_convertfailed withAccess is denied. (os error 5); now it returns the entry, its content is right and no staging file is left.failed_publication_removes_the_staging_filestill fails as before (a directory at the entry's path is not an entry).cargo clippy --workspace --all-targets [--all-features] --locked -- -D warningsandcargo test --workspace --lockedpass.🤖 Generated with Claude Code
@ThomasHFWright on GitHub · 2026-11-24 15:52 UTC · original
Independent Linux/Wine validation of
5229ab872aebabd90449d8a901eddf48cd6f68b4on baseffe310e: The newcache::tests::an_entry_published_meanwhile_is_usedpasses under Wine, including reading the winner's content and checking that no staging file is left. The existing failed-publication cleanup regression also passes.Full workspace unit/integration suite, all features, all 14 generated Windows MSVC test executables: 342 passed, 5 failed, 6 ignored. Matched baseline: 341 passed, 5 failed, 6 ignored. The five failures are unchanged: empty pipeline library (#347), missing Wine Winsock export (#217), checksum-rejection expectation, nested Cargo fixture build, and Windows xtask attempting to launch host Git.
Both Windows-target workspace Clippy configurations (all targets, with and without all features,
-D warnings) pass. Native Linux xtask: 4 passed; asset policy passes.Negative control: I retained the new regression but restored the old
published?; Ok(path)behavior in a separate checkout. The same Windows test under Wine fails withAccess denied. (os error 5). The unchanged PR passes all 5 pipeline tests; the native Linux pipeline suite separately passes all 4 portable tests. The control is not included in the full-suite results above.Rust 1.98.1, Wine 11.22, RTX 5090 / NVIDIA 620.73.04, vkd3d-proton
30b0eb9bc12dc9f, natived3dcompiler_47supplied for GPU fixtures; identical runtime DLLs to baseline. Offline and offscreen. No gameplay, native Windows/WARP, or Wine doctests. Aggregate counts include existing early-return tests without optional console compilers/DXIL validator; the new regression executed. AI-assisted testing with Codex.@Zipettte on GitHub · 2026-11-24 16:29 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
5229ab8:cargo test -p victory-pipelinepasses, 5 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Pull request closed