[feature](ci) Rotate review credentials after quota errors - #66111
Closed
wzz6423 wants to merge 1 commit into
Closed
[feature](ci) Rotate review credentials after quota errors#66111wzz6423 wants to merge 1 commit into
wzz6423 wants to merge 1 commit into
Conversation
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Code review jobs selected credentials randomly and could not retain quota or rate-limit state across runs. Persist account status in object storage, rotate immediately after account-specific failures, and retry transient service failures with exponential backoff.
### Release note
Code review jobs now rotate credentials based on persisted availability and send an alert when both accounts exhaust quota.
### Check List (For Author)
- Test: Unit Test
- Python unit tests for state initialization, rotation, cooldown recovery, failure classification, and alert eligibility
- Workflow YAML and Bash syntax validation
- Behavior changed: Yes (credential selection and retry behavior are persisted across code review jobs)
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
/review |
Contributor
|
Codex automated review failed and did not complete. Error: You've hit your usage limit. Visit https://chatgpt.com/codex/settings/usage to purchase more credits or try again at Aug 2nd, 2026 1:27 AM. Please inspect the workflow logs and rerun the review after the underlying issue is resolved. |
Contributor
Author
|
Superseded by #66119. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Code review jobs selected credentials randomly and could not retain quota, rate-limit, or authentication-failure state across runs. This change persists account state in object storage, initializes the state object when it is absent, rotates after account-specific failures, and retries transient service failures with exponential backoff.
Release note
Code review jobs now rotate credentials based on persisted availability and send an alert when both accounts exhaust quota.
Check List (For Author)