<div dir="ltr">Has anyone tried out <a href="http://reviewable.io">reviewable.io</a> yet? It integrates with GitHub pull requests, but provides a separate UI for doing the review which promises to fix a lot of the issues encountered with Github's review interface.<div><br></div><div>Some of the things it claims to support which seem like important additions:</div><div>- Tracking the resolved status of each discussion point</div><div>- Rebasing a PR without losing review history.</div><div>- Optionally reviewing each commit in a branch separately, and tracking across rebase/force-pushes of the PR branch, via matching the commit descriptions of the new push against the old push.</div><div><br></div><div>However, I haven't tried it. It'd be great if some of the folks using GitHub PRs could try switching to <a href="http://reviewable.io">reviewable.io</a>, to evaluate whether that can more successfully replace phabricator than just GitHub PRs by themselves.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 14, 2020 at 3:14 PM Nicolai Hähnle via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Stephen,<br>
<br>
Here's a real-life example of reviews that GitHub doesn't properly<br>
support to my knowledge: <a href="https://reviews.llvm.org/D83088" rel="noreferrer" target="_blank">https://reviews.llvm.org/D83088</a>, look for<br>
"Stack" under "Revision Contents".<br>
<br>
The key here is that there's a sequence of commits that's partially<br>
dependent on each other, so that reviewing each one individually is<br>
suboptimal, but at the same time you really don't want to be forced to<br>
review the whole thing as a unit. In fact, I've been adding to it over<br>
time.<br>
<br>
If the review process of LLVM was significantly faster, the pain of<br>
GitHub's inferior tooling here wouldn't be quite as much of a problem,<br>
but it just isn't -- and I don't think hurrying up the process at the<br>
expense of quality is quite the right answer, either.<br>
<br>
Cheers,<br>
Nicolai<br>
<br>
On Fri, Sep 11, 2020 at 7:39 PM Stephen Neuendorffer<br>
<<a href="mailto:stephen.neuendorffer@gmail.com" target="_blank">stephen.neuendorffer@gmail.com</a>> wrote:<br>
> The LLVM incubator projects have been using github PRs for reviews and so far haven't really seen any significant issues. The biggest confusion so far has not been with reviews but with the difference between "rebase and merge" and "squash and mere". We have used basically 3 different processes:<br>
><br>
> Method 1: start a review with one commit on a new branch (typically in a personal repository 'fork'). Respond to review comments by adding additional commits on the same branch. Then you want to "Squash and Merge". Real life example: <a href="https://github.com/llvm/circt/pull/62" rel="noreferrer" target="_blank">https://github.com/llvm/circt/pull/62</a> Note that Github keeps seems to keep a reference to commits where a review occurred, but does not necessarily preserve other commits in the chain. Also note that you can go back and look at either the final disposition of the code on the main page, or view the diff "as reviewed" to understand comments in their original context.<br>
><br>
> Method 2: start a review as a sequence of commits. Respond to review comments by updating your sequence of commits rebasing locally and git push -f to update your branch with a new set of commits. The sequence of commits is preserved using 'rebase and merge'. Real life example:<br>
><br>
> Method 3: start a review with one commit, respond to review comments with git commit --amend on the commit. git push -f to update your branch. In this case, only one commit is being merged, so 'rebase and merge' and 'squash and merge'. Real life example: <a href="https://github.com/llvm/circt/pull/63" rel="noreferrer" target="_blank">https://github.com/llvm/circt/pull/63</a><br>
><br>
> Some projects attempt to simplify the options and only allow "squash and merge" as an option. This eliminates Method 2, but also prevents mistakes where people intend to use Method 1, but accidently select "Rebase and merge". This results in undesired commit history littered with a bunch of meaningless commits like "Fix typo.", "Address comments." etc Method 2 is generally harder to review and discouraged, but seems sometimes necessary when you have dependent commits that are logically separate but need to be reviewed together to make sense.<br>
><br>
> There seems to be a split between those who prefer to curate commits locally and present them in the PR (i.e. Method 3) as they are to be committed (i.e. squash/amend/etc from my workstation and push the result), and those who seem to feel that it is better to avoid "git rebase" and "git commit --amend" and let github handle rewriting the history with the commit.<br>
><br>
> Steve<br>
><br>
><br>
><br>
> On Wed, Jan 29, 2020 at 12:56 AM Nicolai Hähnle via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
>><br>
>> On Tue, Jan 28, 2020 at 2:23 PM Renato Golin <<a href="mailto:rengolin@gmail.com" target="_blank">rengolin@gmail.com</a>> wrote:<br>
>> > On Tue, 28 Jan 2020 at 12:28, Nicolai Hähnle <<a href="mailto:nhaehnle@gmail.com" target="_blank">nhaehnle@gmail.com</a>> wrote:<br>
>> > > I don't quite follow. Yes, gratuitous useless changes tend to create<br>
>> > > merge and rebase problems and should generally be avoided. Why does it<br>
>> > > make a difference whether they're in multiple commits though?<br>
>> ><br>
>> > I think you misunderstood.<br>
>> ><br>
>> > Our policy [1] is that independent NFC fixups on existing code should<br>
>> > be separate from new changes.<br>
>> ><br>
>> > The point here is that fixups *to the patch* should be squashed into<br>
>> > their original commits *before* merging.<br>
>><br>
>> Okay, this intention wasn't clear to me from what was written. It<br>
>> looks like we agree, then.<br>
>><br>
>><br>
>><br>
>> > Once the patches are in master, and problems have been found, then<br>
>> > adding a fixup to master is totally fine.<br>
>> ><br>
>> > We don't want to rewrite history on master, that'd be a nightmare. If<br>
>> > something is botched, we revert, then reapply.<br>
>> ><br>
>> > We also don't want to have fixups to things that haven't landed on<br>
>> > master yet, so cleaning up the patches and series before merging is<br>
>> > highly encouraged.<br>
>> ><br>
>> > But during the review, rewriting history of the series itself makes it<br>
>> > hard for any review tool to have meaningful representations.<br>
>><br>
>> This isn't quite true, as others already pointed out, and *not*<br>
>> rewriting history can make reviews harder as well! In fact, I've *just<br>
>> now* had that happen to me on another GitHub project, where this<br>
>> sequence of events happened:<br>
>><br>
>> 1. PR was opened with a series of commits, one of which (call it<br>
>> commit B for base) is non-trivial and under review separately as a<br>
>> different PR.<br>
>> 2. Other reviewer makes comments, asks for some refactoring changes.<br>
>> 3. Author makes those changes, adds them as a fixup commit.<br>
>> 4. I can now no longer usefully review the PR, because I only have two<br>
>> options, both of which are similarly useless:<br>
>> 4a. I look at all changes in the PR, in which case I get a messy<br>
>> mixture of commit B (which ought to be reviewed separately) and the<br>
>> rest.<br>
>> 4b. I look at individual commits in the PR, but then I only see a<br>
>> stale version of the author's work.<br>
>><br>
>> The fixup approach *might* work if there is only a single reviewer,<br>
>> but even then I suspect things can quickly become messy. And in any<br>
>> case, the default assumption in LLVM should be that anybody can join a<br>
>> review at any time.<br>
>><br>
>> The one tool that actually gets this right is Gerrit, which<br>
>> understands commit series *and* allows you to diff between versions of<br>
>> a commit. It's unfortunate that Gerrit is so ugly that most people<br>
>> won't even look at it (and it does have other weaknesses as well,<br>
>> admittedly).<br>
>><br>
>> Cheers,<br>
>> Nicolai<br>
>><br>
>><br>
>><br>
>> > So, it's better to have separate fixups during review, but we really<br>
>> > should squash them into their related commits in the series before<br>
>> > pushing.<br>
>> ><br>
>> > --renato<br>
>> ><br>
>> > [1] <a href="http://llvm.org/docs/DeveloperPolicy.html" rel="noreferrer" target="_blank">http://llvm.org/docs/DeveloperPolicy.html</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Lerne, wie die Welt wirklich ist,<br>
>> aber vergiss niemals, wie sie sein sollte.<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>
<br>
<br>
-- <br>
Lerne, wie die Welt wirklich ist,<br>
aber vergiss niemals, wie sie sein sollte.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>