Renovate might fail to add reviewers with large numbers of teams #23066
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us what version of Renovate you run.35.116.6 If you're self-hosting Renovate, select which platform you are using.Azure DevOps (dev.azure.com) Was this something which used to work for you, and then stopped?I am trying to get this working for the first time Describe the problemHi! I'm trying to get renovate to assign a reviewer to the PRs it raises in ADO. renovate.json snippet:
This isn't working in our project, which has over 500 teams. I think this is because addReviewers() calls getUserIds() to find the reviewer's id. Without any arguments, the getTeams() call only seems to return the first 100 teams, and in my case, the reviewer's team isn't in that list, so getUserIds() returns an empty list. (Supported by the fact that I never see this log) Repro scenario: I'm not sure I can create a project with 500 teams in the free version of ADO - I'll have a look and see if this is possible. I did create a minimal node.js example, which works in the same way as the renovate code and only returns 100 teams:
(I have also confirmed I was using a valid display name for the reviewer by adding them to the PR with Relevant debug logsLogs
Have you created a minimal reproduction repository?I have explained in the description why a minimal reproduction is impossible |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
how can we get more pages of that getTeams call? |
Beta Was this translation helpful? Give feedback.
-
I was wondering about https://www.npmjs.com/package/@azure/core-paging? |
Beta Was this translation helpful? Give feedback.
-
Hi! This issue is still very relevant. In my case none of the reviewers are added either - company has more than 100 teams, getTeams return only first 100 teams, the reviewers do not belong to any of them. Get Teams support $top and $skip parameters, so maybe some paging logic can be implemented to check all the teams in the project, not only the first 100? |
Beta Was this translation helpful? Give feedback.
Hi! This issue is still very relevant. In my case none of the reviewers are added either - company has more than 100 teams, getTeams return only first 100 teams, the reviewers do not belong to any of them. Get Teams support $top and $skip parameters, so maybe some paging logic can be implemented to check all the teams in the project, not only the first 100?