replay --retranslate: honor VICTORY_HOST_WAVE/VICTORY_HOST_RDNA and add CLI flags (#302) #312

Closed
mynzjerko wants to merge 1 commit from upstream-pr/312 into a-publier
mynzjerko commented 2026-11-26 19:47:50 +00:00 (Migrated from github.com)

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by mynzjerko on 2026-11-26T19:47:50Z.


Fixes #302.

Summary

  • Make victory replay --retranslate resolve host wave width and RDNA float settings instead of hardcoding 64-lane RDNA:
    • Honor VICTORY_HOST_WAVE / VICTORY_HOST_MAX_WAVE via the shared translate::host_wave::select helper (preserving precedence and alias/conflict warnings).
    • Honor VICTORY_HOST_RDNA (1 = on, other values = off), matching victory translate.
    • Add CLI flags --host-wave <u32>, --host-rdna, and --no-host-rdna (mutually exclusive) that override the environment variables, keeping 64-lane RDNA as the fallback when neither flag nor env var is provided.
    • Report the resolved host wave width and RDNA mode in the retranslate summary line and tracing::info! log so retranslated folders are identifiable.
  • Update docs/replay.md to document the new flags and environment variables.
  • Add unit tests in apps/victory/src/replay.rs covering defaults, env var precedence/warnings, CLI flag overrides, and --host-rdna / --no-host-rdna mutual exclusion.

Verification

  • cargo xtask policy (passed)
  • cargo test -p xtask --locked (9 passed, including documented_switches_are_read and repository_passes_policy)
  • cargo test -p victory --locked and cargo test -p victory --all-features --locked (all unit + integration tests passed)
  • cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings (default and --all-features: 0 warnings)
  • cargo build --locked --profile diag -p victory --features diagnostics and checked victory replay --help

(Prepared with AI assistance; all builds, clippy checks, policy checks, and unit tests were executed locally on Windows.)

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:5516246859 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/312). Originally posted by [mynzjerko](https://github.com/mynzjerko) on 2026-11-26T19:47:50Z. --- Fixes #302. ## Summary - Make `victory replay --retranslate` resolve host wave width and RDNA float settings instead of hardcoding 64-lane RDNA: - Honor `VICTORY_HOST_WAVE` / `VICTORY_HOST_MAX_WAVE` via the shared `translate::host_wave::select` helper (preserving precedence and alias/conflict warnings). - Honor `VICTORY_HOST_RDNA` (`1` = on, other values = off), matching `victory translate`. - Add CLI flags `--host-wave <u32>`, `--host-rdna`, and `--no-host-rdna` (mutually exclusive) that override the environment variables, keeping 64-lane RDNA as the fallback when neither flag nor env var is provided. - Report the resolved host wave width and RDNA mode in the `retranslate` summary line and `tracing::info!` log so retranslated folders are identifiable. - Update `docs/replay.md` to document the new flags and environment variables. - Add unit tests in `apps/victory/src/replay.rs` covering defaults, env var precedence/warnings, CLI flag overrides, and `--host-rdna` / `--no-host-rdna` mutual exclusion. ## Verification - `cargo xtask policy` (passed) - `cargo test -p xtask --locked` (9 passed, including `documented_switches_are_read` and `repository_passes_policy`) - `cargo test -p victory --locked` and `cargo test -p victory --all-features --locked` (all unit + integration tests passed) - `cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings` (default and `--all-features`: 0 warnings) - `cargo build --locked --profile diag -p victory --features diagnostics` and checked `victory replay --help` *(Prepared with AI assistance; all builds, clippy checks, policy checks, and unit tests were executed locally on Windows.)*

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Belobug/VIctory-Belobug-AMD!312
No description provided.