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

needs-approver-review: enable management by GH team #3770

Conversation

dhiller
Copy link
Contributor

@dhiller dhiller commented Nov 19, 2024

What this PR does / why we need it:

Currently the only user who can apply or remove the label needs-approver-review is the kubevirt-bot user.

This change introduces a new GitHub team under the KubeVirt org that contains the people who will be allowed to apply or remove the label - changing the orgs.yaml to achieve this.

Then the label config is extended to allow above created group to manage the label - changing plugins.yaml.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

/cc @vladikr @iholder101 @alicefr @aburdenthehand

Currently the only user who can apply or remove the label
`needs-approver-review` is the `kubevirt-bot` user.

This change introduces a new GitHub team under the KubeVirt
org that contains the people who will be allowed to apply or
remove the label - changing the orgs.yaml to achieve this.

Then the `label` config is extended to allow above created group to
manage the label - changing plugins.yaml.

Signed-off-by: Daniel Hiller <[email protected]>
@dhiller
Copy link
Contributor Author

dhiller commented Nov 19, 2024

/override pull-kubevirt-org-github-config-updater

since it complains about a team not existing that we want to create

@kubevirt-bot
Copy link
Contributor

@dhiller: Overrode contexts on behalf of dhiller: pull-kubevirt-org-github-config-updater

In response to this:

/override pull-kubevirt-org-github-config-updater

since it complains about a team not existing that we want to create

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Contributor

@iholder101 iholder101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dhiller! Looks great!

Comment on lines +855 to +856
needs-approver-review-label:
description: "Users who can manage needs-approver-review label to any PR inside the KubeVirt org"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add the needs-approver-review-label label to the kubevirtkubevirt-label group below instead of creating a new one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, since this group can change the label in every repo, whereas the other group can only change labels inside k/kubevirt.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for it though?
Why wouldn't members be able to add the good-first-issue to every repo?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In any case, it shouldn't block this PR, just an idea.
/lgtm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for it though? Why wouldn't members be able to add the good-first-issue to every repo?

Because at the time there was opinions about how and when to apply the labels good-first-issue and help-wanted and who could apply them.

I.e. for project-infra it works through the prow help plugin - anyone can just write /help-wanted or /good-first-issue and the labels will get applied. In contrast to this in k/kubevirt the consensus was that only a dedicated group of people should apply labels (that's also the reason why there's two good-first-issue labels (https://github.com/kubevirt/project-infra/blob/main/docs/labels.md#good%20first%20issue).

As much as I had wanted to align people over just using the prow help plugin and not having to maintain an extra configuration for labels, we didn't agree on this - and I respect that decision.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example issue for k/project-infra: #3768 (comment)

(reaction by plugin can be seen in follow up)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot one thing: the help plugin has the drawback that everyone who comments on a PR can apply the label - I think the label should only get applied if an org member does comment, however I don't know that for sure and would need to check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked - the plugin reacts to any comment, so in essence anyone with a GitHub account can trigger help, however I think the cost of unjustified application of a label is neglectible to the cost of having to maintain the configuration, but that's just my opinion.

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2024
@aburdenthehand
Copy link
Member

/lgtm

@dhiller
Copy link
Contributor Author

dhiller commented Nov 25, 2024

@brianmcarey FYI - if you have the time 🙏

Copy link
Member

@brianmcarey brianmcarey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

thanks @dhiller

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brianmcarey

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 25, 2024
@dhiller
Copy link
Contributor Author

dhiller commented Nov 25, 2024

/override pull-kubevirt-org-github-config-updater

since that check is complaining about a team which we want to create...

@kubevirt-bot
Copy link
Contributor

@dhiller: Overrode contexts on behalf of dhiller: pull-kubevirt-org-github-config-updater

In response to this:

/override pull-kubevirt-org-github-config-updater

since that check is complaining about a team which we want to create...

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubevirt-bot kubevirt-bot merged commit b1c0e32 into kubevirt:main Nov 25, 2024
5 checks passed
@kubevirt-bot
Copy link
Contributor

@dhiller: Updated the plugins configmap in namespace kubevirt-prow at cluster default using the following files:

  • key plugins.yaml using file github/ci/prow-deploy/kustom/base/configs/current/plugins/plugins.yaml

In response to this:

What this PR does / why we need it:

Currently the only user who can apply or remove the label needs-approver-review is the kubevirt-bot user.

This change introduces a new GitHub team under the KubeVirt org that contains the people who will be allowed to apply or remove the label - changing the orgs.yaml to achieve this.

Then the label config is extended to allow above created group to manage the label - changing plugins.yaml.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

/cc @vladikr @iholder101 @alicefr @aburdenthehand

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants