Create a failBuild flag or other type of notification in case of "WARN: Detected empty commit - aborting git push" #32501
Replies: 2 comments 5 replies
-
Try using logLevelRemap to remap it from warn to error, and you should then get a non-zero exit code (Renovate exits with non-zero if any error or fatal log messages occurred) |
Beta Was this translation helpful? Give feedback.
-
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.
-
Tell us more.
Can we add some failBuild flag of any sort to renovate configuration which would make the status exit 1 of renovate in case of errors like "WARN: Detected empty commit - aborting git push".
The issue that I want to solve is that we found that renovate didn't create PRs for our repository for over a month because of this:
We have renovate running on premise in CI pipeline. Below error comes from pip-compile manager after it failed because of conflicts. Didn't send full logs because it's internal repository. If more logs would be helpful for conversation I will send it with some redaction.
I'm thinking how we could solve such issue to give better notification about errors. In my opinion the best option would be to have configuration flag that would allow for failing build in CI pipeline. Other option that I see is to still be able to create a PR which will have artifact error with logs. Maybe to add some dummy file that would allow to create PR.
Beta Was this translation helpful? Give feedback.
All reactions