CLI: apply VICTORY_HOST_WAVE and VICTORY_VIEW_LIMIT to victory warm #24

Manually merged
github merged 1 commit from gh-pr/24/head into gh-pr/24/base 2026-11-26 03:41:24 +00:00
Owner

@⁠sagouindupm on GitHub · 2026-11-25 15:34 UTC · original
sagouindupm:vitoriabr-warm-host-env → main · +60 −11 · 1 files · 1 commits · merged 2026-11-25 16:28 UTC

victory translate already reads VICTORY_HOST_WAVE (for 32-lane NVIDIA cards) and VICTORY_VIEW_LIMIT (for 1M view heap caps), whereas victory warm (Command::Warm -> warm::run) skipped both, causing offline-warmed caches to hash default 0/0 instead of the runtime translation_fingerprint().

Changes

  • Extract apply_host_shader_overrides / apply_host_shader_overrides_from_env in apps/victory/src/main.rs and apply them to both Command::Translate and Command::Warm.
  • Document VICTORY_HOST_WAVE and VICTORY_VIEW_LIMIT on Command::Warm.
  • Add unit test offline_host_overrides_update_shader_cache_fingerprint verifying both parsing and translation_fingerprint() change.

Verification

  • cargo test --release -p victory -- --test-threads=1 (pass)
  • cargo clippy -p victory --bin victory --no-deps -- -D warnings (pass)
  • cargo xtask policy (pass)

AI-assisted: Gemini / Claude.

**@⁠sagouindupm** on GitHub · 2026-11-25 15:34 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/24) `sagouindupm:vitoriabr-warm-host-env` → `main` · +60 −11 · 1 files · 1 commits · merged 2026-11-25 16:28 UTC `victory translate` already reads `VICTORY_HOST_WAVE` (for 32-lane NVIDIA cards) and `VICTORY_VIEW_LIMIT` (for 1M view heap caps), whereas `victory warm` (`Command::Warm` -> `warm::run`) skipped both, causing offline-warmed caches to hash default `0`/`0` instead of the runtime `translation_fingerprint()`. ## Changes - Extract `apply_host_shader_overrides` / `apply_host_shader_overrides_from_env` in `apps/victory/src/main.rs` and apply them to both `Command::Translate` and `Command::Warm`. - Document `VICTORY_HOST_WAVE` and `VICTORY_VIEW_LIMIT` on `Command::Warm`. - Add unit test `offline_host_overrides_update_shader_cache_fingerprint` verifying both parsing and `translation_fingerprint()` change. ## Verification - `cargo test --release -p victory -- --test-threads=1` (pass) - `cargo clippy -p victory --bin victory --no-deps -- -D warnings` (pass) - `cargo xtask policy` (pass) AI-assisted: Gemini / Claude.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:41:24 +00:00
github manually merged commit 64a903262f into gh-pr/24/base 2026-11-26 03:41:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.