The prHourlyLimit
counter for Gerrit gets incremented even when change is not actually created
#35367
Unanswered
felipecrs
asked this question in
Request Help
Replies: 1 comment
-
The By the way, I'm working around |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Gerrit
Please tell us more about your question or problem
I have been debugging and fine-tuning change limits with Gerrit platform for the past month, and I realized one buggy behavior:
As we know, Renovate will update the
prHourlyLimit
counter every time thecreatePr()
function succeeds (here).However,
createPr()
function in Gerrit does not actually create the change. The change gets created as part ofgit.commitAndPush()
.In that case,
createPr()
will only ensure the PR was created at the earliergit.commitAndPush()
call.For some reason, Renovate calls
git.commitAndPush() && createPr()
even when the change already exists.To account for that, Gerrit's
commitAndPush()
will ensure not to push anything in case it was pushed earlier (here).Renovate then calls
createPr()
and increments the counter, even though no change was created at all.Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions