Skip to content

chore: remove all transport overrides from GAPIC options#16777

Closed
jskeet wants to merge 1 commit intogoogleapis:mainfrom
jskeet:remove-transport
Closed

chore: remove all transport overrides from GAPIC options#16777
jskeet wants to merge 1 commit intogoogleapis:mainfrom
jskeet:remove-transport

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Apr 23, 2026

@jskeet jskeet requested a review from daniel-sanche April 23, 2026 10:54
@jskeet jskeet requested a review from a team as a code owner April 23, 2026 10:54
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 removes the transport configuration options for several Python libraries in librarian.yaml. The review feedback identifies that these removals leave several API entries with null values, which may lead to runtime errors in the GAPIC generator. It is recommended to remove these empty entries or the entire opt_args_by_api sections where no other arguments remain to maintain a clean and functional configuration.

Comment thread librarian.yaml
python:
opt_args_by_api:
google/cloud/billing/budgets/v1:
- transport=grpc+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.

medium

Removing the transport option here leaves the google/cloud/billing/budgets/v1 key with a null value in YAML. If the GAPIC generator expects a list of arguments for each API entry, this could lead to a runtime error (e.g., a TypeError when attempting to iterate over None). It is recommended to remove the empty API entries entirely if they no longer have any optional arguments. This pattern occurs in several other places in this PR, such as the compute, notebooks, tpu, videointelligence, and workflows sections.

Comment thread librarian.yaml
python:
opt_args_by_api:
google/cloud/videointelligence/v1:
- transport=grpc+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.

medium

Similar to the issue noted above, removing all transport options for the videointelligence library leaves the opt_args_by_api block containing only keys with null values. If no other optional arguments are needed for these APIs, the entire opt_args_by_api section for this library should be removed to keep the configuration clean and avoid potential parsing issues in the generator.

@jskeet jskeet closed this Apr 23, 2026
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 23, 2026

Closed for now as I'd forgotten to actually regenerate with the changes - generating now, will then push the changes and reopen.

@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 23, 2026

Oops - accidentally created #16779 instead of reopening this. Will just leave this closed.

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.

1 participant