<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 2, 2016, at 10:53 AM, Chris Bieneman via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">My personal 2 cents is that I’d love to see us move to github and a git-native workflow. I’m already on a mostly git workflow and the only thing that tears me out of it is git-svn, which corrupts itself way too often.</div><div class=""><br class=""></div>As a late-comer on the thread I do have a few thoughts I want to share based on the discussion.<div class=""><br class=""></div><div class="">(1) We really don’t know how many users are using git vs svn. What if we encouraged users on git to setup a commit-msg hook that appended text to the end of their commit messages to identify the commits as being from git?</div><div class=""><br class=""></div><div class="">Something like this -> <a href="http://reviews.llvm.org/P4788" class="">http://reviews.llvm.org/P4788</a></div><div class=""><br class=""></div><div class="">Then we could figure out easily a rough approximation of how many of our developers are on git vs svn. Having that information would make a lot of these discussions more clear, and it would give us some level of empirical data.</div><div class=""><br class=""></div><div class="">(2) I strongly think merging repositories is a bad idea. In particular we support building clang without having an LLVM checkout by building against an installed LLVM. Merging the repositories would break this, and that may be an important feature. Similarly compiler-rt is used with GCC, so we need to support it not being in the LLVM repo. All of this gets messy.</div><div class=""><br class=""></div><div class="">(3) Submodules can be messy. I’d prefer if we had a solution where they were optional or something like the github llvm-project-submodule setup where the submodules are all part of a separate repository. We could even make it so that repository is updated by a bot only after a successful compile. That would be kinda cool.</div></div></div></blockquote><div><br class=""></div><div>I agree with all that, and indeed you 3) is definitively what I proposed very early in the thread. I think we should first clearly define what we can/can't do on this aspect before deciding on an eventual move.</div><div><br class=""></div><div>-- </div><div>Mehdi</div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 2, 2016, at 9:28 AM, Scott Warren via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">My two cents worth: our group tries very hard to avoid Git because we find it immature, hard to use, and unreliable. I know others feel differently but our vote is to stay with SVN. If distributed repositories are a priority we’d be much happier with Mercurial.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">skw</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">On Jun 2, 2016, at 11:21 AM, Tanya Lattner via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""><br class="">I personally find this email thread very hard to follow and read (this isn’t anyones fault.. its just a lot of replies). I am sure others do as well. I think it would be good to have a form/survey of some sort that can get feedback from users such as: who they are, how they use LLVM/contributions/etc,  if they are pro-github move, how it impacts them, etc. People could then submit their feedback in an organized way and we could get a better idea of how the community feels on the topic.<span class="Apple-converted-space"> </span><br class=""><br class="">I am happy to try to set something like this up.<br class=""><br class="">-Tanya<br class=""><br class=""><blockquote type="cite" class="">On Jun 2, 2016, at 8:48 AM, Renato Golin via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""><br class="">A little summary...<br class=""><br class="">After a lot of discussion, I think we converged to a few issues that<br class="">we need to solved before we finally decide to move.<br class=""><br class="">Firstly, the responses were overwhelmingly positive (I counted 20 of<br class="">the ~25 people strongly supporting and another 2~3 weakly supporting).<br class="">This is a good indication that the move could be very beneficial to<br class="">the community as a whole, including downstream infrastructure, not<br class="">just the reduction in upstream infrastructure admin costs.<br class=""><br class="">But that doesn't mean we have cleared up all the issues...<br class=""><br class=""><br class=""> The benefits I gathered from the thread:<br class=""><br class="">* Infrastructure admin (not just server costs) is too expensive.<br class="">We're not sysadmins and maintaining all the tools is a full time job.<br class="">Volunteering works for odd problems, not for production services.<br class="">Furthermore, most of the infrastructure we need is covered by<br class="">GitHub/Lab/BB for free, on a scale that we would not have, even with a<br class="">full time sysadmin. Gratis.<br class=""><br class="">* Having one official repository instead of two is beneficial to most<br class="">developers. A lot of people (most people replying on this thread), use<br class="">Git in addition to SVN. Git also seems to be used more on validation<br class="">infrastructure than SVN (no example was put forward on this thread, at<br class="">least), due to the simplicity of controlling the repository and the<br class="">tools available. Reports of how teams decided to script Git to have<br class="">linear behaviour instead of falling back to SVN are enlightening.<br class=""><br class="">* Git developer tooling is a growing trend, while SVN tooling is<br class="">dying. This is not just about GUIs, but repository management (GitHub,<br class="">GitLab, BitBucket, etc versus SourceForge), bisects, branches,<br class="">remotes, hooks, workdir, submodules and all the new development seem<br class="">to be done on Git nowadays, not SVN. Windows may be an odd one related<br class="">to GUIs, but Visual Studio has Git integration and I hear it's similar<br class="">to the other MSVC VCSs. GitHub's desktop interface seems pretty cool,<br class="">too.<br class=""><br class="">* Web repositories make it *a lot* easier to create add-hoc pull<br class="">requests by non-developers, which could boost the number of<br class="">contributions and future contributors, as well as external projects<br class="">using LLVM components.<br class=""><br class="">* GitHub's SVN RW interface has been reported to work well for<br class="">simpler projects, but we need a more thorough examination before<br class="">declare it good enough for our purposes.<br class=""><br class="">* All reports on the thread pointed that downstream infrastructure is<br class="">already using Git, so that's one less problem to worry about if we do<br class="">move.<br class=""><br class=""><br class=""> The issues that were raised:<br class=""><br class="">* Co-dependent patches already break buildbots, but the sequential ID<br class="">helps us identify and ignore. They will continue to break, even if we<br class="">use git sub-modules, so that doesn't change much, but it will be<br class="">harder to spot the issue. Server side hooks may help, as well as<br class="">sub-modules.<br class=""><br class="">* Windows tooling may be an issue. There's a separate thread handling<br class="">that part, so I won't cover it here. But I have to say it wasn't by a<br class="">long shot a resonant problem. It may also have some problem with<br class="">symlinks and in-tree checkouts (when interacting with llvm-projects<br class="">and sub-modules).<br class=""><br class="">* Sub-modules may help with a lot of the current relationship we have<br class="">inside the SVN repo, but it also has some problems. Namely they:<br class="">- require a modern version of git (1.7/1.9), but that's 2013 onward.<br class="">- may need additional server side scripting, but we can keep that<br class="">in another repo to control it.<br class="">- won't replace SVN's monotonic IDs, but do we *really* need them?<br class="">Sub-modules have a bad fame, I gather, but people in the thread<br class="">reported success on using it to build validation and release<br class="">infrastructure as well as doing bisects, checking out code, etc. We<br class="">probably need some documentation on how to do these things, as well as<br class="">some scripts to help people work out the dependencies (or use them).<br class=""><br class="">* GitHub/Lab/BB are not perfect. They have some interface issues, but<br class="">nothing more serious than we already have on our current<br class="">infrastructure. We'll probably have to keep Bugzilla (as GitHub's own<br class="">is really poor), but we can replace all our repos (SVN, Git),<br class="">visualisation tools (ViewVC, Klaus) and Phabricator.<br class=""><br class="">Of all those issues, Windows tooling is a minor problem that shouldn't<br class="">impact decision that much and sub-modules need a lot of ironing out to<br class="">be considered good enough. My *personal* take away is that sub-modules<br class="">(or an alternative server side solution) is the only strong technical<br class="">issue we need to solve before we decide.<br class=""><br class=""><br class="">How does a move look like?<br class=""><br class="">If we decide to move, the proposed schedule is something like this:<br class=""><br class="">STEP #1 : Pre Move<br class=""><br class="">0. Update docs to mention the move, so people are aware the it's going on.<br class="">1. Register an official GitHub project with the LLVM foundation.<br class="">2. Setup another (read-only) mirror of <a href="http://llvm.org/git" class="">llvm.org/git</a> at this GitHub project<br class="">3. Make sure we have a la llvm-project-submodules setup in the<br class="">official account. (Optional or necessary for the buildbots?)<br class="">4. Make sure bisecting with llvm-project-submodules is a good experience<br class="">5. Make sure no one has any blocker<br class=""><br class="">STEP #2 : Git Move<br class=""><br class="">6. Update the buildbots to pick up updates and commits from the<br class="">official git repository<br class="">7. Update Phabricator to pick up commits from the official git repository<br class="">8. Tell people living downstream to pick up commits from the official<br class="">git repository<br class="">9. Give things time to settle. We could play some games like disabling<br class="">the svn repository for a few hours on purpose so that people can test<br class="">that their infrastructure has really become independent of the svn<br class="">repository.<br class=""><br class="">... Until this point nothing has changed for developers, it will just<br class="">boil down to a lot of work for buildbot and other infrastructure<br class="">owners ...<br class=""><br class="">STEP #3: Write Access Move<br class=""><br class="">10. Collect peoples GitHub account information, give them push access.<br class="">Ideally while still locking the GitHub repository somehow...<br class="">11. Switch SVN repository to read-only and allow pushes to the GitHub<br class="">repository.<br class="">12. Mirror Git to SVN.<br class=""><br class="">STEP #4 : Post Move<br class=""><br class="">13. Archive the SVN repository, if GitHub's SVN is good enough.<br class="">14. Review and update *all* LLVM documentation.<br class="">15. Review website links pointing to viewvc/klaus/phab etc. to point<br class="">to GitHub instead.<br class=""><br class="">This is an adapted version of Matthias' and Mehdi's proposal, and it's<br class="">not a final version in any way, but these are the basic things we need<br class="">to worry about.<br class=""><br class=""><br class=""> Steps from here...<br class=""><br class="">Aaron has started the Windows tooling thread, and if you have any<br class="">comments, please follow from there. I suggest sub-modules supporters<br class="">to start another thread to iron that out separately.<br class=""><br class="">Once those issues are resolved, we shall start another thread to<br class="">finally take a decision to move or not.<br class=""><br class="">Thanks everyone!<br class=""><br class="">cheers,<br class="">--renato<br class="">_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class=""></blockquote><br class="">_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">cfe-dev mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:cfe-dev@lists.llvm.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">cfe-dev@lists.llvm.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>