Renovate: Crash on Azure when branch policy "Limit merge types" option is unchecked

Created on 23 Oct 2019  路  2Comments  路  Source: renovatebot/renovate

This is a:

  • [x] 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)"
}
azure bug

All 2 comments

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

:tada: This issue has been resolved in version 19.66.16 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OmgImAlexis picture OmgImAlexis  路  4Comments

ghost picture ghost  路  3Comments

OmgImAlexis picture OmgImAlexis  路  4Comments

jgarec picture jgarec  路  3Comments

zephraph picture zephraph  路  3Comments