gardener / documentation

Documentation and website
Apache License 2.0
34 stars 67 forks source link

Add PR review policies #92

Closed zanetworker closed 2 years ago

zanetworker commented 4 years ago

What would you like to be added: In our PR checklist we don't yet have a review policy, we should add one that includes:

stoyanr commented 4 years ago

Meeting Minutes 10.06.2020:

Initial agenda:

Summary of outcomes:

g-pavlov commented 4 years ago

We could make reviews part of daily syncs to organize ourselves who should review what (?, proposed but most participants sceptical).

The proposal was slightly different and perhaps not well understood - to regularly (once a week for example) review the status of the PRs in review and to surface and address potential issues with compliance with the PR review process that we define (not the PRs topics themselves).

In essence, it's about filtering PRs that have no reviewer or have been in limbo for too long after review was requested. The event can be used then to assign and re-assign PRs for reviews to keep their pulse beating and improve the load distribution and make it more transparent. I've observed a similar practice in k8s SIGs and it takes about 10-15 minutes on their bi-weekly meetings.

All things considered, it's a zero-investment practice that we can employ today and it can help until we come up with tool-assisted approaches. Such practice will build up the culture of consciousnesses, without which no tools or process will work.

Technically:

g-pavlov commented 4 years ago

To be clear - this issue is in the documentation repo because at the end we are going to formalize the decisions into a guide in the section that describes our processes. But the discussion is about the whole Gardener project, not the documentation.

zanetworker commented 4 years ago

@stoyanr thanks for following up. I guess now we should try to find a place to put it into a review guide.

@g-pavlov do you think it makes sense to add the guide to this repo?

g-pavlov commented 4 years ago

It's the contract between maintainers and contributors, so I guess it's logical to have it somewhere here: https://gardener.cloud/contribute/code

vlerenc commented 4 years ago

I was not really sure how to interpret the can/may/should/proposed when I read them a week ago, but when @rfranzke asked me about these meeting minutes today, we chatted and here a proposal what could be done.

It would be great, if you could review and then of course help with the implementation, if we are going to leverage the robot for that.

See: https://github.wdf.sap.corp/kubernetes/kube-backlog/issues/36

WDYT?

zanetworker commented 4 years ago

Write a pull request review guideline (take the points from #92 (comment)) and publish it alongside the pull request guideline

Why would the author of a PR read the review guideline, or did I mis-understand the first point?

Guideline how to improve effeciency with GitHub notifications and Outlook (and other e-mail clients), so that people do not turn off notifications or send them straight to the trash bin, e.g.:

too imperative IMO.

regarding the Bots proposals, as long as they require no additional actions from the reviewer (they do their thing without adding the overhead of knowing about / learning about each), it would LGTM :)

vlerenc commented 4 years ago

In regards to your points @zanetworker :

Why would the author of a PR read the review guideline, or did I mis-understand the first point?

The author would read the PR guide, e.g. whether the correct labels are set, that the PR tries to do only one thing, size/l and larger are, when possible, avoided, etc. See points above from your meeting minutes.

The reviewer would read the reviewer guide about responding timely, etc. See points above from your meeting minutes.

too imperative IMO.

That is just a recommendation, soft in nature, take it if it helps, but make reviewers aware that switching off notifications is not a good idea and if they feel overhelmed, here is some idea how to improve the situation for yourself.

they do their thing without adding the overhead of knowing about / learning about each

The idea behind the last "transparency" topics is to inform them passively. The active conformance is driven by the bots. In general the idea is, if they do their reviews, things shall work out. If they reviews are not coming by, the PR will not progress and people will see/know.

vlerenc commented 4 years ago

Hmm... no other feedback @stoyanr @g-pavlov @rfranzke @zanetworker @gardener/gardener-maintainers on https://github.com/gardener/documentation/issues/92#issuecomment-646072329? Does that make sense, no sense, do you want to have another meeting?

zanetworker commented 4 years ago

@vlerenc Sure, I think we could start simple considering your comment:

The author would read the PR guide, e.g. whether the correct labels are set, that the PR tries to do only one thing, size/l and larger are, when possible, avoided, etc. See points above from your meeting minutes.

I like this "The active conformance is driven by the bots" whenever possible. Maybe something like: https://github.com/google/triage-party or so.

So my proposal to move this forward, is whenver it makes sense lets edit and build on this, and file a PR.

@vlerenc For faster collab, I created https://docs.google.com/document/d/1I4DvefoHVsZZWyQmJ3BzHUzzCUwe3Pm4BI0n9J_T6IA/edit?usp=sharing

@ everyone feel free to add / remove / edit / reshape the document, then we can file a PR to the repos to with the final guideline.

vlerenc commented 4 years ago

Sure @zanetworker. If you prefer to continue the discussion in the doc, please copy https://github.com/gardener/documentation/issues/92#issuecomment-646072329 over. It was actually meant as a very concrete list of things that could help in this context and was a plan to execute if approved.

zanetworker commented 4 years ago

the doc is for the final PR, the discussion about what should be in the Doc or extra points should be tracked here. Similar to Kubernetes.

That said I don't have any pereference and I saw that things are not moving forward so I propsed the docs for faster formulation of the document itself (similar to proposals and Keps in Kubernetes before they reach final form)

zanetworker commented 4 years ago

regarding your list, no objections from my side :) But thats only regarding the bot right? not the review guide itself?

vlerenc commented 4 years ago

Moved to https://github.wdf.sap.corp/kubernetes/kube-backlog/issues/36.

Kristian-ZH commented 2 years ago

/invite @n-boshnakov

gardener-robot commented 2 years ago

@Kristian-ZH Command /invite is not allowed for issue but only for pullrequest.

n-boshnakov commented 2 years ago

Due to the issue being moved to a different repo, I will be closing it. Any comments regarding this issue should be made in the new repository.

gardener-robot commented 2 years ago

@n-boshnakov You have mentioned internal references in the public. Please check.