Skip to contentSkip to conversation

docs: netdev: encourage reviewers

RFC In review Jakub Kicinski 6 participants 11 messages Oct 6, 2023 – Oct 9, 2023

Subsystems (4)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

RFC 1/1 docs: netdev: encourage reviewers

Add a section to our maintainer doc encouraging reviewers to chime in on the mailing list.

The questions about "when is it okay to share feedback" keep coming up (most recently at netconf) and the answer is "pretty much always".

The contents are partially based on a doc we wrote earlier and shared with the vendors (for the "driver review rotation").

--
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]

Sending as RFC for early round of reviews before I CC docs@ and expose this to potentially less constructive feedback :)

---
 Documentation/process/maintainer-netdev.rst | 43 +++++++++++++++++++++
 1 file changed, 43 insertions(+)
Documentation/process/maintainer-netdev.rst +43 -0
index 09dcf6377c27..d5cbcfd44cf8 100644
@@ -441,6 +441,49 @@ in a way which would break what would normally be considered uAPI.
 new ``netdevsim`` features must be accompanied by selftests under
 ``tools/testing/selftests/``.
 
+Reviewer guidance
+-----------------
+
+Reviewing other people's patches on the list is highly encouraged,
+regardless of the level of expertise. Code reviews not only help
+the maintainers but also help reviewers themselves to learn and
+become part of the community.
+
+Reviewers can interact with the submissions by: asking questions
+about the code, sharing relevant experience, suggesting changes, etc.
+Asking questions is a particularly useful technique, for example rather
+than stating:
+
+``I think there can be a deadlock between A and B here.``
+
+it may be better to phrase the feedback as a question:
+
+``Could you explain what prevents deadlocks between A and B?``
+
+After all, patch submissions should be clear both in terms of the code and
+the commit message.
+
+Another technique useful in case of a disagreement is to ask for others
+to chime in. I.e. if a discussion reaches a stalemate after a few exchanges,
+calling for opinions of other reviewers or maintainers. Often those in
+agreement with a reviewer remain silent unless called upon.
+Opinion of multiple people carries exponentially more weight.
+
+There is no strict requirement to use specific tags like ``Reviewed-by``.
+In fact reviews in plain English are more informative and encouraged
+even when a tag is provided (e.g. "I looked at aspects A, B and C of this
+submission and it looks good to me.")
+Some form of a review message / reply is obviously necessary otherwise
+maintainers will not know that the reviewer has looked at the patch at all!
+
+It's safe to assume that the maintainers know the community and the level
+of expertise of the reviewers. The reviewers should not be concerned about
+their comments impeding or derailing the patch flow.
+
+Last but not least patch review may become a negative process, focused
+on pointing out problems. Please throw in a complement once in a while,
+particularly for newbies!
+
 Testimonials / feedback
 -----------------------
 
Signature · 1 line
2.41.0
#1 lore raw
Quoted 11 lines · Jakub Kicinski

Add a section to our maintainer doc encouraging reviewers to chime in on the mailing list.

The questions about "when is it okay to share feedback" keep coming up (most recently at netconf) and the answer is "pretty much always".

The contents are partially based on a doc we wrote earlier and shared with the vendors (for the "driver review rotation").

[...]

Documentation/process/maintainer-netdev.rst in a way which would break what would normally be considered uAPI. · line 485

Quoted 3 lines
Documentation/process/maintainer-netdev.rst +3 -0
+Last but not least patch review may become a negative process, focused
+on pointing out problems. Please throw in a complement once in a while,
+particularly for newbies!

sp: compliment.

Otherwise looks good.
-ed

#2 lore raw
In reply to Jakub Kicinski
Quoted 11 lines · Jakub Kicinski

Add a section to our maintainer doc encouraging reviewers to chime in on the mailing list.

The questions about "when is it okay to share feedback" keep coming up (most recently at netconf) and the answer is "pretty much always".

The contents are partially based on a doc we wrote earlier and shared with the vendors (for the "driver review rotation").

LGTM with the typo that Edward spotted, thanks!

Signature · 1 line
Florian
Reviewed-by on v1 1/1
#3 lore raw
In reply to Jakub Kicinski
Quoted 11 lines · Fri, Oct 06, 2023 at 06:30:07PM CEST, [email protected] wrote:

Add a section to our maintainer doc encouraging reviewers to chime in on the mailing list.

The questions about "when is it okay to share feedback" keep coming up (most recently at netconf) and the answer is "pretty much always".

The contents are partially based on a doc we wrote earlier and shared with the vendors (for the "driver review rotation").

Looks awesome. Thanks for doing this!

#4 lore raw
In reply to Jakub Kicinski
Quoted 11 lines · Jakub Kicinski

Add a section to our maintainer doc encouraging reviewers to chime in on the mailing list.

The questions about "when is it okay to share feedback" keep coming up (most recently at netconf) and the answer is "pretty much always".

The contents are partially based on a doc we wrote earlier and shared with the vendors (for the "driver review rotation").

Quoted 8 lines

--
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]

Sending as RFC for early round of reviews before I CC docs@ and expose this to potentially less constructive feedback :)

We already have:

https://docs.kernel.org/process/7.AdvancedTopics.html#reviewing-patches

which has some of the same concepts. I don't think anything in the proposed new text is specific to netdev, unlike most of the rest of maintainer-netdev.rst which does reference netdev specific rules or concepts.

So i wounder if this even belongs in netdev? Do we actually want to extend the current text in "A guide to the Kernel Development Process", and maintainer-netdev.rst say something like:

Reviewing other people's patches on the list is highly encouraged, regardless of the level of expertise.

and cross reference to the text in section 7.2?

Andrew

author maintainer
#5 lore raw
Quoted 9 lines · On Fri, 6 Oct 2023 20:41:19 +0200 Andrew Lunn wrote:

We already have:

https://docs.kernel.org/process/7.AdvancedTopics.html#reviewing-patches

which has some of the same concepts. I don't think anything in the proposed new text is specific to netdev, unlike most of the rest of maintainer-netdev.rst which does reference netdev specific rules or concepts.

Quoted 8 lines

So i wounder if this even belongs in netdev? Do we actually want to extend the current text in "A guide to the Kernel Development Process", and maintainer-netdev.rst say something like:

Reviewing other people's patches on the list is highly encouraged, regardless of the level of expertise.

and cross reference to the text in section 7.2?

:) If I can't get it past you there's no chance I'll get it past docs@

Let me move some of the staff into general docs and add a reference. The questions which came up were about use of tags and how maintainers approach the reviews from less experienced devs, which I think is subsystem-specific?

author maintainer
#6 lore raw
Quoted 6 lines · On Fri, 6 Oct 2023 11:57:15 -0700 Jakub Kicinski wrote:

:) If I can't get it past you there's no chance I'll get it past docs@

Let me move some of the staff into general docs and add a reference. The questions which came up were about use of tags and how maintainers approach the reviews from less experienced devs, which I think is subsystem-specific?

So moved most of the paragraphs to the common docs, what I kept in netdev is this:

Reviewer guidance
-----------------

Reviewing other people's patches on the list is highly encouraged, regardless of the level of expertise. For general guidance and helpful tips please see :ref:development_advancedtopics_reviews.

It's safe to assume that netdev maintainers know the community and the level of expertise of the reviewers. The reviewers should not be concerned about their comments impeding or derailing the patch flow.

Less experienced reviewers should avoid commenting exclusively on more trivial / subjective matters like code formatting and process aspects (e.g. missing subject tags).

Sounds reasonable?

#7 lore raw
Quoted 15 lines

So moved most of the paragraphs to the common docs, what I kept in netdev is this:

Reviewer guidance
-----------------

Reviewing other people's patches on the list is highly encouraged, regardless of the level of expertise. For general guidance and helpful tips please see :ref:development_advancedtopics_reviews.

It's safe to assume that netdev maintainers know the community and the level of expertise of the reviewers. The reviewers should not be concerned about their comments impeding or derailing the patch flow.

Quoted 6 lines

Less experienced reviewers should avoid commenting exclusively on more trivial / subjective matters like code formatting and process aspects (e.g. missing subject tags).

Sounds reasonable?

Yes, that is reasonable. And i agree that i get the feeling some subsystems don't know their community members too well, enough to establish a good idea of trust or not.

Thanks
Andrew

#8 lore raw
In reply to Jakub Kicinski
Quoted 19 lines · Jakub Kicinski
Quoted 6 lines · On Fri, 6 Oct 2023 11:57:15 -0700 Jakub Kicinski wrote:

:) If I can't get it past you there's no chance I'll get it past docs@

Let me move some of the staff into general docs and add a reference. The questions which came up were about use of tags and how maintainers approach the reviews from less experienced devs, which I think is subsystem-specific?

So moved most of the paragraphs to the common docs, what I kept in netdev is this:

Reviewer guidance
-----------------

Reviewing other people's patches on the list is highly encouraged, regardless of the level of expertise. For general guidance and helpful tips please see :ref:development_advancedtopics_reviews.

Quoted 7 lines

It's safe to assume that netdev maintainers know the community and the level of expertise of the reviewers. The reviewers should not be concerned about their comments impeding or derailing the patch flow.

Less experienced reviewers should avoid commenting exclusively on more trivial / subjective matters like code formatting and process aspects (e.g. missing subject tags).

Would rephrase the last paragraph and propose:

Less experienced reviewers are highly encouraged to do more in-depth review of submissions and not focus exclusively on trivial / subject matters like code formatting, tags etc.

Signature · 1 line
Florian
#9 lore raw
In reply to Jakub Kicinski
Quoted 19 lines · Jakub Kicinski
Quoted 6 lines · On Fri, 6 Oct 2023 11:57:15 -0700 Jakub Kicinski wrote:

:) If I can't get it past you there's no chance I'll get it past docs@

Let me move some of the staff into general docs and add a reference. The questions which came up were about use of tags and how maintainers approach the reviews from less experienced devs, which I think is subsystem-specific?

So moved most of the paragraphs to the common docs, what I kept in netdev is this:

Reviewer guidance
-----------------

Reviewing other people's patches on the list is highly encouraged, regardless of the level of expertise. For general guidance and helpful tips please see :ref:development_advancedtopics_reviews.

Quoted 7 lines

It's safe to assume that netdev maintainers know the community and the level of expertise of the reviewers. The reviewers should not be concerned about their comments impeding or derailing the patch flow.

Less experienced reviewers should avoid commenting exclusively on more trivial / subjective matters like code formatting and process aspects (e.g. missing subject tags).

that should be taken for granted for experienced-but-new-to-community reviewer, but perhaps s/Less experienced/New/?

Quoted 3 lines

Sounds reasonable?

yes!

other thing, somewhat related:
I believe that I personally (new to community, ~new to Intel) would do "best" for community trying to focus most on our outgoing patches (so "pre-review" wrt. to netdev, but less traffic here).

anyway,
I feel encouraged here :)

author maintainer
#10 lore raw
Quoted 6 lines · On Mon, 9 Oct 2023 17:13:45 +0200 Przemek Kitszel wrote:
Quoted 3 lines

Less experienced reviewers should avoid commenting exclusively on more trivial / subjective matters like code formatting and process aspects (e.g. missing subject tags).

that should be taken for granted for experienced-but-new-to-community reviewer, but perhaps s/Less experienced/New/?

The set of Not new + Not experienced is not empty, right? We want people to be cautious about posting such comments. IOW what if people have been around for a while but aren't very well versed in reviewing on netdev?

Quoted 8 lines
Quoted 1 line

Sounds reasonable?

yes!

other thing, somewhat related:
I believe that I personally (new to community, ~new to Intel) would do "best" for community trying to focus most on our outgoing patches (so "pre-review" wrt. to netdev, but less traffic here).

Herm, yes, definitely. It's a separate topic, tho, because the folks at Intel who will read the FAQ are also those who understand the problems with the internal process. The problem is not new, to move the corporate processes we need metrics. I think.

Quoted 2 lines

anyway,
I feel encouraged here :)

Perfect :)