Renovate marks nearly all PRs as "edited" with platformCommit: true
#29106
Replies: 2 comments 2 replies
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsRead the Renovate docs, troubleshooting, self-hosted to learn how to find the logs. Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
The renovate app uses platform commit and doesn't have this problem. Not has anyone else reported it. Most likely you have a config problem, such as configuring wrong gitAuthor |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I think I found a bug
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitHub, Renovate EE 7.1.0, Renovate 37.340.10
Please tell us more about your question or problem
When enabling the
platformCommit
option, Renovate will mark PRs as "edited" on the next hourly run-though, even if there has only been one commit, and that commit is by the Renovate bot itself. I've woken up to a bunch of Renovate PRs opened for automerging, but left like that because Renovate decided that they were edited when it next came by.I believe that this is a result of the fact that the non-platform commit will update the git cache of branch modifications after completing its push, but no such operation is completed when using the platform commit.
renovate/lib/util/git/index.ts
Lines 1149 to 1155 in 99ba857
renovate/lib/modules/platform/github/index.ts
Lines 2078 to 2086 in 99ba857
The cache inside the git module is explicitly trusted when determining whether the commit found is the commit expected, so when it detects the platform commit, it finds it different from the expectation in the git cache, thus marking the commit as edited, and no longer processing the branch.
renovate/lib/util/git/index.ts
Lines 631 to 639 in 99ba857
I have also tried disabling the repository cache on the workers in case this was the reason for the issue, but from that logic above, the repository cache is a secondary check, meaning that the cache inside the git module will have already returned a decision that the branch was modified. After disabling the
platformCommit
option, the issues with Edited/Blocked PRs seems to have stopped.Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions