Skip to content

TST: Fix broken condition in test_cpu_affinity_taskset - #12399

Merged
crusaderky merged 2 commits into
dask:mainfrom
QuLogic:fix-taskset
Jun 4, 2026
Merged

crusaderky merged 2 commits into
dask:mainfrom
QuLogic:fix-taskset

Conversation

@QuLogic

@QuLogic QuLogic commented May 15, 2026

Copy link
Copy Markdown
Contributor

taskset will set a mask for desired CPU affinity, but it cannot give a process CPU cores that don't exist. If we ask for {0, 2}, then we need at least 3 cores to actually be able to bind them.

  • [n/a] Closes #xxxx
  • Tests added / passed (but note you need to run somewhere with exactly 2 CPUs to reproduce the problem)
  • Passes pre-commit run --all-files

`taskset` will set a mask for desired CPU affinity, but it cannot give a
process CPU cores that don't exist. If we ask for `{0, 2}`, then we need
at least _3_ cores to actually be able to bind them.
@github-actions

github-actions Bot commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     25 files  ±0       25 suites  ±0   6h 58m 9s ⏱️ - 20m 20s
 18 636 tests ±0   17 446 ✅ ±0   1 190 💤 ±0  0 ❌ ±0 
378 907 runs  ±0  331 640 ✅ +1  47 267 💤  - 1  0 ❌ ±0 

Results for commit 954fe55. ± Comparison against base commit b3f266a.

♻️ This comment has been updated with latest results.

@crusaderky crusaderky left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@crusaderky
crusaderky merged commit e851dce into dask:main Jun 4, 2026
33 checks passed
@QuLogic
QuLogic deleted the fix-taskset branch June 4, 2026 18:02
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.

2 participants