Skip to content

fix(internal/legacylibrarian): retry on more status codes#3989

Merged
codyoss merged 4 commits intogoogleapis:mainfrom
codyoss:harden
Feb 10, 2026
Merged

fix(internal/legacylibrarian): retry on more status codes#3989
codyoss merged 4 commits intogoogleapis:mainfrom
codyoss:harden

Conversation

@codyoss
Copy link
Copy Markdown
Member

@codyoss codyoss commented Feb 10, 2026

GitHub had an outage yesterday which was cauing some of our jobs to fail for a while. While this was happening I noticed we were getting and not honoring these two statuses from thier serveres.

Internal Bug: b/483305951

GitHub had an outage yesterday which was cauing some of our jobs
to fail for a while. While this was happening I noticed we were
getting and not honoring these two statuses from thier serveres.

Internal Bug: b/483305951
@codyoss codyoss requested a review from a team as a code owner February 10, 2026 16:04
@codyoss codyoss enabled auto-merge (squash) February 10, 2026 16:06
@codyoss codyoss disabled auto-merge February 10, 2026 16:08
@codyoss codyoss changed the title fix(internal/legacylibrarian): add retries for 500 and 429 fix(internal/legacylibrarian): retry on more status codes Feb 10, 2026
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 adds retry logic for HTTP status codes 500 and 429, correctly honoring the Retry-After header to improve the robustness of GitHub API interactions. However, a medium-severity Denial of Service (DoS) vulnerability was identified: the Retry-After header value is not validated, which could lead to excessive sleep times if a malicious server provides an extremely large value. It is recommended to cap this delay.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.27%. Comparing base (60eb18c) to head (60ffb63).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3989      +/-   ##
==========================================
+ Coverage   83.20%   83.27%   +0.06%     
==========================================
  Files          74       74              
  Lines        6349     6361      +12     
==========================================
+ Hits         5283     5297      +14     
+ Misses        696      695       -1     
+ Partials      370      369       -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 merged commit 43b900a into googleapis:main Feb 10, 2026
10 checks passed
@codyoss codyoss deleted the harden branch February 10, 2026 20:54
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