Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested PR #310 at head
Behavior covered: Checks native cache paths still enforce repository markers after Windows AppContainer path resolution. |
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 1ea6427 on Windows 11, RTX 5070, MSVC: cargo test -p victory-core 9 passed, including native_paths_still_check_repository_markers. cargo clippy -p victory-core --all-targets is clean. Not run inside an AppContainer here.
- Dependency check:
windows-sysis already a workspace dependency, and this only adds theWin32_Storage_FileSystemfeature undercfg(windows). Nothing new comes intoCargo.lockapart from the edge. - The fallback stays safe: the workspace root and the target are both resolved through
canonicalize_native, sostarts_withcompares\?\GLOBALROOT\Device\...against the same form. The ancestor walk for.victory-rootstill runs on the resolved path. - Behaviour change to be aware of: on Windows,
resolvenow stops at the firstPermissionDeniedinstead of moving up to the parent. A path that exists but cannot be canonicalized now goes through the native retry, where it used to be resolved from its parent.access_mode(0)with backup semantics opens almost anything, so I don't expect regressions, but if the native open also fails the error now surfaces instead of the old fallback.
AI-assisted (Claude Code).
…ndows AppContainer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Automated triage for the maintainers. Needs rebase. This pull request conflicts with Generated by Claude Code |
… clean-up pass With VICTORY_SHADER_OPT=0 (fxceless Marvisak#310) the screen probes' ray activation is still 66k instructions; VICTORY_SHADER_OPT_BIG=50000 gives that program alone the full clean-up (container 203 KB -> 119 KB). Unset: as before, and the shader cache key is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSE7XjLLUipXi15813g
What 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).