[DISCUSSION] Handling checkpatch flags and suppression#3141
[DISCUSSION] Handling checkpatch flags and suppression#3141
Conversation
Do not suppress WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? Signed-off-by: Jorge Marques <jorge.marques@analog.com>
I think "upstream" would be a good (and straight) tag. But as we spoke, we are going the "tag" way, we will also need a "downstream" tag for things not intended to go upstream right? So one of them needs to be present for ci to run right? |
|
I'm for enabling everything (within reason) by default. Make a set of exceptions for Anything requiring manual intervention will never get done, at least not correctly. |
That's what we have already and got bitten upstream for something that passed CI (likely not the case for oran but xlnx-main we need be somewhat permissive). Arguably, the submitter should have ran
So, we can either start enforcing both of the above or just one of them. IMO, they should be the default anyways for upstream contributions and from the PR approval to send the patches it would be just a matter of Now It might be that someone still preferes plain Thoughts? |
PR Description
The change in this PR highlight the location where the checkpatch rules are applied.
Currently, we have two sets:
A default one to remove some of the noise, it was introduced 8 years ago at 0a42a53#diff-4ed0918c4f3aa9fafdedd591f9e7d512a43c5440a6c9474cc0e541b659e75279R19
(I see that from this list was added, this list should be reviewed:
)
And a second in addition intended for huge, internal series, where checking each commit is unviable and the series as is is not intended upstream.
It was also understood that users would run
b4 prep --checkbefore submitting any series, per documentation:https://analogdevicesinc.github.io/linux/contribute.html#b4
But I reckon a big red attention warning with a few steps would be better.
A suggestion, is to use PR labels to tune the CI, for example, if
to upstreamis present, be more strict, if it is the case, I would like suggestions on the tags, and how they would affect the ci/cd.PR Type
PR Checklist