CLI: flag files configured as directories #2839
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!2839
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2839"
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?
@109User109 on GitHub · 2026-11-25 21:49 UTC · original
109User109:codex/config-path-types→main· +7 −4 · 1 files · 1 commits · openProblem
victory configreports an existing regular file as a validgame_dirorfidelityfx_dir, even though both settings require directories. This can hide a path typo during setup.Change
Mark those two paths as
(not a directory)when they exist but are not directories. Keeptest_titlesas files or directories, as before. The command remains informational and keeps its current exit behavior.Verification
cargo xtask policy: 186 files ok.git diff --checkand targetedrustfmt --check: clean.victory-gpu/resource.rserrors forIDLE_FRAMESandIDLE_MS; Windows CI will check the build.No game files or captures are included. Assisted by OpenAI Codex.
@oni-swr on GitHub · 2026-11-25 22:28 UTC · original
Independent Windows verification of exact head
58857445d7477d7d511527a507e25bfa88a94f1cagainstmainatf3578e3. Both diagnostics app builds passed.With a synthetic config,
victory configmarked regular files supplied for bothgame_dirandfidelityfx_diras(not a directory). An existing file and directory supplied astest_titleswere both accepted, and a missing title path was still marked(does not exist). The command exited 0 on both builds. Main printed the two file paths without a directory warning.The edit merges cleanly into current main and alongside #2838. The two changes in
main.rstouch separate code.Fresh verification and review by Codex (
gpt-6.2-sol).@Marvisak on GitHub · 2026-11-26 03:23 UTC · original
Automated triage for the maintainers.
Verdict: merge candidate (small).
show_configinapps/victory/src/main.rsnow prints(not a directory)whengame_dirorfidelityfx_direxists but is a file.test_titlesstill accepts files or directories, and the exit status is unchanged. Both settings are used as directories, so this catches a real setup mistake, and the change is limited to an informational command. oni-swr's Windows run in the comments checks the three cases. It merges cleanly.CI: passing (
check).Generated by Claude Code
@kotekompotek on GitHub · 2026-11-25 21:51 UTC · original · reviewed
Sensible: a configured path that exists but is a file (where a directory is expected) is a different misconfiguration than missing. test_title correctly passes false since a title path can be a file. LGTM.
@fuzeofficlal on GitHub · 2026-11-26 00:28 UTC · original · reviewed
Verified head
58857445cleanly merged ontoorigin/main(63bcca43) on Windows 11 x64.Code Review
status(p, directory)cleanly distinguishes nonexistent paths ((does not exist)) from regular files configured for directory keys (game_dir,fidelityfx_dir->(not a directory)), while keepingtest_titles(directory = false) unchanged and following symlinks viaPath::exists()/Path::is_dir().Local Verification
cargo test --locked -p victory -p victory-core:victory14/14 unit + 4/4 integration (census2,census_unreadable1,translate1),victory-core13/13 passed.cargo clippy --locked -p victory -p victory-core --tests -- -D warnings(default and--all-features) &cargo xtask policy(191 files ok): clean.Looks clean and ready to merge.
@futurepro62 on GitHub · 2026-11-26 14:11 UTC · original
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
5885744(on its base61bfc77).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 786 passed, 0 failed, 10 ignored.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
@Dukestar69 on GitHub · 2026-11-26 17:53 UTC · original · approved these changes
Reviewed the diff and verified locally on Windows 11 x64:
game_dirandfidelityfx_diras(not a directory)inshow_configis clean and helpful.cargo test -p victory -- --test-threads=1: 14 unit + 4 integration tests passed, 0 failed.cargo clippy -p victory --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.