Skip to content

docs(storage): add sample for open appendable object send_and_append - #6491

Draft
vsharonlynn wants to merge 3 commits into
googleapis:mainfrom
vsharonlynn:send-and-append
Draft

docs(storage): add sample for open appendable object send_and_append#6491
vsharonlynn wants to merge 3 commits into
googleapis:mainfrom
vsharonlynn:send-and-append

Conversation

@vsharonlynn

@vsharonlynn vsharonlynn commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Issue #5716 .

This PR follows PR #6490 .

@product-auto-label product-auto-label Bot added api: storage Issues related to the Cloud Storage API. samples Issues that are directly related to samples. labels Aug 21, 2026

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

Copy link
Copy Markdown
Contributor

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 introduces the send_and_append feature for the open_appendable_object API in the Google Cloud Storage Rust SDK, allowing clients to send an initial chunk of data directly within the opening stream request. The changes update the AppendObjectSpecState enum to track the initial payload, add a new connect_open_and_append method in the connector, and implement support in AppendableObjectWriterTransport to handle and potentially split the initial chunk. A new example and corresponding unit tests have also been added to verify the functionality. I have no feedback to provide as there are no review comments.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.63526% with 67 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.28%. Comparing base (c4c8d56) to head (2545aa3).
⚠️ Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
src/storage/src/storage/transport.rs 0.00% 45 Missing ⚠️
src/storage/src/storage/stub.rs 0.00% 10 Missing ⚠️
src/storage/src/storage/bidi_write/transport.rs 95.69% 4 Missing ⚠️
src/storage/src/storage/open_appendable_object.rs 69.23% 4 Missing ⚠️
src/storage/src/storage/bidi_write/connector.rs 96.93% 3 Missing ⚠️
src/storage/src/storage/bidi_write/state.rs 98.57% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6491      +/-   ##
==========================================
- Coverage   96.34%   96.28%   -0.07%     
==========================================
  Files         295      295              
  Lines       83478    83745     +267     
==========================================
+ Hits        80429    80635     +206     
- Misses       3049     3110      +61     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant