2022-02-02 14:23:40

by Thorsten Leemhuis

[permalink] [raw]
Subject: Re: [PATCH v4 2/3] docs: regressions*rst: rules of thumb for handling regressions

On 02.02.22 00:21, Jonathan Corbet wrote:
> Thorsten Leemhuis <[email protected]> writes:
>
> One thing that caught my eye this time around...
>
>> + * Address regressions in stable, longterm, or proper mainline releases with
>> + more urgency than regressions in mainline pre-releases. That changes after
>> + the release of the fifth pre-release, aka "-rc5": mainline then becomes as
>> + important, to ensure all the improvements and fixes are ideally tested
>> + together for at least one week before Linus releases a new mainline version.
>
> Is that really what we want to suggest? I ask because (1) fixes for
> stable releases need to show up in mainline first anyway, and (2) Greg
> has often stated that the stable releases shouldn't be something that
> most maintainers need to worry about. So if the bug is in mainline,
> that has to get fixed first, and if it's something special to a stable
> release, well, then the stable folks should fix it :)

Hmmm. Well, afaics in the end many (most?) of the regressions that
happen in these series are present in mainline as well: either they
where introduced in an earlier devel cycle or came with a backport to
stable/longterm and thus are present in mainline as well (unless the
backport was incomplete or broken). So I'd say it's up to the regular
developers and not the stable team to fix many (most?) of them.

That being said: yes, I think you have a point. This could be fixed with
some small adjustments to the wording above, but...

>> + * Fix regressions within two or three days, if they are critical for some
>> + reason -- for example, if the issue is likely to affect many users of the
>> + kernel series in question on all or certain architectures. Note, this
>> + includes mainline, as issues like compile errors otherwise might prevent many
>> + testers or continuous integration systems from testing the series.

...the same aspect is relevant for other points like this one, too. And
there it's not as easily solved. So maybe this is better addressed with
a separate point early in the list:

```
* Developers are expected to handle regressions in all kernel series,
but are free to leave them to the stable team, if the regression
probably at no point in time occurred with mainline.
```

Regressions for example caused by incomplete or broken backports thus
would be something developers could leave to Greg (and I expect he won't
mind).

>> + * Aim to merge regression fixes into mainline within one week after the culprit
>> + was identified, if the regression was introduced in a stable/longterm release
>> + or the development cycle for the latest mainline release (say v5.14). If
>> + possible, try to address the issue even quicker, if the previous stable
>> + series (v5.13.y) will be abandoned soon or already was stamped "End-of-Life"
>> + (EOL) -- this usually happens about three to four weeks after a new mainline
>> + release.
>
> How much do we really think developers should worry about nearly-dead
> stable kernels? We're about to tell users they shouldn't be running the
> kernel anyway...

I'd expect we handle near EOL stable release round about normally until
they become EOL. But anyway, I had something different in mind when I
wrote the above and I get the feeling my text didn't express it well and
got you on the wrong track. :-/

My intention was: I want to prevent users getting stuck on EOLed stable
series (say 5.13.y) when a regression makes it hard or impossible for
the user to run the directly succeeding stable series (5.14.y).

I think this expresses it better:

```
* Aim to merge regression fixes into mainline within one week after the
culprit was identified, if the regression was introduced in either:

* the development cycle of the latest proper mainline release

* a recent release in a stable/longterm series

Try to address regressions in the latest stable series even quicker,
if the previous series will be abandoned soon or already was stamped
"End-of-Life" (EOL) -- this usually happens about three to four weeks
after a new mainline release.

Remember to mark the fix for backporting by using both the ``Fixes:``
tag and ``Cc: [email protected]``.
```

How does that sound?

Thx for the feedback, it's good that these things turned up.

Ciao, Thorsten