Report file scan outcomes in shader-info and shaders #117
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by feanorsun on 2026-11-26T04:22:46Z.
Closes #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.
Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:56:30Z.
Merged into main in the next push (tests pass); thanks.