public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: josh@joshtriplett.org, Joe Perches <joe@perches.com>,
	paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org,
	mingo@kernel.org, laijs@cn.fujitsu.com, dipankar@in.ibm.com,
	akpm@linux-foundation.org, mathieu.desnoyers@efficios.com,
	niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org,
	dhowells@redhat.com, edumazet@google.com, dvhart@linux.intel.com,
	fweisbec@gmail.com, oleg@redhat.com, sbw@mit.edu
Subject: Re: [PATCH RFC 1/2] MAINTAINERS: Add "R:" designated-reviewers tag
Date: Thu, 5 Jun 2014 14:01:07 +1000	[thread overview]
Message-ID: <20140605040107.GA4453@dastard> (raw)
In-Reply-To: <20140603134347.6e39f946@gandalf.local.home>

On Tue, Jun 03, 2014 at 01:43:47PM -0400, Steven Rostedt wrote:
> On Tue, 3 Jun 2014 17:16:54 +1000
> Dave Chinner <david@fromorbit.com> wrote:
> 
> 
> > If you take it to an extremes. Think about what you can test in 15
> > minutes. Or for larger patchsets, how long it takes you to read the
> > patchset?
> 
> Yeah, what about that?

That testing a patch for obvious, common regressions takes no longer
than it does to read and review the logic. 

> > IMO, every reviewer has their own developement environment and they
> > should be at least testing that the change they are reviewing
> > doesn't cause problems in that environment, just like they do for
> > their own code before they post it for review.
> 
> Let me ask you this. In the scientific community, when someone posts a
> research project and asks their peers to review their work. Are all
> those reviewers required to test out that paper?
> Or are they to review it, check the math, look for cases that are
> missed, see common errors, and other checks? I'm sure some
> reviewers may do various tests, but others will just check the
> logic. I'm having a very hard time seeing where Reviewed-by means
> tested-by. I see those as two completely different tags.

We are not conducting a scientific research experiment here. We are
conduting a very large software *engineering* project here.

So perhaps we should be using robust software engineering processes
rather than academic peer review as the model for our code review
process?

> > > I find the reviewers of my code to be the worse testers.
> > > That's because those that I ask to review my code know what
> > > it's suppose to do, and those are the people that are not
> > > going to stumble over bugs. It's the people that have no idea
> > > how your code works that will trigger the most bugs in testing
> > > it. My best testers would be my worse reviewers.
> > 
> > "Reviewers are the worst testers".
> > 
> > Yet you accept the code they write as sufficiently well tested
> > for merging? :/
> 
> Heh, that's why I have a full test suite. Yes, I run my tests on
> every single patch (to make sure it's fully bisectable, this is
> why I wrote ktest.pl).
> 
> And yes, I find bugs and then send the patches back to be fixed. I
> never blindly accept anyone's patches and just merge it.

IOWs, part of your patch acceptance requirement is that patches are
fully bisectable and mostly pass your own tests. Isn't that exactly
what I've been saying Reviewed-by is supposed to mean?

Anyway, let's not split hairs over the testing levels anymore, we
can agree to disagree there. Why? Because that disagreement is the
most important point here: reviewed-by means different things to
different people, and that's a big problem from a software
engineering process point of view.

> > > patches, but since I don't have an XFS filesystem, I doubt
> > > that would be much use for you.
> > 
> > I don't want you to review XFS code - you have no domain
> > specific knowledge nor a test environment for XFS changes. IOWs,
> > you meet none of the requirements to give a "reviewed-by" for an
> > XFS change, and so to say you reviewed a change makes a mockery
> > of the expectations outlines in the SubmittingPatches
> > guidelines.
> 
> Actually, I would be able to review tracing changes in XFS. I've
> given tags like "Revieved-by: Steven Rostedt <rostedt@goodmis.org>
> # for the tracing part". before.

But in that case you are reviewing tracing code - not XFS code -
which is within your field of expertise. However, I wouldn't expect
your review to tell me that the tracepoints are accessing some
internal XFS state unsafely or not providing the information that
the patch submitter expects to provide. That side of things still
needs XFS expertise to determine....

> > Reviewed-by only has value when it is backed by process and
> > domain specific knowledge. If the person giving that tag doesn't
> > have either of these, then it's worthless and they need to be
> > taught what the correct thing to do is. Most people (even
> > projects) don't learn proper software engineering processes
> > until after they have been at the pointy end of a pile of crap
> > at least once. :/
> 
> This last paragraph I totally agree with. There's a few people
> that I trust very much so for a review. I don't expect them to
> test my code, but they are usually good enough to see something
> that may break under certain conditions. I don't add any review-by
> tags from anyone I don't already have a working relationship with
> and trust their judgment.

Again, you're demonstrating exactly the problem I see: Reviewed-by
has no meaning unless the maintainer trusts the developer and knows
they have the necessary processes in place to perform a reliable
review.

> What I'm saying is that to most, Reviewed-by means just that. The
> patch was reviewed. I think the person adding their reviewed-by
> tag is placing their reputation on the line. I know I am every
> time I add it.  That's why I give a lot more "Acked-by" than
> "Reviewed-by". Those acks are me saying "I skimmed the patch, and
> there's nothing in there that bothers me". I does not mean that I
> looked over every change in detail.

That's exactly how I use the two tags as well. If I'm not going to
(or can't) fully commit to a review, Acked-by is what I use. But you
or I are not the problem here....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  parent reply	other threads:[~2014-06-05  4:01 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-02 17:00 [PATCH RFC 1/2] MAINTAINERS: Add "R:" designated-reviewers tag Paul E. McKenney
2014-06-02 17:00 ` [PATCH RFC 2/2] rcu: Add Josh Triplett as designated reviewer Paul E. McKenney
2014-06-02 20:35   ` Andrew Morton
2014-06-02 20:36     ` Joe Perches
2014-06-02 20:38       ` Randy Dunlap
2014-06-03  0:02         ` josh
2014-06-03  1:07           ` Randy Dunlap
2014-06-03  1:51             ` Josh Triplett
2014-06-03  3:11               ` Joe Perches
2014-06-03  5:10                 ` Josh Triplett
2014-06-03  5:21                   ` Joe Perches
2014-06-03 17:21               ` Randy Dunlap
2014-06-02 17:22 ` [PATCH RFC 1/2] MAINTAINERS: Add "R:" designated-reviewers tag Joe Perches
2014-06-02 17:29   ` Steven Rostedt
2014-06-02 17:34     ` Joe Perches
2014-06-02 17:48   ` josh
2014-06-02 17:59     ` Joe Perches
2014-06-02 18:12       ` Josh Boyer
2014-06-02 18:15         ` Joe Perches
2014-06-02 18:16       ` Paul E. McKenney
2014-06-02 18:44         ` Joe Perches
2014-06-02 18:50           ` Steven Rostedt
2014-06-02 18:55             ` josh
2014-06-02 19:05               ` Joe Perches
2014-06-02 19:09                 ` josh
2014-06-02 19:17                   ` Joe Perches
2014-06-02 23:19                     ` Dave Chinner
2014-06-02 23:24                       ` Andrew Morton
2014-06-03  0:35                         ` Steven Rostedt
2014-06-02 23:59                       ` josh
2014-06-03  0:12                         ` Joe Perches
2014-06-03 23:48                           ` Ken Moffat
2014-06-04  0:03                             ` Steven Rostedt
2014-06-04  0:33                             ` Joe Perches
2014-06-03  1:11                         ` Dave Chinner
2014-06-03  1:30                           ` Steven Rostedt
2014-06-03  7:16                             ` Dave Chinner
2014-06-03 13:24                               ` Mathieu Desnoyers
2014-06-03 15:54                                 ` Paul E. McKenney
2014-06-03 17:43                               ` Steven Rostedt
2014-06-03 18:05                                 ` Randy Dunlap
2014-06-03 20:52                                 ` Theodore Ts'o
2014-06-03 21:46                                   ` Steven Rostedt
2014-06-03 22:08                                     ` josh
2014-06-05  4:01                                 ` Dave Chinner [this message]
2014-06-05 21:14                                   ` Frank Rowand
2014-06-02 19:26                 ` Paul E. McKenney
2014-06-02 20:41                   ` Dipankar Sarma
2014-06-02 19:07             ` Paul E. McKenney
2014-06-02 18:56         ` josh
2014-06-02 19:08           ` Paul E. McKenney
2014-06-02 19:11             ` josh
2014-06-02 19:27               ` Paul E. McKenney
2014-06-02 19:36                 ` Joe Perches
2014-06-02 19:40                   ` Randy Dunlap
2014-06-02 20:29                     ` josh
2014-06-02 19:50                   ` Paul E. McKenney
2014-06-02 19:55                     ` Joe Perches
2014-06-02 20:07                       ` Paul E. McKenney
2014-06-02 20:25                 ` Mathieu Desnoyers
2014-06-03 15:37                   ` Paul E. McKenney
2014-06-03 16:16                     ` Steven Rostedt
2014-06-03 16:25                       ` Paul E. McKenney
2014-06-04  1:35                 ` Lai Jiangshan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140605040107.GA4453@dastard \
    --to=david@fromorbit.com \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=dipankar@in.ibm.com \
    --cc=dvhart@linux.intel.com \
    --cc=edumazet@google.com \
    --cc=fweisbec@gmail.com \
    --cc=joe@perches.com \
    --cc=josh@joshtriplett.org \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mingo@kernel.org \
    --cc=niv@us.ibm.com \
    --cc=oleg@redhat.com \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=sbw@mit.edu \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox