Skip to contentSkip to conversation

Fixes and CC to stable: proposal

DISCUSSION Hans Verkuil 2 participants 2 messages Jun 1 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi all,

I talked to Greg K-H about whether or not a CC to stable is needed for a patch with a Fixes:
tag, and yes, if you want to get it into stable, then such a CC is required.

Since we never did that he just went through those patches himself and picked which should go to stable, but obviously that's not how it should work.

There is no need for a CC to stable for fixes to patches that are not yet in the stable tree. There is also typically no need for a CC to stable for e.g. Documentation fixes, or other minor fixes.

In general in all other cases you do need to add a CC to stable.

So I propose that media CI just warns if there is no CC to stable for a patch with a Fixes tag and if that tag points to a patch in the stable tree. And that it is the responsibility of the media committers to check if the CC to stable is missing and add it.

Now, one problem is that it is very easy to fail to check the Media CI output if it passes.

I use a small check script (attached) that runs checkpatch and performs a bunch of sanity checks. I run it over the patches I am about to push to gitlab and go through the results. First are the checkpatch results, then at the end are the extra sanity checks. This avoids mixing the sanity checks with the checkpatch results, which would make it easy to miss warning like a missing CC to stable.

It's very efficient to be able to do these checks locally before you pass it to the CI.

You probably need to edit the script a bit since it checks if my Signed-off-by is present (I'm embarrassed to admit I've forgotten that once or twice...). Obviously, as committer that should change to your name.

Comments/questions?

Regards,

Hans

#1 lore raw

Hi Hans

Quoted 10 lines · Hans Verkuil

Hi all,

I talked to Greg K-H about whether or not a CC to stable is needed for a patch with a Fixes:
tag, and yes, if you want to get it into stable, then such a CC is required.

Since we never did that he just went through those patches himself and picked which should go to stable, but obviously that's not how it should work.

There is no need for a CC to stable for fixes to patches that are not yet in the stable tree.

Media-CI is already doing that. It checks if patches are o not in the the stable tree and block CI if needed:

https://gitlab.freedesktop.org/linux-media/media-ci/-/blob/main/test-media-patchstyle.sh?ref_type=heads#L118

Quoted 8 lines

There is also typically no need for a CC to stable for e.g. Documentation fixes, or other minor fixes.

In general in all other cases you do need to add a CC to stable.

So I propose that media CI just warns if there is no CC to stable for a patch with a Fixes tag and if that tag points to a patch in the stable tree. And that it is the responsibility of the media committers to check if the CC to stable is missing and add it.

By warn you mean making this check optional (like checkpatch) instead of mandatory (media-patchstyle)?

Quoted 20 lines

Now, one problem is that it is very easy to fail to check the Media CI output if it passes.

I use a small check script (attached) that runs checkpatch and performs a bunch of sanity checks. I run it over the patches I am about to push to gitlab and go through the results. First are the checkpatch results, then at the end are the extra sanity checks. This avoids mixing the sanity checks with the checkpatch results, which would make it easy to miss warning like a missing CC to stable.

It's very efficient to be able to do these checks locally before you pass it to the CI.

You probably need to edit the script a bit since it checks if my Signed-off-by is present (I'm embarrassed to admit I've forgotten that once or twice...). Obviously, as committer that should change to your name.

Comments/questions?

Regards,

Hans

Signature · 1 line
Ricardo Ribalda