Skip to content

chore(.generator): release staging preview support#17159

Open
noahdietz wants to merge 4 commits into
googleapis:mainfrom
noahdietz:legacylibrarian-preview-releasing
Open

chore(.generator): release staging preview support#17159
noahdietz wants to merge 4 commits into
googleapis:mainfrom
noahdietz:legacylibrarian-preview-releasing

Conversation

@noahdietz
Copy link
Copy Markdown
Contributor

@noahdietz noahdietz commented May 15, 2026

Updates legacylibrarian Python processor to support staging releases for Preview packages.

Preview packages are generated into ./preview-packages directory with an package name and directory mirroring the stable variant under ./packages (doc). Their legacylibrarian ID, however, is -preview suffixed (so that there can be a unique entry in the config), and used as a signal to the tooling that the library in question is a preview library and is in a different location. The contents of the library package is otherwise identical.

Towards googleapis/librarian#5894

@noahdietz noahdietz requested a review from jskeet May 15, 2026 20:17
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 introduces support for preview packages by directing them to a preview-packages/ directory in mono-repos. It adds helper functions _get_package_name and _get_library_path to manage these paths and updates the changelog, metadata, and release logic accordingly. Feedback suggests using re.escape() when embedding the package name into a regular expression to ensure special characters are handled correctly.

Comment thread .generator/cli.py
@noahdietz noahdietz changed the title chore(.generator): release staging support chore(.generator): release staging preview support May 15, 2026
@noahdietz noahdietz marked this pull request as ready for review May 15, 2026 21:42
@noahdietz noahdietz requested a review from a team as a code owner May 15, 2026 21:42
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