<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 1:06 AM Kristina Brooks via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">-1 from me as well. GitHub UI feels extremely sluggish with large<br>
projects, forks feel like needless hurdles to jump over,<br>
especially for small patches - having to fork the entire monorepo,<br>
just to do a GitHub PR would be extremely cumbersome.<br>
<br>
Just recently I submitted a very tiny PR for PcapPlusPlus on GitHub<br>
which involved:<br>
1). Forking the repository<br>
2). Cloning the fork<br>
3). Applying the patch<br>
4). Pushing it and creating a PR.<br>
5). Deleting the fork (Since I didn't want it cluttering up my account<br>
and I'm not a regular contributor to PcapPlusPlus).<br></blockquote><div><br></div><div>I am not sure I understand why you went through all these steps. If you had a patch in the first place, you likely had already a local clone of the repo? At this point you need to create a fork indeed (either through a click on the canonical repo or using GitHub command line utility), and then you can just push your current HEAD to your fork (after adding it locally as a remote). This kind of manipulation can be strange coming from SVN but are extremely common working on git/GitHub. Assuming you have a clone of the PcapPlusPlus project locally this is just a matter of:</div><div><br></div><div>$ git remote add fork git@github.com:christinaa/PcapPlusPlus.git</div><div>$ git checkout -b my_branch</div><div>$ git push fork my_branch</div><div><br></div><div>Iterating on the review can be done by just committing more into the branch and pushing, the PR is automatically updated.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Neither the pull request mechanism nor GitHub issues feel like they're<br>
suitable for large projects since it's common to see large GitHub<br>
projects with ignored issues and worse filtering/categorizing. And PRs<br>
as a review mechanism are far worse than Phabricator or any other<br>
dedicated code review software, and I think a lot of GitHub projects<br>
use internal or separate code review tools as-is, with PRs being<br>
second class citizens and are more prone to getting derailed. It's not<br>
uncommon for GitHub issue or PR discussions to turn into massive<br>
threads that quickly turn into bikeshedding and off-topic conversations.<br>
<br>
It also feels like this will inevitably force people to use external<br>
tools to handle it, instead of just being able to use Git on its<br>
own (something like `git cl` comes to mind, which some may like and<br>
some may not).<br></blockquote><div><br></div><div>Actually my experience is radically the opposite: Phabricator is the one that does not allow to "just being able to use Git on its</div><div>own", you're either stuck with manually exporting .patch files and manually add them to the UI or use a php-based CLI indeed (which is the point you seem to be against).</div><div><br></div><div>Best,</div><div><br></div><div><div>-- </div><div>Mehdi</div></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
And Roman raised a lot of good points regarding other, more<br>
bureaucratic aspects of GitHub and it raising the bar for existing<br>
contributors.<br>
<br>
Just my two cents in.<br>
<br>
On Thu, Nov 7, 2019 at 8:09 AM Roman Lebedev via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Strong -1 personally.<br>
><br>
> * What is the endgoal? To fully kill phab and move to github pullrequests?<br>
>   it might be best to discuss *that* first. (did i miss an RFC?)<br>
> * Separation of attention - does everyone who cares<br>
>   now has to also look at pull requests for reviews;<br>
>   or should they be exempt from general review attention?<br>
> * For me personally after using phabricator, github now seems<br>
>   extremely crude, laggy, limited. To name a few:<br>
>   * There is no way to see previous version of the patch.<br>
>     I don't think there is any way to disable force-push for PR's.<br>
>     While this is only 'slightly' limiting for the reviewer,<br>
>     this can be more limiting for the author - how do i go back<br>
>     to previous revision? I can't, i need to maintain a copy<br>
>     of every branch i pushed manually.<br>
>   * Impossible to chain reviews - a PR diff can only be made<br>
>     on top of git master branch. Any non-trivial change consists of<br>
>     separable PR's. Now either one will only be able to submit<br>
>     dependent PR after the prereqs are merged, or the diff will be<br>
>     impossible to read.<br>
>   * Does not load large diffs by default.<br>
>     That caught me by surprise several times<br>
>     when i was searching for something.<br>
>   * No diffs in mail - *super* inconvenient.<br>
>     One has to open each pr in browser (or fetch via git etc etc)<br>
>   * Github is an official US-based commercial organisation.<br>
>     It *has* to follow U.S. export law. In particular i'm thinking of<br>
>       <a href="https://techcrunch.com/2019/07/29/github-ban-sanctioned-countries/" rel="noreferrer" target="_blank">https://techcrunch.com/2019/07/29/github-ban-sanctioned-countries/</a><br>
>       <a href="https://github.com/tkashkin/GameHub/issues/289" rel="noreferrer" target="_blank">https://github.com/tkashkin/GameHub/issues/289</a><br>
>     Does phabricator already have such restrictions, blocks?<br>
>     If not, wouldn't you say adding such restrictions is not being<br>
>     more open for contributors?<br>
>     What happens when, in not so long in the future, the entirety of, say,<br>
>     china or russian federation is blocked as such?<br>
>   * Same question can be asked about internet "iron" curtains<br>
>     certain (*cough*) countries are raising. That also has already happened<br>
>     before (and *will* happen again), and i was personally affected:<br>
>       <a href="https://en.wikipedia.org/wiki/Censorship_of_GitHub#Russia" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/Censorship_of_GitHub#Russia</a><br>
>     I don't recall that happening to phabricator yet.<br>
>     I fail to see how that is more contributor-friendly.<br>
>   * Not sure anyone cares, but while using github as main git<br>
>     repository "mirror" is perfectly fine - git is distributed, only canonical<br>
>     write-repo would be affected anything bad happen. But that isn't the case<br>
>     for reviews, issues; as it has been discussed in the "let's migrate bugzilla<br>
>     to github issues", it is far more involved.<br>
>   * What about DMCA? Not sure how this is currently handled.<br>
>   * UI feels laggy. Not much to add here, pretty subjective.<br>
>   * I'm sure i'm missing a few.<br>
><br>
> The github does come with it's benefits, sure:<br>
> * It is *simpler* to preserve git commit author.<br>
>   Currently one has to ask the author for the "Author: <a href="mailto:e@ma.il" target="_blank">e@ma.il</a>" line,<br>
>   and do `git commit --amend --author="<>"`.<br>
> * @mention is wide-r-reaching - whole github, not just llvm phabricator<br>
> * No more "phabricator disk full" issues<br>
> * ???<br>
><br>
> TLDR: such migration lowers the bar for new, first time,<br>
> unestabilished contributors, but i personally feel it *significantly*<br>
> raises the bar for the existing contributors, reviewers.<br>
> We don't live in perfect world. Aspirational goals are aspirational.<br>
> They should be attempted to be reached, but they shouldn't shadow and<br>
> overweight, take over the main goal of the LLVM project.<br>
><br>
> Personally, i don't see that benefits out-/over- weight the drawbacks.<br>
><br>
> Roman.<br>
><br>
> On Thu, Nov 7, 2019 at 8:32 AM Mehdi AMINI via llvm-dev<br>
> <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> ><br>
> > Hi all,<br>
> ><br>
> > Now that we're on GitHub, we can discuss about pull-requests.<br>
> > I'd like to propose to enable pull-request on GitHub, as a first step as an experimental channel alongside the existing methods for contributing to LLVM.<br>
> > This would allow to find workflow issues and address them, and also LLVM contributors in general to start getting familiar with pull-requests without committing to switching to pull-requests immediately. The community should evaluate after a few months what would the next steps be.<br>
> ><br>
> > GitHub pull-requests is the natural way to contribute to project hosted on GitHub: this feature is so core to GitHub that there is no option to disable it!<br>
> ><br>
> > The current proposal is to allow to integrate contributions to the LLVM project directly from pull-requests. In particular the exact setup would be the following:<br>
> ><br>
> >   - Contributors should use their own fork and push a branch in their fork.<br>
> >   - Reviews can be performed on GitHub. The canonical tools are still the mailing-list and Phabricator: a reviewer can request the review to move to Phabricator.<br>
> >   - The only option available will be to “squash and merge”. This mode of review matches the closest our current workflow (both phabricator and mailing-list): conceptually independent contributions belongs to separate review threads, and thus separate pull-requests.<br>
> > This also allow the round of reviews to not force-push the original branch and accumulate commits: this keeps the contextual history of comments and allow to visualize the incremental diff across revision of the pull-request.<br>
> >   - Upon “merge” of a pull-request: history is linear and a single commit lands in master after review is completed.<br>
> ><br>
> > As an alternative staging proposal: we could enable pull-requests only for a small subset of sub-projects in LLVM (i.e. not LLVM/clang to begin with for example) in the repo. In this case, we would propose to begin with the MLIR project (as soon as it gets integrated in the monorepo). This would be a good candidate to be the guinea pig for this process since it does not yet have a wide established community of contributors, and the current contributors are already exclusively using pull-requests.<br>
> ><br>
> > Here is a more complete doc on the topic: <a href="https://docs.google.com/document/d/1DSHQrfydSjoqU9zEnj3rIcds6YN59Jxc37MdiggOyaI" rel="noreferrer" target="_blank">https://docs.google.com/document/d/1DSHQrfydSjoqU9zEnj3rIcds6YN59Jxc37MdiggOyaI</a><br>
> ><br>
> > Cheers,<br>
> ><br>
> > --<br>
> > Mehdi<br>
> ><br>
> > _______________________________________________<br>
> > LLVM Developers mailing list<br>
> > <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> > <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div></div></div></div></div>