From: Jeff King <peff@peff.net>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: Felipe Contreras <felipe.contreras@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH v3 0/2] test: tests for the "double > from mailmap" bug
Date: Tue, 14 Feb 2012 16:14:02 -0500 [thread overview]
Message-ID: <20120214211402.GC23291@sigill.intra.peff.net> (raw)
In-Reply-To: <20120214203431.GB13210@burratino>
On Tue, Feb 14, 2012 at 02:34:31PM -0600, Jonathan Nieder wrote:
> Felipe Contreras wrote:
>
> > I sent both the fix and the tests. Another fix was applied, but we are still
> > missing the tests.
> >
> > These are good before, and after the fix.
>
> To summarize the previous discussion[1]: some people had comments, and
> you seem to have found value in exactly none of them. OK. CC-ing
> Peff, since he at least probably has looked over this code before.
The short answer is that both patches look OK to me.
Here's a longer digression that you may feel free to ignore.
When I investigated this problem, I looked only at the code (and I think
Junio's fix is the right one). However, having just looked at your two
patches without having previously looked at those tests, I found them
quite painless to review.
Having participated in the bug-hunt, I knew they were probably related
to testing that bug, but it was very unclear to me from the original
series why there were two patches, and not one. Or why, when we have
mailmap tests, they did not catch this bug. And that is _now_, with the
context of having just participated in the discussion; six months from
now I would have even less hope of understanding the context.
My general review process is (in this order):
1. Figure out why a change is needed. This should be explained in the
commit message. And no, just adding tests is not assumed to be
needed. Why did the old tests not cover this case? The answer can
be a simple "nobody bothered to write them", and that's OK. But
some description of the current state can help reviewers understand
the rationale (e.g., "we tested with shortlog, but not mailmap, and
certain code paths are only exposed through mailmap").
2. Figure out what the change should be doing. This should also be in
the commit message, though at a high level. In the case of tests,
obviously we're adding new tests. But are we properly covering all
of the new cases? Does the "what" match the "why" from (1)?
3. Look at the patch. Do the changes match what the commit message
claimed in (2)?
4. Look at the patch for style, implementation, etc. Is the code
quality good enough to be included?
The steps are dependent on each other, and I usually quit if I can't get
past one step. Sometimes I will look at the patch to try to figure out
(1) or (2), especially if the patch is trivial. But in my ideal world,
every patch lets me just walk through those steps.
I won't claim that these steps create error-free reviews. Based on those
steps, your patches look good to me, and it seems from Felipe's response
that there might be some inaccuracies in your description. But it at
least gives us a starting point for discussion.
-Peff
next prev parent reply other threads:[~2012-02-14 21:14 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-14 16:11 [PATCH 0/2] t: add blame -e tests for mailmap Felipe Contreras
2012-02-14 16:11 ` [PATCH 1/2] t: mailmap: add 'git blame -e' tests Felipe Contreras
2012-02-14 16:11 ` [PATCH 2/2] t: mailmap: add simple name translation test Felipe Contreras
2012-02-14 20:10 ` Junio C Hamano
2012-02-14 20:28 ` Felipe Contreras
2012-02-14 20:34 ` [PATCH v3 0/2] test: tests for the "double > from mailmap" bug Jonathan Nieder
2012-02-14 20:35 ` [PATCH 1/2] test: mailmap can change author name without changing email Jonathan Nieder
2012-02-14 21:35 ` Felipe Contreras
2012-02-14 21:50 ` Jonathan Nieder
2012-02-14 22:48 ` Felipe Contreras
2012-02-14 20:36 ` [PATCH 2/2] test: check that "git blame -e" uses mailmap correctly Jonathan Nieder
2012-02-14 21:41 ` Felipe Contreras
2012-02-14 21:59 ` Jonathan Nieder
2012-02-14 22:56 ` Felipe Contreras
2012-02-14 21:06 ` [PATCH v3 0/2] test: tests for the "double > from mailmap" bug Felipe Contreras
2012-02-14 21:15 ` Jonathan Nieder
2012-02-14 22:09 ` Felipe Contreras
2012-02-14 22:21 ` Jonathan Nieder
2012-02-14 22:36 ` Felipe Contreras
2012-02-14 21:14 ` Jeff King [this message]
2012-02-14 21:27 ` Jonathan Nieder
2012-02-14 21:52 ` Felipe Contreras
2012-02-14 22:07 ` Jeff King
2012-02-14 22:22 ` Felipe Contreras
2012-02-14 22:35 ` Jeff King
2012-02-14 22:18 ` Junio C Hamano
2012-02-14 22:34 ` Felipe Contreras
2012-02-14 22:49 ` Junio C Hamano
2012-02-14 23:14 ` Felipe Contreras
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=20120214211402.GC23291@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).