Creating guidelines for Reviewer Discretion for merging PRs that do not conform accurately to the Style Guide
This is a Feature Request
What would you like to be added
A guide/handbook that PR reviewers can use to determine how much discreet they can be to allow merging of important PRs (like the brand new docs for a new release) having lax style rules without compromising accuracy .
Why is this needed
In the previous bi-weekly SIG Docs Zoom Meeting, Tim pointed that SIG Docs wants new documentation to follow the style guide very accurately. However it was observed that the previous release (v1.27) of Kubernetes, documentation doesn't follow the style guide as accurately as desired.
A solution to this could be the merging PRs with lax styling guide only after it is properly communicated that a follow up issue/PR should be raised for the same. Such follow up issues can be "good first issues" that new contributors can work on.
Since the discretion can vary from person to person, there is a need to establish clear guidelines on how much laxity can be allowed for style guide adherence without compromising on the accuracy of the docs. A guide/handbook will document the type of flexibility that can be allowed to merge such PRs ensuring uniformity and the steps to be taken later to ensure that a follow up PR is raised.
Comments
While making such guidelines, we should ensure one laxity like machine translations should not be missed. See for more information.
The document you'd like to create, would it look a bit like https://kubernetes.io/docs/contribute/review/for-approvers/?
(essentially: we already have something)
Improvements and suggestions are welcome.
There is also https://kubernetes.io/docs/contribute/review/reviewing-prs/#language-and-grammar
I personally think that the document to be create should look more like https://kubernetes.io/docs/contribute/review/reviewing-prs/#language-and-grammar. Thoughts, what do other contributors think?
(essentially: we already have something) Improvements and suggestions are welcome.
I am feel like if there are following things in the PR, the PR should be allowed to merge/slide ( provided a follow up issue/PR is raised soon and the PR actually improves the docs and is technically accurate ) :
- A handful of spelling mistakes (max 4-5). These spellings mistakes should not be of technical terms like "Kubernetes", and other "API objects.
- If the formatting (like indentation, bulleting, line wrapping) of the docs does not hamper the readers ability to read and understand the documentation.
- Some inconsistencies (not more than 4-5 in number) in capitalization or punctuation, that do not significantly impact technical accuracy and understandability of the documentation.
It would be great to hear from other reviewers and contributors their views on this issue. Thanks
The typos, mistakes, indentation, bulleting, line wrapping, inconsistencies are all things we as reviewers should take care of. What does 'lax style rules' buy us if we decide to lower the bar for PR merges?
It is probably okay if 1) a PR is very urgent to be merged before a certain date; 2) there are known issues in the PR as is, but the contributor has promised a follow-up to fix them; 3) the PR itself is already very large to incorporate more changes. There are also cases where a contributor simply doesn't want to accept feedbacks from others and these cases are not rare.
Let't think about these again:
- A PR is urgent ... okay, why the urgency? A release-notes can be urgent because it is supposed to be out of the door tomorrow. We can fix the known issues later. Any other scenarios we can think of?
- The contributor promised a follow-up ... well, most of the time, I didn't see that happening. Many of our contributors are multi-tasked. They forget to come back to a PR that is already merged.
- A PR is too large to be further revised/rebased, ... Emm ... why do we want such a PR anyway? Maybe we should instead close the large PR and split it into several smaller ones for ease of review.
A handful of spelling mistakes (max 4-5). These spellings mistakes should not be of technical terms like "Kubernetes", and other "API objects".
I don't mind if people misspell Kuberentes :wink: - provided that it's part of a PR that, even with the mistake, adds overall value. We, approvers or reviewers, can file a good-first-issue once that merges. It's more work but on the other hand:
- we often have zero good first issues, which is too few
- the lemma here is that the other changes are valuable to merge
If the formatting (like indentation, bulleting, line wrapping) of the docs does not hamper the readers ability to read and understand the documentation.
OK, sure. Only when it's worth filing a follow up issue, or the snags are small.
Some inconsistencies (not more than 4-5 in number) in capitalization or punctuation, that do not significantly impact technical accuracy and understandability of the documentation.
That seems fair. Here's a test: if someone fixed all but one of the issues, would we remind them about the trivial edit policy? If so, the PR is probably OK to merge with those small issues outstanding!
/triage accepted
We should improve guidance in this area.
This issue has not been updated in over 1 year, and should be re-triaged.
You can:
- Confirm that this issue is still relevant with
/triage accepted(org members only) - Close this issue with
/close
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/
/remove-triage accepted
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle rotten - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Reopen this issue with
/reopen - Mark this issue as fresh with
/remove-lifecycle rotten - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
In response to this:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied- After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied- After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closedYou can:
- Reopen this issue with
/reopen- Mark this issue as fresh with
/remove-lifecycle rotten- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
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.