Skip to content

chore: specify explicit options for all API paths in librarian.yaml#16762

Open
jskeet wants to merge 4 commits intogoogleapis:mainfrom
jskeet:explicit-options
Open

chore: specify explicit options for all API paths in librarian.yaml#16762
jskeet wants to merge 4 commits intogoogleapis:mainfrom
jskeet:explicit-options

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Apr 22, 2026

This means we don't use the generator default for any of:

  • python-gapic-name
  • python-gapic-namespace
  • warehouse-package-name

Only API paths which didn't already have an explicit default were updated.

The changes are all from explicitly specifying warehouse-package-name, and are all corrections from where the generator was inferring the package name incorrectly. (And regenerating Datastore, which wasn't automated in #16737.)

This is the first step in googleapis/librarian#5163 - we will then change librarian to use a new approach to inference (deriving the namespace just from the first two components of the API path), and remove all the explicit options which would be inferred the same way. So while this PR adds a lot of lines to the config, many will later be removed again.

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 standardizes package names across several Google Cloud Python libraries, updating type marker files, sample installation instructions, and snippet metadata to use consistent package identifiers. It also includes minor import reordering in test files and formatting adjustments in repository metadata. I have no feedback to provide.

@jskeet jskeet added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 22, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 22, 2026
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 22, 2026

(Having just prototyped the "remove redundant options", the librarian.yaml file will end up being smaller than it is today...)

Comment thread librarian.yaml
Comment thread librarian.yaml
@jskeet jskeet added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 22, 2026
@jskeet jskeet force-pushed the explicit-options branch from 391d421 to 5cc56ab Compare April 22, 2026 15:04
@jskeet jskeet requested a review from a team as a code owner April 22, 2026 15:04
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 22, 2026

Rebased on main so that we don't reinstate the keep lists we removed before. I'm locally running a librarian generate --all to check that other changes that have come in since creating this haven't caused any issues.

@jskeet jskeet requested review from a team as code owners April 22, 2026 15:37
@jskeet jskeet removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 22, 2026
@parthea
Copy link
Copy Markdown
Contributor

parthea commented Apr 22, 2026

#16764 should fix the prerelease tests for google-cloud-spanner

@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 22, 2026

Great - will rebase tomorrow UK time and merge when green (assuming the approval sticks)

jskeet added 4 commits April 23, 2026 05:47
This means we don't use the generator default for any of:

- python-gapic-name
- python-gapic-namespace
- warehouse-package-name

A later change in librarian will start inferring these options itself,
at which point we can remove the options which are then redundant -
and new APIs should almost always use the inferred ones.
The changes here are all corrections where previously the package name
was incorrect in comments.
(Those packages weren't previously enabled for generation.)
@jskeet jskeet force-pushed the explicit-options branch from dabc738 to 231872c Compare April 23, 2026 05:47
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 23, 2026

@parthea: Looking at the Kokoro logs, I believe these are Spanner failures

@jskeet jskeet added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2026
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.

3 participants