use xxhash from pypi, for issue #6535#9440
use xxhash from pypi, for issue #6535#9440defnvary wants to merge 2 commits intoborgbackup:masterfrom
Conversation
7bf82b2 to
0f61103
Compare
0f61103 to
54aedc3
Compare
ThomasWaldmann
left a comment
There was a problem hiding this comment.
Thanks for the PR, some things I found while reviewing it.
| from time import perf_counter | ||
|
|
||
| from xxhash import xxh64 | ||
| from borgstore.backends.errors import PermissionDenied |
There was a problem hiding this comment.
please do imports like this:
imports from stdlib
empty line
imports from 3rd party
empty line
imports from borg
also try to keep it alpha-sorted.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9440 +/- ##
==========================================
+ Coverage 76.52% 76.86% +0.33%
==========================================
Files 85 85
Lines 14822 14814 -8
Branches 2214 2209 -5
==========================================
+ Hits 11343 11387 +44
+ Misses 2802 2763 -39
+ Partials 677 664 -13 ☔ View full report in Codecov by Sentry. |
|
Also there needs to some doc changes for this commit. should i include them in this pr or open a separate one. And I think we can remove streaming_xxh64 test from checksums_test.py. Also in test_xxh64 there is unnecessary conversion from bin_to_hex and from hex_to_bin in the third assert statement. Should i include test changes in this pr too or open a new one? |
Include docs changes here. Be careful, do not edit generated docs (see comment in 1st line).
Sure.
Yes, change the conversions, but keep the test data and hashes the same values. |
|
(ignore the macOS CI failure, I already fixed that in master) |
Description
Use xxhash from pypi, instead of the custom cython binding.
Issue
#6535