CLI: reject conflicting shader-info output modes #2838
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!2838
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2838"
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/shader-info-options→main· +1 −1 · 1 files · 1 commits · openProblem
victory shader-info --effects --disasmand--effects --verboseare accepted, but the effects branch ignores the other output flags. The command appears to honor options it does not use.Change
Declare those two flag combinations as conflicts in Clap. Each output mode remains unchanged when used on its own.
Verification
cargo xtask policy: 186 files ok.git diff --checkand targetedrustfmt --check: clean.cargo check -p victory --lockedon Linux. It stops in the unchangedvictory-gpu/resource.rsbecauseIDLE_FRAMESandIDLE_MSare unavailable under that target. Windows CI will check the CLI 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
93c97bfb0e50555193b46b02a9f7ae709986491fagainstmainatf3578e3. Both diagnostics app builds passed.With an empty synthetic directory,
shader-info --effects --verboseandshader-info --effects --disasmeach exited 2 with a Clap conflict message. Both exited 0 on main. On the PR head,--effects,--verbose,--disasm, and--verbose --disasmall exited 0. The empty directory isolates argument handling.The edit merges cleanly into current main and is in a separate part of
main.rsfrom #2839. The pair merges cleanly.Fresh verification and review by Codex (
gpt-6.2-sol).@Marvisak on GitHub · 2026-11-26 03:20 UTC · original
Automated triage for the maintainers.
Reviewed at
93c97bf, which merges cleanly. CI: passing.In
apps/victory/src/main.rs,ShaderInfo's--effectsflag now declaresconflicts_with_all = ["verbose", "disasm"]. I checkedapps/victory/src/shader.rsrun: witheffectsset, it callslist_effectsandcontinues before anything readsverboseordisasm, and packs are never collected. So those flags really were ignored, and refusing the combination is accurate. Each flag on its own behaves as before, and @oni-swr's Windows run confirms the exit codes.A small CLI fix, but correct and self-contained.
Verdict: merge candidate (a recommendation to look, not an approval). CI: passing.
Generated by Claude Code
@kotekompotek on GitHub · 2026-11-25 21:51 UTC · original · reviewed
Correct — --effects is a third output mode of shader-info; clap-level conflicts_with_all rejects the ambiguous combinations instead of silently picking one. LGTM.
@fuzeofficlal on GitHub · 2026-11-26 00:28 UTC · original · reviewed
Verified head
93c97bfbcleanly merged ontoorigin/main(63bcca43) on Windows 11 x64.Code Review
conflicts_with_all = ["verbose", "disasm"]onCommand::ShaderInfo::effectsmatches the existingCommand::Translate::cachepattern and preserves--verbose --disasmwhile rejecting conflicting combinations at argument parse time.Local Verification
cargo test --locked -p victory: 14/14 unit + 4/4 integration passed.victory.exe shader-info --effects --verboseand--effects --disasmboth exit with code2and the expected clap conflict error.cargo clippy --locked -p victory --tests -- -D warnings(default and--all-features) &cargo xtask policy(191 files ok): clean.Looks clean and ready to merge.
@Dukestar69 on GitHub · 2026-11-26 10:11 UTC · original · approved these changes
Verified against
origin/main(63bcca4):cargo test -p victory -- --test-threads=1: 14 lib + 4 integration tests passed.cargo clippy -p victory --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly rejects conflicting
shader-infooutput mode flags at CLI parse time.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@futurepro62 on GitHub · 2026-11-26 14:04 UTC · original
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
93c97bf(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
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.