Skip to content

google-cloud-python: adapt legacylibrarian container for release-only mode #4660

@jskeet

Description

@jskeet

When legacylibarian is in release-only mode, the container (in .generator in google-cloud-python) fails:

Traceback (most recent call last):
  File "/app/./cli.py", line 1661, in handle_release_stage
    library_changes = library_release_data["changes"]
                      ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'changes'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/./cli.py", line 1770, in <module>
    args.func(librarian=args.librarian, repo=args.repo, output=args.output)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/./cli.py", line 1687, in handle_release_stage
    raise ValueError(f"Release stage failed: {e}") from e

We need to adapt the container to handle release-only mode.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions