Discover shaders and pipeline packs through file symlinks #2476
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!2476
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2476"
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?
@DoubleD17 on GitHub · 2026-11-25 14:20 UTC · original
DoubleD17:port/fxceless-971→main· +45 −33 · 3 files · 1 commits · openOn 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.
@cloph-dsp on GitHub · 2026-11-25 15:42 UTC · original
Independent local validation for PR #2476 (Windows, Rust 1.100.0/MSVC, head
73ef2eb, no game data):cargo test --locked -p victory --bins-> 10 tests passed, 0 failed, exit 0. CPU-only regression run; synthetic symlink discovery scenario not replayed. AI-assisted (Hy4 flash). GPU/driver N/A (CPU tooling).@Marvisak on GitHub · 2026-11-25 15:54 UTC · original
Automated triage for the maintainers.
This moves the four copies of the input walk in
apps/victory(shader::run,translate::run,translate::warm,prebuild::run) into oneshader_filesfilter that also accepts a symlink whose target is a regular file of at mostMAX_FILE, so linked shader files and packs are no longer skipped. By reading, each caller keeps its old metadata policy (the three CLI modes still accept an entry whose metadata cannot be read, prebuild still rejects it,shader::runstill prints "skipping large file"), and links to directories are still not traversed. CI: passing.Generated by Claude Code
@kotekompotek on GitHub · 2026-11-25 16:54 UTC · original
Semantics preserved correctly: for regular files the same
is_file && len <= MAX_FILEtest; for symlinksfs::metadatafollows the link so a symlink to a file is now included wherefile_type().is_file()used to drop it — that's the advertised change.allow_missing_metadatakeeps each caller's old policy (translate/warm/shader-info included them, prebuild skipped). Large-file notice only where it was before.One gap: a symlink to a directory is still skipped —
metadata.is_file()fails and WalkDir doesn't follow dir links, sogame_dirtrees assembled via directory junctions still aren't scanned. If that's the actual layout motivation,follow_links(true)(plus cycle protection) is the real fix; file-level symlinks alone may be enough for the reported case — worth stating which scenario prompted this.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.