Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-10 Thread Dean Stephens
On 09/10/17 18:13, Daniel Campbell wrote:
> I'm not looking for political propaganda. What would I gain from it? I
> don't really have any strong connections here. In fact I'm probably
> ticking a few people off. I'm calling your practices out for what they
> are, since nobody else appears willing or able to. It's flat-out
> dishonest to complain about a mailing list on one site, then
> deliberately add flames to the fire less than a day later on the very
> list you complained about. You are contributing to the very thing you
> claim to detest. I don't see that as political, because it affects the
> work that you, I, and other Gentoo devs do. It damages relationships
> between developers, and if something isn't done about it, Gentoo will
> continue falling into irrelevance because we can't get our ship to sail
> smoothly. We all have the ability to improve this, and I gain nothing by
> writing this e-mail.
> 
At this point, the question comes down to whether ComRel would sanction
a sitting Council member and whether it has reached the point at which
discovering the answer in practical reality is needed, especially
considering the virtually guaranteed backlash should that answer turn
out to be negative.

While I realize that positive reinforcement is generally a more
effective training methodology, it seems impractical in this case.



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-10 Thread Daniel Campbell
On 09/10/2017 02:34 AM, Michał Górny wrote:
> W dniu nie, 10.09.2017 o godzinie 00∶39 -0700, użytkownik Daniel
> Campbell napisał:
>> On 09/09/2017 12:47 AM, Michał Górny wrote:
>>> W dniu pią, 08.09.2017 o godzinie 17∶19 -0400, użytkownik Rich Freeman
>>> napisał:
 On Tue, Jul 25, 2017 at 4:05 AM, Michał Górny  wrote:
>
> What do you think about it? Is there anything else that needs being
> covered?
>

 FYI - if anybody does want to make any comments on the proposed
 devmanual changes to implement the new tags please comment at:

 https://github.com/gentoo/devmanual.gentoo.org/pull/72

 For that matter, if you want to even know what the proposed changes
 are you should also visit the link.

 List replies seem to be discouraged.

 I realize that some prefer to limit comments to media that are purely
 open source.  I guess the FOSS Linux kernel provided /dev/null still
 exists as an alternative.  Honestly, I'm not sure which of the options
 are more likely to get read.

>>>
>>> TL;DR: Rich, I would really appreciate if you stopped the flamebaits.
>>> I understand that you think you're doing Gentoo a favor but you're not.
>>>
>>> The footers were discussed to death in this very thread. I've heard your
>>> opinions. However, as far as I'm concerned (and as I've pointed out) you
>>> did literally *nothing* to push your ideas forward for 2+ years.
>>>
>>> Since I've done all the work, I've did it my way and for the reasons
>>> I've explained multiple times. If you disagree, them I'm sorry but
>>> in life you don't get to have everything your way. Especially if all you
>>> do is complain and expect others to do the work for you.
>>>
>>> I understand that you're unhappy and since you have no valid arguments,
>>> all you can do is try to get more people to support you and shout.
>>> Revive the bikeshed as many times as possible, try to make a lot of
>>> noise and block changes. Worst case, you've blocked something you didn't
>>> like. Best case, you're finally get others so discouraged that they'll
>>> do things your way just so that you stop.
>>>
>>> Rich, this is not a kindergarten. It's time you learn to lose,
>>> and accept the consequences. If you can't do that, the door out is open,
>>> and you're free to leave anytime you want.
>>>
>>
>> This behavior is not befitting Gentoo leadership. Limiting commentary to
>> a walled garden outside Gentoo control violates one of our goals
>> (independence), and the incendiary retorts are no more mature than the
>> behavior you're criticizing. Nothing will change in the way people
>> respond to you until you learn how to treat others.
>>
>> By all means, I'm glad we're seeing some action on which tags to settle
>> with. It's been a mess of confusion ("which tags do I use? Will this
>> tick someone off?", etc), and will be easier to build on once we figure
>> out the tags that'll work best. It'll be awesome to get automatic bug
>> closing from a commit, and I suspect it'll bring a lot of good. Settling
>> on tags allows us to automate more. However, as a Council member, the
>> Gentoo community looks to you and your behavior as an example. Is this
>> the example you want to set for our community?
>>
>> On the GitHub Issue, you called this mailing list "completely useless"
>> [1], and then you sent your message above a little later. Would you want
>> to work with someone who talks to you the way you treated Rich?
> 
> Yes, I did call it useless *multiple times*, and I've pointed out
> the problems. Considering they were ignored and the quality of
> the mailing list hasn't improved, this statement still stands.
> 
> Rich should have talked to me if he had problems with understanding my
> comment or missed the context to it. What he did instead is beginning
> a public stone throwing session. This is not a kind of behavior I am
> going to accept, or respond kindly to.
> 
> It's elementary. If you have a problem with me, talk to me first. Not go
> pointing fingers and shouting 'this person is bad'.

That's a good policy, one most of us can agree with I think. Sarcasm
isn't often understood (or appreciated) by all, but Rich's comment
really didn't do anything except highlight how discussion was being
moved. This creates a divide in the information and discussion available
to other developers. You and others are free to do this, but others are
right to criticize it also. Calling an entire community "useless" is not
going to magically make it better.

> 
>> None of this bickering is motivating or inspiring to those who read it,
>> and leadership should know better than to stoop to this level publicly.
>> You will not get more developer activity, agreement, cooperation, or
>> contribution by berating your fellow developers. In fact, Gentoo is
>> known for its bickering developer community. You are in a position to
>> change that. You asserted in #gentoo-trustees that the Council 

Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-10 Thread Michał Górny
W dniu nie, 10.09.2017 o godzinie 00∶39 -0700, użytkownik Daniel
Campbell napisał:
> On 09/09/2017 12:47 AM, Michał Górny wrote:
> > W dniu pią, 08.09.2017 o godzinie 17∶19 -0400, użytkownik Rich Freeman
> > napisał:
> > > On Tue, Jul 25, 2017 at 4:05 AM, Michał Górny  wrote:
> > > > 
> > > > What do you think about it? Is there anything else that needs being
> > > > covered?
> > > > 
> > > 
> > > FYI - if anybody does want to make any comments on the proposed
> > > devmanual changes to implement the new tags please comment at:
> > > 
> > > https://github.com/gentoo/devmanual.gentoo.org/pull/72
> > > 
> > > For that matter, if you want to even know what the proposed changes
> > > are you should also visit the link.
> > > 
> > > List replies seem to be discouraged.
> > > 
> > > I realize that some prefer to limit comments to media that are purely
> > > open source.  I guess the FOSS Linux kernel provided /dev/null still
> > > exists as an alternative.  Honestly, I'm not sure which of the options
> > > are more likely to get read.
> > > 
> > 
> > TL;DR: Rich, I would really appreciate if you stopped the flamebaits.
> > I understand that you think you're doing Gentoo a favor but you're not.
> > 
> > The footers were discussed to death in this very thread. I've heard your
> > opinions. However, as far as I'm concerned (and as I've pointed out) you
> > did literally *nothing* to push your ideas forward for 2+ years.
> > 
> > Since I've done all the work, I've did it my way and for the reasons
> > I've explained multiple times. If you disagree, them I'm sorry but
> > in life you don't get to have everything your way. Especially if all you
> > do is complain and expect others to do the work for you.
> > 
> > I understand that you're unhappy and since you have no valid arguments,
> > all you can do is try to get more people to support you and shout.
> > Revive the bikeshed as many times as possible, try to make a lot of
> > noise and block changes. Worst case, you've blocked something you didn't
> > like. Best case, you're finally get others so discouraged that they'll
> > do things your way just so that you stop.
> > 
> > Rich, this is not a kindergarten. It's time you learn to lose,
> > and accept the consequences. If you can't do that, the door out is open,
> > and you're free to leave anytime you want.
> > 
> 
> This behavior is not befitting Gentoo leadership. Limiting commentary to
> a walled garden outside Gentoo control violates one of our goals
> (independence), and the incendiary retorts are no more mature than the
> behavior you're criticizing. Nothing will change in the way people
> respond to you until you learn how to treat others.
> 
> By all means, I'm glad we're seeing some action on which tags to settle
> with. It's been a mess of confusion ("which tags do I use? Will this
> tick someone off?", etc), and will be easier to build on once we figure
> out the tags that'll work best. It'll be awesome to get automatic bug
> closing from a commit, and I suspect it'll bring a lot of good. Settling
> on tags allows us to automate more. However, as a Council member, the
> Gentoo community looks to you and your behavior as an example. Is this
> the example you want to set for our community?
> 
> On the GitHub Issue, you called this mailing list "completely useless"
> [1], and then you sent your message above a little later. Would you want
> to work with someone who talks to you the way you treated Rich?

Yes, I did call it useless *multiple times*, and I've pointed out
the problems. Considering they were ignored and the quality of
the mailing list hasn't improved, this statement still stands.

Rich should have talked to me if he had problems with understanding my
comment or missed the context to it. What he did instead is beginning
a public stone throwing session. This is not a kind of behavior I am
going to accept, or respond kindly to.

It's elementary. If you have a problem with me, talk to me first. Not go
pointing fingers and shouting 'this person is bad'.

> None of this bickering is motivating or inspiring to those who read it,
> and leadership should know better than to stoop to this level publicly.
> You will not get more developer activity, agreement, cooperation, or
> contribution by berating your fellow developers. In fact, Gentoo is
> known for its bickering developer community. You are in a position to
> change that. You asserted in #gentoo-trustees that the Council *is*
> Gentoo's leadership.
> 
> Is this your brand of leadership?
> 
> ~zlg
> 
> [1] https://dev.gentoo.org/~zlg/useless.png
> 
> (screenshotted since GitHub conversations can be curated.)

I'm not going to answer to your political propaganda. We don't need more
politicians like you in Gentoo. We need actual people who do stuff
rather than talk about theory to the point when everybody is so tired
nobody wants to do anything anymore.


-- 
Best regards,
Michał Górny




Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-10 Thread Daniel Campbell
On 09/09/2017 12:47 AM, Michał Górny wrote:
> W dniu pią, 08.09.2017 o godzinie 17∶19 -0400, użytkownik Rich Freeman
> napisał:
>> On Tue, Jul 25, 2017 at 4:05 AM, Michał Górny  wrote:
>>>
>>> What do you think about it? Is there anything else that needs being
>>> covered?
>>>
>>
>> FYI - if anybody does want to make any comments on the proposed
>> devmanual changes to implement the new tags please comment at:
>>
>> https://github.com/gentoo/devmanual.gentoo.org/pull/72
>>
>> For that matter, if you want to even know what the proposed changes
>> are you should also visit the link.
>>
>> List replies seem to be discouraged.
>>
>> I realize that some prefer to limit comments to media that are purely
>> open source.  I guess the FOSS Linux kernel provided /dev/null still
>> exists as an alternative.  Honestly, I'm not sure which of the options
>> are more likely to get read.
>>
> 
> TL;DR: Rich, I would really appreciate if you stopped the flamebaits.
> I understand that you think you're doing Gentoo a favor but you're not.
> 
> The footers were discussed to death in this very thread. I've heard your
> opinions. However, as far as I'm concerned (and as I've pointed out) you
> did literally *nothing* to push your ideas forward for 2+ years.
> 
> Since I've done all the work, I've did it my way and for the reasons
> I've explained multiple times. If you disagree, them I'm sorry but
> in life you don't get to have everything your way. Especially if all you
> do is complain and expect others to do the work for you.
> 
> I understand that you're unhappy and since you have no valid arguments,
> all you can do is try to get more people to support you and shout.
> Revive the bikeshed as many times as possible, try to make a lot of
> noise and block changes. Worst case, you've blocked something you didn't
> like. Best case, you're finally get others so discouraged that they'll
> do things your way just so that you stop.
> 
> Rich, this is not a kindergarten. It's time you learn to lose,
> and accept the consequences. If you can't do that, the door out is open,
> and you're free to leave anytime you want.
> 
This behavior is not befitting Gentoo leadership. Limiting commentary to
a walled garden outside Gentoo control violates one of our goals
(independence), and the incendiary retorts are no more mature than the
behavior you're criticizing. Nothing will change in the way people
respond to you until you learn how to treat others.

By all means, I'm glad we're seeing some action on which tags to settle
with. It's been a mess of confusion ("which tags do I use? Will this
tick someone off?", etc), and will be easier to build on once we figure
out the tags that'll work best. It'll be awesome to get automatic bug
closing from a commit, and I suspect it'll bring a lot of good. Settling
on tags allows us to automate more. However, as a Council member, the
Gentoo community looks to you and your behavior as an example. Is this
the example you want to set for our community?

On the GitHub Issue, you called this mailing list "completely useless"
[1], and then you sent your message above a little later. Would you want
to work with someone who talks to you the way you treated Rich?

None of this bickering is motivating or inspiring to those who read it,
and leadership should know better than to stoop to this level publicly.
You will not get more developer activity, agreement, cooperation, or
contribution by berating your fellow developers. In fact, Gentoo is
known for its bickering developer community. You are in a position to
change that. You asserted in #gentoo-trustees that the Council *is*
Gentoo's leadership.

Is this your brand of leadership?

~zlg

[1] https://dev.gentoo.org/~zlg/useless.png

(screenshotted since GitHub conversations can be curated.)
-- 
Daniel Campbell - Gentoo Developer, Trustee, Treasurer
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
fpr: AE03 9064 AE00 053C 270C  1DE4 6F7A 9091 1EA0 55D6



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-09 Thread Rich Freeman
On Sat, Sep 9, 2017 at 3:47 AM, Michał Górny  wrote:
> W dniu pią, 08.09.2017 o godzinie 17∶19 -0400, użytkownik Rich Freeman
> napisał:
>>
>> FYI - if anybody does want to make any comments on the proposed
>> devmanual changes to implement the new tags please comment at:
>>
>> https://github.com/gentoo/devmanual.gentoo.org/pull/72
>>
>
> The footers were discussed to death in this very thread. I've heard your
> opinions. However, as far as I'm concerned (and as I've pointed out) you
> did literally *nothing* to push your ideas forward for 2+ years.
>

So, you read something from my comment that I didn't write, and
ignored the stuff I did write.

In part this is my fault, because I used sarcasm out of frustration,
and that wasn't conducive to communication.

To be clear:

I expressed my opinions earlier in the thread as you pointed out.

I have no expectation that my particular suggestion would be the one
implemented.  If I had felt THAT strongly about the implementation of
this I'd have put it on the Council agenda or something, or at least
would have discussed it in privately with you on IRC or something.
Instead, once I noticed that infra had implemented some of the tag
processing I switched to the format it appeared to be using in my
commits.

I don't expect anybody to wait for 100% consensus before doing
anything around here.  I think I've made that clear in plenty of
posts.  For significant changes there should be discussion on the
lists, and then the implementer should go forward with what they see
as the best implementation based on the feedback received.  If
somebody has a problem with it then it should be their duty to
escalate it and deal with it, not make the maintainer jump through
extra hoops.  Certainly we shouldn't be taking every change to the
Council.

My concern was entirely with the attitude expressed in your comment in
that pull request.  If you had written "I don't think we need to go
back to gentoo-dev for this one because this specific proposal was
part of what was already posted there and none of the feedback really
suggests a major problem with this" it wouldn't have bothered me,
because as the person doing the work I think you should be afforded a
bit more discretion, and this was part of your proposal.

Sometimes posting on -dev elicits opinions we disagree with from
people who haven't done any of the work.  That should neither paralyze
us, nor cause us to scoff at their suggestions.  They're just words.

-- 
Rich



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-09 Thread Michał Górny
W dniu pią, 08.09.2017 o godzinie 17∶19 -0400, użytkownik Rich Freeman
napisał:
> On Tue, Jul 25, 2017 at 4:05 AM, Michał Górny  wrote:
> > 
> > What do you think about it? Is there anything else that needs being
> > covered?
> > 
> 
> FYI - if anybody does want to make any comments on the proposed
> devmanual changes to implement the new tags please comment at:
> 
> https://github.com/gentoo/devmanual.gentoo.org/pull/72
> 
> For that matter, if you want to even know what the proposed changes
> are you should also visit the link.
> 
> List replies seem to be discouraged.
> 
> I realize that some prefer to limit comments to media that are purely
> open source.  I guess the FOSS Linux kernel provided /dev/null still
> exists as an alternative.  Honestly, I'm not sure which of the options
> are more likely to get read.
> 

TL;DR: Rich, I would really appreciate if you stopped the flamebaits.
I understand that you think you're doing Gentoo a favor but you're not.

The footers were discussed to death in this very thread. I've heard your
opinions. However, as far as I'm concerned (and as I've pointed out) you
did literally *nothing* to push your ideas forward for 2+ years.

Since I've done all the work, I've did it my way and for the reasons
I've explained multiple times. If you disagree, them I'm sorry but
in life you don't get to have everything your way. Especially if all you
do is complain and expect others to do the work for you.

I understand that you're unhappy and since you have no valid arguments,
all you can do is try to get more people to support you and shout.
Revive the bikeshed as many times as possible, try to make a lot of
noise and block changes. Worst case, you've blocked something you didn't
like. Best case, you're finally get others so discouraged that they'll
do things your way just so that you stop.

Rich, this is not a kindergarten. It's time you learn to lose,
and accept the consequences. If you can't do that, the door out is open,
and you're free to leave anytime you want.

-- 
Best regards,
Michał Górny




Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-08 Thread Kristian Fiskerstrand
On 09/08/2017 11:19 PM, Rich Freeman wrote:
> FYI - if anybody does want to make any comments on the proposed
> devmanual changes to implement the new tags please comment at:
> 
> https://github.com/gentoo/devmanual.gentoo.org/pull/72
> 
> For that matter, if you want to even know what the proposed changes
> are you should also visit the link.

This violates the gentoo social contract, please keep the discussion on
the mailing list

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-09-08 Thread Rich Freeman
On Tue, Jul 25, 2017 at 4:05 AM, Michał Górny  wrote:
>
> What do you think about it? Is there anything else that needs being
> covered?
>

FYI - if anybody does want to make any comments on the proposed
devmanual changes to implement the new tags please comment at:

https://github.com/gentoo/devmanual.gentoo.org/pull/72

For that matter, if you want to even know what the proposed changes
are you should also visit the link.

List replies seem to be discouraged.

I realize that some prefer to limit comments to media that are purely
open source.  I guess the FOSS Linux kernel provided /dev/null still
exists as an alternative.  Honestly, I'm not sure which of the options
are more likely to get read.

-- 
Rich



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-28 Thread Andreas K. Huettel
Am Dienstag, 25. Juli 2017, 10:05:06 CEST schrieb Michał Górny:
> Hi, everyone.
> 
> There have been multiple attempts at grasping this but none so far
> resulted in something official and indisputable. At the same time, we
> end having to point our users at semi-official guides which change
> in unpredictable ways.
> 
> Here's the current draft:
> https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git
> 
> The basic idea is that the GLEP provides basic guidelines for using git,
> and then we write a proper manual on top of it (right now, all the pages
> about it end up as a mix of requirements and a partial git manual).
> 
> What do you think about it? Is there anything else that needs being
> covered?

TL;DR: I like it; minor comments on the commit message format (surprise). We 
should strive to provide consistent standards for it.


> ===Commit messages===
[...]
> If a bug is associated
> with a change, then it should be included in the summary line as
> #nn or likewise. 

..., for practical reasons in a format that is recognized by willikins. 
So, please DON'T do "... fixes #234987".

I suggest we recommend a plain "... bug 234567 ..."

So far, "bug x" in our repository by default refers to the Gentoo bugzilla, 
and it makes sense to stick with that.


> The tag part is included in the full commit log as an extension to the
> body. It consists of one or more lines consisting of key, followed by a
> colon and a space, followed by value. Git does not enforce any
> standardization of the keys, and the tag format is ''not'' meant for
> machine processing.
> 
> A few tags of common use are:
[...]
> ** Bug: https://bugs.gentoo.org/NN; — to
> reference a bug,
> ** Closes: https://github.com/gentoo/gentoo/pull/ ki>; — to automatically close a GitHub pull request,
> ** Fixes: https://bugs.gentoo.org/NN; —
> to indicate a fixed bug,

I would like to suggest that *if* such tags are used, we require that they 
should always contain a full URL to an issue tracker or code source.

This allows generic referencing of other bug trackers, leaves developers the 
option to auto-handle github-specific things, and still (for the purists) 
doesn't require mentioning Github in the GLEP.



-- 
Andreas K. Hüttel
dilfri...@gentoo.org
Gentoo Linux developer (council, perl, libreoffice)

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-27 Thread Kristian Fiskerstrand
On 07/27/2017 04:11 PM, Michał Górny wrote:
>> Right, so github automatically closes pull requests when encountering
>> Closes, that doesn't indicate that Closes can't be used for other
>> platforms to do similar things, or closing things manually if provided
>> through other channels. The current wording indicates it is only for
>> Github use "to automatically close a GitHub pull request,"
> ...which is the only purpose it's being used for right now, and I
> seriously doubt there will be any other use in the near future.

That doesn't mean we shouldn't prepare for it in our specification, why
shouldn't I be able to use it for closing a pull request provided
through bitbucket or a git request-pull from my private gitolite? There
is absolutely no reason to mention github in the GLEP versus making it a
generic tag for closing a pull request.

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-27 Thread Michał Górny
On czw, 2017-07-27 at 16:08 +0200, Kristian Fiskerstrand wrote:
> On 07/27/2017 03:58 PM, Michał Górny wrote:
> > > > > > ** Closes: 
> > > > > > https://github.com/gentoo/gentoo/pull/ > > > > > ki>; — to automatically close a GitHub pull request,
> > > > > 
> > > > > Is this a generic tag for any pull request of any platform?
> > > > 
> > > > No. As I've told multiple times already, there are *no* generic tags. It
> > > > just happens to be used by some random platforms. Some others use e.g.
> > > > 'Fixes' which you forbade.
> > > > 
> > > 
> > > Isn't that the point of having a GLEP to begin with? Trying to
> > > standardize the use of e.g the tags so that it has a consistent meaning
> > > and can be useful?
> > > 
> > 
> > Tags are mentioned merely for convenience, and as examples. If you want
> > to request GitHub support to add support for special Gentoo tags you've
> > just invented, be my guest. But don't bother forwarding their reply to
> > me because I know their answer.
> 
> Right, so github automatically closes pull requests when encountering
> Closes, that doesn't indicate that Closes can't be used for other
> platforms to do similar things, or closing things manually if provided
> through other channels. The current wording indicates it is only for
> Github use "to automatically close a GitHub pull request,"

...which is the only purpose it's being used for right now, and I
seriously doubt there will be any other use in the near future.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-27 Thread Kristian Fiskerstrand
On 07/27/2017 03:58 PM, Michał Górny wrote:
> ** Closes: https://github.com/gentoo/gentoo/pull/ ki>; — to automatically close a GitHub pull request,
 Is this a generic tag for any pull request of any platform?
>>> No. As I've told multiple times already, there are *no* generic tags. It
>>> just happens to be used by some random platforms. Some others use e.g.
>>> 'Fixes' which you forbade.
>>>
>> Isn't that the point of having a GLEP to begin with? Trying to
>> standardize the use of e.g the tags so that it has a consistent meaning
>> and can be useful?
>>
> Tags are mentioned merely for convenience, and as examples. If you want
> to request GitHub support to add support for special Gentoo tags you've
> just invented, be my guest. But don't bother forwarding their reply to
> me because I know their answer.

Right, so github automatically closes pull requests when encountering
Closes, that doesn't indicate that Closes can't be used for other
platforms to do similar things, or closing things manually if provided
through other channels. The current wording indicates it is only for
Github use "to automatically close a GitHub pull request,"

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-27 Thread Michał Górny
On czw, 2017-07-27 at 15:54 +0200, Kristian Fiskerstrand wrote:
> On 07/27/2017 03:52 PM, Michał Górny wrote:
> > On śro, 2017-07-26 at 19:17 +0200, Kristian Fiskerstrand wrote:
> > > On 07/25/2017 10:05 AM, Michał Górny wrote:
> > > > ** Fixes: https://bugs.gentoo.org/NN;;; 
> > > > —
> > > > to indicate a fixed bug,
> > > 
> > > At this point fixes is overloading
> > > > ** Fixes: commit-id (commit message) — to indicate fixing a
> > > > previous commit
> > > 
> > > This use should be forbidden.
> > 
> > ...because? But sure, you don't like it, let's remove it. Not that
> > anyone will actually prefer the things from the GLEP over anything else.
> > 
> 
> Because it overloads the tag for multiple meanings and as such should be
> different tags, we already have a tag that specifies the bug (namely
> Bug, presuming we use Reference: for URL specification of relevant
> upstream information or other discussions)
> 
> > > > ** Bug: https://bugs.gentoo.org/NN;;; — 
> > > > to
> > > > reference a bug,
> > > 
> > > See other comments in thread wrt Gentoo-Bug.
> > > 
> > > > ** Closes: https://github.com/gentoo/gentoo/pull/ > > > ki>; — to automatically close a GitHub pull request,
> > > 
> > > Is this a generic tag for any pull request of any platform?
> > 
> > No. As I've told multiple times already, there are *no* generic tags. It
> > just happens to be used by some random platforms. Some others use e.g.
> > 'Fixes' which you forbade.
> > 
> 
> Isn't that the point of having a GLEP to begin with? Trying to
> standardize the use of e.g the tags so that it has a consistent meaning
> and can be useful?
> 

Tags are mentioned merely for convenience, and as examples. If you want
to request GitHub support to add support for special Gentoo tags you've
just invented, be my guest. But don't bother forwarding their reply to
me because I know their answer.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-27 Thread Kristian Fiskerstrand
On 07/27/2017 03:52 PM, Michał Górny wrote:
> On śro, 2017-07-26 at 19:17 +0200, Kristian Fiskerstrand wrote:
>> On 07/25/2017 10:05 AM, Michał Górny wrote:
>>> ** Fixes: https://bugs.gentoo.org/NN;; —
>>> to indicate a fixed bug,
>>
>> At this point fixes is overloading
>>> ** Fixes: commit-id (commit message) — to indicate fixing a
>>> previous commit
>>
>> This use should be forbidden.
> 
> ...because? But sure, you don't like it, let's remove it. Not that
> anyone will actually prefer the things from the GLEP over anything else.
> 

Because it overloads the tag for multiple meanings and as such should be
different tags, we already have a tag that specifies the bug (namely
Bug, presuming we use Reference: for URL specification of relevant
upstream information or other discussions)

>>> ** Bug: https://bugs.gentoo.org/NN;; — to
>>> reference a bug,
>>
>> See other comments in thread wrt Gentoo-Bug.
>>
>>> ** Closes: https://github.com/gentoo/gentoo/pull/>> ki>; — to automatically close a GitHub pull request,
>>
>> Is this a generic tag for any pull request of any platform?
> 
> No. As I've told multiple times already, there are *no* generic tags. It
> just happens to be used by some random platforms. Some others use e.g.
> 'Fixes' which you forbade.
> 

Isn't that the point of having a GLEP to begin with? Trying to
standardize the use of e.g the tags so that it has a consistent meaning
and can be useful?

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-27 Thread Michał Górny
On śro, 2017-07-26 at 19:17 +0200, Kristian Fiskerstrand wrote:
> On 07/25/2017 10:05 AM, Michał Górny wrote:
> > ** Fixes: https://bugs.gentoo.org/NN;; —
> > to indicate a fixed bug,
> 
> At this point fixes is overloading
> > ** Fixes: commit-id (commit message) — to indicate fixing a
> > previous commit
> 
> This use should be forbidden.

...because? But sure, you don't like it, let's remove it. Not that
anyone will actually prefer the things from the GLEP over anything else.

> > ** Bug: https://bugs.gentoo.org/NN;; — to
> > reference a bug,
> 
> See other comments in thread wrt Gentoo-Bug.
> 
> > ** Closes: https://github.com/gentoo/gentoo/pull/ > ki>; — to automatically close a GitHub pull request,
> 
> Is this a generic tag for any pull request of any platform?

No. As I've told multiple times already, there are *no* generic tags. It
just happens to be used by some random platforms. Some others use e.g.
'Fixes' which you forbade.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-27 Thread Kristian Fiskerstrand
On 07/26/2017 07:20 PM, Rich Freeman wrote:
> I was thinking that it would make far more sense to use "Bug" for
> Gentoo bugs, and use something like "Reference" or "Remote-Bug" for
> non-Gentoo bugs.  99% of the time commits will reference a Gentoo bug.

I like the idea of Reference for URL specification . This can be used as
a general property for other relevant discussion points as well, and
indeed frees up Bug to be used for Gentoo with numeric identifiers only.

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-26 Thread Kristian Fiskerstrand
On 07/26/2017 07:20 PM, Rich Freeman wrote:
> Also, I suggest using either URLs or bug numbers, but not both.
> Otherwise you end up having to copy the URL over, then copy the ID
> only and paste it in the summary.  That is an extra step.

I wouldn't have bug ID in summary at all unless it provides external
value, it should be self-describing

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-26 Thread Rich Freeman
On Wed, Jul 26, 2017 at 1:04 PM, Kristian Fiskerstrand  wrote:
> On 07/26/2017 11:21 AM, Ulrich Mueller wrote:
>> The same applies to #123456 in the summary line, though. I don't see a
>> good reason for using a URL after the "Bug:" keyword as long as bare
>> numbers are used elsewhere.
>
> For Bug you'd often refer to upstream reports or other distros, so you
> need it in a generic form which url provides, having a separate
> Gentoo-Bug properly defined to ID only solves the ambiguity.
>

I was thinking that it would make far more sense to use "Bug" for
Gentoo bugs, and use something like "Reference" or "Remote-Bug" for
non-Gentoo bugs.  99% of the time commits will reference a Gentoo bug.
If you wanted to reference others you'd probably have it linked in the
Gentoo bug anyway so duplicating it in the commit seems wasteful.

In any case, I think what matters is picking one format and then
sticking it in the repoman template so that people don't have to type
it.

Also, I suggest using either URLs or bug numbers, but not both.
Otherwise you end up having to copy the URL over, then copy the ID
only and paste it in the summary.  That is an extra step.

-- 
Rich



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-26 Thread Kristian Fiskerstrand
On 07/25/2017 10:05 AM, Michał Górny wrote:
> ** Fixes: https://bugs.gentoo.org/NN; —
> to indicate a fixed bug,

At this point fixes is overloading
> ** Fixes: commit-id (commit message) — to indicate fixing a
> previous commit

This use should be forbidden.

> ** Bug: https://bugs.gentoo.org/NN; — to
> reference a bug,

See other comments in thread wrt Gentoo-Bug.

> ** Closes: https://github.com/gentoo/gentoo/pull/ ki>; — to automatically close a GitHub pull request,

Is this a generic tag for any pull request of any platform?

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-26 Thread Kristian Fiskerstrand
On 07/26/2017 11:21 AM, Ulrich Mueller wrote:
> The same applies to #123456 in the summary line, though. I don't see a
> good reason for using a URL after the "Bug:" keyword as long as bare
> numbers are used elsewhere.

For Bug you'd often refer to upstream reports or other distros, so you
need it in a generic form which url provides, having a separate
Gentoo-Bug properly defined to ID only solves the ambiguity.

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-26 Thread Kristian Fiskerstrand
On 07/25/2017 01:25 PM, Michael Orlitzky wrote:
> There are two main advantages over having the bug number in the summary.
> Space is at a premium in the summary, as Tobias pointed out, and the
> 
>   Gentoo-Bug: whatever
> 
> format is trivially machine-readable, whereas sticking it somewhere else
> is less so.

Indeed, I'm in favor of keeping bug information in this format, whereby
Bug:  is fine as a generic reference it will mostly be for upstream
issues or other distributions, whereby Gentoo-Bug: #nn is explicit
reference to our own tracker. An issue to consider is definition of this
label in terms of whether it takes a single value or a list and how to
do wrapping.. I'd likely expect possibility for multiple occurrences for
it but allowing multiple bug numbers specified comma separated

-- 
Kristian Fiskerstrand
OpenPGP keyblock reachable at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-26 Thread Brian Evans
On 7/25/2017 4:05 AM, Michał Górny wrote:
> Hi, everyone.
> 
> There have been multiple attempts at grasping this but none so far
> resulted in something official and indisputable. At the same time, we
> end having to point our users at semi-official guides which change
> in unpredictable ways.
> 
> Here's the current draft:
> https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git
> 
> The basic idea is that the GLEP provides basic guidelines for using git,
> and then we write a proper manual on top of it (right now, all the pages
> about it end up as a mix of requirements and a partial git manual).
> 
> What do you think about it? Is there anything else that needs being
> covered?
> 
> Copy of the markup for inline comments follows.

[cut]
> ===Commit messages===
> A standard git commit message consists of three parts, in order: a
> summary line, an optional body and an optional set of tags. The parts
> are separated by a single empty line.
> 
[cut]
> The tag part is included in the full commit log as an extension to the
> body. It consists of one or more lines consisting of key, followed by a
> colon and a space, followed by value. Git does not enforce any
> standardization of the keys, and the tag format is ''not'' meant for
> machine processing.
> 
> A few tags of common use are:
> * user-related tags:
> ** Acked-by: Full Name  — commit approved
> by another person (usually without detailed review),
> ** Reported-by: Full Name ,
> ** Reviewed-by: Full Name  — usually
> indicates full review,
> ** Signed-off-by: Full Name  — DCO
> approval (not used in Gentoo right now),
> ** Suggested-by: Full Name , 
> ** Tested-by: Full Name .
> * commit-related tags:
> ** Fixes: commit-id (commit message) — to indicate fixing a
> previous commit,
> ** Reverts: commit-id (commit message) — to indicate
> reverting a previous commit,
> * bug tracker-related tags:
> ** Bug: https://bugs.gentoo.org/NN; — to
> reference a bug,
> ** Closes: https://github.com/gentoo/gentoo/pull/ ki>; — to automatically close a GitHub pull request,
> ** Fixes: https://bugs.gentoo.org/NN; —
> to indicate a fixed bug,
> * package manager tags:
> ** Package-Manager: … — used by repoman to indicate Portage
> version,
> ** RepoMan-Options: … — used by repoman to indicate repoman
> options.
> 
> The bug tracker-related tags can be used to extend the body message.
> However, they should be skipped if the bug number is already provided in
> the summary and there is no explicit body.
> 

My concern on these tags is that some evangelist will come along and
demand that they always be included with every commit since they exist
in a GLEP.  They add very little value, IMO, and I doubt they will ever
be parsed or ever read.

I would object less if the committing tool, i.e. repoman, would provide
easy switches for common cases for uniformity.  I foresee more work on
my part to remember such lines and would have to look up the "current
syntax" as it goes through debate many times over as it already has.
(Both in the past and in this thread again).

Brian



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-26 Thread Ulrich Mueller
> On Tue, 25 Jul 2017, Michał Górny wrote:

> On wto, 2017-07-25 at 09:26 -0400, Rich Freeman wrote:
>> There would also be less variation. Bug: 123456 is pretty
>> unambiguous as a reference. When you start having http vs https and
>> maybe a few different ways of creating a URL to a bug it could get
>> messier.

> Except that 123456 could refer to any bugtracker anywhere. No
> reasonable tool will do anything with that number since it's
> ambiguous by definition.

The same applies to #123456 in the summary line, though. I don't see a
good reason for using a URL after the "Bug:" keyword as long as bare
numbers are used elsewhere.

Ulrich


pgpzqtJ6HJtOP.pgp
Description: PGP signature


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
On wto, 2017-07-25 at 18:46 -0400, Rich Freeman wrote:
> On Tue, Jul 25, 2017 at 6:30 PM, Michał Górny  wrote:
> > On wto, 2017-07-25 at 18:26 -0400, Rich Freeman wrote:
> > > On Tue, Jul 25, 2017 at 4:29 PM, Mike Gilbert  wrote:
> > > > On Tue, Jul 25, 2017 at 12:12 PM, Michael Orlitzky  
> > > > wrote:
> > > > > On 07/25/2017 09:23 AM, Michał Górny wrote:
> > > > > > 
> > > > > > How is that relevant? Revision bumps are merely a tool to encourage
> > > > > > 'automatic' rebuilds of packages during @world upgrade. I can't 
> > > > > > think of
> > > > > > a single use case where somebody would actually think it sane to
> > > > > > checkout one commit after another, and run @world upgrade in the 
> > > > > > middle
> > > > > > of it.
> > > > > > 
> > > > > 
> > > > > Revisions are to indicate that one incarnation of a package differs 
> > > > > from
> > > > > another in a way that the user or package manager might care about. 
> > > > > And
> > > > > on principal, it's no business of yours what people want to do with
> > > > > their tree. If someone wants to check out successive commits and 
> > > > > emerge
> > > > > @world, he's within his rights to do so.
> > > > 
> > > > I don't feel I should be obligated by policy to support this use case.
> > > > One revbump per push seems sufficiently safe for 99.9% of users.
> > > > 
> > > > If you want to do more revbumps, you are free to do so.
> > > > 
> > > 
> > > What is the point of separating changes by commits if we don't
> > > generally try to keep each commit working?
> > > 
> > > Sure, there are some cases where it is just going to be too painful to
> > > ensure that, and so it doesn't have to be an absolute rule.
> > > 
> > > However, if somebody is checking out a tree at some point in the past
> > > they shouldn't have to try to figure out where the last push boundary
> > > was to ensure that it is sane.  Use cases for that include updating
> > > older systems progressively, or bisecting a problem.
> > 
> > Guys, please cut this FUD.
> > 
> > Nothing is broken if you don't revbump. The only thing that doesn't
> > happen is that the PM isn't obliged to suggest user to upgrade.
> > 
> 
> I wasn't referring to revbumps.  Just to ensuring that all commits
> generally work even if they aren't pushed.
> 

In that case, it is explicitly listed as the third rule for splitting.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Rich Freeman
On Tue, Jul 25, 2017 at 6:30 PM, Michał Górny  wrote:
> On wto, 2017-07-25 at 18:26 -0400, Rich Freeman wrote:
>> On Tue, Jul 25, 2017 at 4:29 PM, Mike Gilbert  wrote:
>> > On Tue, Jul 25, 2017 at 12:12 PM, Michael Orlitzky  wrote:
>> > > On 07/25/2017 09:23 AM, Michał Górny wrote:
>> > > >
>> > > > How is that relevant? Revision bumps are merely a tool to encourage
>> > > > 'automatic' rebuilds of packages during @world upgrade. I can't think 
>> > > > of
>> > > > a single use case where somebody would actually think it sane to
>> > > > checkout one commit after another, and run @world upgrade in the middle
>> > > > of it.
>> > > >
>> > >
>> > > Revisions are to indicate that one incarnation of a package differs from
>> > > another in a way that the user or package manager might care about. And
>> > > on principal, it's no business of yours what people want to do with
>> > > their tree. If someone wants to check out successive commits and emerge
>> > > @world, he's within his rights to do so.
>> >
>> > I don't feel I should be obligated by policy to support this use case.
>> > One revbump per push seems sufficiently safe for 99.9% of users.
>> >
>> > If you want to do more revbumps, you are free to do so.
>> >
>>
>> What is the point of separating changes by commits if we don't
>> generally try to keep each commit working?
>>
>> Sure, there are some cases where it is just going to be too painful to
>> ensure that, and so it doesn't have to be an absolute rule.
>>
>> However, if somebody is checking out a tree at some point in the past
>> they shouldn't have to try to figure out where the last push boundary
>> was to ensure that it is sane.  Use cases for that include updating
>> older systems progressively, or bisecting a problem.
>
> Guys, please cut this FUD.
>
> Nothing is broken if you don't revbump. The only thing that doesn't
> happen is that the PM isn't obliged to suggest user to upgrade.
>

I wasn't referring to revbumps.  Just to ensuring that all commits
generally work even if they aren't pushed.

-- 
Rich



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
On wto, 2017-07-25 at 18:26 -0400, Rich Freeman wrote:
> On Tue, Jul 25, 2017 at 4:29 PM, Mike Gilbert  wrote:
> > On Tue, Jul 25, 2017 at 12:12 PM, Michael Orlitzky  wrote:
> > > On 07/25/2017 09:23 AM, Michał Górny wrote:
> > > > 
> > > > How is that relevant? Revision bumps are merely a tool to encourage
> > > > 'automatic' rebuilds of packages during @world upgrade. I can't think of
> > > > a single use case where somebody would actually think it sane to
> > > > checkout one commit after another, and run @world upgrade in the middle
> > > > of it.
> > > > 
> > > 
> > > Revisions are to indicate that one incarnation of a package differs from
> > > another in a way that the user or package manager might care about. And
> > > on principal, it's no business of yours what people want to do with
> > > their tree. If someone wants to check out successive commits and emerge
> > > @world, he's within his rights to do so.
> > 
> > I don't feel I should be obligated by policy to support this use case.
> > One revbump per push seems sufficiently safe for 99.9% of users.
> > 
> > If you want to do more revbumps, you are free to do so.
> > 
> 
> What is the point of separating changes by commits if we don't
> generally try to keep each commit working?
> 
> Sure, there are some cases where it is just going to be too painful to
> ensure that, and so it doesn't have to be an absolute rule.
> 
> However, if somebody is checking out a tree at some point in the past
> they shouldn't have to try to figure out where the last push boundary
> was to ensure that it is sane.  Use cases for that include updating
> older systems progressively, or bisecting a problem.

Guys, please cut this FUD.

Nothing is broken if you don't revbump. The only thing that doesn't
happen is that the PM isn't obliged to suggest user to upgrade.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Rich Freeman
On Tue, Jul 25, 2017 at 4:29 PM, Mike Gilbert  wrote:
> On Tue, Jul 25, 2017 at 12:12 PM, Michael Orlitzky  wrote:
>> On 07/25/2017 09:23 AM, Michał Górny wrote:
>>>
>>> How is that relevant? Revision bumps are merely a tool to encourage
>>> 'automatic' rebuilds of packages during @world upgrade. I can't think of
>>> a single use case where somebody would actually think it sane to
>>> checkout one commit after another, and run @world upgrade in the middle
>>> of it.
>>>
>>
>> Revisions are to indicate that one incarnation of a package differs from
>> another in a way that the user or package manager might care about. And
>> on principal, it's no business of yours what people want to do with
>> their tree. If someone wants to check out successive commits and emerge
>> @world, he's within his rights to do so.
>
> I don't feel I should be obligated by policy to support this use case.
> One revbump per push seems sufficiently safe for 99.9% of users.
>
> If you want to do more revbumps, you are free to do so.
>

What is the point of separating changes by commits if we don't
generally try to keep each commit working?

Sure, there are some cases where it is just going to be too painful to
ensure that, and so it doesn't have to be an absolute rule.

However, if somebody is checking out a tree at some point in the past
they shouldn't have to try to figure out where the last push boundary
was to ensure that it is sane.  Use cases for that include updating
older systems progressively, or bisecting a problem.

-- 
Rich



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
On wto, 2017-07-25 at 16:31 -0400, Michael Orlitzky wrote:
> On 07/25/2017 04:29 PM, Mike Gilbert wrote:
> > 
> > I don't feel I should be obligated by policy to support this use case.
> > One revbump per push seems sufficiently safe for 99.9% of users.
> > 
> > If you want to do more revbumps, you are free to do so.
> > 
> 
> Can I also delete packages and break the tree so long as I put
> everything back before I push?

That is not the same, and you know that. Plus, there's a major
difference between not doing unnecessary work and purposely doing
something awful just to prove a point.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michael Orlitzky
On 07/25/2017 04:29 PM, Mike Gilbert wrote:
> 
> I don't feel I should be obligated by policy to support this use case.
> One revbump per push seems sufficiently safe for 99.9% of users.
> 
> If you want to do more revbumps, you are free to do so.
> 

Can I also delete packages and break the tree so long as I put
everything back before I push?




Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Mike Gilbert
On Tue, Jul 25, 2017 at 12:12 PM, Michael Orlitzky  wrote:
> On 07/25/2017 09:23 AM, Michał Górny wrote:
>>
>> How is that relevant? Revision bumps are merely a tool to encourage
>> 'automatic' rebuilds of packages during @world upgrade. I can't think of
>> a single use case where somebody would actually think it sane to
>> checkout one commit after another, and run @world upgrade in the middle
>> of it.
>>
>
> Revisions are to indicate that one incarnation of a package differs from
> another in a way that the user or package manager might care about. And
> on principal, it's no business of yours what people want to do with
> their tree. If someone wants to check out successive commits and emerge
> @world, he's within his rights to do so.

I don't feel I should be obligated by policy to support this use case.
One revbump per push seems sufficiently safe for 99.9% of users.

If you want to do more revbumps, you are free to do so.



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michael Orlitzky
On 07/25/2017 09:23 AM, Michał Górny wrote:
> 
> How is that relevant? Revision bumps are merely a tool to encourage
> 'automatic' rebuilds of packages during @world upgrade. I can't think of
> a single use case where somebody would actually think it sane to
> checkout one commit after another, and run @world upgrade in the middle
> of it.
> 

Revisions are to indicate that one incarnation of a package differs from
another in a way that the user or package manager might care about. And
on principal, it's no business of yours what people want to do with
their tree. If someone wants to check out successive commits and emerge
@world, he's within his rights to do so.

This is relevant because your proposed policy,

  * presumes to know how people will use the tree, and places arbitrary
restrictions on them

  * can cause problems if those assumptions don't hold

  * requires developers to think about when it's safe to push (Did I
push those changes last night? Do I need another revision?)

  * and is more complicated than the safe solution, anyway

Here's my proposal regarding revisions:

  If you make a commit that requires a revision, make a revision.

If you wind up with an -r15 in the tree, who cares? It's simpler, safer,
and less to think about.



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
On wto, 2017-07-25 at 09:26 -0400, Rich Freeman wrote:
> On Tue, Jul 25, 2017 at 7:52 AM, Michał Górny  wrote:
> > 
> > Except that there is no machines using it. In all contexts, using full URL 
> > for machine readability is better as it works with all software out of the 
> > box.
> > 
> 
> Until the domain name of the bugzilla server changes/etc.  Even if we
> migrated all the old bugs the URLs would break.  That might be an
> argument for not having a full URL.

This is a very stupid argument. If we ever break bug URLs, commit
messages are the *least* of our concerns.

> There would also be less variation.  Bug: 123456 is pretty unambiguous
> as a reference.  When you start having http vs https and maybe a few
> different ways of creating a URL to a bug it could get messier.

Except that 123456 could refer to any bugtracker anywhere. No reasonable
tool will do anything with that number since it's ambiguous by
definition.

And if I were to use stupid arguments, then I should point out if we
ever have a review platform, then the numbers would suddenly become
ambiguous -- is it Bugzilla or the review platform?

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
On wto, 2017-07-25 at 08:54 -0400, Joshua Kinard wrote:
> On 07/25/2017 04:05, Michał Górny wrote:
> > Hi, everyone.
> > 
> > There have been multiple attempts at grasping this but none so far
> > resulted in something official and indisputable. At the same time, we
> > end having to point our users at semi-official guides which change
> > in unpredictable ways.
> > 
> > Here's the current draft:
> > https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git
> > 
> > The basic idea is that the GLEP provides basic guidelines for using git,
> > and then we write a proper manual on top of it (right now, all the pages
> > about it end up as a mix of requirements and a partial git manual).
> > 
> > What do you think about it? Is there anything else that needs being
> > covered?
> > 
> > Copy of the markup for inline comments follows.
> 
> I haven't seen it mentioned yet, but will this GLEP update or replace this
> existing Wiki article on using git w/ Gentoo?:
> 
> https://wiki.gentoo.org/wiki/Gentoo_git_workflow

We will probably remove it in favor of a proper devmanual section.
Proxy-maint already stopped using it because there's too much noise
there.

> Some of the step-by-step bits in the above Wiki page look like good candidates
> to be integrated into the GLEP.

Could you be more specific?

>   It also contains guidelines on writing commit
> messages, such as limiting the first line to ~50 characters, an optional body
> wrapped at 75 chars/line, and including the usual git tags for sign-off and
> such.  Though, I like the explicitness of the GLEP's text on a few things 
> more.

There is a large section on commit messages in the GLEP. Though it uses
69 as the technical limit of summary line, since ~50 is realistically
hard to achieve for Gentoo.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Rich Freeman
On Tue, Jul 25, 2017 at 7:52 AM, Michał Górny  wrote:
>
> Except that there is no machines using it. In all contexts, using full URL 
> for machine readability is better as it works with all software out of the 
> box.
>

Until the domain name of the bugzilla server changes/etc.  Even if we
migrated all the old bugs the URLs would break.  That might be an
argument for not having a full URL.

There would also be less variation.  Bug: 123456 is pretty unambiguous
as a reference.  When you start having http vs https and maybe a few
different ways of creating a URL to a bug it could get messier.

That said, I really don't have a strong opinion on this.

-- 
Rich



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
On wto, 2017-07-25 at 08:26 -0400, Michael Orlitzky wrote:
> On 07/25/2017 07:52 AM, Michał Górny wrote:
> > 
> > I have no clue what you mean. I'm just saying that if you push 10
> > changes in 10 commits, you don't have to go straight to -r10 in a
> > single push.
> > 
> 
> Exactly. Do that instead of hoping that no one checks out your
> intermediate commits. There's no limit to the number of revisions we can
> have, and trying to keep track of when it's safe to push in your head is
> asking for trouble.
> 

How is that relevant? Revision bumps are merely a tool to encourage
'automatic' rebuilds of packages during @world upgrade. I can't think of
a single use case where somebody would actually think it sane to
checkout one commit after another, and run @world upgrade in the middle
of it.

-- 
Best regards,
Michał Górny


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Joshua Kinard
On 07/25/2017 04:05, Michał Górny wrote:
> Hi, everyone.
> 
> There have been multiple attempts at grasping this but none so far
> resulted in something official and indisputable. At the same time, we
> end having to point our users at semi-official guides which change
> in unpredictable ways.
> 
> Here's the current draft:
> https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git
> 
> The basic idea is that the GLEP provides basic guidelines for using git,
> and then we write a proper manual on top of it (right now, all the pages
> about it end up as a mix of requirements and a partial git manual).
> 
> What do you think about it? Is there anything else that needs being
> covered?
> 
> Copy of the markup for inline comments follows.

I haven't seen it mentioned yet, but will this GLEP update or replace this
existing Wiki article on using git w/ Gentoo?:

https://wiki.gentoo.org/wiki/Gentoo_git_workflow

Some of the step-by-step bits in the above Wiki page look like good candidates
to be integrated into the GLEP.  It also contains guidelines on writing commit
messages, such as limiting the first line to ~50 characters, an optional body
wrapped at 75 chars/line, and including the usual git tags for sign-off and
such.  Though, I like the explicitness of the GLEP's text on a few things more.

-- 
Joshua Kinard
Gentoo/MIPS
ku...@gentoo.org
6144R/F5C6C943 2015-04-27
177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943

"The past tempts us, the present confuses us, the future frightens us.  And our
lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michael Orlitzky
On 07/25/2017 07:52 AM, Michał Górny wrote:
> 
> I have no clue what you mean. I'm just saying that if you push 10
> changes in 10 commits, you don't have to go straight to -r10 in a
> single push.
> 

Exactly. Do that instead of hoping that no one checks out your
intermediate commits. There's no limit to the number of revisions we can
have, and trying to keep track of when it's safe to push in your head is
asking for trouble.



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
Dnia 25 lipca 2017 13:25:38 CEST, Michael Orlitzky  napisał(a):
>On 07/25/2017 04:05 AM, Michał Górny wrote:
>> 
>> Here's the current draft:
>> https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git
>> 
>
>It's mostly fine, but there are two changes I disagree with:
>
>> When doing one or more changes that require a revision bump, bump the
>> revision in the commit including the first change. Split the changes
>> into multiple logical commits without further revision bumps — since
>> they are going to be pushed in a single push, the user will not be
>> exposed to interim state.
>
>We shouldn't play games in the repo and hope that everything works out
>if we wait to push until just the right time. We're not going to run
>out
>of numbers -- it's simpler and more correct to do a new revision with
>each commit.

I have no clue what you mean. I'm just saying that if you push 10 changes in 10 
commits, you don't have to go straight to -r10 in a single push.

>
>
>> Gentoo developers are still frequently using Gentoo-Bug tag,
>> sometimes followed by Gentoo-Bug-URL. Using both simultaneously is
>> meaningless (they are redundant), and using the former has no
>> advantages over using the classic #nn form in the summary or the
>> body.
>
>There are two main advantages over having the bug number in the
>summary.
>Space is at a premium in the summary, as Tobias pointed out, and the
>
>  Gentoo-Bug: whatever
>
>format is trivially machine-readable, whereas sticking it somewhere
>else
>is less so.

Except that there is no machines using it. In all contexts, using full URL for 
machine readability is better as it works with all software out of the box.

>
>And just a reminder -- Gokturk worked to get a lot of this stuff into
>the devmanual, e.g.
>
>  https://devmanual.gentoo.org/ebuild-maintenance/index.html
>
>Some of that is important, like the warning not to use "bug #x" in the
>body of the commit message.


-- 
Best regards,
Michał Górny (by phone)



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Jonas Stein
Hi everyone,

> Here's the current draft:
> https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git
> 
> The basic idea is that the GLEP provides basic guidelines for using git,
> and then we write a proper manual on top of it (right now, all the pages
> about it end up as a mix of requirements and a partial git manual).
> 
> What do you think about it? Is there anything else that needs being
> covered?

Thank you, Michał, for preparing an official guide from all the spread
informations. I think it is important for Gentoo to have such GLEP.

I think we should not bundle GLEPs to companies, but keep it more
abstract. The GLEP should still be valid, if we do not use github
anymore. Many large repositories have shut down in the last years. Even
after years we have not fixed all ebuilds [1]. We must be prepared, to
loose github very suddenly and should not hope that it will end with an
announcement years before.


Hence, I suggest to write the GLEP without naming "github" a single time.

[1] https://wiki.gentoo.org/wiki/Upstream_repository_shutdowns

-- 
Best,
Jonas



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
Dnia 25 lipca 2017 12:59:21 CEST, Tobias Klausmann  
napisał(a):
>Hi! 
>
>On Tue, 25 Jul 2017, Michał Górny wrote:
>> The summary line is included in the short logs (git log --
>> oneline, gitweb, GitHub, mail subject) and therefore should
>> provide a short yet accurate description of the change. The summary
>line
>> starts with a logical unit name, followed by a colon, a space and a
>> short description of the most important changes. If a bug is
>associated
>> with a change, then it should be included in the summary line as
>> #nn or likewise. The summary line must not exceed 69
>> characters, and must not be wrapped.
>
>This limit can be a problem if there's a nontrivial change to the
>more than 80 packages in the tree that have more than forty characters
>in
>cat/pkg[0]. Is the only option there to do word-smithing or
>making the commit summary less usefu?
>
>Or do we have a "violate if necessary" agreement regarding that?

Yeah, i meant to apply the "must not" to wrapping but "should not" to length. 
Though I suggest you to ellipsize the package name, if it is unambiguous enough.

The problem is that if you exceed the length, the summary will be usually cut 
one way or another anyway.

>
>
>Regards,
>Tobias
>
>[0] 
>$ cd /usr/portage
>$ ls -d *-*/*|awk '{if (length>=40) {print length, $0}}'|sort -n


-- 
Best regards,
Michał Górny (by phone)



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michael Orlitzky
On 07/25/2017 04:05 AM, Michał Górny wrote:
> 
> Here's the current draft:
> https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git
> 

It's mostly fine, but there are two changes I disagree with:

> When doing one or more changes that require a revision bump, bump the
> revision in the commit including the first change. Split the changes
> into multiple logical commits without further revision bumps — since
> they are going to be pushed in a single push, the user will not be
> exposed to interim state.

We shouldn't play games in the repo and hope that everything works out
if we wait to push until just the right time. We're not going to run out
of numbers -- it's simpler and more correct to do a new revision with
each commit.


> Gentoo developers are still frequently using Gentoo-Bug tag,
> sometimes followed by Gentoo-Bug-URL. Using both simultaneously is
> meaningless (they are redundant), and using the former has no
> advantages over using the classic #nn form in the summary or the
> body.

There are two main advantages over having the bug number in the summary.
Space is at a premium in the summary, as Tobias pointed out, and the

  Gentoo-Bug: whatever

format is trivially machine-readable, whereas sticking it somewhere else
is less so.

And just a reminder -- Gokturk worked to get a lot of this stuff into
the devmanual, e.g.

  https://devmanual.gentoo.org/ebuild-maintenance/index.html

Some of that is important, like the warning not to use "bug #x" in the
body of the commit message.




Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Tobias Klausmann
Hi! 

On Tue, 25 Jul 2017, Michał Górny wrote:
> The summary line is included in the short logs (git log --
> oneline, gitweb, GitHub, mail subject) and therefore should
> provide a short yet accurate description of the change. The summary line
> starts with a logical unit name, followed by a colon, a space and a
> short description of the most important changes. If a bug is associated
> with a change, then it should be included in the summary line as
> #nn or likewise. The summary line must not exceed 69
> characters, and must not be wrapped.

This limit can be a problem if there's a nontrivial change to the
more than 80 packages in the tree that have more than forty characters in
cat/pkg[0]. Is the only option there to do word-smithing or
making the commit summary less usefu?

Or do we have a "violate if necessary" agreement regarding that?


Regards,
Tobias

[0] 
$ cd /usr/portage
$ ls -d *-*/*|awk '{if (length>=40) {print length, $0}}'|sort -n


-- 
Sent from aboard the Culture ship
GSV Of Course I Still Love You



Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Dirkjan Ochtman
On Tue, Jul 25, 2017 at 10:05 AM, Michał Górny  wrote:

> What do you think about it? Is there anything else that needs being
> covered?
>

Looks good to me. Thanks for writing it up!

Cheers,

Dirkjan


Re: [gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Nicolas Bock

On Tue, Jul 25, 2017 at 10:05:06AM +0200, Michał Górny wrote:

Hi, everyone.

There have been multiple attempts at grasping this but none so far
resulted in something official and indisputable. At the same time, we
end having to point our users at semi-official guides which change
in unpredictable ways.

Here's the current draft:
https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git

The basic idea is that the GLEP provides basic guidelines for using git,
and then we write a proper manual on top of it (right now, all the pages
about it end up as a mix of requirements and a partial git manual).

What do you think about it? Is there anything else that needs being
covered?


I like it. +1


Copy of the markup for inline comments follows.



--
Nicolas Bock 


signature.asc
Description: PGP signature


[gentoo-dev] [RFC pre-GLEP] Gentoo Git Workflow

2017-07-25 Thread Michał Górny
Hi, everyone.

There have been multiple attempts at grasping this but none so far
resulted in something official and indisputable. At the same time, we
end having to point our users at semi-official guides which change
in unpredictable ways.

Here's the current draft:
https://wiki.gentoo.org/wiki/User:MGorny/GLEP:Git

The basic idea is that the GLEP provides basic guidelines for using git,
and then we write a proper manual on top of it (right now, all the pages
about it end up as a mix of requirements and a partial git manual).

What do you think about it? Is there anything else that needs being
covered?

Copy of the markup for inline comments follows.

---

{{GLEP
|Number=xx
|Title=Gentoo Git Workflow
|Type=Standards Track
|Status=Draft
|Author=Michał Górny 
}}

==Abstract==
This GLEP specifies basic standards and recommendations for using git
with the Gentoo ebuild repository. It covers only Gentoo-specific
policies, and is not meant to be a complete guide.

==Motivation==
Although the main Gentoo repository is using git for two years already,
developers still lack official documentation on how to use git
consistently. Most of the developers learn spoken standards from others
and follow them. This eventually brings consistency to some extent but
is suboptimal. Furthermore, it results in users having to learn things
the hard way instead of having proper documentation to follow.

There were a few attempts to standardize git use over the time. Most
noteworthy are [[Gentoo git workflow]] and [[Gentoo GitHub]] articles.
However, they are not any kind of official standards, and they have too
broad focus to become one. There was also an initial GLEP attempt but it
never even reached the draft stage.

This GLEP aims to finally provide basic standardization for the use of
git in the Gentoo repository. It aims to focus purely on Gentoo-specific 
standards and not git usage in general. It doesn't mean to be a complete
guide but a formal basis on top of which official guides could be
created.

==Specification==
===Branching model===
The main branch of the Gentoo repository is the master
branch. All Gentoo developers push their work straight to the master
branch, provided that the commits meet the minimal quality standards.
The master branch is also used straight for continous user repository
deployment.

Since multiple developers work on master concurrently, they may be
required to rebase multiple times before being able to push. Developers
are requested not to use workflows that could prevent others from
pushing, e.g. pushing single commits frequently instead of staging them
and using a single push.

Developers can use additional branches to facilitate review and testing
of long-term projects of larger scale. However, since git fetches all
branches by default, they should be used scarcely. For smaller projects,
local branches or repository forks are preferred.

Unless stated otherwise, the rules set by this specification apply to
the master branch only. The development branches can use relaxed rules.

Rewriting history (i.e. force pushes) of the master branch is forbidden.

===Merge commits===
The use of merge commits in the Gentoo repository is strongly
discouraged. Usually it is preferable to rebase instead. However, the
developers are allowed to use merge commits in justified cases. Merge
commits can be only used to merge additional branches, the use of
implicit git pull merges is entirely forbidden.

In a merge commit that is committed straight to the Gentoo repository,
the first parent is expected to reference an actual Gentoo commit
preceding the merge, while the remaining parents can be used to
reference external repositories. The commits following the first parent
are required to conform to this specification alike regular Gentoo
commits. The additional commits following other parents can use relaxed
rules.

===OpenPGP signatures===
Each commit in the Gentoo repository must be signed using the
committer's OpenPGP key. Furthermore, each push to the repository must
be signed using the key belonging to the developer performing the push
(matched via the SSH key).

The requirements for OpenPGP keys are covered by [[GLEP:63|GLEP 63]].

===Splitting commits===
Git commits are lightweight, and the developers are encouraged to split
their commits to improve readability and the ability of reverting
specific sub-changes. When choosing how to split the commits, the
developers should consider the following three rules:
# Use atomic commits — one commit per logical change.
# Split commits at logical unit (package, eclass, profile…) boundaries.
# Avoid creating commits that are 'broken' — e.g. are incomplete, have
uninstallable packages.

It is technically impossible to always respect all of the three rules,
so developers have to balance between them at their own discretion. Side
changes that are implied by other change (e.g. revbump due to some
change) should be included in the first commit requiring