Respect the job limit when filling the shared pipeline library #4844

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

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 11:06 UTC · original
andrewpozdnakov7-jpg:codex2/fix/warm-shared-jobs → main · +8 −4 · 2 files · 1 commits · open

What it changes

The optional shared-library pass at the end of warm --used uses VICTORY_WARM_LIBRARY_THREADS, which defaults to eight. It can exceed an explicit --jobs limit, including a limit passed into warm-up by preload.

Cap that pass at the requested job count, the configured shared-library limit, and the number of pipelines it has to store.

How it was tested

  • Windows/MSVC with Rust 1.98.1, using the exact thread-count selection and synthetic pipeline counts.
  • Main 5fabb46e and release v2026.11.30.03 selected eight shared workers for --jobs 2 without a separate override. bc6b32bf15142fb440c75195a63ebb13e7246406 selected two. With a separate limit of one or 16, the result was one or two respectively. Without an explicit cap and with enough work, it still selected eight.
  • cargo xtask policy --staged accepted both changed files. The fixture measures worker selection.
  • Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • I searched for shared-library job limits and checked the related scheduler changes. #4411 names the shared workers and preserves partial results, #4199 changes how shared warming is enabled, and #4826 preserves the worker setting through the launchers.

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 11:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4843) `andrewpozdnakov7-jpg:codex2/fix/warm-shared-jobs` → `main` · +8 −4 · 2 files · 1 commits · open ## What it changes The optional shared-library pass at the end of `warm --used` uses `VICTORY_WARM_LIBRARY_THREADS`, which defaults to eight. It can exceed an explicit `--jobs` limit, including a limit passed into warm-up by `preload`. Cap that pass at the requested job count, the configured shared-library limit, and the number of pipelines it has to store. ## How it was tested - Windows/MSVC with Rust 1.98.1, using the exact thread-count selection and synthetic pipeline counts. - Main `5fabb46e` and release `v2026.11.30.03` selected eight shared workers for `--jobs 2` without a separate override. `bc6b32bf15142fb440c75195a63ebb13e7246406` selected two. With a separate limit of one or 16, the result was one or two respectively. Without an explicit cap and with enough work, it still selected eight. - `cargo xtask policy --staged` accepted both changed files. The fixture measures worker selection. - 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 for shared-library job limits and checked the related scheduler changes. #4411 names the shared workers and preserves partial results, #4199 changes how shared warming is enabled, and #4826 preserves the worker setting through the launchers. 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 11:09:52 +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/4844/head:github-bot/gh-4843'
git switch 'github-bot/gh-4843'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4843'
git switch 'github-bot/gh-4843'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4843'
git switch 'github-bot/gh-4843'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4843'
git switch 'main'
git merge --squash 'github-bot/gh-4843'
git switch 'main'
git merge --ff-only 'github-bot/gh-4843'
git switch 'main'
git merge 'github-bot/gh-4843'
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!4844
No description provided.