Report malformed host-wave overrides during translation #303
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!303
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-303"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@loyodea on GitHub · 2026-11-26 19:33 UTC · original
loyodea:victory-translate-wave-config→a-publier· +96 −21 · 3 files · 1 commits · merged 2026-11-26 22:30 UTCFixes #282.
Resolve
VICTORY_HOST_WAVEandVICTORY_HOST_MAX_WAVEbefore dispatching eithertranslatemode. Trim surrounding whitespace and report each configured value that cannot be parsed, including values that cannot be decoded as Unicode. A valid primary value takes precedence over the alias. Explicit0still selects an unknown host width.Validation
cargo test --locked -p victorypassed all 27 tests.--warm all, including an unpaired UTF-16 surrogate. It uses empty synthetic inputs and an isolated cache. A separate CLI smoke check verified that a padded explicit zero takes precedence over the alias in both modes.Codex contributed the implementation, independent review, and verification.
@adrianmjim on GitHub · 2026-11-26 21:44 UTC · original
Tested
7e19aa5against a-publiercd8dfc0on Windows 11 with an RX 7900 XT, using release builds of both.Malformed values. I ran
victory translateon an empty dir with an isolated cache. Base ran plain only; the PR ran plain and with--warm all:"",abc,32-64,64 lanes,wave64,-1,4294967296: base prints nothing. The PR prints oneignoring VICTORY_HOST_WAVE=...line and exits 0, the same as when the variable is unset. Both PR modes behave the same.VICTORY_HOST_WAVE=" 32 "andVICTORY_HOST_MAX_WAVE=64, base prints the alias line and uses 64. The PR uses 32 and prints the "over" line.Valid values. I ran a whole-archive
translate --validate --listof shaders.rpf and compared emitted hashes per program (25694 emitted programs):VICTORY_HOST_WAVE=32: identical to base. The same holds for=64." 32 ": base matches unset, so 364 CS hashes differ from=32. The PR matches=32exactly. This is the only output change I found, and it is the intended one.Two things to know:
16and128are valid integers, so they are accepted without a message on both sides. From reading the code, emission only special-cases 32, so any other non-zero value (for example a typo like6or640) translates like 64. The value still goes into the translation fingerprint, so it gets its own cache entries. I did not run a translate with these values.VICTORY_HOST_WAVE= victory translate ...in a POSIX shell) now prints a warning. Base was silent. The result is still "unset", so this is only a visible change.Tests:
cargo test --locked -p victory3 times each for PR and base, interleaved. Everything passed on both sides.&strsignature. All three fail on base.Not tested: a game run,
--pipelines, and non-UTF-8 values on Linux.VICTORY_AMBIENT_SETTLE,VICTORY_MOUSE_SENSorVICTORY_DSTORAGE_STAGING_MBis silently the default (for the first, silently off) #514