Report file scan outcomes in shader-info and shaders #117
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!117
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-117"
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?
@feanorsun on GitHub · 2026-11-26 04:22 UTC · original
feanorsun:fix/shader-scan-summary→main· +233 −26 · 6 files · 1 commits · merged 2026-11-26 08:17 UTCCloses #29
victory shader-infoandvictory shadersnow print how many files they successfully read alongside their existing shader totals. The summary distinguishes a complete scan, a scan limited by file size, and a scan with I/O errors. It also shows when both limits and errors affected the same scan.Both commands use the same scanner. It counts traversal errors, metadata failures, read failures, and files over the 2 GiB limit separately. A failure to traverse a subtree counts once, regardless of how many files it might contain. Directories do not contribute to the file count. Successfully read files go through the existing shader analysis, deduplication, translation, and cache code.
shader-info -v(or--verbose) prints skipped paths and reasons. In diagnostics builds,VICTORY_LOG=debugexposes the same details for either command.Tests
On Windows, the first command listed 6 targeted CPU tests. The second command ran all 6. All 6 passed, and 10 unrelated tests were filtered out. The tests used temporary directories to cover nested and empty files, an empty directory, a missing root followed by a valid root, a controlled metadata failure, and a file removed between metadata lookup and read. The oversized-file case used a 4-byte limit and a 5-byte file. No game, GPU, D3D12, or WARP session was started.
@avatarmanz on GitHub · 2026-11-26 07:56 UTC · original
Merged into main in the next push (tests pass); thanks.