mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Theodore Tso <tytso@mit.edu>
Cc: Ingo Molnar <mingo@elte.hu>, Steven Rostedt <rostedt@goodmis.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Nicolas Pitre <nico@fluxnic.net>,
	"Luck, Tony" <tony.luck@intel.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	"Luis R. Rodriguez" <mcgrof@gmail.com>,
	Jeff Garzik <jeff@garzik.org>,
	Robert Richter <robert.richter@amd.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Jean Delvare <khali@linux-fr.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Sam Ravnborg <sam@ravnborg.org>
Subject: Re: [RFC] to rebase or not to rebase on linux-next
Date: Sat, 24 Oct 2009 14:20:06 +0200	[thread overview]
Message-ID: <4AE2F0F6.30909@s5r6.in-berlin.de> (raw)
In-Reply-To: <20091024080326.GA7461@mit.edu>

Theodore Tso wrote:
> I think we need to be a bit careful in this discussion.  There are two
> things that cause a particular git tree to be one which can't be used
> as a the basis for subtrees.  One is "rebasing", where a series of
> commits is dropped onto a new version, or base, hence "rebasing".  The
> other is where one or more commits are *modified* --- perhaps to add
> ack-ed by, or tested-by comment lines, or to improve comments, or to
> fix outright bugs in the the patch series.  Perhaps it's better to
> call this "rewinding", since in most cases this doesn't actually cause
> a change in the "base" of the patch series.

That's helpful terminology.

> The reason why it's important to make this distinction is that some of
> the arguments about why constantly changing the base of a patch series
> don't apply when we are just fixing up patches in the patch series or
> git tree.
> 
> So given that, why do I think "rewinding" has a place as a development
> methodology for patch sources that feed into linux-next.

Though per definition of what is expected to be submitted into
linux-next, both rebasing and rewinding should occur rather rarely.

Instead of a process rule that for-next branches should not be rebased/
rewound, I would suggest that
    If a for-next branch is rarely rewound, let alone rebased, it is an
    indicator that development and maintenance of a tree are going well.
    And vice versa.
stands as a /rule of thumb/.  Actually, that's all very obvious because
a for-next branch is pretty much a /release/ branch.

> 1) Linux-next is by definition a constantly rewinding branch.  It is
> thrown away and recreated every day, based on the tip of Linus's

[It is not entirely thrown away, see
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=tags. But
it is indeed recreated daily, i.e. next-N does not include the end
result of next-N-1.]

> mainline tree, and so the date of the merge commits means that you can
> never base anything on top of linux-next.  This has always been the
> case, and so trying to impose a straightjacket on all of the sources
> of linux-next doesn't actually buy anything as far as the properties
> of linux-next.
> 
> 2) There are many legitimate reasons for "rewinding".  In addition to
> being able to add credit for tested-by and acked-by lines, sometimes

Per linux-next submission rules, all /essential/ credits are already
present.  But I agree that it is worth rewinding a for-next branch in
order to add (non-essential) credits later.  linux-next's exact history
is of interest for days or months at most, while mainline's history is
of interest for many years to come.

> patches are subtle.  More than once, patches have been sitting in the
> ext4 tree that have passed the XFSQA test, and thus have been "unit
> tested", but they still have bugs; in some cases, subtle bugs.  In
> some cases, bugs that cause data corruption.  In the case where the
> patches have hit linux-next, but the merge window hasn't opened yet, I
> prefer to fix the patch by mutating it, and rewinding the ext4 tree,
> instead of adding a fix later.  It makes it easier to cherry pick
> patches to the stable tree later, and it keeps the ext4 tree clean,
> and it has no downside in terms of linux-next --- see (1) above.
> 
> 3) I don't have the same access to vast amounts of hardware and
> platforms that Ingo does.  As a result, while I make a practice of
> testing every single patch against the XFS test suite (yes, it's slow
> and painful, but I think it's worth it; I'm very paranoid about patch
> quality), every once in a while the patch has warnings or doesn't
> compile on some platform for which I don't have build/test machines.
> Today, this gets tested in linux-next, and when it does, if it the
> merge window hasn't opened yet, I will fix it the patch instead of
> creating an extra patch.  This helps git bisectability for platforms I
> don't have access to.

We should rely less on linux-next as a cross-compile farm; that's not
its purpose.  We can cross-compile ourselves.  I think the documentation
and toolchain can be found somewhere.  In fact, we are supposed to do so
per item 3 in Documentation/SubmitChecklist.  This text was added about
two years before linux-next opened for business.

That said, I admit that I don't test more than x86-64 myself (x86-32
too, but decreasingly frequently now).  But that's mostly because I only
deal with code where the danger of architecture-dependent build breakage
is very low.  (drivers/ieee1394 is frozen, and drivers/firewire is
small, modern, sparse-clean, and uses clean interfaces to the rest of
the kernel.  There is some more danger of /runtime/ regression of these
drivers on other architectures, but those would only be exposed in
mainline or distributions, not in linux-next already.)  I guess on the
unlikely day that I get notice of a linux-next build bug due to my tree
on one of those platforms, I will reorder my never ending to-do list and
set up local cross compilation.
-- 
Stefan Richter
-=====-==--= =-=- ==---
http://arcgraph.de/sr/

  reply	other threads:[~2009-10-24 12:21 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4ADD0793.3000707@kernel.org>
     [not found] ` <20091020020449.GF24370@core.coreip.homeip.net>
     [not found]   ` <20091020034829.GA12833@elte.hu>
     [not found]     ` <20091020140750.GH11972@erda.amd.com>
     [not found]       ` <alpine.LFD.2.00.0910210654480.5125@eeepc.linux-foundation.org>
     [not found]         ` <20091022122042.e535d43c.sfr@canb.auug.org.au>
     [not found]           ` <20091023112732.GB5886@elte.hu>
     [not found]             ` <4AE19A74.1090709@garzik.org>
     [not found]               ` <20091023123555.GA25366@elte.hu>
     [not found]                 ` <57C9024A16AD2D4C97DC78E552063EA3E33D0174@orsmsx505.amr.corp.intel.com>
     [not found]                   ` <20091023134115.GD27097@elte.hu>
     [not found]                     ` <alpine.LFD.2.00.0910231424440.21460@xanadu.home>
     [not found]                       ` <20091023191631.GA1879@elte.hu>
2009-10-23 19:35                         ` [RFC] to rebase or not to rebase on liunx-next Steven Rostedt
2009-10-23 20:37                           ` [RFC] to rebase or not to rebase on linux-next Ingo Molnar
2009-10-23 20:54                           ` Ingo Molnar
2009-10-23 21:59                             ` Sam Ravnborg
2009-10-26 23:26                               ` Steven Rostedt
2009-10-26 23:30                                 ` David Miller
2009-10-26 23:51                                   ` Steven Rostedt
2009-10-27  0:15                                     ` David Miller
2009-10-27  0:30                                       ` Steven Rostedt
2009-10-27  1:34                                         ` David Miller
2009-10-27  3:02                                           ` Steven Rostedt
2009-10-27  4:56                                             ` Theodore Tso
2009-10-27  5:18                                             ` David Miller
2009-10-27  8:13                                               ` Ingo Molnar
2009-10-27  9:48                                       ` Catalin Marinas
2009-10-27  7:59                                 ` Ingo Molnar
2009-10-27 15:39                                   ` Steven Rostedt
2009-10-27 17:18                                     ` Nicolas Pitre
2009-10-28 15:15                                       ` Steven Rostedt
2009-10-28  6:40                                     ` Ingo Molnar
2009-10-24  8:03                             ` Theodore Tso
2009-10-24 12:20                               ` Stefan Richter [this message]
2009-10-24 19:43                                 ` Sam Ravnborg
2009-10-27 19:06                                 ` Linus Torvalds
2009-10-27 19:27                                   ` Steven Rostedt
2009-10-27 19:39                                     ` Valdis.Kletnieks
2009-10-27 19:43                                       ` Steven Rostedt
2009-10-27 19:42                                     ` Linus Torvalds
2009-10-26  4:53                               ` Luck, Tony
2009-10-26  5:21                                 ` Theodore Tso
2009-10-26 18:01                                   ` Stefan Richter
2009-10-27 18:07                                     ` Theodore Tso
2009-10-27 18:54                                       ` Stefan Richter
2009-10-28  7:26                                       ` Ingo Molnar
2009-10-24 12:51                           ` Stefan Richter
     [not found]                       ` <4AE21839.3000000@s5r6.in-berlin.de>
2009-10-23 21:03                         ` [kernel.org users] Please remember to run 'git gc' on your repositories Steven Rostedt

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=4AE2F0F6.30909@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jeff@garzik.org \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    --cc=mingo@elte.hu \
    --cc=nico@fluxnic.net \
    --cc=robert.richter@amd.com \
    --cc=rostedt@goodmis.org \
    --cc=sam@ravnborg.org \
    --cc=sfr@canb.auug.org.au \
    --cc=tony.luck@intel.com \
    --cc=torvalds@linux-foundation.org \
    --cc=tytso@mit.edu \
    /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

Powered by JetHome