Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure P2PShuffle extensions #7390

Merged
merged 5 commits into from
Dec 15, 2022
Merged

Conversation

hendrikmakait
Copy link
Member

@hendrikmakait hendrikmakait commented Dec 12, 2022

  • Separates ShuffleSchedulerExtension and ShuffleWorkerExtension into individual submodules
  • Introduces ShuffleState dataclass to encapsulate data previously tracked in various collections
  • Moves a number of helpers and ShuffleId into _shuffle
  • Tests added / passed
  • Passes pre-commit run --all-files

Comment on lines 1 to 5
from __future__ import annotations

from typing import NewType

ShuffleId = NewType("ShuffleId", str)
Copy link
Member

Choose a reason for hiding this comment

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

maybe we can put this in the init directly. pretty important top level variable

# circular dependency
from distributed.shuffle._worker_extension import ShuffleWorkerExtension

ShuffleId = NewType("ShuffleId", str)
Copy link
Member Author

@hendrikmakait hendrikmakait Dec 12, 2022

Choose a reason for hiding this comment

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

I've moved this into _shuffle now since the P2PShuffleLayer is responsible for all ID- or naming-related things. Some helpers from the ShuffleSchedulerExtension moved here as well which allows us to rely on constants instead of hard-coded strings within methods.

Moving ShuffleId into __init__ would create some cyclic typing dependencies that I'm not too fond of.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2022

Unit Test Results

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

       18 files  +       4         18 suites  +4   8h 0m 2s ⏱️ + 2h 8m 51s
  3 255 tests ±       0    3 164 ✔️ +       9       85 💤  -   12  6 +3 
29 304 runs  +6 506  28 070 ✔️ +6 256  1 228 💤 +248  6 +2 

For more details on these failures, see this check.

Results for commit ba2b38c. ± Comparison against base commit c4af791.

♻️ This comment has been updated with latest results.

@hendrikmakait hendrikmakait self-assigned this Dec 12, 2022
@hendrikmakait hendrikmakait marked this pull request as ready for review December 12, 2022 15:51
@hendrikmakait
Copy link
Member Author

No related failures on CI, codecov misses already seen in #7326, should get resolved with #7353

@fjetter fjetter merged commit f830259 into dask:main Dec 15, 2022
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