Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] lock inactive issues and PRs at different time #6764

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

StrikerRUS
Copy link
Collaborator

Our workflow for locking inactive issues and PRs often fails (https://github.com/microsoft/LightGBM/actions/workflows/lock.yml) with the following error:

Request quota exhausted for request GET /search/issues
Retrying after 60 seconds
Request quota exhausted for request GET /search/issues
Retrying after 60 seconds
Request quota exhausted for request GET /search/issues
Retrying after 60 seconds
Request quota exhausted for request GET /search/issues
Error: You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID 9C00:2E562D:2A4052F:538F1F4:676[21](https://github.com/microsoft/LightGBM/actions/runs/12383890420/job/34567465751#step:2:22)78F.

This is a well known issue without any proper solution:

Syntax for process-only argument was taken from here: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule

A single workflow can be triggered by multiple schedule events. You can access the schedule event that triggered the workflow through the github.event.schedule context. This example triggers the workflow to run at 5:30 UTC every Monday-Thursday, but skips the Not on Monday or Wednesday step on Monday and Wednesday.

This PR proposes splitting issues and PRs into separate workflow runs. Hopefully, it should decrease the number of performed requests at once and help to avoid exhausting requests quota.

Copy link
Collaborator

@borchero borchero left a comment

Choose a reason for hiding this comment

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

Let's try 😅

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Interesting idea! I agree, let's try it.

@StrikerRUS
Copy link
Collaborator Author

Trying to close-reopen for Azure restart.

@StrikerRUS StrikerRUS closed this Dec 24, 2024
@StrikerRUS StrikerRUS reopened this Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants