Skip to content
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

Crash on Azure when branch policy "Limit merge types" option is unchecked #4714

Closed
2 of 7 tasks
elwynelwyn opened this issue Oct 23, 2019 · 2 comments · Fixed by #4730
Closed
2 of 7 tasks

Crash on Azure when branch policy "Limit merge types" option is unchecked #4714

elwynelwyn opened this issue Oct 23, 2019 · 2 comments · Fixed by #4730
Assignees
Labels
platform:azure Azure DevOps platform type:bug Bug fix of existing functionality

Comments

@elwynelwyn
Copy link
Contributor

This is a:

  • Bug report (non-security related)
  • Feature request
  • I'm not sure which of those it is

I'm using:

Please describe the issue:

When the repository has a branch policy on master but does NOT check the "Limit merge types" option, RenovateBot crashes with an unhandled null.
Enabling the option (but leaving all options selected - so effectively the same thing) fixes the crash.

image

e.g. checked like this screenshot is fine, but if I uncheck this, it crashes out.

The exception is thrown from node_modules\renovate\dist\platform\azure\azure-helper.js line 212 when it tries to do Object.keys(policyConfigurations) and policyConfigurations is null.

From the log:

ERROR: Repository has unknown error (repository=MyOrg/MyRepo)
"err": {
    "message": "Cannot convert undefined or null to object",
    "stack": "TypeError: Cannot convert undefined or null to object\n    at Function.keys (<anonymous>)\n    at Object.getMergeMethod (/home/vsts/.config/yarn/global/node_modules/renovate/dist/platform/azure/azure-helper.js:212:20)\n    at process._tickCallback (internal/process/next_tick.js:68:7)"
}
@elwynelwyn elwynelwyn changed the title Crash on Azure when "Limit merge types" option is unchecked Crash on Azure when branch policy "Limit merge types" option is unchecked Oct 23, 2019
@rarkins rarkins added platform:azure Azure DevOps platform type:bug Bug fix of existing functionality ready labels Oct 23, 2019
@JamieMagee JamieMagee self-assigned this Oct 25, 2019
@JamieMagee
Copy link
Contributor

@elwynelwyn Thanks for reporting this. I'll investigate further.

@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 19.66.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform:azure Azure DevOps platform type:bug Bug fix of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants