Skip to content

feat(storage): setting default checksum#32411

Closed
shubhangi-google wants to merge 427 commits intogoogleapis:mainfrom
shubhangi-google:setting_default_checksum_updated
Closed

feat(storage): setting default checksum#32411
shubhangi-google wants to merge 427 commits intogoogleapis:mainfrom
shubhangi-google:setting_default_checksum_updated

Conversation

@shubhangi-google
Copy link
Copy Markdown
Contributor

@shubhangi-google shubhangi-google commented Feb 2, 2026

This pull request introduces a significant enhancement to the Google Cloud Storage Ruby client by establishing CRC32c as the default checksum for file uploads. This change ensures that data integrity is automatically verified for uploads where a checksum isn't explicitly specified, thereby improving the reliability of data handling.

Highlights

  • Default Checksum: The default checksum algorithm for file uploads in the Google Cloud Storage Ruby client has been changed to CRC32c, enhancing data integrity by default when no specific checksum is provided.
  • Documentation Update: The documentation for the checksum parameter in bucket.rb has been updated to clearly state that crc32c is now the default.

Note: Opening this PR as older PR was getting corrupted

@shubhangi-google shubhangi-google changed the title merging commits and main branch Setting default checksum Feb 2, 2026
@shubhangi-google shubhangi-google changed the title Setting default checksum feat(storage): setting default checksum Feb 2, 2026
@shubhangi-google shubhangi-google marked this pull request as ready for review February 2, 2026 18:21
@shubhangi-google shubhangi-google requested review from a team February 2, 2026 18:21
@shubhangi-google shubhangi-google force-pushed the setting_default_checksum_updated branch 2 times, most recently from 894976e to 8a69368 Compare February 5, 2026 08:35
# If no checksum type or specific value is provided, the default will be set to crc32c.
# If the checksum is set to false, it will be disabled.
if [checksum, crc32c, md5].all?(&:nil?) || checksum == true
crc32c = Google::Cloud::Storage::File::Verifier.crc32c_for(StringIO.new("Hello world"))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the string "Hello world" also be passed as a parameter for robustness?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed this method to receive content
we are not removing the static content completely as many tests are still using it

@shubhangi-google shubhangi-google requested review from a team as code owners March 16, 2026 06:51
@cpriti-os
Copy link
Copy Markdown

@shubhangi-google there are a whole lot of other changes in this PR now, could you check why we are making changes to html css js files in this PR

@cpriti-os cpriti-os self-requested a review March 16, 2026 08:20
@shubhangi-google
Copy link
Copy Markdown
Contributor Author

shubhangi-google commented Mar 16, 2026

@shubhangi-google there are a whole lot of other changes in this PR now, could you check why we are making changes to html css js files in this PR

I ran the yard doc to update the documentation, shall I remove the particular commit or we can leave it?
following are file changes done by yard a251e30

@shubhangi-google shubhangi-google force-pushed the setting_default_checksum_updated branch 2 times, most recently from 710e160 to ed5f31b Compare March 16, 2026 11:39
release-please bot and others added 9 commits March 25, 2026 06:31
* chore(main): release google-cloud-org_policy 1.6.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…7.0 (googleapis#33204)

* chore(main): release google-cloud-orchestration-airflow-service-v1 1.7.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…googleapis#33203)

* chore(main): release google-cloud-orchestration-airflow-service 1.6.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…is#33202)

* chore(main): release google-cloud-oracle_database-v1 0.12.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…3201)

* chore(main): release google-cloud-oracle_database 0.3.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…33200)

* chore(main): release google-cloud-optimization-v1 0.15.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-cloud-optimization 1.4.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-cloud-notebooks 3.1.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…33193)

* chore(main): release google-cloud-network_services 2.1.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
release-please bot and others added 27 commits March 25, 2026 06:31
)

* chore(main): release google-cloud-api_gateway-v1 2.4.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-cloud-api_gateway 2.1.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…32932)

* chore(main): release google-cloud-alloy_db-v1beta 0.21.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…#32931)

* chore(main): release google-cloud-alloy_db-v1alpha 0.20.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-cloud-alloy_db-v1 1.8.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-cloud-alloy_db 2.2.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-cloud-ai_platform 2.3.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…oogleapis#32927)

* chore(main): release google-cloud-advisory_notifications-v1 0.15.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…eapis#32926)

* chore(main): release google-cloud-advisory_notifications 1.4.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…s#32925)

* chore(main): release google-cloud-access_approval-v1 1.5.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…2924)

* chore(main): release google-cloud-access_approval 1.7.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-apps-meet-v2beta 0.9.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-apps-meet-v2 0.7.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-apps-meet 1.2.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…oogleapis#32918)

* chore(main): release google-apps-events-subscriptions-v1beta 0.4.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…eapis#32917)

* chore(main): release google-apps-events-subscriptions-v1 0.7.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…is#32916)

* chore(main): release google-apps-events-subscriptions 1.2.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-apps-chat-v1 0.20.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-apps-chat 1.2.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-analytics-data 0.8.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…s#32911)

* chore(main): release google-analytics-admin-v1alpha 0.39.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-analytics-admin 0.7.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…eapis#32908)

* chore(main): release google-ads-marketing_platform-admin 0.2.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-ads-data_manager 0.3.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-ads-ad_manager-v1 3.1.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
* chore(main): release google-ads-ad_manager 3.1.0

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
…2827)

* chore(main): release google-cloud-ai_platform-v1 1.38.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: combine duplicate Ruby 4.0 release notes

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
@shubhangi-google
Copy link
Copy Markdown
Contributor Author

created new PR #33331

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