Policy: resolve cache paths inside Windows AppContainer #310
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!310
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-310"
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?
@melon0918 on GitHub · 2026-11-24 02:13 UTC · original
melon0918:fix/windows-native-cache-path→main· +92 −4 · 3 files · 1 commits · openWhat changed
A Windows AppContainer can read, write and enumerate its cache directory while the DOS-volume lookup used by
std::fs::canonicalizefails with access denied. In that configuration VIctory exits while checking the cache path, before it can map the title.When DOS path resolution hits a permission error, retry using the normalized native volume path returned by the open file handle. The fallback checks both paths in the same namespace and still checks the resolved ancestors for
.victory-root.Verification
GetFinalPathNameByHandleWwith the DOS volume flag and confirmed that the normalized native name was available..victory-rootmarker to the cache parent still caused the expected rejection.cargo test --locked -p victory-core(9 tests),cargo fmt -p victory-core --checkandcargo xtask policypassed. On the unmodified base the workspace test run hit the known WinHTTP export failure and seven graphics tests failed on this host.This patch is independent of the Agility SDK changes in #175. AI-assisted (Codex).
@jeremygold02 on GitHub · 2026-11-24 04:18 UTC · original
Tested PR #310 at head
1ea6427f05078f9771d724ba180c8a826c9bf009(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at1ea6427f05078f9771d724ba180c8a826c9bf009.cargo test --locked -p victory-core native_paths_still_check_repository_markers— passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 0.00s ); cases: policy::tests::native_paths_still_check_repository_markers.Behavior covered: Checks native cache paths still enforce repository markers after Windows AppContainer path resolution.
Code: crates/victory-core/src/policy.rs
@Marvisak on GitHub · 2026-11-25 00:29 UTC · original · edited 2026-11-25 01:15 UTC
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-core/src/policy.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.