Re: [Ksummit-discuss] bug-introducing patches

From: James Bottomley
Date: Thu May 03 2018 - 14:10:29 EST


On Thu, 2018-05-03 at 15:43 +0000, Sasha Levin via Ksummit-discuss
wrote:
> On Thu, May 03, 2018 at 08:27:48AM -0700, James Bottomley wrote:
[...]
> > It's also a sad fact that a lot of things which look like obvious
> > fixes actually turn out not to be so with later testing.ÂÂThis is
> > why the user visibility test is paramount.ÂÂIf a bug fix has no
> > real user visible effects, it's often better to defer it no matter
> > how obvious it looks, which is why the static code checkers often
> > get short shrift before a merge window.
> >
> > A script measuring user visibility would be nice, but looks a bit
> > complex ...
>
> It is, but I think it's worthwhile. Would something that'll show you
> things like:
>
> Â- How long a patch has been in -next?
> Â- How many replies/reviews/comments it got on a mailing list?
> Â- Did the 0day bot test it?
> Â- Did syzbot fuzz it? for how long?
> Â- If it references a bugzilla of some sort, how many
> ÂÂÂcomments/reviews/etc it got there?
> Â- Is it -stable material, or does it fix a regression in the current
> ÂÂÂmerge window?
> Â- If subsystem has custom testing rig, results from those tests
>
> be a step in the right way? is it something you'd use to make
> decisions on whether you'd take a patch in?

Actually, no, these are all not what I'm talking about: They're all
measures of whether the commit triggers another bug. Which, I agree,
is the fear, so it would be good to have them of course, but they all
take time the maintainer doesn't have when making a quick decision
about a late -rc bug fix.

At late -rc the decision is the current user visible problem set
against the risk of -rc destabilization. You're measuring the latter
in the above, but in the rule of thumb decision making we just assume
that's constant. What we're looking to measure is the user visible
effect of not fixing the problem.

So, for instance, a boot failure on a widely used SCSI board is a no
brainer for fix now and tackle consequences later. An obvious fix to
an error leg of a little used board is the other way: no-one is really
affected, so we don't take the risk. The judgment call is the spectrum
in between these two extremes.

James