* Script to extract backports log
@ 2015-03-29 17:27 Alistair Israel
2015-03-29 18:44 ` Loic Dachary
0 siblings, 1 reply; 4+ messages in thread
From: Alistair Israel @ 2015-03-29 17:27 UTC (permalink / raw)
To: ceph-devel@vger.kernel.org
Hi, Loïc.
Well, got some 'quality' coding time in over the weekend and managed
to hack this out:
https://gist.github.com/aisrael/b2b78d9dfdd176a232b9
You'll need GitPython (pip install gitpython). I managed to get
hyperlinks to issues, to the commits themselves, and even snuck in the
names of the people who've signed off on the commit.
What I can't figure out is how to get the simple component or module
name. For example, from how to get from "common/buffer.cc" (#6003) to
"buffer".
Also, using a related issue and commit, how to combine two related
ones. For example, #6614 is related to #6003, and in the release notes
both are listed as a single item.
Finally, do you think I should exclude commits starting with "qa:" or
"test/...:"?
Cheers!
Alistair
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Script to extract backports log
2015-03-29 17:27 Script to extract backports log Alistair Israel
@ 2015-03-29 18:44 ` Loic Dachary
2015-04-26 16:22 ` Abhishek L
0 siblings, 1 reply; 4+ messages in thread
From: Loic Dachary @ 2015-03-29 18:44 UTC (permalink / raw)
To: Alistair Israel, ceph-devel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]
Hi Alistair,
On 29/03/2015 19:27, Alistair Israel wrote:
> Hi, Loïc.
>
> Well, got some 'quality' coding time in over the weekend and managed
> to hack this out:
> https://gist.github.com/aisrael/b2b78d9dfdd176a232b9
>
> You'll need GitPython (pip install gitpython). I managed to get
> hyperlinks to issues, to the commits themselves, and even snuck in the
> names of the people who've signed off on the commit.
It's going to be helpful to start with the release notes but it will need manual editing.
>
> What I can't figure out is how to get the simple component or module
> name. For example, from how to get from "common/buffer.cc" (#6003) to
> "buffer".
>
I don't think it can be done automatically.
> Also, using a related issue and commit, how to combine two related
> ones. For example, #6614 is related to #6003, and in the release notes
> both are listed as a single item.
One idea would be to group commits that are in the same branch together ? When a merge is found, git log xxx^1..xxx^2 will list the commits that belong to the branch that has been merged. All commits in this branch presumably relate to the same topic.
> Finally, do you think I should exclude commits starting with "qa:" or
> "test/...:"?
Yes, they are not relevant ;-)
I included your snippet in the HOWTO write the release notes at http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO_write_the_release_notes which is linked from http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO.
Cheers
--
Loïc Dachary, Artisan Logiciel Libre
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Script to extract backports log
2015-03-29 18:44 ` Loic Dachary
@ 2015-04-26 16:22 ` Abhishek L
2015-04-27 7:44 ` Loic Dachary
0 siblings, 1 reply; 4+ messages in thread
From: Abhishek L @ 2015-04-26 16:22 UTC (permalink / raw)
To: Loic Dachary; +Cc: Alistair Israel, ceph-devel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 2196 bytes --]
Hi
Loic Dachary writes:
> Hi Alistair,
>
> On 29/03/2015 19:27, Alistair Israel wrote:
>> Hi, Loïc.
>>
>> Well, got some 'quality' coding time in over the weekend and managed
>> to hack this out:
>> https://gist.github.com/aisrael/b2b78d9dfdd176a232b9
I managed to hack this a little to cross reference the issue id from
the merge commits and pulling the tracker urls using the github
apis. This was based on the assumption that for backports we follow a
certain discipline wrt to pull requests where the corresponding issue is
either mentioned as a part of commit message or as a comment on the pull
request
https://gist.github.com/theanalyst/a0932d863a8f4b0d1b98
It is still not perfect, but kind of helped me cut down on the manual
work of tracking down issue urls when not mentioned in the commit
message.
>>
>> You'll need GitPython (pip install gitpython). I managed to get
>> hyperlinks to issues, to the commits themselves, and even snuck in the
>> names of the people who've signed off on the commit.
>
> It's going to be helpful to start with the release notes but it will need manual editing.
>
>>
>> What I can't figure out is how to get the simple component or module
>> name. For example, from how to get from "common/buffer.cc" (#6003) to
>> "buffer".
>>
>
> I don't think it can be done automatically.
>
>> Also, using a related issue and commit, how to combine two related
>> ones. For example, #6614 is related to #6003, and in the release notes
>> both are listed as a single item.
>
> One idea would be to group commits that are in the same branch together ? When a merge is found, git log xxx^1..xxx^2 will list the commits that belong to the branch that has been merged. All commits in this branch presumably relate to the same topic.
>
>> Finally, do you think I should exclude commits starting with "qa:" or
>> "test/...:"?
>
> Yes, they are not relevant ;-)
>
> I included your snippet in the HOWTO write the release notes at http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO_write_the_release_notes which is linked from http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO.
>
Cheers
Abhishek
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Script to extract backports log
2015-04-26 16:22 ` Abhishek L
@ 2015-04-27 7:44 ` Loic Dachary
0 siblings, 0 replies; 4+ messages in thread
From: Loic Dachary @ 2015-04-27 7:44 UTC (permalink / raw)
To: Abhishek L; +Cc: Alistair Israel, ceph-devel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 2524 bytes --]
Hi Abhishek,
Useful improvement :-) I've updated http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO_write_the_release_notes with your version.
Cheers
On 26/04/2015 18:22, Abhishek L wrote:
> Hi
> Loic Dachary writes:
>
>> Hi Alistair,
>>
>> On 29/03/2015 19:27, Alistair Israel wrote:
>>> Hi, Loïc.
>>>
>>> Well, got some 'quality' coding time in over the weekend and managed
>>> to hack this out:
>>> https://gist.github.com/aisrael/b2b78d9dfdd176a232b9
>
> I managed to hack this a little to cross reference the issue id from
> the merge commits and pulling the tracker urls using the github
> apis. This was based on the assumption that for backports we follow a
> certain discipline wrt to pull requests where the corresponding issue is
> either mentioned as a part of commit message or as a comment on the pull
> request
>
> https://gist.github.com/theanalyst/a0932d863a8f4b0d1b98
>
> It is still not perfect, but kind of helped me cut down on the manual
> work of tracking down issue urls when not mentioned in the commit
> message.
>>>
>>> You'll need GitPython (pip install gitpython). I managed to get
>>> hyperlinks to issues, to the commits themselves, and even snuck in the
>>> names of the people who've signed off on the commit.
>>
>> It's going to be helpful to start with the release notes but it will need manual editing.
>>
>>>
>>> What I can't figure out is how to get the simple component or module
>>> name. For example, from how to get from "common/buffer.cc" (#6003) to
>>> "buffer".
>>>
>>
>> I don't think it can be done automatically.
>>
>>> Also, using a related issue and commit, how to combine two related
>>> ones. For example, #6614 is related to #6003, and in the release notes
>>> both are listed as a single item.
>>
>> One idea would be to group commits that are in the same branch together ? When a merge is found, git log xxx^1..xxx^2 will list the commits that belong to the branch that has been merged. All commits in this branch presumably relate to the same topic.
>>
>>> Finally, do you think I should exclude commits starting with "qa:" or
>>> "test/...:"?
>>
>> Yes, they are not relevant ;-)
>>
>> I included your snippet in the HOWTO write the release notes at http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO_write_the_release_notes which is linked from http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO.
>>
>
> Cheers
> Abhishek
>
--
Loïc Dachary, Artisan Logiciel Libre
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-27 7:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-29 17:27 Script to extract backports log Alistair Israel
2015-03-29 18:44 ` Loic Dachary
2015-04-26 16:22 ` Abhishek L
2015-04-27 7:44 ` Loic Dachary
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.