Treat an explicit zero worker count as one across translate modes #4

Merged
HandshakeHackin merged 1 commit from upstream-pr/4 into beta 2026-11-25 15:17:44 +00:00
HandshakeHackin commented 2026-11-25 15:08:42 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-25T15:08:42Z.


An explicit --jobs 0 can leave both shader translation and pipeline pre-build with an empty worker range. Normalize zero to one during CLI parsing, matching the existing warm-cache behavior. Omitted and positive counts keep their existing meaning.

Includes a CLI regression test for omitted, zero, and eight workers. git diff --check passed. The Rust test has not been run locally.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6607571474 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/4). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-25T15:08:42Z. --- An explicit `--jobs 0` can leave both shader translation and pipeline pre-build with an empty worker range. Normalize zero to one during CLI parsing, matching the existing warm-cache behavior. Omitted and positive counts keep their existing meaning. Includes a CLI regression test for omitted, zero, and eight workers. `git diff --check` passed. The Rust test has not been run locally.
PastiiJay commented 2026-11-25 15:17:48 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-25T15:17:48Z.


Thanks @HandshakeHackin, merged into beta. Simple and safe, with a test.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7166616395 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/4#issuecomment-7166616395). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-25T15:17:48Z. --- Thanks @HandshakeHackin, merged into beta. Simple and safe, with a test.
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
PastiiJay/klbf-lab!4
No description provided.