Repository navigation
Route CPU widths through fixed dynamic slots - #277
Merged
Merged
Conversation
NousLoop
marked this pull request as ready for review
November 17, 2026 08:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the design approved, implement one private dynamic CPU capability. An explicit cores count routes only to ci-cpu-dynamic if fresh capacity proves a common maximum fits. Legacy exact-width labels are never selected by the new route; existing inventories remain readable during migration. Omitting cores keeps ci-cpu routing and existing affinity. Worker overrides do not influence routing.
The first attempt and retry read the exact decimal counts from the original plan. The executor selects a deterministic subset of its fixed slot inside the scope, checks the kernel mask again, and refuses insufficient or inconsistent capacity before launch without adding to the drain count. CI_CPUS reports the measured mask. Concurrent parts use disjoint slots, and the default worker count on the dynamic path is bounded by the measured width.
Validation on the local Windows checkout and Linux Python 3.12 Docker container:
New mutants and their guards:
Needs the lead: migrate callers still depending on old exact-width runners; use a major version if removal breaks a consumer. Install matching components before registering or relabelling the pilot pool and verify a real systemd scope on PRO 6000 before rollout. No host configuration, runner state, release or existing release stamp was changed; the tests below used isolated scopes outside the active runner configuration.
Acceptance follow-up on the reviewed head: PRO 6000 isolated tests used an inventory copy and real transient systemd scopes. The 4/6/8/12/16 logical CPU cases bound the requested width, reported the kernel mask in CI_CPUS, and preserved workers semantics. A 24-CPU request exceeded the 20-CPU slot limit: the planner rejected it and an independent executor check returned unavailable before launch. A narrowed scope and an explicit worker overrun also refused before launch. The production inventory, pool registry and hook target were unchanged. GitHub runner dispatch was not exercised.
Release decision: v1.22.0 will use the dynamic pool directly. The stamp draft must be verified against this implementation before its own merge. Do not deploy the earlier per-width pool preview.