Reject zero worker counts in the CLI #326

Manually merged
github merged 1 commit from github-bot/gh-326 into a-publier 2026-11-27 00:57:57 +00:00 AGit
Owner

@⁠loyodea on GitHub · 2026-11-26 20:27 UTC · original
loyodea:victory-positive-worker-count → a-publier · +53 −3 · 2 files · 1 commits · merged 2026-11-26 22:30 UTC

Fixes #311.

Require a positive worker count when parsing --jobs. The shared parser covers translate, translate --warm, shaders, and warm. An explicit zero now returns a usage error before dispatch. Each command still picks its own worker count when the option is omitted.

Validation

  • The published base accepted --jobs 0 in all four modes. Synthetic CLI runs reproduced zero work in ordinary translation and shader caching, and one worker in both warm-up modes.
  • The regression invokes the real CLI for all four modes with 0, 1, 3, and the option omitted. It failed on the base and passed with the patch. Additional CLI smoke checks covered both --jobs 0 and --jobs=0.
  • The Windows victory suites passed 27 default and 28 diagnostics tests on Rust 1.100.0 GNU. The independent rerun matched both totals.

Codex contributed the implementation and independent verification. The fixtures are synthetic.

**@⁠loyodea** on GitHub · 2026-11-26 20:27 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/326) `loyodea:victory-positive-worker-count` → `a-publier` · +53 −3 · 2 files · 1 commits · merged 2026-11-26 22:30 UTC Fixes #311. Require a positive worker count when parsing `--jobs`. The shared parser covers `translate`, `translate --warm`, `shaders`, and `warm`. An explicit zero now returns a usage error before dispatch. Each command still picks its own worker count when the option is omitted. **Validation** - The published base accepted `--jobs 0` in all four modes. Synthetic CLI runs reproduced zero work in ordinary translation and shader caching, and one worker in both warm-up modes. - The regression invokes the real CLI for all four modes with `0`, `1`, `3`, and the option omitted. It failed on the base and passed with the patch. Additional CLI smoke checks covered both `--jobs 0` and `--jobs=0`. - The Windows `victory` suites passed 27 default and 28 diagnostics tests on Rust 1.100.0 GNU. The independent rerun matched both totals. Codex contributed the implementation and independent verification. The fixtures are synthetic.
Use one positive-count parser for translate, shaders, and warm. Exercise all four modes at the real CLI. Fixes #311.

Co-authored-by: Codex <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:33:00 +00:00
github manually merged commit 61b11340a9 into a-publier 2026-11-27 00:57:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.