Discover shader files through symbolic links in translate #970

Closed
DoubleD17 wants to merge 1 commit from upstream-pr/971 into main
DoubleD17 commented 2026-11-25 14:07:40 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by DoubleD17 on 2026-11-25T14:07:40Z.


translate and translate --warm skip symbolic links to shader files, including links passed directly on the command line. Both modes now use the same file filter. It checks that a symbolic link resolves to a regular file within the existing 2 GiB limit and preserves directory traversal behavior. Synthetic Windows 11 x64 testing with a Ryzen 7 5800X and Rust 1.98.1 MSVC found and processed one shader through both an explicit file link and a directory containing the link. The baseline found zero in both cases. Direct files and explicit directory links continued to work. Broken links, nested directory links, and targets larger than 2 GiB stayed excluded. The prepared commit b99f251 has the tested tree. The CPU test covers discovery, translation, and cache warm-up. DXIL validation and pipeline creation were outside its scope. See #954.

AI-assisted.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6606352686 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/971). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-11-25T14:07:40Z. --- `translate` and `translate --warm` skip symbolic links to shader files, including links passed directly on the command line. Both modes now use the same file filter. It checks that a symbolic link resolves to a regular file within the existing 2 GiB limit and preserves directory traversal behavior. Synthetic Windows 11 x64 testing with a Ryzen 7 5800X and Rust 1.98.1 MSVC found and processed one shader through both an explicit file link and a directory containing the link. The baseline found zero in both cases. Direct files and explicit directory links continued to work. Broken links, nested directory links, and targets larger than 2 GiB stayed excluded. The prepared commit `b99f251` has the tested tree. The CPU test covers discovery, translation, and cache warm-up. DXIL validation and pipeline creation were outside its scope. See [#954](https://github.com/fxceless/victory-fork/issues/954). AI-assisted.
avt0m4t48 commented 2026-11-25 15:08:31 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T14:21:36Z.


An independent Windows run on b99f251 confirms this fix for both translate and translate --warm all. The source-built fixture found one container when given the original file, a file symlink, or a directory containing the symlink and a dangling link.

The same fixture identifies a separate gap: shader-info still reports zero containers for the linked file. I opened #972 while testing this independently and will close it as overlapping. Its integration test and small shared helper are available if you want to cover shader-info in this PR. The collector commands here were exercised without retail assets or GPU pipeline creation.

Windows run on your head · Standalone integrated test

AI-assisted using Codex.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7165155821 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/971#issuecomment-7165155821). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-25T14:21:36Z. --- An independent Windows run on `b99f251` confirms this fix for both `translate` and `translate --warm all`. The source-built fixture found one container when given the original file, a file symlink, or a directory containing the symlink and a dangling link. The same fixture identifies a separate gap: `shader-info` still reports zero containers for the linked file. I opened #972 while testing this independently and will close it as overlapping. Its integration test and small shared helper are available if you want to cover `shader-info` in this PR. The collector commands here were exercised without retail assets or GPU pipeline creation. [Windows run on your head](https://github.com/avt0m4t48/victory-fork/actions/runs/45632381605) · [Standalone integrated test](https://github.com/avt0m4t48/victory-fork/commit/c663c0664f13276eae7cc6288cfe7cd80ade758d) AI-assisted using Codex.
upstream-sync closed this pull request 2026-11-26 10:06:39 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!970
No description provided.