CLI: apply VICTORY_HOST_WAVE and VICTORY_VIEW_LIMIT to victory warm #24

Merged
sagouindupm merged 1 commit from upstream-pr/24 into main 2026-11-25 16:28:52 +00:00
sagouindupm commented 2026-11-25 15:34:49 +00:00 (Migrated from github.com)

Imported from uiliannn/VItoriaBr. Originally posted by sagouindupm on 2026-11-25T15:34:49Z.


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.

<!-- greyfinch-sync:uiliannn/VItoriaBr:issue:6608084894 --> Imported from [uiliannn/VItoriaBr](https://github.com/uiliannn/VItoriaBr/pull/24). Originally posted by [sagouindupm](https://github.com/sagouindupm) on 2026-11-25T15:34:49Z. --- `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.
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
uiliannn/VItoriaBr!24
No description provided.