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: implement "append_from_file" by chandra-siri · Pull Request #1686 · 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

Copy link
Copy Markdown
Collaborator

feat: implement "append_from_file"

Sorry, something went wrong.

Uh oh!

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

All reactions
chandra-siri added 12 commits December 18, 2025 08:40
@chandra-siri
feat: compute chunk wise checksum for bidi_writes
e2a595a
@chandra-siri
move common code to utils
4f3d18e
@chandra-siri
add and fix failing unit tests
62a2c89
@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
chore: add test cases for large objects
2b1d6ce
@chandra-siri
feat: provide flush size to be configurable
cf9597c
@chandra-siri
remove unused imports
b285a40
@chandra-siri
add unit tests and idomatic
df42160
@chandra-siri
feat: implement "append_from_file"
2dc9f61
@chandra-siri chandra-siri assigned suni72 Dec 18, 2025
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. 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 implementing the append_from_file method. This new functionality enables users to efficiently stream data from a file-like object directly to an appendable cloud storage object, processing the data in configurable blocks. This improves the library's capability for handling large file uploads asynchronously, providing a more robust and performant solution for data ingestion.

Highlights

  • New Feature Implementation: The append_from_file method has been implemented within the AsyncAppendableObjectWriter class. This method now accepts a BufferedReader (file-like object) and a block_size parameter, allowing data to be read from the file in chunks and appended asynchronously.
  • Method Signature Change: The signature of append_from_file was updated from taking a file_path string to directly accepting a file_obj (BufferedReader) and an optional block_size for more flexible and efficient data handling.
  • Unit Test Enhancements: New parameterized unit tests have been added for append_from_file to ensure its correct functionality across various file sizes and block sizes. The previous NotImplementedError test for this method has been removed.

🧠 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.

@chandra-siri

chandra-siri commented Dec 18, 2025

Copy link
Copy Markdown
Collaborator Author

/gcbrun(2dc9f61)

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 implements the append_from_file method. My review focuses on correctness and completeness. I've found a runtime error in the implementation due to a missing import and an incomplete docstring. I've also identified a critical issue in the accompanying test where assertions were not being made, rendering the test ineffective. I've provided suggestions to fix these issues.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/unit/asyncio/test_async_appendable_object_writer.py Resolved

Uh oh!

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

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 imports
262480d
@chandra-siri

chandra-siri commented Dec 18, 2025

Copy link
Copy Markdown
Collaborator Author

/gcbrun(262480d)

All reactions

Sorry, something went wrong.

Uh oh!

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

chandra-siri added 3 commits December 19, 2025 11:02
@chandra-siri
Merge branch 'main' of github.com:googleapis/python-storage into sys_…
fad8a88
…test_large_obj
@chandra-siri
address nit comments
def00f3
@chandra-siri
add assert statements
2fbe83d
@chandra-siri

chandra-siri commented Dec 19, 2025

Copy link
Copy Markdown
Collaborator Author

/gcbrun(2fbe83d)

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 19, 2025 11:35
@chandra-siri
chandra-siri requested review from a team December 19, 2025 11:35
@chandra-siri
chandra-siri requested a review from a team as a code owner December 19, 2025 11:35
chandra-siri added 2 commits December 19, 2025 11:46
@chandra-siri
remove unused imports
5bc78db
@chandra-siri
Merge branch 'sys_test_large_obj' of github.com:googleapis/python-sto…
8f3c2be
…rage into configurable_flush_interval
suni72
suni72 previously approved these changes Dec 19, 2025
View reviewed changes
Base automatically changed from configurable_flush_interval to main December 19, 2025 16:43
@chandra-siri
chandra-siri dismissed suni72’s stale review December 19, 2025 16:43

The base branch was changed.

@chandra-siri
Merge branch 'main' of github.com:googleapis/python-storage into helpers
bdb5b93
@chandra-siri
chandra-siri requested a review from suni72 December 19, 2025 18:21
suni72
suni72 previously approved these changes Dec 19, 2025
View reviewed changes
@chandra-siri
Merge branch 'main' into helpers
687072a
@chandra-siri
chandra-siri enabled auto-merge (squash) December 20, 2025 05:48
chandra-siri added 3 commits December 20, 2025 06:39
@chandra-siri
Merge branch 'main' of github.com:googleapis/python-storage into helpers
3f0d75a
@chandra-siri
increase the open file descriptors limit
2f1c0dc
@chandra-siri
Merge branch 'helpers' of github.com:googleapis/python-storage into h…
ce6c2f6
…elpers
@chandra-siri
chandra-siri dismissed suni72’s stale review via ce6c2f6 December 22, 2025 05:20
@chandra-siri
apply limit on cloudbuild.yaml
3de9d7a
@chandra-siri

chandra-siri commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator Author

/gcbrun(3de9d7a)

All reactions

Sorry, something went wrong.

Uh oh!

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

chandra-siri added 7 commits December 22, 2025 06:00
@chandra-siri
use _ in front of variable name for cloud build
bff780b
@chandra-siri
print current ulimit
af94e3a
@chandra-siri
increase ulimit to 1048576
cbfb53e
@chandra-siri
use $$ instead of $ for $CURRENT_PATH
e4aef2b
@chandra-siri
Merge branch 'main' into helpers
5b53fd1
@chandra-siri
reset .yaml file to main
bab7677
@chandra-siri
Merge branch 'helpers' of github.com:googleapis/python-storage into h…
f367344
…elpers
@chandra-siri
chandra-siri disabled auto-merge December 22, 2025 12:38
suni72
suni72 approved these changes Dec 22, 2025
View reviewed changes
@chandra-siri
chandra-siri merged commit 1333c95 into main Dec 22, 2025
@chandra-siri
chandra-siri deleted the helpers branch December 22, 2025 12:39
@release-please release-please Bot mentioned this pull request Dec 22, 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.