Skip to content

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

Merged
meltsufin merged 1 commit intomainfrom
fix/changelog-script-spanner
Apr 23, 2026
Merged

chore: fix spanner fallback and add test for split_release_note#12896
meltsufin merged 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
@meltsufin meltsufin merged commit d0c6e9a into main Apr 23, 2026
119 checks passed
@meltsufin meltsufin deleted the fix/changelog-script-spanner branch April 23, 2026 18:31
@blakeli0 blakeli0 added the release-please:force-run To run release-please label Apr 23, 2026
@release-please release-please Bot removed the release-please:force-run To run release-please 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.

2 participants