Skip to content

Support exact core counts for CPU runner pools - #272

Merged
NousLoop merged 4 commits into
mainfrom
ci/cpu-pools
Nov 17, 2026
Merged

NousLoop merged 4 commits into
mainfrom
ci/cpu-pools

Conversation

@NousLoop

@NousLoop NousLoop commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

CPU parts can request an exact logical CPU count with needs: cpu and cores: N. Light routes them to ci-cpu-N, so multiple widths can coexist on one host. Omitting cores keeps the shared ci-cpu route and Slurm overflow. Sized jobs wait on the exact label when full and retain it on retry.

Validation on local Docker Linux, Python 3.12:

  • Targeted unittest suites: 351 passed, 11 skipped. One ACL case was excluded after reproducing its failure on origin/main.
  • Simulated setup and routing on one host with 4-, 6-, and 8-CPU pools, including distinct slot-zero CPU sets; Linux taskset verified process affinity for each width.
  • Inventory lint passed. All 22 new or updated mutants were killed: setup and slot identity, width validation, plan input, public routing, capacity booking and overflow, retry, drain and tier, plus existing regression checks.
  • Full suite ran 1,410 tests; all 18 failing or erroring cases also reproduced on origin/main in the same container environment.

Needs the lead: review and release support, review setup/plan.sh on target hosts, then apply approved changes, register labels, and verify live canaries for each width. No live changes have been made.

Review follow-up: reject sized configurations without one shared slot per CPU or timing pool and preserve nonnumeric custom CPU labels. In local Docker Linux (Python 3.12), python -m unittest tests.test_cpu_width tests.test_inventory tests.test_presence tests.test_prefer tests.test_route tests.test_drain tests.test_part_slots ran 238 tests (228 passed, 10 skipped); inventory lint had zero findings. All 2,771 mutation snippets matched. The new slot minimum, timing-pool accounting and numeric-label mutants were killed by the two new inventory regressions, and the updated compile-slot mutant was killed by its existing test. No live configuration was changed.

@NousLoop
NousLoop marked this pull request as ready for review November 17, 2026 05:39
@NousLoop
NousLoop merged commit 641882c into main Nov 17, 2026
6 checks passed
@NousLoop
NousLoop deleted the ci/cpu-pools branch November 17, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant