LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Can I use 'signed -off-by' to define maintainers' workload?
@ 2018-05-28 5:31 xin tan
2018-05-28 14:49 ` Theodore Y. Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: xin tan @ 2018-05-28 5:31 UTC (permalink / raw)
To: linux-kernel
Hi all,
I am a student from Peking University. I'm not sure if it's
appropriate to ask questions here. I have already tried other mailing
lists, but I got no reply. I am very sorry to bother all of you.
I am doing a research about the maintainers' workload in the Linux
kernel community. We all know that the commits submitted by the
developer will be reviewed layer by layer and eventually merged into
the main repository. Most commits have one or several signed-off-by
tags. The documentation from community about signed-off-by is
described as follows: The sign-off is a simple line at the end of the
explanation for the patch, which certifies that you wrote it or
otherwise have the right to pass it on as an open-source patch.
The documentation is very clear, which means that only two types of
people can sign their name: 1. The author 2. The related maintainer. I
want to define the maintainer's workload by this tag. There are
several questions that I would like to consult you:
1) Do all the maintainers in the path from the author of the commits
to the mainline repository sign their name?
2) If the answer is yes, do the workload of subsystem maintainer and
the upper maintainer are the same in the code review? In other words,
whether is it possible that the first maintainer who merge the commits
submitted by the developer to its own repository spend a lot effort on
review? The upper maintainer is based on the trust of the lower layer
maintainer, and simply merges it into his/her own repository as long
as there is no compiling problem and also sign their name.
3) If the answer is no, why do some maintainers sign their names, and
some do not? Is it because these maintainers trust the lower layer
very much and feel that it is not necessary to review it?
4) Is there any special situation that leads to signing-off-by not
identifying all the maintainers in the path of the commits develiry?
For example, the upper maintainer does not trust the lower layer
maintainers, and he/she will contribute a new commits by himself
instead of passing by, so it will not record the maintainer of the
lower layer.
Or because this commit contains modification to several files and each
file has a specific maintainer, only one maintainer merged it to his
repository and signed his name.
In short, I would like to know how signed-off-by is used in the actual process.
I would be grateful if you could reply to me. Thank you again!
Best regards,
Xin Tan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can I use 'signed -off-by' to define maintainers' workload?
2018-05-28 5:31 Can I use 'signed -off-by' to define maintainers' workload? xin tan
@ 2018-05-28 14:49 ` Theodore Y. Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Y. Ts'o @ 2018-05-28 14:49 UTC (permalink / raw)
To: xin tan; +Cc: linux-kernel
On Mon, May 28, 2018 at 01:31:56PM +0800, xin tan wrote:
>
> 1) Do all the maintainers in the path from the author of the commits
> to the mainline repository sign their name?
No.
> 3) If the answer is no, why do some maintainers sign their names, and
> some do not? Is it because these maintainers trust the lower layer
> very much and feel that it is not necessary to review it?
There are two ways a commit can enter git. One is by having the
maintainer apply the patch directly, usually the patch has been
discussed and revised via e-mail. Git the patch author and patch
committer separately. For example:
% git log --pretty=fuller -1 db41ae2c3e4716ceffe212a742d3c963e400fa1e
commit db41ae2c3e4716ceffe212a742d3c963e400fa1e
Author: Chandan Rajendra <chandan@linux.vnet.ibm.com>
AuthorDate: Wed May 23 08:52:07 2018 +0530
Commit: Theodore Ts'o <tytso@mit.edu>
CommitDate: Thu May 24 17:28:33 2018 -0400
This is an example of a commit in the e2fsprogs repository that was
sent to me via e-mail, and which was applied using "git am --signoff".
In this case, git automatically added the --signed-off message. I
then used git commit --amend to add the "Reviewed-by" message which
was sent in a separate message by Andreas:
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
There are other ways which a maintainer can apply a change directly;
this might involve letting the patchwork web application concatente
the Reviewed-by, thus avoiding the need to use git commit --amend. Or
a maintainer could use guilt to manage a patch stack, in which case
the Author Date and Commit Date will be the same. But all of these
methods have in common that the maintainer in question is directly
adding the patch to git, and thus has the opportunity to
modify/annotate the commit description before it enters a git
repository. (In some cases, where the patch author's native languge
is not English, I've completely rewritten the patch description to
make it more intelligible. Obviously this doesn't scale to the upper
layer maintainers who might be responsible for hundreds of patches
entering mainline per release.)
Commits can also enter the git tree belonging to maintainer (more
typically an upper-layer maintainer) by being merged (or pulled) into
the maintainer's git repository. When a commit is merged, it's not
changed. So in that case it's not possible for a signed-off to be
added. It's also the case that normally the maintainer will tend to
assume that commit was fully reviewed when it entered the git tree he
or she is pulling from.
Of course, that's not necessarily true. A contributor might have
their own git tree (this is the case with most github-originated pull
requests) and so the commit might not have been reviewed, and so the
responsible maintainer will have to carefully review the commits
before accepting the pull request and republishing the commits in
their tree.
> 4) Is there any special situation that leads to signing-off-by not
> identifying all the maintainers in the path of the commits develiry?
> For example, the upper maintainer does not trust the lower layer
> maintainers, and he/she will contribute a new commits by himself
> instead of passing by, so it will not record the maintainer of the
> lower layer.
This is not likely. However, sometimes commits are sent directly to
the upper-layer maintainer; you should not assume that patches are
always sent in a strictly hierarchical fashion. There are always
exceptions to this rule.
> Or because this commit contains modification to several files and each
> file has a specific maintainer, only one maintainer merged it to his
> repository and signed his name.
This is much more common; what will typically happen here is that
other maintainers will indicated they have reivewed the patch
modifying code that they maintain via an Acked-by: header:
Acked-by: Theodore Ts'o <tytso@mit.edu>
Regards,
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-28 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-28 5:31 Can I use 'signed -off-by' to define maintainers' workload? xin tan
2018-05-28 14:49 ` Theodore Y. Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).