Skip to content

fix(github-actions): do Github requests serially in branch manager - #992

Merged
devversion merged 1 commit into
angular:mainfrom
alan-agius4:branch-manager-rate-limit
Jan 23, 2023
Merged

devversion merged 1 commit into
angular:mainfrom
alan-agius4:branch-manager-rate-limit

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Jan 23, 2023 •

Copy link
Copy Markdown
Contributor

Branch manager occasionally fails due to secondary rate limit. Sometimes, almost 200 concurrent requests were performed.

Github recommends to make requests for a single user or client ID serially. See: https://docs.github.com/en/rest/guides/best-practices-for-integrators?apiVersion=2022-11-28#dealing-with-secondary-rate-limits

Closes #961


NB: Currently, this workflow is disabled in angular/angular, not sure if the limits was the reason behind this.

Branch manager occasionally fails due to secondary rate limit. Sometimes, almost 200 concurrent requests were performed. https://github.com/angular/angular/actions/runs/3766259367/jobs/6402572451

Github recommends to make requests for a single user or client ID serially. See: https://docs.github.com/en/rest/guides/best-practices-for-integrators?apiVersion=2022-11-28#dealing-with-secondary-rate-limits

Closes angular#961
@alan-agius4
alan-agius4 force-pushed the branch-manager-rate-limit branch from 855610b to b53c8c6 Compare January 23, 2023 12:10
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jan 23, 2023
@alan-agius4
alan-agius4 requested review from devversion and josephperrott and removed request for josephperrott January 23, 2023 12:11
@alan-agius4

alan-agius4 commented Jan 23, 2023 •

Copy link
Copy Markdown
Contributor Author

One other probably better alternative would be to use https://github.com/octokit/plugin-throttling.js throughout.

@devversion devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty

@devversion
devversion merged commit 30b176f into angular:main Jan 23, 2023
@alan-agius4
alan-agius4 deleted the branch-manager-rate-limit branch January 23, 2023 12:27
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Feb 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assistant to the Branch manager occasionally failing due to rate limit

2 participants