gecko-dev critic instance

32 views
Skip to first unread message

James Graham

unread,
Apr 2, 2014, 5:52:14 PM4/2/14
to mozilla-c...@googlegroups.com
For demo purposes I have set up a critic instance based on the gecko-dev
repository [1] and added a trivial sample review [2]. To review changes
on here you will need to create a user account; this can be done from
the "Sign In" link at the top of the page. To push new reviews, or new
changesets to existing reviews, you will need to have an account on the
server; I should be able to set this up if you send me your ssh public
key / username (but probably not before morning, BST).

There is a tutorial at the top of the page, but some tips to get you
started:

* Reviewers are automatically assigned based on filters. To mark
yourself as a reviewer for a particular bit of code use the "Add Filter"
button on the home page.

* Both reviewers and non-reviewers can add issues or notes to particular
lines in a review. Issues block the review from completing, notes do not.

* The concept of "code reviewed" and "issues remaining" are orthogonal.
Once you have reviewed some code, you mark it as reviewed, even if you
found issues. A review is marked as complete when there are 0
outstanding issues and 100% of the code is reviewed.

* After interacting with a review (marking some code as reviewed or
adding some comments) you need to press "Submit" at the top of the
screen to publish the changes.

* Creating a review is via git push. So you would initially

git remote add critic
ssh://user...@mozcritic.hoppipolla.co.uk/var/git/gecko-dev.git

Then to create a review you would typically do something like:

git push --set-upstream critic HEAD:username/branch_name

At this point you will be prompted to select the commits that should be
in the review via the UI (but see below). After that just

git push

every time you have more commits that address issues in the review. This
will mark any issues on lines that were touched by the new commit as
"addressed". Of course the reviewer can reopen these if the commit
doesn't actually address them. If you set "createViaPush" in the critic
config, branches with the name r/(something) will automatically generate
reviews containing their HEAD at the time of first push.

Note:

* The web UI is not HTTPS, so your password will be sent in the clear.

* Because this is a low-spec VPS and gecko-dev is huge there are some
pretty significant performance issues (in particular git pack-objects is
very very slow, which can make pushes seem very very slow, although
actually the commits are there already)

[1] http://mozcritic.hoppipolla.co.uk
[2] http://mozcritic.hoppipolla.co.uk/r/1

James Graham

unread,
Apr 24, 2014, 9:52:40 AM4/24/14
to mozilla-c...@googlegroups.com
On 02/04/14 22:52, James Graham wrote:
> For demo purposes I have set up a critic instance based on the gecko-dev
> repository [1]

It looks like no one was very interested in trying this out. If that's
still the case I will kill it and save myself the hosting cost.

Ehsan Akhgari

unread,
Apr 24, 2014, 9:59:36 AM4/24/14
to James Graham, mozilla-c...@googlegroups.com
I have been meaning to give it a try at some point but unfortunately have not had enough time yet.  :(  If this is costing you money please feel free to kill it.


--
You received this message because you are subscribed to the Google Groups "mozilla-code-review" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-code-review+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Graham

unread,
Apr 30, 2014, 5:11:07 AM4/30/14
to Ehsan Akhgari, mozilla-c...@googlegroups.com
On 24/04/14 14:59, Ehsan Akhgari wrote:
> I have been meaning to give it a try at some point but unfortunately
> have not had enough time yet. :( If this is costing you money please
> feel free to kill it.

OK, this is now gone. If there any interest in trying the critic
approach to code review I still have an instance [1] which is hooked up
to github and being used for various projects like Servo and
web-platform-tests. The github integration doesn't quite use the normal
workflow (since it tracks pushes to GH rather than owing the repo
itself, which means that a few things, in particular rebases, work a
little differently), but it is sufficient to demonstrate the features
for assigning reviews, commenting on code, and tracking review progress.

[1] https://critic.hoppipolla.co.uk
Reply all
Reply to author
Forward
0 new messages