Repository navigation
App: forward title command-line arguments to run command - #513
pushkarreddyy wants to merge 2 commits into
Conversation
Technical Verification & Implementation DetailsContext & Root CauseIn Changes & Diff
Git Log Line & Verification
|
Call for Testing & Maintainer ReviewCommunity verification on CLI commands (
@Marvisak: Ready for maintainer review and merge when convenient! |
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 0c2d85d on Windows 11, RTX 5070, MSVC: cargo test --workspace fails to compile:
error[E0433]: cannot find module or crate `tracing` in this scope
--> apps\victory\src\run.rs:21:9
apps/victory/Cargo.toml has no tracing dependency, so tracing::info! in run.rs doesn't resolve. Either add tracing to apps/victory's dependencies (the workspace already uses it, so tracing.workspace = true if it's declared there), or print with println!/eprintln! like the rest of run does (println!("console {}", …)).
On the behaviour: the arguments are only logged, not passed on. The doc comment on title_args says the title reads the whole command line itself, so they already reach it. The change is diagnostic only, which is fine, but the title "forward title command-line arguments" overstates it a little.
AI-assisted (Claude Code).
|
Thanks for catching the missing dependency @mercuryVM! I've pushed an update ( |
mercuryVM
left a comment
There was a problem hiding this comment.
Re-tested c3f374f on Windows 11, RTX 5070, MSVC: it builds now, and the workspace passes (195 outside victory-shader, plus victory-shader --lib single-threaded: 69).
Switching to println! in the same style as the other run lines fixes the missing tracing dependency I reported. The arguments are still only printed, which is fine since the title reads its own command line. Approving.
Heads-up: this conflicts in apps/victory/src/run.rs with #441 (console selection), which changes the same run signature. Whichever lands second needs a small rebase.
AI-assisted (Claude Code).
|
@Marvisak: PR #513 is approved by @mercuryVM (verified passing workspace tests on Windows 11 MSVC). Whenever you have a moment, this is ready to merge! |
c3f374f to
13aac08
Compare
Three review workers over ~30 PRs against the freshly merged upstream tree, plus three of our features the merge had discarded, re-applied with their tests: f32_to_half NaN/nearest-even (Marvisak#843), unique-temp atomic library writes (Marvisak#1660), VICTORY_PIPELINE_WORKERS (Marvisak#1728). Integrated: Marvisak#1146, Marvisak#1161, Marvisak#1474, Marvisak#1592, Marvisak#1058, Marvisak#1505, Marvisak#1177, Marvisak#1507, Marvisak#1236, Marvisak#1180 (with a new regression test for the cached opcode name). Duplicates confirmed against upstream's own code: Marvisak#957, Marvisak#1103, Marvisak#1057, Marvisak#299. Obsolete: Marvisak#513 (title_args no longer exists), Marvisak#1507's sibling Marvisak#334 covers it. Refused: Marvisak#1030 (zip dump of game data), Marvisak#962 (deletes .gitignore). Verified before this merge: fmt 0 differing, both Clippy gates exit 0, xtask policy 220 files ok, workspace 662 passed / 0 failed (10 GPU tests skipped that fail identically on upstream/main itself on this host).
|
Automated triage for the maintainers. Closing because by our reading the change is incorrect or would break something that works today. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Problem
apps/victory/src/main.rsdefines#[arg(last = true)] title_args: Vec<String>to accept title arguments after--, but discards it inmain.rsline 162 withtitle_args: _. Consequently,run::runnever receives the arguments.Fix
Pass
&title_argsintorun::runso that title arguments supplied after--are retained and logged during execution.No game files used.