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

Request approval for specific concepts #13994

Closed
michelle192837 opened this issue Aug 21, 2019 · 14 comments
Closed

Request approval for specific concepts #13994

michelle192837 opened this issue Aug 21, 2019 · 14 comments
Labels
area/prow Issues or PRs related to prow kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@michelle192837
Copy link
Contributor

It might be nice to, in some cases, have approval for specific concepts like languages ("is my X code readable") or docs ("approve .md files but not code"). Prow's approval plugin could be extended to do this, via something like:

  • Have a top-level directory with OWNERS files for concepts
    • (e.g. k/t-i/languages/[go|py|ts]/OWNERS)
  • When PRs are sent for approval, or on request (via a slash command?), detect the file extensions touched
  • Add a fake file that the approval plugin recognizes as touching the relevant approval directory
    • (e.g. approval plugin thinks that k/t-i/languages/go/fakefile was added)
  • Approval assigns/requires an approver from the relevant file

/area prow
/priority/backlog

@michelle192837 michelle192837 added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 21, 2019
@k8s-ci-robot k8s-ci-robot added the area/prow Issues or PRs related to prow label Aug 21, 2019
@BenTheElder
Copy link
Member

/priority/backlog

/priority backlog

@k8s-ci-robot k8s-ci-robot added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Aug 22, 2019
@stevekuznetsov
Copy link
Contributor

We've seen a large number of teams whose workflows don't nicely fit into the LGTM+approve workflow hit this issue, all with specific subsets of the solution they need ... either they want N approvers, or approvers by "type", or both. It might make sense to fix this in a first-class manner (instead of hacking through files) as part of whatever the issue is that we have to track approvers making bad assumptions (I can't for the life of me find it).

1 similar comment
@stevekuznetsov
Copy link
Contributor

We've seen a large number of teams whose workflows don't nicely fit into the LGTM+approve workflow hit this issue, all with specific subsets of the solution they need ... either they want N approvers, or approvers by "type", or both. It might make sense to fix this in a first-class manner (instead of hacking through files) as part of whatever the issue is that we have to track approvers making bad assumptions (I can't for the life of me find it).

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 8, 2019
@nikhita
Copy link
Member

nikhita commented Dec 9, 2019

/remove-lifecycle stale
xref #7690

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 9, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 8, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 7, 2020
@spiffxp
Copy link
Member

spiffxp commented Apr 10, 2020

/remove-lifecycle rotten
Just got pinged for another variant of this, product readiness approval ref: kubernetes/enhancements#1620 (comment)

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Apr 10, 2020
@spiffxp
Copy link
Member

spiffxp commented Apr 10, 2020

Another example: ensure someone from sig-instrumentation gets assigned to PRs that change metrics-related code kubernetes/kubernetes#89788

@spiffxp
Copy link
Member

spiffxp commented Apr 10, 2020

We can't currently use solutions that regex against paths or file types because the approvers plugin doesn't cooperate with filters (ref: #7690)

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 9, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 8, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prow Issues or PRs related to prow kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

7 participants