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

Make ToPickle a Generic #8097

Merged
merged 3 commits into from
Aug 14, 2023
Merged

Conversation

hendrikmakait
Copy link
Member

@hendrikmakait hendrikmakait commented Aug 11, 2023

Extracted from #8096

  • Tests added / passed
  • Passes pre-commit run --all-files

@hendrikmakait hendrikmakait changed the title Make ToPickle generic Make ToPickle a generic class Aug 11, 2023
@hendrikmakait hendrikmakait changed the title Make ToPickle a generic class Make ToPickle a Generic Aug 11, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2023

Unit Test Results

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

       18 files   -        2         18 suites   - 2   9h 30m 18s ⏱️ - 2h 5m 11s
  3 769 tests +     14    3 657 ✔️ +     14     109 💤 +    5  3  - 5 
31 400 runs   - 5 105  29 857 ✔️  - 4 973  1 540 💤  - 125  3  - 7 

For more details on these failures, see this check.

Results for commit 0d10798. ± Comparison against base commit 4f30abc.

This pull request removes 1 and adds 15 tests. Note that renamed tests count towards both.
distributed.tests.test_scheduler ‑ test_gather_bad_worker_removed
distributed.cli.tests.test_dask_worker.test_listen_address_ipv6[tcp:..[ ‑ 1]:---nanny]
distributed.cli.tests.test_dask_worker.test_listen_address_ipv6[tcp:..[ ‑ 1]:---no-nanny]
distributed.diagnostics.tests.test_memray
distributed.diagnostics.tests.test_memray ‑ test_basic_integration_scheduler
distributed.diagnostics.tests.test_memray ‑ test_basic_integration_scheduler_report_args[False]
distributed.diagnostics.tests.test_memray ‑ test_basic_integration_scheduler_report_args[report_args0]
distributed.diagnostics.tests.test_memray ‑ test_basic_integration_workers[1]
distributed.diagnostics.tests.test_memray ‑ test_basic_integration_workers[False]
distributed.diagnostics.tests.test_memray ‑ test_basic_integration_workers[True]
distributed.diagnostics.tests.test_memray ‑ test_basic_integration_workers_report_args[False]
…

♻️ This comment has been updated with latest results.

distributed/protocol/serialize.py Outdated Show resolved Hide resolved
return isinstance(other, type(self)) and other.data == self.data

def __ne__(self, other):
def __ne__(self, other: object) -> bool:
return not (self == other)
Copy link
Collaborator

Choose a reason for hiding this comment

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

out of scope: fairly sure this method is redundant with __eq__

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, didn't even pay attention to this. Dropped __ne__ as a drive-by fix.

@crusaderky crusaderky removed the request for review from fjetter August 14, 2023 14:13
hendrikmakait and others added 2 commits August 14, 2023 16:15
Co-authored-by: crusaderky <crusaderky@gmail.com>
Copy link
Collaborator

@crusaderky crusaderky left a comment

Choose a reason for hiding this comment

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

Good to merge as soon as CI finishes

@hendrikmakait hendrikmakait merged commit f27e9a2 into dask:main Aug 14, 2023
20 of 27 checks passed
@hendrikmakait hendrikmakait deleted the generic-to-pickle branch August 14, 2023 16:10
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