Repository navigation
Conversation
Adapt fxceless/victory-fork#971 to cover translate, its cache warm-up, pipeline pack discovery, and shader-info. Resolve file symlinks for type and size checks while preserving each caller's regular-file metadata policy and shader-info's warning for large regular files. Thanks to avt0m4t48 for independently verifying the translate fix and identifying the remaining shader-info gap in fxceless/victory-fork#971.
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f):
- Discovering shaders and pipeline packs through file symlinks builds cleanly and passes all
victorytests. cargo test -p victory: 12/12 passed.cargo clippy -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
AI-assisted (Gemini 4 Neon).
9d0656c to
73ef2eb
Compare
|
Independent local validation for PR #2476 (Windows, Rust 1.100.0/MSVC, head 73ef2eb, no game data): |
|
Automated triage for the maintainers. This moves the four copies of the input walk in Generated by Claude Code |
|
Semantics preserved correctly: for regular files the same One gap: a symlink to a directory is still skipped — |
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed and verified against main (63bcca43) on Windows 11 — clean consolidation and ready to merge:
- Centralizing discovery in
shader_files/scan_shader_files(apps/victory/src/shader.rs:18-52) keepsWalkDirwithfollow_links(false)(avoiding directory symlink loops) while resolving file symlinks viastd::fs::metadata(target.is_file() && target.len() <= MAX_FILE), safely skipping broken symlinks. - (Minor non-blocking notes: oversized symlink targets
> MAX_FILEare filtered silently without callingon_large_fileunlike regular files atshader.rs:37-38, and no symlink-specific unit test is included.)
Local verification:
cargo test --locked -p victory: 18/18 passed (14unit +census+census_unreadable+translate)cargo clippy --locked -p victory --tests -- -D warnings(default &--all-features): 0 warningscargo xtask policy: 191 files ok
On Marvisak main,
translate,translate --cache, and pipeline pack discovery skip symbolic links to files before reading them. This adapts fxceless/victory-fork #971 to the original CLI. The shared filter accepts a link when its target is a regular file of at most 2 GiB. It preserves directory traversal and each mode's metadata handling for regular files. Synthetic tests on Windows x64 withdiagnosticscompared main940d32fand candidate9d0656c. Both translation and cache warm-up found 1/0/0 on main and 1/1/1 on the candidate across the direct file, explicit symlink, and directory containing the file symlink. Cache checks also verified persisted entries. Broken links, nested directory links, and oversized targets stayed excluded. An explicit directory link worked on both revisions. In key-listing mode, both revisions found a direct synthetic empty pack. The candidate also found it through both file-link inputs. Pack selection happened on the CPU before WARP initialization, and the test created and loaded zero pipelines.AI-assisted.