<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 16, 2014 at 3:48 PM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>"And there was much rejoicing"<br></div></div></div></div></div></div></div></blockquote><div><br></div><div>\o/</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div></div>But seriously, we all know that a lot of people have wanted to move to Git for some time. For the record, everyone at Digium has wanted to move the project to Git for some time. I swore to myself that we wouldn't do another Standard release on Subversion - after we spent at least six weeks mucking around with merge conflicts during Asterisk 12 - and with Asterisk 14 looming ever closer, the time is now to start getting something done on this.<br><br></div>So!<br><br></div>To that end, a page on the wiki has been made with some initial thoughts:<br><br><a href="https://wiki.asterisk.org/wiki/display/AST/Git+Migration" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Git+Migration</a><br><br></div>To summarize:<br></div> * A comparison of management platforms has been done. Barring a giant catastrophe or some insane limitation, we're going to go simple here and stick with gitolite. Reasoning is on the wiki page.<br></div> * The first thing to migrate is _not_ the Asterisk project, but the Asterisk Test Suite. That will allow us (or force us) to deal with some of the tooling and process issues, which will make it easier to tackle Asterisk.<br><div><div><div><div><div><div><div><div><div><br></div><div>I'm sure there are a lot of opinions about all of this, and if you have thoughts on technical or process hurdles we may be running into, I'd love to hear it. Just remember that like many other things in life and development, there's a lot of ways to manage your source code. You may really, really, _REALLY_ like the way Project X does it, and you may think that the way we are proposing it is clearly inferior. That's great, you may be right. But in the interest of this not dragging on for another 5 years, I'd like to keep any discussions focussed on getting things done while not shooting ourselves in our virtual feet.</div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>So, I realize this is pretty much exactly the opposite of what you just said, but I wanted to offer some comments on the infrastructure.  :-)  I'm really not deeply invested in what is chosen.  My interest here is just to provide an overview of another option in the interest of exploring options.</div><div><br></div><div>For the last few years, most of my time has been going into OpenStack [1].  We use git and I have become a big fan of our workflow and infrastructure.  It's all open source and reusable.</div><div><br></div><div>From a high level, all patches go to a code review system.  *Every* patch must be peer reviewed (usually by 2 people, but that's a policy decision).  *Every* patch must also pass tests.  Once a patch passes both tests and peer review, it is automatically merged into the repository.</div><div><br></div><div>I *love* that workflow for several reasons.  If it's appealing, it's probably much easier to do it now while you're doing a big switch anyway.  If you're not sold, I'm certainly not hurt.  Like I said, I just wanted to offer info.  The current plan will be less up front setup for sure.</div><div><br></div><div>If you're a hands on kind of person, browse <a href="http://review.openstack.org/">http://review.openstack.org/</a> for open code reviews.  You can also see patches going through CI pipelines on <a href="http://status.openstack.org/zuul//">http://status.openstack.org/zuul//</a></div><div><br></div><div>The major tools involved are:</div><div><br></div><div> - gerrit for code review and repository management [2][3]</div><div> - jenkins for CI [4]</div><div> - Zuul, A CI job scheduler that automates running things in response to events on gerrit. [5]</div><div> - CGit, repo hosting [6][7]</div><div><br></div><div>Everything we use is managed via puppet and all of the configuration is in git.  It's designed to be reusable.  The folks that run it have documented how to re-use it [8] and are quite friendly.  You can find them in #openstack-infra on freenode.</div><div><br></div><div>[1] <a href="http://www.openstack.org">http://www.openstack.org</a></div><div>[2] <a href="https://code.google.com/p/gerrit/">https://code.google.com/p/gerrit/</a></div><div>[3] <a href="https://review.openstack.org/">https://review.openstack.org/</a></div><div>[4] <a href="http://jenkins-ci.org/">http://jenkins-ci.org/</a></div><div>[5] <a href="http://ci.openstack.org/zuul.html">http://ci.openstack.org/zuul.html</a></div><div>[6] <a href="http://ci.openstack.org/git.html">http://ci.openstack.org/git.html</a></div><div>[7] <a href="http://git.openstack.org">http://git.openstack.org</a></div><div>[8] <a href="http://ci.openstack.org/running-your-own.html">http://ci.openstack.org/running-your-own.html</a><br></div><div><br></div><div>I'll also try to answer the fields of the comparison chart on the wiki page:</div><div><br></div><div>-- Web View</div><div><br></div><div>Yes.</div><div><br></div><div>-- Project Management</div><div><br></div><div>This would replace existing usage of bamboo and reviewboard.  It does not include issue tracking.  Keeping that is would be fine.</div><div><br></div><div>-- Protected Branches</div><div><br></div><div>Gerrit supports permissions on a per branch basis.</div><div><br></div><div>-- Rewriting history</div><div><br></div><div>Not sure the intent here ... wanting to make that can be avoided?</div><div><br></div><div>In this system, the merges are automated so you can't accidentally do a bad push.  An admin can force reset a repo if needed, of course.</div><div><br></div><div>-- Team repos</div><div><br></div><div>I'd recommend just using your own account on github or whatever.</div><div><br></div><div>-- Git hooks</div><div><br></div><div>For what, exactly?  It's probably easier to discuss the problem that needs to be solved.</div><div><br></div><div>-- Web hooks</div><div><br></div><div>Again, it's probably worth discussing the use case.  Gerrit has an event stream.  That event stream includes merges.  Tools to do things in responses to merges (which could be running a web hook) listen and react.</div><div><br></div><div>-- Performance</div><div><br></div><div>Yes.  :-)</div><div><br></div><div>There's lots of stats I could dig up, but as one example, I track code review stats for a subset of projects on <a href="http://review.openstack.org">review.openstack.org</a>  In the last year, for that subset, there have been 266,127 code reviews done (avg > 700 per day).  That gives some sense of scale.  From a quick glance at the CI status page (<a href="http://status.openstack.org/zuul/">http://status.openstack.org/zuul/</a>), it has been launching about 500-600 jobs per hour today.</div><div><br></div><div>-- Process Recommendation</div><div><br></div><div>I discussed this a good bit above, but I'm happy to answer questions.</div><div><br></div><div>-- </div><div>Russell Bryant</div></div></div></div>