-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Moving MD5 hash method from regression to storage helpers. #611
Conversation
If we really want to do this, we'll need to support computing MD5 of files that don't fit in memory: This is done in a generic way in |
@tseaver The lint failure is a bug in my PR speedup code since among
the abstract class is really never used. We have 3 options:
|
This surfaced as a false negative in googleapis#611.
LGTM. I'd say we should probably not set the envvars on Travis, to avoid these kinds of errors. |
We don't set the env vars on merges to master. This only happens for PRs, which we want to be quick and snappy during review. |
@@ -187,3 +190,14 @@ def _setter(self, value): | |||
self._patch_properties({fieldname: value}) | |||
|
|||
return property(_getter, _setter) | |||
|
|||
|
|||
def _base64_md5hash(bytes_to_sign): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Went with 8192 for the chunk size since @tseaver PTAL I also made a separate method for updating a hash object for when CRC32 comes around. (Sort of YAGNI, sort of not.) |
@dhermes pylint failure due to partial-set checking. |
Yes, recall that this PR is the reason for #612. |
May make sense to swap out for `hashlib.md5` (though they seem to be equivalent). In preparation for googleapis#547.
This is to account for files too large to fit into memory.
06526ad
to
86b1f59
Compare
LGTM. |
Moving MD5 hash method from regression to storage helpers.
It seems coveralls has recovered from whatever was making it silently fail last night. |
* docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: googleapis/googleapis@a391fd1 Source-Link: googleapis/googleapis-gen@0080f83 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
May make sense to swap out for
hashlib.md5
(though they seem tobe equivalent).
In preparation for #547.