Skip to content

chore: regenerate compute packages using gRPC service config#16751

Merged
jskeet merged 2 commits intogoogleapis:mainfrom
jskeet:draft-compute-grpc-config
Apr 23, 2026
Merged

chore: regenerate compute packages using gRPC service config#16751
jskeet merged 2 commits intogoogleapis:mainfrom
jskeet:draft-compute-grpc-config

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Apr 21, 2026

This is the result of locally applying a fix for googleapis/librarian#3827 and regenerating the two packages.

After merging this, I'll get the change merged into Librarian as well, tag it, and update the version in librarian.yaml.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a 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 transitions the google-cloud-compute-v1beta package to a preview release level and implements standardized retry and timeout settings across service transports in both the v1 and v1beta libraries. Feedback was provided regarding the retry configuration, noting that setting the total retry deadline equal to the per-attempt default_timeout (both at 600 seconds) renders retries on DeadlineExceeded ineffective, as the total deadline is reached simultaneously with the first timeout.

Comment on lines +151 to +161
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=600.0,
),
default_timeout=600.0,
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.

medium

The default_retry configuration includes core_exceptions.DeadlineExceeded in its predicate, but the deadline (total timeout) is set to 600.0, which is identical to the default_timeout (per-attempt timeout). This configuration effectively prevents retries on timeouts because the first attempt that hits the 600s limit will also reach the total retry deadline. To make retrying on DeadlineExceeded effective, the deadline should be greater than the default_timeout, or the default_timeout should be reduced.

@jskeet jskeet force-pushed the draft-compute-grpc-config branch from 2c3387d to 1ad64f8 Compare April 23, 2026 05:48
@jskeet jskeet marked this pull request as ready for review April 23, 2026 06:52
@jskeet jskeet requested a review from a team as a code owner April 23, 2026 06:52
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 23, 2026

Given that this is green, I'd now actually like to merge this if possible, to avoid getting a backlog of changes which will all end up conflicting etc. (Noted in internal chat.)

@jskeet jskeet merged commit acfb9ce into googleapis:main Apr 23, 2026
30 checks passed
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