Skip to content

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

Merged
jameslamb merged 5 commits intomasterfrom
ci/lock
Jan 3, 2025
Merged

[ci] lock inactive issues and PRs at different time#6764
jameslamb merged 5 commits intomasterfrom
ci/lock

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
@jameslamb jameslamb merged commit 0be894d into master Jan 3, 2025
@jameslamb jameslamb deleted the ci/lock branch January 3, 2025 16:05
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants