GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Moving MD5 hash method from regression to storage helpers. by dhermes · Pull Request #611 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Feb 10, 2015

Copy link
Copy Markdown
Contributor

May make sense to swap out for hashlib.md5 (though they seem to
be equivalent).

In preparation for #547.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 10, 2015
@dhermes

dhermes commented Feb 10, 2015

Copy link
Copy Markdown
Contributor Author

If we really want to do this, we'll need to support computing MD5 of files that don't fit in memory:
http://stackoverflow.com/a/1131255/1068170

This is done in a generic way in gsutil (though the method is quite a mouthful).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 10, 2015

Copy link
Copy Markdown
Contributor Author

@tseaver The lint failure is a bug in my PR speedup code since among

gcloud/storage/_helpers.py
gcloud/storage/test__helpers.py
regression/storage.py

the abstract class is really never used.

We have 3 options:

  • I make a temporary commit disabling the PR speedup to just diff against all the files
  • I try to find a full-time fix (done in Repeating pylint after failures. #612)
  • Ignore and make sure it passes when merged
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Feb 10, 2015
@dhermes
Repeating pylint after failures.
b8d3caf
This surfaced as a false negative in googleapis#611.
@dhermes dhermes mentioned this pull request Feb 10, 2015
Repeating pylint after failures. #612
Merged
@tseaver

tseaver commented Feb 10, 2015

Copy link
Copy Markdown
Contributor

LGTM. I'd say we should probably not set the envvars on Travis, to avoid these kinds of errors.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 10, 2015

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver
tseaver reviewed Feb 11, 2015
View reviewed changes
Comment thread gcloud/storage/_helpers.py Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 12, 2015

Copy link
Copy Markdown
Contributor Author

Went with 8192 for the chunk size since gsutil does:
https://github.com/GoogleCloudPlatform/gsutil/blob/bc083d405b92856a1aba46a65410bd1a1dbf65a6/gslib/util.py#L66

@tseaver PTAL

I also made a separate method for updating a hash object for when CRC32 comes around. (Sort of YAGNI, sort of not.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Feb 12, 2015

Copy link
Copy Markdown
Contributor

@dhermes pylint failure due to partial-set checking.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 12, 2015

Copy link
Copy Markdown
Contributor Author

Yes, recall that this PR is the reason for #612.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes added 2 commits February 12, 2015 10:51
@dhermes
Moving MD5 hash method from regression to storage helpers.
e062c89
May make sense to swap out for `hashlib.md5` (though they seem to
be equivalent).

In preparation for googleapis#547.
@dhermes
Making MD5 hash method take a buffer instead of bytes.
86b1f59
This is to account for files too large to fit into memory.
@dhermes
dhermes force-pushed the move-md5-to-library branch from 06526ad to 86b1f59 Compare February 12, 2015 18:53
@dhermes

dhermes commented Feb 12, 2015

Copy link
Copy Markdown
Contributor Author

@tseaver I just rebased on top of #612.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Feb 12, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 86b1f59 on dhermes:move-md5-to-library into df4c625 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Feb 12, 2015

Copy link
Copy Markdown
Contributor

LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes added a commit that referenced this pull request Feb 12, 2015
@dhermes
Merge pull request #611 from dhermes/move-md5-to-library
c88ba72
Moving MD5 hash method from regression to storage helpers.
@dhermes
dhermes merged commit c88ba72 into googleapis:master Feb 12, 2015
@dhermes

dhermes commented Feb 12, 2015

Copy link
Copy Markdown
Contributor Author

It seems coveralls has recovered from whatever was making it silently fail last night.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes deleted the move-md5-to-library branch February 12, 2015 19:32
@dhermes dhermes mentioned this pull request Feb 14, 2015
Upgrading version to 0.4.1. #640
Merged
@dhermes dhermes mentioned this pull request Mar 9, 2015
Adding _base64_crc32c function for storage integrity checks. #692
Closed
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
@gcf-owl-bot
docs: Add documentation for enums (#611)
8ff3a4f
* 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>
parthea pushed a commit that referenced this pull request Aug 21, 2025
@renovate-bot
chore(deps): update all dependencies (#611)
287bd85
parthea pushed a commit that referenced this pull request Sep 16, 2025
@renovate-bot @parthea
chore(deps): update all dependencies (#611)
30da01e
parthea pushed a commit that referenced this pull request Nov 22, 2025
@release-please
chore(main): release 2.11.0 (#611)
a52f0f9
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore(python): exclude path in renovate.json [autoapprove] (#611)
0ab144a
Source-Link: googleapis/synthtool@69fabae
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:562802bfac02e012a6ac34eda282f81d06e77326b82a32d7bbb1369ff552b387

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 25, 2025
@gcf-owl-bot
chore(python): exclude path in renovate.json [autoapprove] (#611)
c6b9398
Source-Link: googleapis/synthtool@69fabae
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:562802bfac02e012a6ac34eda282f81d06e77326b82a32d7bbb1369ff552b387

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 2, 2026
@renovate-bot
chore(deps): update dependency google-cloud-pubsub to v2.11.0 (#611)
91bd83c
parthea pushed a commit that referenced this pull request Mar 6, 2026
@dandhlee
chore: prevent normalization of semver versioning (#611)
1762f29
parthea pushed a commit that referenced this pull request Mar 6, 2026
@vi3k6i5
feat: added unit test with coverage of 68% (#611)
11fc186
Add unit tests for many spanner_django modules that add coverage beyond the built-in django tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@dhermes @tseaver @coveralls @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.