New option commitsHourlyLimit
#35268
Labels
core:config
Related to config capabilities and presets
core:git
Related to our git platform layer
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
Discussed in #35068
Originally posted by felipecrs March 29, 2025
Tell us more.
This is derived from this other discussion.
Currently, there is
prHourlyLimit
to help preventing overloading of CI machinery. That option will rate-limit the number of PRs created per hour, and helps a lot during onboard of new projects.However, for projects which are already onboarded and has most of the PRs created already, this option will not help much.
For example, imagine the following configuration:
This would create 5 PRs hourly and stopping when it reaches 50. When one of the PRs are merged, another one will be created, but all the other 49 will also be rebased in the same run, because there is no option to rate-limit the number of commits that can happen per hour.
When a PR is changed with new commits, the CI workflows will be triggered, and in this case, 50 workflows will be triggered, potentially causing CI overload.
It would be great if an option like
commitsHourlyLimit
was implemented. This option would supersedeprHourlyLimit
and would prevent Renovate from pushing new commits to existing PRs if they surpass the limit configured.One implementation idea is to adjust the following code:
renovate/lib/workers/repository/update/branch/commit.ts
Lines 55 to 65 in f2fffbf
From what I understand, this function only returns a value when the push operation successfully happened.
The text was updated successfully, but these errors were encountered: