Skip to content

tests: add system tests for resumable uploads - #18539

Draft
parthea wants to merge 31 commits into
add-support-for-resumable-uploads-2from
add-support-for-resumable-uploads-4
Draft

parthea wants to merge 31 commits into
add-support-for-resumable-uploads-2from
add-support-for-resumable-uploads-4

Conversation

@parthea

@parthea parthea commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@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 comprehensive system tests for the resumable upload feature in the GAPIC generator. It adds conditional imports and setup for ResumableUploadServiceClient and its REST interceptor in conftest.py, along with helper functions to initiate and resume uploads. It also adds four new test files covering progress tracking, resumption scenarios, error recovery paths, and stall/deadline controls. There are no review comments, so I have no feedback to provide.

@parthea
parthea force-pushed the add-support-for-resumable-uploads-4 branch from f0defed to bae5b33 Compare October 1, 2026 20:04
@parthea
parthea force-pushed the add-support-for-resumable-uploads-2 branch from 39c26aa to f8fa453 Compare October 1, 2026 20:54
@parthea
parthea force-pushed the add-support-for-resumable-uploads-4 branch from bae5b33 to ed209a5 Compare October 1, 2026 21:07
if not HAS_RESUMABLE_UPLOAD_CLIENT or not HAS_RESUMABLE_UPLOAD_INTERCEPTOR:
pytest.skip("ResumableUploadServiceClient not available.")

transport_name = "rest"

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.

We need tests starting from clients created with grpc transports too, because those are the ones I'm more concerned about

I worry some of these fixtures are obscuring important details here Do we have any tests that go from creating a client to reading the result, exactly we expect end-users would?

@parthea
parthea force-pushed the add-support-for-resumable-uploads-4 branch 2 times, most recently from 78beac8 to be137fe Compare October 1, 2026 22:32
@parthea
parthea force-pushed the add-support-for-resumable-uploads-4 branch from be137fe to 54952a9 Compare October 1, 2026 22:34
@parthea
parthea force-pushed the add-support-for-resumable-uploads-2 branch from d6b2985 to 7f0f479 Compare October 2, 2026 20:25

This branch has not been deployed

No deployments
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