Skip to content

Use codecs.decode to deserialize errors - #6274

Merged
jakirkham merged 1 commit into
dask:mainfrom
jakirkham:eff_ser_errs
May 6, 2022
Merged

jakirkham merged 1 commit into
dask:mainfrom
jakirkham:eff_ser_errs

Conversation

@jakirkham

Copy link
Copy Markdown
Member

As codecs.decode can handle anything supporting the Python Buffer Protocol (including bytes and memoryviews), just pass frames directly through it when deserializing errors. This avoids the need to copy to bytes first.

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

As `codecs.decode` can handle anything supporting the Python Buffer
Protocol (including `bytes` and `memoryview`s), just pass frames
directly through it when deserializing errors. This avoids the need to
copy to `bytes` first.
@github-actions

github-actions Bot commented May 5, 2022

Copy link
Copy Markdown
Contributor

Unit Test Results

       16 files  ±0         16 suites  ±0   7h 25m 27s ⏱️ + 3m 53s
  2 756 tests ±0    2 673 ✔️  - 1       79 💤 +1  3 ❌  - 1  1 🔥 +1 
22 011 runs  +1  20 989 ✔️ +1  1 017 💤  - 1  4 ❌ ±0  1 🔥 +1 

For more details on these failures and errors, see this check.

Results for commit 59ca96c. ± Comparison against base commit 7bd6442.

Comment thread distributed/protocol/serialize.py Resolved
@jakirkham
jakirkham requested a review from martindurant May 5, 2022 20:19
@martindurant

Copy link
Copy Markdown
Member

The failed runs are not obviously related, but is there an issue open for them?

@martindurant

Copy link
Copy Markdown
Member

Otherwise +1 from me, I can't see any downside.

@jakirkham

Copy link
Copy Markdown
Member Author

Raised issues ( #6287 ) and ( #6288 ). There is an existing one ( #5932 ) that shows up in a couple CI failures here, which apparently should have been fixed recently

@jakirkham

Copy link
Copy Markdown
Member Author

Planning to merge end of day tomorrow if no comments

@jakirkham
jakirkham merged commit 52b6920 into dask:main May 6, 2022
@jakirkham
jakirkham deleted the eff_ser_errs branch May 6, 2022 23:46
@jakirkham

Copy link
Copy Markdown
Member Author

Thanks Martin! 🙏

Going to get this in. If anything else comes up, happy to follow up separately.

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