Skip to content

chore: fix spanner fallback and add test for split_release_note#12896

Open
meltsufin wants to merge 1 commit intomainfrom
fix/changelog-script-spanner
Open

chore: fix spanner fallback and add test for split_release_note#12896
meltsufin wants to merge 1 commit intomainfrom
fix/changelog-script-spanner

Conversation

@meltsufin
Copy link
Copy Markdown
Member

@meltsufin meltsufin commented Apr 23, 2026

The original code assumed that if .OwlBot-hermetic.yaml existed, it must contain an api-name. This is not true for Spanner, which has the file but lacks the api-name field. So, fallback to .repo-metadata.json is needed sometimes even if .OwlBot-hermetic.yaml exists.

Towards #12864.

@meltsufin meltsufin requested a review from a team as a code owner April 23, 2026 03:25
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 refactors the module detection logic in split_release_note.py to implement a fallback for retrieving API names from .repo-metadata.json and introduces a new unit test for this functionality. Feedback highlights a likely AttributeError due to an inconsistent attribute rename and recommends a file existence check to avoid a FileNotFoundError during metadata retrieval.

Comment thread .github/release-note-generation/split_release_note.py
Comment thread .github/release-note-generation/split_release_note.py Outdated
@meltsufin meltsufin force-pushed the fix/changelog-script-spanner branch from 925ee78 to 723cbcd Compare April 23, 2026 03:30
@meltsufin meltsufin requested a review from blakeli0 April 23, 2026 03:34
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