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 — feat: compute chunk wise checksum for bidi_writes by chandra-siri · Pull Request #1675 · googleapis/python-storage

This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Conversation

@chandra-siri

@chandra-siri chandra-siri commented Dec 18, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

feat: compute chunk wise checksum for bidi_writes and send it via BidiWriteObjectRequest

As a part of this change, also did a small refactoring

  • Moved the precondition check to _utils.py file

Sorry, something went wrong.

Uh oh!

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

All reactions
@chandra-siri
feat: compute chunk wise checksum for bidi_writes
e2a595a
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: storage Issues related to the googleapis/python-storage API. labels Dec 18, 2025
@gemini-code-assist

gemini-code-assist Bot commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @chandra-siri, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a significant enhancement to the asynchronous appendable object writer by integrating chunk-wise CRC32c checksum calculation and transmission for bidirectional writes. This change improves data integrity during object uploads and ensures that the underlying google-crc32c library is utilizing its C-accelerated implementation for optimal performance and reliability.

Highlights

  • CRC32c Checksum Integration: Implemented chunk-wise CRC32c checksum computation for data sent during bidirectional writes, enhancing data integrity.
  • Checksum Transmission: The newly computed checksums are now included in the BidiWriteObjectRequest via the checksummed_data field, ensuring they are transmitted alongside the data chunks.
  • C-accelerated CRC32c Enforcement: Added a runtime check in the constructor to verify that the google-crc32c package is installed with its C extension, raising an error if not, to prevent silent performance degradation and ensure reliable data integrity checks.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

All reactions

Sorry, something went wrong.

Uh oh!

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

gemini-code-assist[bot]
gemini-code-assist Bot reviewed Dec 18, 2025
View reviewed changes

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Code Review

This pull request adds chunk-wise checksum computation for bidi writes, which is a great enhancement for data integrity. The implementation looks correct. I have one minor point of feedback regarding an error message and the exception type used for checking crc32c support. Additionally, it would be beneficial to add unit tests to cover the new checksum calculation logic and the new exception path for the crc32c implementation check to ensure the feature is robust and prevent future regressions.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google/cloud/storage/_experimental/asyncio/async_appendable_object_writer.py Resolved

Uh oh!

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

chandra-siri added 2 commits December 18, 2025 08:54
@chandra-siri
move common code to utils
4f3d18e
@chandra-siri
add and fix failing unit tests
62a2c89
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Dec 18, 2025
chandra-siri added 4 commits December 18, 2025 17:23
@chandra-siri
Merge branch 'main' into bidi_writes_checksum
dddf6c2
@chandra-siri
add license info in _utils file
e89e205
@chandra-siri
Merge branch 'bidi_writes_checksum' of github.com:googleapis/python-s…
f1abcaa
…torage into bidi_writes_checksum
@chandra-siri
use FailedPreCondition instead of NotFound
9353e58
@chandra-siri chandra-siri assigned suni72 Dec 18, 2025
@chandra-siri
remove unused imports
24a6c8b
@chandra-siri

chandra-siri commented Dec 18, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator Author

Samples - Python 3.14 are blocked until b/470024447

All reactions

Sorry, something went wrong.

Uh oh!

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

@chandra-siri
chandra-siri marked this pull request as ready for review December 18, 2025 13:40
@chandra-siri
chandra-siri requested review from a team December 18, 2025 13:40
@chandra-siri
chandra-siri requested a review from a team as a code owner December 18, 2025 13:40
suni72
suni72 reviewed Dec 18, 2025
View reviewed changes
Comment thread google/cloud/storage/_experimental/asyncio/async_appendable_object_writer.py Resolved

Uh oh!

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

@chandra-siri
add unit test for checksum of chunk data
60d0d7b
suni72
suni72 previously approved these changes Dec 18, 2025
View reviewed changes
@chandra-siri
add byteorder param to work in py-3.9 , 3.10
6f8d08a
@chandra-siri
chandra-siri dismissed suni72’s stale review via 6f8d08a December 19, 2025 05:43
chandra-siri added 2 commits December 19, 2025 06:26
@chandra-siri
skip notification tests until b/470069573 is fixed
c79b2e2
@chandra-siri
Merge branch 'main' into bidi_writes_checksum
dc33ecb
@chandra-siri

chandra-siri commented Dec 19, 2025

Copy link
Copy Markdown
Collaborator Author

hi @suni72 ,

Samples 3.14 is not related to these changes. 3.14 support was recently added , it'll take some time to become stable - b/470276398

All reactions

Sorry, something went wrong.

Uh oh!

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

@chandra-siri
chandra-siri requested a review from suni72 December 19, 2025 09:49
suni72
suni72 approved these changes Dec 19, 2025
View reviewed changes
@chandra-siri
chandra-siri merged commit 139390c into main Dec 19, 2025
@chandra-siri
chandra-siri deleted the bidi_writes_checksum branch December 19, 2025 10:51
@release-please release-please Bot mentioned this pull request Dec 19, 2025
chore(main): release 3.8.0 #1669
Closed
@vchudnov-g vchudnov-g mentioned this pull request Jan 12, 2026
chore: librarian release pull request: 20260112T135255Z #1701
Closed
@parthea parthea mentioned this pull request Jan 13, 2026
chore: librarian release pull request: 20260113T144551Z #1704
Merged
vchudnov-g added a commit that referenced this pull request Jan 13, 2026
@parthea @vchudnov-g
chore: librarian release pull request: 20260113T144551Z (#1704)
16cf512
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:8e2c32496077054105bd06c54a59d6a6694287bc053588e24debe6da6920ad91
<details><summary>google-cloud-storage: 3.8.0</summary>

##
[3.8.0](v3.7.0...v3.8.0)
(2026-01-13)

### Features

* expose persisted size in mrd (#1671)
([0e2961b](0e2961be))

* implement &#34;append_from_file&#34; (#1686)
([1333c95](1333c956))

* compute chunk wise checksum for bidi_writes (#1675)
([139390c](139390cb))

* flush the last chunk in append method (#1699)
([89bfe7a](89bfe7a5))

* add write resumption strategy (#1663)
([a57ea0e](a57ea0ec))

* add bidi stream retry manager. (#1632)
([d90f0ee](d90f0ee0))

* make flush size configurable (#1677)
([f7095fa](f7095faf))

### Bug Fixes

* no state lookup while opening bidi-write stream
([2d5a7b1](2d5a7b16))

* no state lookup while opening bidi-write stream (#1636)
([2d5a7b1](2d5a7b16))

* close write object stream always (#1661)
([4a609a4](4a609a4b))

* add system test for opening with read_handle (#1672)
([6dc711d](6dc711da))

</details>

---------

Co-authored-by: Victor Chudnovsky <[email protected]>
@release-please release-please Bot mentioned this pull request Jan 13, 2026
chore(main): release 3.8.0 #1706
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
@suni72 suni72 suni72 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@suni72 suni72

Labels

api: storage Issues related to the googleapis/python-storage API. size: m Pull request size is medium.

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.

2 participants

@chandra-siri @suni72
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.