-
Notifications
You must be signed in to change notification settings - Fork 567
feat(storage): setting default checksum #30878
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
base: main
Are you sure you want to change the base?
feat(storage): setting default checksum #30878
Conversation
google-cloud-storage/test/google/cloud/storage/lazy/bucket_test.rb
Outdated
Show resolved
Hide resolved
| new_file_name = random_file_path | ||
| new_file_contents = StringIO.new "Hello world" | ||
| mock = Minitest::Mock.new | ||
| mock.expect :insert_object, create_file_gapi(bucket.name, new_file_name), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how are we verifying the checksum for the new String IO object here, also use a slightly different string in different tests for robustness
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow missed passing CRC32c value, fixed it now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not explicitly calculate the checksum value here as well!
|
FYI: @cpriti-os the KOKORO failures is not related to changes done by us |
| new_file_name = random_file_path | ||
| new_file_contents = StringIO.new | ||
|
|
||
| new_file_contents = StringIO.new("Hello world strngio") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like typo
| new_file_name = random_file_path | ||
| new_file_contents = StringIO.new "Hello world" | ||
| mock = Minitest::Mock.new | ||
| mock.expect :insert_object, create_file_gapi(bucket.name, new_file_name), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not explicitly calculate the checksum value here as well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to modify this documentation for the new default checksumming, make appropriate changes here, to the method summary and examples
This change sets Checksum CRC32C as default when we are uploading a file to bucket