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

📖 Update CONTRIBUTING.md with high-level review guidelines #3191

Merged

Conversation

vincepri
Copy link
Member

Signed-off-by: Vince Prignano vincepri@vmware.com

What this PR does / why we need it:
This PR is a starting point to better document our review process and what we expect from reviewers.

Signed-off-by: Vince Prignano <vincepri@vmware.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 15, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 15, 2020
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 15, 2020
@vincepri vincepri changed the title 🌱 Update CONTRIBUTING.md with high-level review guidelines 📖 Update CONTRIBUTING.md with high-level review guidelines Jun 15, 2020
@sethp-nr
Copy link
Contributor

I find I'm sometimes not sure when to /lgtm a PR because I know that sometimes in the past I've added that label and it's caused a sudden / surprise merge to happen.

Is it worth adding some language about when it's appropriate to LGTM, or is that covered by the note about approval?

@vincepri
Copy link
Member Author

@sethp-nr That makes sense, this is only a taste of the full guidelines we should have — I'll add something along those lines as I go through the updates

@detiber
Copy link
Member

detiber commented Jun 15, 2020

@sethp-nr @vincepri We could change the repo configuration in https://github.com/kubernetes/test-infra/blob/ab37d8b9138344d510dafee708fee1b03c2d5b1e/config/prow/plugins.yaml and set require_self_approval to true for the approve plugin to require an explicit /approve even for PRs that are created by maintainers.

process.

- A PR is approved by one of the project maintainers and owners after reviews.
- Approvals should be the very last action a maintainer takes on a pull request.
Copy link
Member

Choose a reason for hiding this comment

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

I know this is a topic subject of many discussions in Kubernetes land...
IMO It will be great to disable the bot that automatically applies /approve for maintainers, so all the PRs can follow the same approach and every PRs requires approval from someone different than the author

Copy link
Member

Choose a reason for hiding this comment

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

Ohhh... I see now #3191 (comment)
I'm happy to help with this if there is agreement

Copy link
Member Author

Choose a reason for hiding this comment

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

That is a fine change, although I want to call out that even in that case, the above guideline stands.


Any Kubernetes organization member can leave reviews and `/lgtm` a pull request.

Code reviews should generally look at:
Copy link
Member

Choose a reason for hiding this comment

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

xposting #3194 (comment)

I would refer to "REVIEWING.md" for details about what a review should look at

Copy link
Member Author

Choose a reason for hiding this comment

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

These bits go in the book as well, let's have the generic high level list here; I'll add a link to the REVIEWING doc once it merges

@fabriziopandini
Copy link
Member

/lgtm
/hold
for letting others comment on this PR

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 16, 2020
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 16, 2020
@JoelSpeed
Copy link
Contributor

Just had a read, everything looks good as far as I'm concerned

+1 to the require_self_approval option, would make it easier for onboarding of new reviewers as it takes some of the pressure off of reviewing an owners PR

@@ -49,6 +55,33 @@ All changes must be code reviewed. Coding conventions and standards are explaine
docs](https://github.com/kubernetes/community/tree/master/contributors/devel). Expect reviewers to request that you
avoid common [go style mistakes](https://github.com/golang/go/wiki/CodeReviewComments) in your PRs.

## Reviewing a Patch
Copy link
Contributor

Choose a reason for hiding this comment

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

should this link to REVIEWING.md?

Copy link
Contributor

Choose a reason for hiding this comment

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

@wfernandes
Copy link
Contributor

/lgtm

@vincepri
Copy link
Member Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 19, 2020
@vincepri
Copy link
Member Author

/test pull-cluster-api-make

@k8s-ci-robot k8s-ci-robot merged commit 257525f into kubernetes-sigs:master Jun 19, 2020
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants