I found two issue when I try to deploy the Gerrit2.
## deploy to Jetty
cd $HOME/gerrit2/gerrit
./to_jetty.my.sh /usr/share/jetty/
share/jetty/", it download and compile and package again, but fail at
jgit test.
Failed tests:
test002_WriteEmptyTree(org.spearce.jgit.lib.T0003_Basic)
test003_WriteShouldBeEmptyTree(org.spearce.jgit.lib.T0003_Basic)
My git version is 1.6.0.3 .
I found two issue when I try to deploy the Gerrit2.
1. The repository of gwtorm and gwtjsonrpc in gerrit2/gerrit/appjar/
pom.xml is not availiable.
resolve: Currently, I manual compile the package ship with Gerrit2 and
install it to local.
2. the file gerrit/devdb/jdbc-postgresql.jar is missing so it will
fail when run to_jetty.sh
resolve: I download one from http://jdbc.postgresql.org/download/postgresql-8.3-604.jdbc4.jar
Because the etc directory and jetty.xml is install to /etc/jetty , so
I modify the to_jetty.sh for this :
11c11
< if ! [ -f "$jetty/lib/start.jar" ]
---
> if ! [ -f "$jetty/etc/jetty.xml" ]
The bellow is the report file content after I run " sodo to_jetty.sh /
usr/share/jetty ":
I managed to run Gerrit on Jetty (on Mac OS X).
I don't know why but when I go to http://localhost:8080/Gerrit#all all
I see is toolbar with All/Recent Changes&Unclaimed changes, Sign In
links and content saying:
"Not Found
The page you requested was not found."
Clicking on Sign In and going through Google Login screen results in
"Code Review - Unexpected Error -
com.google.gwt.user.client.rpc.InvocationException
Invalid JSON Response" ...weird!
Is it possible to enable logging in Gerrit? Or maybe it does log but I
don't know where is the log file.
Btw those are failed tests:
testDequote_OctalAll
(org.spearce.jgit.util.QuotedStringGitPathStyleTest)
testDequote_Latin1
adding -Dmaven.test.skip=true to "mvn install" bypasses them.
On Thu, Jan 8, 2009 at 01:19, Wiktor <wiktor.kw...@gmail.com> wrote:Clicking on Sign In and going through Google Login screen results in
"Code Review - Unexpected Error -
com.google.gwt.user.client.rpc.InvocationException
Invalid JSON Response" ...weird!
Yikes. What browser is this?
This is the file /jgit/jgit-maven/jgit/target/surefire-reports/
org.spearce.jgit.lib.T0003_Basic.txt
test002_WriteEmptyTree(org.spearce.jgit.lib.T0003_Basic) Time
elapsed: 0.03 sec <<< FAILURE!
junit.framework.AssertionFailedError: Read-only trash/
trash1231395890218.244/.git/objects/4b/
825dc642cb6eb9a060e54bf8d69288fbee4904
I'll try to investigate jgit test failures next week
(by the way -
just out of curiosity: why jgit's repository on android.git.kernel.org
is named "egit.git" - with e instead of j?).
One more issue. Maybe I'm missing something but I can't make Gerrit
display my git repositories. I did everything as described in INSTALL:
"- Create and configure the Git repository base:
This directory holds the Git repositories that Gerrit knows
about and can service. Gerrit needs write access to this
directory and any Git repository stored within it.
mkdir /srv/git
psql -c "UPDATE system_config SET git_base_path='/srv/git'" reviewdb"
Is git_base_path directory supposed to contain only bare repositories?
Or maybe they need to contain "git-daemon-export-ok" file?
Thanks to Shawn's detailed description I've finally git-pushed a patch
into my local Gerrit 2 installation (yup, it works!).
I had few minor difficulties:
- SSH Username - at first I didn't notice it was there, it's not set
by default (for example to user's primary email) nor it is editable in
Gerrit,
- Web Identities/Email Address - I don't know why but when I logged
with Google Account info this field was not set. That causes Gerrit to
refuse my git-pushes with message "invalid committer".
For now only editing Gerrit's database solves both issues.
Is there a work flow diagram for Gerrit2? Is there any difference from
Gerrit?
Do you have anything for describes how Gerrit2 works from a high-level?
What are the features of Gerrit2?
Do you have information on continuous integration aspects of Gerrit2?
Auto-build? Auto-test? Auto-release?
Best Regards,
Robert Entringer
Motorola
414-331-0791
Is there a work flow diagram for Gerrit2?
Is there any difference from Gerrit?
Do you have anything for describes how Gerrit2 works from a high-level?
What are the features of Gerrit2?
Do you have information on continuous integration aspects of Gerrit2?
Auto-build? Auto-test? Auto-release?
That's neat. I'll file some bug-reports later if you don't mind :-)
> We're experimenting with JIRA issue tracker. There's a project for Gerrit:
>
> http://140.211.167.230/jira/browse/GERRIT
>
Oh and one more question - when does Gerrit 2 merge verified &
approved patches into its projects? Because Gerrit 2 has direct access
to the repository I'd assumed it would be instantaneous but it doesn't
seem so (I don't see any changes in my project's repository).
On Jan 12, 11:02 am, Shawn Pearce <s...@google.com> wrote:
> On Mon, Jan 12, 2009 at 10:18, Wiktor <wiktor.kwapisiew...@gmail.com> wrote:
>
> > Oh and one more question - when does Gerrit 2 merge verified &
> > approved patches into its projects?
>
> After I write the code to do this. :-)
>
> The submit patchset button marks the change record with state SUBMITTED,
So, I assume this is now available in Gerrit2?
I made a couple of repo uploads and approved them with another account
on gerrit2.
And I am seeing the 'green tick' on Approved/Verified, and got mails
from Gerrit2.
But I still dont see the changes, in the repository. (Tried repo-
init'ing, repo-sync'ing on separate workspace)
Neither are they moved to 'Merged Changes' in web-ui.
> If you can't see the "Submit Patch Set N" button next to "Publish Comments"
> you need to give one of your groups the Submit approval category in the
> project admin page.
This is it. Thanks. Works now!
I had created groups with increased 'permission range' for Review, but
the 'Submit' Category was not too visible.
Perhaps having a default group as 'Reviewers' belonging to 'Code
Review' Category with '-2:+2' range and 'Submit' Category would be a
good initial state to have.
-Jey
Perhaps having a default group as 'Reviewers' belonging to 'Code
Review' Category with '-2:+2' range and 'Submit' Category would be a
good initial state to have.