Skip to content

fix(internal/legacylibrarian): use 'release:failed' label upon failure#4017

Merged
codyoss merged 1 commit intogoogleapis:mainfrom
codyoss:release-fail-tag
Feb 11, 2026
Merged

fix(internal/legacylibrarian): use 'release:failed' label upon failure#4017
codyoss merged 1 commit intogoogleapis:mainfrom
codyoss:release-fail-tag

Conversation

@codyoss
Copy link
Copy Markdown
Member

@codyoss codyoss commented Feb 11, 2026

When a release fails to process we don't want to indefinitely retry processing that pull request. We will instead now mark it as failed so future searches from our automation don't find the pull request. In these cases a bug will be opened from a production notification in Google Cloud which will require an engineer to investigate the failure.

Internal Bug: b/481308012

When a release fails to process we don't want to indefinitely retry
processing that pull request. We will instead now mark it as failed
so future searches from our automation don't find the pull request.
In these cases a bug will be opened from a production notification
in Google Cloud which will require an engineer to investigate the
failure.

Internal Bug: b/481308012
@codyoss codyoss requested a review from a team as a code owner February 11, 2026 21:34
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 a release:failed label for pull requests that fail during the release process, preventing indefinite retries by automation. The changes are well-implemented, including refactoring the label replacement logic for better reusability and updating tests to cover the new failure scenario. The code is clean and the logic is sound. I have one minor suggestion to improve maintainability by avoiding variable shadowing.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.23%. Comparing base (c0735c0) to head (ce1ff4f).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...legacylibrarian/legacylibrarian/tag_and_release.go 60.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4017      +/-   ##
==========================================
- Coverage   83.26%   83.23%   -0.03%     
==========================================
  Files          76       76              
  Lines        6418     6420       +2     
==========================================
  Hits         5344     5344              
- Misses        701      702       +1     
- Partials      373      374       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codyoss codyoss enabled auto-merge (squash) February 11, 2026 22:31
@codyoss codyoss merged commit 3e378d2 into googleapis:main Feb 11, 2026
10 of 11 checks passed
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