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

Closed
github-bot wants to merge 1 commit from github-bot/gh-312 into a-publier AGit
Owner

@⁠mynzjerko on GitHub · 2026-11-26 19:47 UTC · original
mynzjerko:fix/replay-retranslate-host-settings → a-publier · +231 −6 · 2 files · 1 commits · closed without merging

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.)

**@⁠mynzjerko** on GitHub · 2026-11-26 19:47 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/312) `mynzjerko:fix/replay-retranslate-host-settings` → `a-publier` · +231 −6 · 2 files · 1 commits · closed without merging 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.)*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:49:20 +00:00
github-bot closed this pull request 2026-11-26 20:38:41 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.