-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
v0.28.5: Atlantis fails to finish plan when hitting the Github secondary API rate limit since upgrading #4932
Comments
Hey there, @snorlaX-sleeps! I'm here to help you with any bugs, questions, or contributions you have. Let's work together to solve this issue! I found a similar open issue that might be relevant to your problem: Optionally Limit GitHub Comment Creation, which was last updated on August 05, 2024. This issue discusses the need to limit the number of comments generated to avoid hitting GitHub's secondary API rate limits. It was referenced by your issue v0.28.5: Changes to Github PR comments results in rate-limiting from the secondary API, which was last updated on September 18, 2024. To address your issue, you can use the Here's how you can set it up: atlantis server --max-comments-per-command=100
# or
ATLANTIS_MAX_COMMENTS_PER_COMMAND=100 This option limits the number of comments published after a command is executed, to prevent spamming your VCS and Atlantis from getting throttled as a result. The default value is Additionally, you can adjust the parallel pool size to control the number of concurrent operations: # Adjusting the parallel pool size
atlantis server --parallel-pool-size=<desired_value>
# or
ATLANTIS_PARALLEL_POOL_SIZE=<desired_value> The default value for By configuring these parameters, you can better manage the rate at which Atlantis generates comments and avoid hitting GitHub's rate limits. |
Hi @dosu We also already set the |
As a note, the current workaround is to disable comments on the PR in question so the change can be applied and merged |
To address the issue of rate-limiting due to excessive comments, you can consider the following options:
By implementing these strategies, you can better manage the number of comments generated and avoid hitting GitHub's rate limits. |
1 similar comment
To address the issue of rate-limiting due to excessive comments, you can consider the following options:
By implementing these strategies, you can better manage the number of comments generated and avoid hitting GitHub's rate limits. |
Reverting the image back to Logs from
This differs from |
Note: I am editing the issue text after testing |
Community Note
Overview of the Issue
(edited)
Recently we have upgraded from
v0.23.x
tov0.28.5
We have been using Atlantis for a few years.
One of our Atlantis installations will regularly hit the Github Secondary API rate-limit when posting comments after running an Atlantis plan for ~500 individual projects.
When we were using
v0.23.x
the comments will be limited to ~ 100 per plan (due to the rate-limit), but Atlantis would mark the plan as complete / successful (if it was) and update the PR statuses as per usual. This means the successful plans can be applied and the PR merged.When we upgraded to
v0.28.x
the comments will be limited to ~ 100 per plan (due to the rate-limit), but Atlantis appears to stop functioning. None of the PR statuses still "pending" will be updated, the plans are not available for applying and since an apply is "required" to merge a PR, the PR cannot be merged.So it would appear something has changed around handling errors when posting to a Github PR.
The rest of the configuration (number of plans, number of Atlantis) has not changed.
Please let me know if this has been resolved elsewhere.
Github Docs (docs are quite circular)
Reproduction Steps
Create a configuration to run plans for as many projects as will generate over 100 comments.
(In our case we have one state folder running ~500 plans)
Logs
Logs from
v0.28.5
, please see comment below forv0.23.5
Environment details
Additional Context
We have added the flag
ATLANTIS_MAX_COMMENTS_PER_COMMAND = 80
, however this limits the number of comments per project not the number of comments per execution.The Atlantis installation has it's own Github App, not shared.
Related PRs, potentially around the same subject but different context:
The text was updated successfully, but these errors were encountered: