Git commit process question.
Hello,
I have noticed a large number of git commits with no header information being accepted.
Are we still following:
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
regards,
Armin
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Cheers,
Richard
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.
2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
along with this section.
14) The canonical patch format
This section describes how the patch itself should be formatted. Note that, if you have your patches stored in a |git| repository, proper patch formatting can be had with |git format-patch|. The tools cannot create the necessary text, though, so read the instructions below anyway.
The canonical patch subject line is:
Subject: [PATCH 001/123] subsystem: summary phrase
The canonical patch message body contains the following:
* A |from| line specifying the patch author, followed by an empty line (only needed if the person sending the patch is not the author).
* The body of the explanation, line wrapped at 75 columns, which will be copied to the permanent changelog to describe this patch.
* An empty line.
* The |Signed-off-by:| lines, described above, which will also go in the changelog.
* A marker line containing simply |---|.
* Any additional comments not suitable for the changelog.
* The actual patch (|diff| output).
- Armin
Quoted 5 lines
Cheers,
Richard
Quoted 11 lines · On 4/1/19 6:20 PM, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
If you can convey the reason for the change in just the subject, that is acceptable.. but there is -always- supposed to be a signed-off-by line according to our guidelines.
So if you see this, I think we need to step back and figure out where and why it's happening and get it resolved in the future.
(Places I've seen in the past were one-off mistakes and clearly that -- so it wasn't anything that we needed to work on a correction.)
--Mark
Quoted 50 lines
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
along with this section.
14) The canonical patch format
This section describes how the patch itself should be formatted. Note that, if you have your patches stored in a |git| repository, proper patch formatting can be had with |git format-patch|. The tools cannot create the necessary text, though, so read the instructions below anyway.
The canonical patch subject line is:
Subject: [PATCH 001/123] subsystem: summary phrase
The canonical patch message body contains the following:
* A |from| line specifying the patch author, followed by an empty line (only needed if the person sending the patch is not the author).
* The body of the explanation, line wrapped at 75 columns, which will be copied to the permanent changelog to describe this patch.
* An empty line.
* The |Signed-off-by:| lines, described above, which will also go in the changelog.
* A marker line containing simply |---|.
* Any additional comments not suitable for the changelog.
* The actual patch (|diff| output).- Armin
Quoted 4 lines
Cheers,
Richard
Quoted 18 lines · Mark Hatle
Quoted 11 lines · On 4/1/19 6:20 PM, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
If you can convey the reason for the change in just the subject, that is acceptable.. but there is -always- supposed to be a signed-off-by line according to our guidelines.
Quoted 51 lines
So if you see this, I think we need to step back and figure out where and why it's happening and get it resolved in the future.
(Places I've seen in the past were one-off mistakes and clearly that -- so it wasn't anything that we needed to work on a correction.)
--Mark
Quoted 43 lines
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
along with this section.
14) The canonical patch format
This section describes how the patch itself should be formatted. Note that, if you have your patches stored in a |git| repository, proper patch formatting can be had with |git format-patch|. The tools cannot create the necessary text, though, so read the instructions below anyway.
The canonical patch subject line is:
Subject: [PATCH 001/123] subsystem: summary phrase
The canonical patch message body contains the following:
* A |from| line specifying the patch author, followed by an empty line (only needed if the person sending the patch is not the author).
* The body of the explanation, line wrapped at 75 columns, which will be copied to the permanent changelog to describe this patch.
* An empty line.
* The |Signed-off-by:| lines, described above, which will also go in the changelog.
* A marker line containing simply |---|.
* Any additional comments not suitable for the changelog.
* The actual patch (|diff| output).- Armin
There are existing git hooks that can be used to detect and fail to merge patches like this. For Linux, I have the following in .git/hooks/pre-commit
#!/bin/sh
exec git diff --cached | scripts/checkpatch.pl -
Perhaps something similar can be added to check for this.
Thanks,
Jon
Quoted 13 lines
Quoted 7 lines
Quoted 5 lines
Cheers,
Richard
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 69 lines · Jon Mason
Quoted 68 lines · Mark Hatle
Quoted 11 lines · On 4/1/19 6:20 PM, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
If you can convey the reason for the change in just the subject, that is acceptable.. but there is -always- supposed to be a signed-off-by line according to our guidelines.
So if you see this, I think we need to step back and figure out where and why it's happening and get it resolved in the future.
(Places I've seen in the past were one-off mistakes and clearly that -- so it wasn't anything that we needed to work on a correction.)
--Mark
Quoted 42 lines
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
along with this section.
14) The canonical patch format
This section describes how the patch itself should be formatted. Note that, if you have your patches stored in a |git| repository, proper patch formatting can be had with |git format-patch|. The tools cannot create the necessary text, though, so read the instructions below anyway.
The canonical patch subject line is:
Subject: [PATCH 001/123] subsystem: summary phrase
The canonical patch message body contains the following:
* A |from| line specifying the patch author, followed by an empty line (only needed if the person sending the patch is not the author).
* The body of the explanation, line wrapped at 75 columns, which will be copied to the permanent changelog to describe this patch.
* An empty line.
* The |Signed-off-by:| lines, described above, which will also go in the changelog.
* A marker line containing simply |---|.
* Any additional comments not suitable for the changelog.
* The actual patch (|diff| output).
Quoted 7 lines
Quoted 1 line
Quoted 1 line
- Armin
There are existing git hooks that can be used to detect and fail to merge patches like this. For Linux, I have the following in .git/hooks/pre-commit
#!/bin/sh
exec git diff --cached |scripts/checkpatch.pl-
FWIW, over in U-Boot land I do:./scripts/checkpatch.pl -q --git origin/master.. as part of checking things prior to pushing to master.
Signature · 1 line
Tom
Quoted 68 lines · Tom Rini
Quoted 67 lines · Jon Mason
Quoted 66 lines · Mark Hatle
Quoted 10 lines · On 4/1/19 6:20 PM, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
If you can convey the reason for the change in just the subject, that is acceptable.. but there is -always- supposed to be a signed-off-by line according to our guidelines.
So if you see this, I think we need to step back and figure out where and why it's happening and get it resolved in the future.
(Places I've seen in the past were one-off mistakes and clearly that -- so it wasn't anything that we needed to work on a correction.)
--Mark
Quoted 43 lines
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
along with this section.
14) The canonical patch format
This section describes how the patch itself should be formatted. Note that, if you have your patches stored in a |git| repository, proper patch formatting can be had with |git format-patch|. The tools cannot create the necessary text, though, so read the instructions below anyway.
The canonical patch subject line is:
Subject: [PATCH 001/123] subsystem: summary phrase
The canonical patch message body contains the following:
* A |from| line specifying the patch author, followed by an empty line (only needed if the person sending the patch is not the author).
* The body of the explanation, line wrapped at 75 columns, which will be copied to the permanent changelog to describe this patch.
* An empty line.
* The |Signed-off-by:| lines, described above, which will also go in the changelog.
* A marker line containing simply |---|.
* Any additional comments not suitable for the changelog.
* The actual patch (|diff| output).- Armin
Quoted 8 lines
Quoted 5 lines
There are existing git hooks that can be used to detect and fail to merge patches like this. For Linux, I have the following in .git/hooks/pre-commit
#!/bin/sh
exec git diff --cached |scripts/checkpatch.pl-FWIW, over in U-Boot land I do:
./scripts/checkpatch.pl-q --git origin/master.. as part of checking things prior to pushing to master.
Having hooks is fine but after the fact. It puts the burden back on the Layer maintainer to resolve. If we think more info is better, it needs to happen at time of change submittal.
- armin
Quoted 2 lines
Quoted 76 lines · On Tue, Apr 02, 2019 at 02:24:51PM -0700, akuster808 wrote:
Quoted 73 lines · Tom Rini
Quoted 72 lines · Jon Mason
Quoted 15 lines · Mark Hatle
Quoted 10 lines · On 4/1/19 6:20 PM, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
If you can convey the reason for the change in just the subject, that is acceptable.. but there is -always- supposed to be a signed-off-by line according to our guidelines.
Quoted 51 lines
So if you see this, I think we need to step back and figure out where and why it's happening and get it resolved in the future.
(Places I've seen in the past were one-off mistakes and clearly that -- so it wasn't anything that we needed to work on a correction.)
--Mark
Quoted 43 lines
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
along with this section.
14) The canonical patch format
This section describes how the patch itself should be formatted. Note that, if you have your patches stored in a |git| repository, proper patch formatting can be had with |git format-patch|. The tools cannot create the necessary text, though, so read the instructions below anyway.
The canonical patch subject line is:
Subject: [PATCH 001/123] subsystem: summary phrase
The canonical patch message body contains the following:
* A |from| line specifying the patch author, followed by an empty line (only needed if the person sending the patch is not the author).
* The body of the explanation, line wrapped at 75 columns, which will be copied to the permanent changelog to describe this patch.
* An empty line.
* The |Signed-off-by:| lines, described above, which will also go in the changelog.
* A marker line containing simply |---|.
* Any additional comments not suitable for the changelog.
* The actual patch (|diff| output).- Armin
There are existing git hooks that can be used to detect and fail to merge patches like this. For Linux, I have the following in .git/hooks/pre-commit
#!/bin/sh
exec git diff --cached |scripts/checkpatch.pl-
Quoted 6 lines
Quoted 3 lines
FWIW, over in U-Boot land I do:
./scripts/checkpatch.pl-q --git origin/master.. as part of checking things prior to pushing to master.Having hooks is fine but after the fact. It puts the burden back on the Layer maintainer to resolve. If we think more info is better, it needs to happen at time of change submittal.
Note that I'm not talking about a hook, I'm talking about what's part of my CI process. And when something pops up there is when I grab the patch in question and push back on the submitter.
Signature · 1 line
Tom
Quoted 81 lines · Tom Rini
Quoted 79 lines · On Tue, Apr 02, 2019 at 02:24:51PM -0700, akuster808 wrote:
Quoted 76 lines · Tom Rini
Quoted 66 lines · Jon Mason
Quoted 65 lines · Mark Hatle
Quoted 10 lines · On 4/1/19 6:20 PM, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
If you can convey the reason for the change in just the subject, that is acceptable.. but there is -always- supposed to be a signed-off-by line according to our guidelines.
So if you see this, I think we need to step back and figure out where and why it's happening and get it resolved in the future.
(Places I've seen in the past were one-off mistakes and clearly that -- so it wasn't anything that we needed to work on a correction.)
--Mark
Quoted 42 lines
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
along with this section.
14) The canonical patch format
This section describes how the patch itself should be formatted. Note that, if you have your patches stored in a |git| repository, proper patch formatting can be had with |git format-patch|. The tools cannot create the necessary text, though, so read the instructions below anyway.
The canonical patch subject line is:
Subject: [PATCH 001/123] subsystem: summary phrase
The canonical patch message body contains the following:
* A |from| line specifying the patch author, followed by an empty line (only needed if the person sending the patch is not the author).
* The body of the explanation, line wrapped at 75 columns, which will be copied to the permanent changelog to describe this patch.
* An empty line.
* The |Signed-off-by:| lines, described above, which will also go in the changelog.
* A marker line containing simply |---|.
* Any additional comments not suitable for the changelog.
* The actual patch (|diff| output).Quoted 6 lines
Quoted 1 line
Quoted 1 line
- Armin
There are existing git hooks that can be used to detect and fail to merge patches like this. For Linux, I have the following in .git/hooks/pre-commit
#!/bin/sh
exec git diff --cached |scripts/checkpatch.pl-FWIW, over in U-Boot land I do:
./scripts/checkpatch.pl-q --git origin/master.. as part of checking things prior to pushing to master.
Quoted 7 lines
Quoted 3 lines
Having hooks is fine but after the fact. It puts the burden back on the Layer maintainer to resolve. If we think more info is better, it needs to happen at time of change submittal.
Note that I'm not talking about a hook, I'm talking about what's part of my CI process. And when something pops up there is when I grab the patch in question and push back on the submitter.
Exactly! I do the same things for the Linux stuff I own. I'll do a git-am, then redir the output and publicly shame them. Public shaming is a vastly underrated method of behavior modification.
Thanks,
Jon
Quoted 3 lines
--
Tom
Quoted 18 lines · On Mon, Apr 01, 2019 at 04:20:41PM -0700, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.
Quoted 8 lines
2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
...
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 28 lines · Adrian Bunk
Quoted 18 lines · On Mon, Apr 01, 2019 at 04:20:41PM -0700, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.Quoted 8 lines
2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
...
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Signature · 1 line
Tom
Quoted 27 lines · Tom Rini
Quoted 26 lines · Adrian Bunk
Quoted 25 lines · On Mon, Apr 01, 2019 at 04:20:41PM -0700, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
...
Quoted 7 lines
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?..
Maybe, if someone want to enhance the AUH.
- armin
Quoted 1 line
Quoted 29 lines · Tom Rini
Quoted 28 lines · Adrian Bunk
Quoted 26 lines · On Mon, Apr 01, 2019 at 04:20:41PM -0700, akuster808 wrote:
Quoted 7 lines · Richard Purdie
Quoted 4 lines · On Mon, 2019-04-01 at 15:33 -0700, akuster808 wrote:
Hello,
I have noticed a large number of git commits with no header information being accepted.
Can you be more specific about what "no header information" means? You mean a shortlog and no full log message?
Commits with just a "subject" and signoff. No additional information
We tend to reference back to how the kernel does things.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
These two sections in particular.2) Describe your changes
Describe your problem. Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work. Convince the reviewer that there is a problem worth fixing and that it makes sense for them to read past the first paragraph.
...
Quoted 8 lines
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
That would be more trivial than useful.
And so far noone has stated any actual problem that would be solved by adding such a new requirement.
Quoted 1 line
Tom
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 8 lines · Tom Rini
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Apart from making the commit message longer what does this achieve? The commit already has a timestamp and author.
Ross
Just to make clear, the AUH workflow does require the maintainer to sign off and edit a commit message via 'git commit -s --reset-author --amend' for every commit, so AUH does not get in the way of useful commit messages.
Alex
Quoted 20 lines · Ross
Quoted 8 lines · Tom Rini
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Apart from making the commit message longer what does this achieve? The commit already has a timestamp and author.
Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Alexander Kanavin
Just to make clear, the AUH workflow does require the maintainer to sign off and edit a commit message via 'git commit -s --reset-author --amend' for every commit,
Not sure if this a requirement anymore. Most of my packages got updated by other folks this time around. Hard to say if the AUH played a part or are folks now using the devtool check.
Quoted 2 lines
so AUH does not get in the way of useful
commit messages.
There was talk of using the AUH to fast track updates that pass the process so in that case the message would be whatever the AUH provides
- armin
Quoted 22 lines
Alex
Quoted 18 lines · Ross
On Tue, 2 Apr 2019 at 20:46, Tom Rini <[email protected]> wrote:
prQuoted 7 lines
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Apart from making the commit message longer what does this achieve? The commit already has a timestamp and author.
Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 7 lines · Ross
Quoted 6 lines · Tom Rini
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
Quoted 5 lines
Quoted 2 lines
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Apart from making the commit message longer what does this achieve? The commit already has a timestamp and author.
It's an etiquette thing. Subject+Sign-off+Empty body is bad form. AUH updates are a form of "trivial update" that every project has. "Update $X from version $Y to $Z" is what a human would normally put. It's weird looking at git log of nothing but subject+signed-off-by. I'm not going to object further on this point, but I don't get it.
Signature · 1 line
Tom
Quoted 12 lines · Tom Rini
Quoted 10 lines · Ross
Quoted 8 lines · Tom Rini
Quoted 5 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading to the latest upstream version.
But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Quoted 8 lines
Quoted 2 lines
Apart from making the commit message longer what does this achieve? The commit already has a timestamp and author.
It's an etiquette thing. Subject+Sign-off+Empty body is bad form. AUH updates are a form of "trivial update" that every project has. "Update $X from version $Y to $Z" is what a human would normally put. It's weird looking at git log of nothing but subject+signed-off-by. I'm not going to object further on this point, but I don't get it.
if the content of subject is being repeated in body then I would prefer an empty body
redundant information in commits should be avoided since it can create impression that body does not have
useful information and skip reading it. We should strive to make commits concise and useful.
Quoted 24 lines · NZDT Khem Raj
Quoted 14 lines · Tom Rini
Quoted 12 lines · Ross
Quoted 10 lines · Tom Rini
Quoted 7 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading
to the latest upstream version.But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Quoted 8 lines
Quoted 2 lines
Apart from making the commit message longer what does this achieve? The commit already has a timestamp and author.
It's an etiquette thing. Subject+Sign-off+Empty body is bad form. AUH updates are a form of "trivial update" that every project has. "Update $X from version $Y to $Z" is what a human would normally put. It's weird looking at git log of nothing but subject+signed-off-by. I'm not going to object further on this point, but I don't get it.
Quoted 6 lines
if the content of subject is being repeated in body then I would prefer an empty body
redundant information in commits should be avoided since it can create impression that body does not have
useful information and skip reading it. We should strive to make commits concise and useful.
There is often (I won't say always, but often) something useful you can put in the commit message. If it's a recipe upgrade, you could put a pointer to the upstream changelog in it, for example. As the person doing the upgrade if your prior review of that changelog or other upstream release documentation indicated any backwards-compatibility issues or CVEs fixed then those really ought to be mentioned as well; if you're feeling especially generous you might mention highlights of any new functionality. (I have a proposal that might help us automate part of that which I've not yet fully fleshed out, hopefully one day soon I will get around to it.)
The issue of empty commit messages is something I've complained about in the past, and not just about recipe upgrades. If I - as someone who is relatively familiar with OE - have to actually read beyond the shortlog / commit message to understand the basics of why a change has been made, then it's likely that the commit message wasn't good enough. Unlike other issues, once a commit goes in the message is set in stone within the git history, so if you are working on a change, *please* take a minute or two to document it adequately in the commit message so that others looking back can understand it.
Thanks,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 43 lines · Paul Eggleton
Quoted 24 lines · NZDT Khem Raj
Quoted 14 lines · Tom Rini
Quoted 12 lines · Ross
Quoted 10 lines · Tom Rini
Quoted 7 lines
The kernel does not have "upgrade foo to the latest upstream version" commits.
With the Automatic Upgrade Helper this is a semi-automatic task, and most of the time there is no specific motivation other than upgrading
to the latest upstream version.But since that's just filling in a template the body can also be a template perhaps with useful AUH data (run at ... by ... ?) ?
Quoted 8 lines
Quoted 2 lines
Apart from making the commit message longer what does this achieve? The commit already has a timestamp and author.
It's an etiquette thing. Subject+Sign-off+Empty body is bad form. AUH updates are a form of "trivial update" that every project has. "Update $X from version $Y to $Z" is what a human would normally put. It's weird looking at git log of nothing but subject+signed-off-by. I'm not going to object further on this point, but I don't get it.
Quoted 6 lines
if the content of subject is being repeated in body then I would prefer an empty body
redundant information in commits should be avoided since it can create impression that body does not have
useful information and skip reading it. We should strive to make commits concise and useful.There is often (I won't say always, but often) something useful you can put in the commit message. If it's a recipe upgrade, you could put a pointer to the upstream changelog in it, for example. As the person doing the upgrade if your prior review of that changelog or other upstream release documentation indicated any backwards-compatibility issues or CVEs fixed then those really ought to be mentioned as well; if you're feeling especially generous you might mention highlights of any new functionality. (I have a proposal that might help us automate part of that which I've not yet fully fleshed out, hopefully one day soon I will get around to it.)
Quoted 9 lines
The issue of empty commit messages is something I've complained about in the past, and not just about recipe upgrades. If I - as someone who is relatively familiar with OE - have to actually read beyond the shortlog / commit message to understand the basics of why a change has been made, then it's likely that the commit message wasn't good enough. Unlike other issues, once a commit goes in the message is set in stone within the git history, so if you are working on a change, *please* take a minute or two to document it adequately in the commit message so that others looking back can understand it.
Definitely, and I agree that we should put relevant information in commits, usually
the information about side effects if any, links to changelog etc. are useful too
however, we should not enforce a behavior which could result in redundancy as explained
Quoted 9 lines
Thanks,
Paul--
Paul Eggleton
Intel Open Source Technology Centre
Quoted 6 lines · Khem Raj
Definitely, and I agree that we should put relevant information in commits, usually
the information about side effects if any, links to changelog etc. are useful too
however, we should not enforce a behavior which could result in redundancy as explained
To be honest, researching changelogs and summarizing them into commit messages is feasible if you maintain maybe three recipes. When you maintain thirty, it becomes a burden, and I am not going to take that burden. There's already enough work in getting the upgrade into working shape, work that largely goes unnoticed and unappreciated and does not require finding and reading upstream changelogs.
HOWEVER. I think we could start putting links to changelogs into the recipes themselves. If it's a webpage, we can use templating to substitute version numbers, if it's a file in the source tree, we can also come up with a format for that. Then it's a simple extension to e.g. devtool to show that changelog via less or a browser.
Alex