Open autumnfound opened 3 years ago
There are different aspects that need to be discussed.
1/2. That's the plan yeah! I'll be pushing the patch to remove users again soon but with bots in mind this time haha! So we still have the script, and you can add manually or use the script. Its up to you!
Looping back to this, we have a basic triggered solution to re-add users. We may need to update this solution to better handle the external/sub-resource (e.g. github.com-openshift-merge) bots though, as they wouldn't be currently handled I don't believe. Once this is done, would you say this is resolved, or would you like the bot fix to be triggered as part of the sync process?
It boils down to the following requirements:
I think the bot fix scripted can/should run independently from the sync process, unless there are good reason to do it.
It boils down to the following requirements:
- we consider the projects-bot-api to be the single source of truth for (GitHub and GitLab) bot users
- the BotFix.js script should add and remove bot users to/from the project's committer teams based on the projects-bot-api
the BotFix.js script should be run from a CI (or cluster) job, kicked off on a schedule (e.g. once a day/night) and manually on demand
open questions:
how long does the bot fix script take to run?
Much shorter than the sync script, likely not more than a few minutes, if that. I've done work to minimize calls and added caching so that we can work easily within the orgs. I can look into how long this takes to run later if you want more than a vague guess haha!
* how are invitations to the organizations handled?
I think the bot fix scripted can/should run independently from the sync process, unless there are good reason to do it.
There's no real reason to add it to the sync script no. I might want to improve on the script to pull out some of the common stuff so when we do this for GL eventually it will be easy to implement and maintain. I don't think the need for scripting is there yet so that's more of a 1.x/low priority feature though.
From an issue created through over-zealous removal of users from teams, a new script to manage bot team membership was created to handle the process rather than doing it manually. There were some discussions on potentially managing bots in the future through the sync script, though there were some concerns raised by @fredg02 about it breaking some workflows.