All of lore.kernel.org
 help / color / mirror / Atom feed
* [Lustre-devel] merges to b2_<x>
@ 2012-08-07  4:55 Cory Spitz
  2012-08-07 16:08 ` Prakash Surya
  2012-10-05  3:04 ` [Lustre-devel] " Oleg Drokin
  0 siblings, 2 replies; 5+ messages in thread
From: Cory Spitz @ 2012-08-07  4:55 UTC (permalink / raw)
  To: lustre-devel

Hi.

We at Cray have been looking at b2_1 landings, and one thing that I 
think would be nice is if we could identify the master commit that the 
b2_1 commit is based on directly from the mod header.  Unless, of 
course, there is an easy way to derive this information via git.  I hope 
that this isn't a stupid question, but is there?  It seems to me that 
since most b2_1 commits are cherry picked that we lose that bit.  It 
seems that git cherry-pick -x might be useful here.  Is that all we need?

If there isn't an easy way for git to provide the lineage, would we be 
able to add an additional commit tag or just advertise a convention to 
follow at http://wiki.whamcloud.com/display/PUB/Commit+Comments?

Thanks,
-Cory

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Lustre-devel] merges to b2_<x>
  2012-08-07  4:55 [Lustre-devel] merges to b2_<x> Cory Spitz
@ 2012-08-07 16:08 ` Prakash Surya
  2012-08-07 19:45   ` [Lustre-devel] [lustre-devel] " Andreas Dilger
  2012-10-05  3:04 ` [Lustre-devel] " Oleg Drokin
  1 sibling, 1 reply; 5+ messages in thread
From: Prakash Surya @ 2012-08-07 16:08 UTC (permalink / raw)
  To: lustre-devel

Looking at the man page for git-cherry-pick, I'm not sure the "-x"
option would entirely work:

    "Append the note only for cherry picks without conflicts."

How often do the backported patches apply without conflicts? With the
amount of code change taking place, my guess is conflicts are normal
operation. A developer enforced convention detailing the commit
backported and perhaps what and why changes were necessary to apply
cleanly would suffice. So long as it doesn't clutter the commit message.

Another way to do this would be to use the same Change-Id field for the
backported patch. One could grep for the Change-Id in the commit logs
relatively easily, although I'm not sure how the review system would
handle this.

-- 
Cheers, Prakash

On Mon, Aug 06, 2012 at 09:55:44PM -0700, Cory Spitz wrote:
> Hi.
> 
> We at Cray have been looking at b2_1 landings, and one thing that I 
> think would be nice is if we could identify the master commit that the 
> b2_1 commit is based on directly from the mod header.  Unless, of 
> course, there is an easy way to derive this information via git.  I hope 
> that this isn't a stupid question, but is there?  It seems to me that 
> since most b2_1 commits are cherry picked that we lose that bit.  It 
> seems that git cherry-pick -x might be useful here.  Is that all we need?
> 
> If there isn't an easy way for git to provide the lineage, would we be 
> able to add an additional commit tag or just advertise a convention to 
> follow at http://wiki.whamcloud.com/display/PUB/Commit+Comments?
> 
> Thanks,
> -Cory
> _______________________________________________
> Lustre-devel mailing list
> Lustre-devel at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Lustre-devel] [lustre-devel]  merges to b2_<x>
  2012-08-07 16:08 ` Prakash Surya
@ 2012-08-07 19:45   ` Andreas Dilger
  2012-08-07 21:00     ` Bruce Korb
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Dilger @ 2012-08-07 19:45 UTC (permalink / raw)
  To: lustre-devel

On 2012-08-07, at 10:08 AM, Prakash Surya wrote:
> Looking at the man page for git-cherry-pick, I'm not sure the "-x"
> option would entirely work:
> 
>    "Append the note only for cherry picks without conflicts."
> 
> How often do the backported patches apply without conflicts? With the
> amount of code change taking place, my guess is conflicts are normal
> operation. A developer enforced convention detailing the commit
> backported and perhaps what and why changes were necessary to apply
> cleanly would suffice. So long as it doesn't clutter the commit message.

I agree that having some standardized way of linking two commits on different branches would be quite useful.  In some cases, Oleg is able to do a cherry-pick of the original patch from master to b2_1, but in other cases there are separate patches submitted to Gerrit (with separate Change-Ids) for each branch in order to simplify patch testing.

> Another way to do this would be to use the same Change-Id field for the
> backported patch. One could grep for the Change-Id in the commit logs
> relatively easily, although I'm not sure how the review system would
> handle this.

Using the same Change-Id on two different branches causes heartburn for Gerrit, unfortunately.  This has happened by accident a few times, when a series of patches were merged into a development branch and then accidentally pushed to Gerrit.  It thinks that these previously-landed patches are all "in progress" again, and causes every later patch on the original branch (usually master) to claim them as open dependencies.

I'd rather have standardized keyword(s) that contain the original Git commit from master, and possibly the original Change-Id value.  There is already a "{name}-bug-id:" tag in use for tracking a patch from different upstream ticketing systems (e.g. Xyratex, Oracle, Whamcloud).

Cheers, Andreas

> On Mon, Aug 06, 2012 at 09:55:44PM -0700, Cory Spitz wrote:
>> Hi.
>> 
>> We at Cray have been looking at b2_1 landings, and one thing that I 
>> think would be nice is if we could identify the master commit that the 
>> b2_1 commit is based on directly from the mod header.  Unless, of 
>> course, there is an easy way to derive this information via git.  I hope 
>> that this isn't a stupid question, but is there?  It seems to me that 
>> since most b2_1 commits are cherry picked that we lose that bit.  It 
>> seems that git cherry-pick -x might be useful here.  Is that all we need?
>> 
>> If there isn't an easy way for git to provide the lineage, would we be 
>> able to add an additional commit tag or just advertise a convention to 
>> follow at http://wiki.whamcloud.com/display/PUB/Commit+Comments?
>> 
>> Thanks,
>> -Cory
>> _______________________________________________
>> Lustre-devel mailing list
>> Lustre-devel at lists.lustre.org
>> http://lists.lustre.org/mailman/listinfo/lustre-devel
> _______________________________________________
> lustre-devel mailing list
> lustre-devel at lists.opensfs.org
> http://lists.opensfs.org/listinfo.cgi/lustre-devel-opensfs.org


Cheers, Andreas
--
Andreas Dilger                       Whamcloud, Inc.
Principal Lustre Engineer            http://www.whamcloud.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Lustre-devel] [lustre-devel]  merges to b2_<x>
  2012-08-07 19:45   ` [Lustre-devel] [lustre-devel] " Andreas Dilger
@ 2012-08-07 21:00     ` Bruce Korb
  0 siblings, 0 replies; 5+ messages in thread
From: Bruce Korb @ 2012-08-07 21:00 UTC (permalink / raw)
  To: lustre-devel

Hi Andreas,

On 8/7/12 12:45 PM, Andreas Dilger wrote:
>> Another way to do this would be to use the same Change-Id field for the
>> backported patch. One could grep for the Change-Id in the commit logs
>> relatively easily, although I'm not sure how the review system would
>> handle this.
>
>Using the same Change-Id on two different branches causes heartburn for
>Gerrit, unfortunately.  This has happened by accident a few times, when a
>series of patches were merged into a development branch and then
>accidentally pushed to Gerrit.  It thinks that these previously-landed
>patches are all "in progress" again, and causes every later patch on the
>original branch (usually master) to claim them as open dependencies.

Maybe you could find some script maestro who could auto-insert this
magic tag at the same time the original Change-Id gets inserted?
Commit-Id: anyone?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Lustre-devel] merges to b2_<x>
  2012-08-07  4:55 [Lustre-devel] merges to b2_<x> Cory Spitz
  2012-08-07 16:08 ` Prakash Surya
@ 2012-10-05  3:04 ` Oleg Drokin
  1 sibling, 0 replies; 5+ messages in thread
From: Oleg Drokin @ 2012-10-05  3:04 UTC (permalink / raw)
  To: lustre-devel

Hello!

On Aug 7, 2012, at 12:55 AM, Cory Spitz wrote:
> We at Cray have been looking at b2_1 landings, and one thing that I 
> think would be nice is if we could identify the master commit that the 
> b2_1 commit is based on directly from the mod header.  Unless, of 
> course, there is an easy way to derive this information via git.  I hope 

I imagine you can look at change id and look for the same id in the master landings?
Perhaps you can even automate that.

Bye,
    Oleg
--
Oleg Drokin
Senior Software Engineer
Whamcloud, Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-05  3:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07  4:55 [Lustre-devel] merges to b2_<x> Cory Spitz
2012-08-07 16:08 ` Prakash Surya
2012-08-07 19:45   ` [Lustre-devel] [lustre-devel] " Andreas Dilger
2012-08-07 21:00     ` Bruce Korb
2012-10-05  3:04 ` [Lustre-devel] " Oleg Drokin

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.