-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Renovate exit with code 0 when a Azure repository is disabled #13013
Comments
Hi there, We have found that there's a problem with the logs. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf there's no log posted yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appClick me to read instructionsIf you use the Renovate app (GitHub):
Finding logs when self-hostingClick me to read instructionsIf you're running self-hosted, run with Insufficient logsClick me to read instructionsIf you already provided logs, and the Renovate team said they are not enough, follow the instructions from the No logs at all section. Formatting your logsClick me to read instructionsPlease put your logs in a
|
Sorry, I forgot to put my logs. It should be ok now. Thanks |
I think the first thing we need to do is detect this git error as "not found":
That might be enough, but I'm not sure. |
|
I'd like to help with this one. |
My plan for fixing this issue:
Check if the platform is Azure and |
I think you need to modify here: renovate/lib/platform/azure/index.ts Lines 174 to 177 in d1229b2
and add if (repo.isDisabled) {
logger.debug(
'Repository is disabled- throwing error to abort renovation'
);
throw new Error(REPOSITORY_ARCHIVED);
} |
🎉 This issue has been resolved in version 31.11.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What would you like Renovate to be able to do?
I would like Renovate doesn't exit with 0 when Azure Repository is disabled.
Right now, I use renovate running on Kubernetes as a CronJob.
If I disable a repos in Azure, renovate will fail, and Job will restart continuously.
If you have any ideas on how this should be implemented, please tell us here.
Maybe by setting WARNING instear ERROR level when renovate fails to access to the repository ?
Thanks for your support
Is this a feature you are interested in implementing yourself?
No
Click me to see logs
The text was updated successfully, but these errors were encountered: