some thoughts on gerrit

Sergio Durigan Junior sergiodj@redhat.com
Sun Oct 20 22:25:00 GMT 2019


On Sunday, October 20 2019, Tom Tromey wrote:

> After using gerrit for gdb for just this past week, I have mixed
> feelings, which I thought I'd share.

Thanks for your email, Tom.

> The upside is pretty good -- basically what I was hoping for when we
> discussed this topic at Cauldron.
>
> The major benefits is that it's easy to see the status of patches.
>
> A benefit I didn't predict is that it's a bit simpler to submit patches.
> In particular, my personal email host doesn't like it if I send log
> series, so I have to remember to throttle when using send-email -- but
> with gerrit that's a non-issue, because it is just a push.

I haven't submitted any real patches yet, but for me this problem
doesn't apply, so I can't comment on it.  My workflow is likely to stay
the same: git-new-workdir, hack, submit (either via gerrit or git
send-email), push.

> So far the major downsides are related to patch series.
>
> [[[
> First, as an aside, my most recent patch series does show up here:
>
> https://sourceware.org/ml/gdb-patches/2019-10/authors.html
>
> (Search for "RAII class" under the name "Tom Tromey (Code Review)")
>
> ...but it somehow doesn't show up here:
>
> https://sourceware.org/ml/gdb-patches/2019-10/threads.html
> ]]]
>
>
> Anyway, with series we are missing two things that email had: namely,
> the cover letter, and threading.

I saw your patch series yesterday night, and I had the exact same
thought as you.  Cover letter and threading...

> The cover letter is often a good guide to what is going on in the
> series.  See for example:
>
> https://sourceware.org/ml/gdb-patches/2019-10/msg00590.html
>
> It seems a shame to lose this.

I absolutely agree.

> One counter-argument about the cover letter I thought of is that,
> because it doesn't end up in the history, maybe the lack of it will
> force us to make each commit message even clearer.  And, we should do
> that ... it's just that the roadmap is handy when reviewing.

I see your point, but I still think a cover letter serves a different
purpose than the commit messages.  A cover letter introduces the big
picture, and it is often a good place for reviewers to make generic
comments about the overall implementation.

> I wonder if there'd be a way to make "git review" prompt for a cover
> letter and attach it somewhere as a comment.

That could work, I guess, but it would still be a bit cumbersome.

I found this on gerrit's bugzilla:

  https://bugs.chromium.org/p/gerrit/issues/detail?id=924

It seems like there was a request, but it was closed very recently due
to inactivity.  Perhaps we could try pushing a bit more...

> Lack of threading means it is hard to see how patches relate when
> reading in email.  Maybe this can be fixed in gerrit?

I don't know, but I'm hoping that when I configure gerrit to accept
emails, this will be "magically" fixed.  The reason is because if gerrit
accepts emails, it is also the only "entity" to reply to its own
messages, which may be easier for gerrit to keep track of Message-Id's
and In-Reply-To.

I should have an update about this tomorrow, and we can see what
happens.

> I wonder a little if a sufficiently configured patchworks would be a
> better fit for gdb.
>
> The major problem with the current patchworks is that it doesn't
> automatically remove patches when they are checked in.  However, a newer
> version of patchworks can do this, especially if we augment it with a
> commit hook to add a UUID to the commit message (which we've already
> accepted for gerrit...).  It seems easy to set this up.
>
> Another drawback of patchworks is that reviews aren't done online -- you
> still use email.  This doesn't bother me, but maybe it's an important
> consideration for others.

The way I see it, I think the top patch reviewers should come together
and decide what works best for them.  Maybe it is patchwork, maybe it's
something else.  I know that I would not use patchwork that much, even
if it is configure to automatic remove patches when they're pushed, but
in this case I think patchwork's purpose would be only to serve as a
dashboard for whoever is reviewing the patches.

> I'm not saying we should definitely switch -- just that I've noticed
> some drawbacks to gerrit as compared to email, and I am wondering if we
> can somehow preserve more of the good things.

Sure thing.  I'd like to see if the threading problem gets fixed when
gerrit starts accepting emails, at least.  Other than that, I personally
don't have a preference, and I would not feel bad if the community
decides to drop gerrit.

Cheers,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/



More information about the Gdb-patches mailing list