Keep the configured preload worker limit when launching #4826

Open
github-bot wants to merge 1 commit from github-bot/gh-4825 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 10:24 UTC · original
andrewpozdnakov7-jpg:codex2/fix/preload-jobs-env → main · +10 −0 · 2 files · 1 commits · open

What it changes

Both launchers clear VICTORY_PRELOAD_JOBS from the inherited environment before starting the preload. A player who sets it to reduce RAM use can end up with the default number of workers.

Carry the caller's value into the launch settings. An existing saved value or an explicit --set or -More value still takes precedence, including an explicit unset.

How it was tested

  • Windows/MSVC and Windows PowerShell 5.1, using the production settings blocks with synthetic entries. No rendering or memory-usage measurement.
  • Before: the main and released launchers cleared the inherited setting and passed the default. After: b49fac6742b41d9b72ad7023437849ac68453f31 carries a caller limit of 2 in both launchers.
  • The same fixture checked a saved override, a command-line override, an empty saved value and an explicit unset. PowerShell parsing and cargo xtask policy --staged passed.
  • Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • I searched issues and PRs for VICTORY_PRELOAD_JOBS and checked the launchers. #382 introduced control of the preload worker count. #4388 keeps the separate old-cache switch. #3496 passed a fixed worker count for a particular preset.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 10:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4825) `andrewpozdnakov7-jpg:codex2/fix/preload-jobs-env` → `main` · +10 −0 · 2 files · 1 commits · open ## What it changes Both launchers clear `VICTORY_PRELOAD_JOBS` from the inherited environment before starting the preload. A player who sets it to reduce RAM use can end up with the default number of workers. Carry the caller's value into the launch settings. An existing saved value or an explicit `--set` or `-More` value still takes precedence, including an explicit unset. ## How it was tested - Windows/MSVC and Windows PowerShell 5.1, using the production settings blocks with synthetic entries. No rendering or memory-usage measurement. - Before: the main and released launchers cleared the inherited setting and passed the default. After: `b49fac6742b41d9b72ad7023437849ac68453f31` carries a caller limit of `2` in both launchers. - The same fixture checked a saved override, a command-line override, an empty saved value and an explicit unset. PowerShell parsing and `cargo xtask policy --staged` passed. - Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] I searched issues and PRs for `VICTORY_PRELOAD_JOBS` and checked the launchers. #382 introduced control of the preload worker count. #4388 keeps the separate old-cache switch. #3496 passed a fixed worker count for a particular preset. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 10:24:41 +00:00
github-bot changed title from [pr-fix][startup] Keep the configured preload worker limit when launching to Keep the configured preload worker limit when launching 2026-12-01 10:30:37 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4826/head:github-bot/gh-4825'
git switch 'github-bot/gh-4825'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4825'
git switch 'github-bot/gh-4825'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4825'
git switch 'github-bot/gh-4825'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4825'
git switch 'main'
git merge --squash 'github-bot/gh-4825'
git switch 'main'
git merge --ff-only 'github-bot/gh-4825'
git switch 'main'
git merge 'github-bot/gh-4825'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4826
No description provided.