Skip to contentSkip to conversation

proposal to stop using "backport: " in commit logs

DISCUSSION Ken Dreyer 5 participants 8 messages Apr 13, 2015

lore
Share & tools
lore

Ken Dreyer

author
#0 lore raw

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

For what it's worth I agree with Loic on this.

Any objections?

- Ken

#1 lore raw
Quoted 9 lines · Ken Dreyer

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

Quoted 6 lines

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

For what it's worth I agree with Loic on this.

Yeah, this sounds better to me!

sage

#2 lore raw
In reply to Ken Dreyer
Quoted 9 lines · Ken Dreyer

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

Quoted 8 lines

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

For what it's worth I agree with Loic on this.

Any objections?

Why don't we just treat the backport commit tag as an expected value, and any corresponding redmine data as the canonical one? I find the backport tags to be useful when reviewing commits and I think the authorial intention matters. For instance, it's not uncommon in some parts of the codebase to discover and fix bugs as part of a feature branch (because it's doing new things that weren't previously exercised), tag the bug fix as a backport, and then generate tickets later (assuming we're behaving).
-Greg

#3 lore raw

Hi Greg,

Quoted 15 lines · Gregory Farnum
Quoted 14 lines · Ken Dreyer

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

Quoted 6 lines
Quoted 3 lines

For what it's worth I agree with Loic on this.

Any objections?

Why don't we just treat the backport commit tag as an expected value, and any corresponding redmine data as the canonical one?

That's what we currently do, I think.

Quoted 3 lines

I find the
backport tags to be useful when reviewing commits and I think the authorial intention matters.

A git-notes could be added for that purpose instead.

Quoted 5 lines

For instance, it's not uncommon in some
parts of the codebase to discover and fix bugs as part of a feature branch (because it's doing new things that weren't previously exercised), tag the bug fix as a backport, and then generate tickets later (assuming we're behaving).

Cheers

Quoted 6 lines

-Greg
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#4 lore raw
Quoted 26 lines · Loic Dachary

Hi Greg,

Quoted 15 lines · Gregory Farnum
Quoted 14 lines · Ken Dreyer

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

Quoted 6 lines
Quoted 3 lines

For what it's worth I agree with Loic on this.

Any objections?

Why don't we just treat the backport commit tag as an expected value, and any corresponding redmine data as the canonical one?

Quoted 7 lines

That's what we currently do, I think.

Quoted 3 lines

I find the
backport tags to be useful when reviewing commits and I think the authorial intention matters.

A git-notes could be added for that purpose instead.

Huh, I'm not previously familiar with that mechanism. Is there any particular reason you didn't use that for tracking backport states to begin with? It looks like it's sort of designed for this purpose.

#5 lore raw
Quoted 33 lines · Gregory Farnum
Quoted 32 lines · Loic Dachary

Hi Greg,

Quoted 15 lines · Gregory Farnum
Quoted 14 lines · Ken Dreyer

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

Quoted 6 lines
Quoted 3 lines

For what it's worth I agree with Loic on this.

Any objections?

Why don't we just treat the backport commit tag as an expected value, and any corresponding redmine data as the canonical one?

That's what we currently do, I think.

Quoted 3 lines

I find the
backport tags to be useful when reviewing commits and I think the authorial intention matters.

Quoted 5 lines
Quoted 1 line

A git-notes could be added for that purpose instead.

Huh, I'm not previously familiar with that mechanism. Is there any particular reason you didn't use that for tracking backport states to begin with? It looks like it's sort of designed for this purpose.

My thoughts exactly. But I figure that out only recently. The cross referencing script which currently creates a web page should be changed to update / verify git notes in a namespace dedicated to backporting, in a json format that is rigid and meant to be consistent and reliable. And the web page should be a display of these git notes instead of what it currently is. The default git notes name space could be used by developers to store human edited notes about commits such as the Backport field etc. because there is value in loosely maintained information.

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#6 lore raw
In reply to Gregory Farnum
Quoted 33 lines · Gregory Farnum
Quoted 32 lines · Loic Dachary

Hi Greg,

Quoted 15 lines · Gregory Farnum
Quoted 14 lines · Ken Dreyer

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

Quoted 6 lines
Quoted 3 lines

For what it's worth I agree with Loic on this.

Any objections?

Why don't we just treat the backport commit tag as an expected value, and any corresponding redmine data as the canonical one?

That's what we currently do, I think.

Quoted 3 lines

I find the
backport tags to be useful when reviewing commits and I think the authorial intention matters.

Quoted 5 lines
Quoted 1 line

A git-notes could be added for that purpose instead.

Huh, I'm not previously familiar with that mechanism. Is there any particular reason you didn't use that for tracking backport states to begin with? It looks like it's sort of designed for this purpose.

I agree. git-notes seem like the way to go for this -- also, mind blown at finding about git-notes, looks amazing!

-Joao

#7 lore raw
In reply to Ken Dreyer
Quoted 9 lines · Ken Dreyer

A while ago this came up in #ceph-devel and I wanted to bring it to a wider audience.

Should we stop the convention of adding the "backport: " tags in Git?

Loic brought up the point that this data is essentially immutable after we merge it, and it's better to point at a Redmine tracker where we can alter the "backport" field.

Quoted 6 lines

This makes it easier to adjust the "backport" data after the code's been merged to master. It also makes it easier for whoever is corralling the backport efforts, because the person only have one place to look (Redmine) instead of two (Redmine + git commit logs).

For what it's worth I agree with Loic on this.

I agree with myself ;-)

Quoted 9 lines

Any objections?

- Ken
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre