CLI: report missing input paths in shader translation commands #4233
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4233
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4232"
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?
@RanoGames on GitHub · 2026-11-30 17:39 UTC · original
RanoGames:fix/translate-missing-scan-root→main· +60 −7 · 2 files · 1 commits · closed without merging## What it changes
victory translate,translate --warm all, andshaderscan exit successfully when a supplied input path does not exist. For example, passing an empty directory followed by a mistyped path produces a successful zero-shader summary. Scripts andpreloadrely on the exit status to detect a failed scan.Propagate the root traversal error and include the offending path in the diagnostic. An existing empty directory is still a successful scan.
How it was tested
cargo test --locked -p victorypassed.Checked for overlap
shader-info. #2799 covers shader dump destinations.@andrewpozdnakov7-jpg on GitHub · 2026-12-01 10:01 UTC · original
I cherry-picked
c7aacf5onto currentmain5fabb46asdae84bc. The Git author and patch ID match. The comparison contains the changes totranslate.rsand the CLI integration tests, with the unrelated base history removed.The pre-change Windows launcher returned exit code 0 for a valid empty directory followed by a missing one on all three commands. On the rebase,
cargo test --locked -p victory --test translation_inputs --jobs 2passed both tests.translate,translate --warm allandshaderseach rejected the missing root and named it in the error. The same commands accepted an existing empty directory. No game inputs or game run were involved.The rebased branch is ready to use in this PR.
c7aacf5e5ftoc9e474d3c9@trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed