False failures on checkstyle in Jenkins-gerrit hook

Eyal Edri eedri at redhat.com
Wed Sep 4 07:45:33 UTC 2013


thanks for the notice,
not so many jobs as i see it here: http://jenkins.ovirt.org/job/ovirt_engine_sanity_compile_checkstyle_gerrit/:
It was caused by false definition of git location on one of the centos slaves in jenkins (git was pointing to java location wrongly).

it was fixed, and should work now.

you can retrigged any failing patch here: http://jenkins.ovirt.org/gerrit_manual_trigger/?

eyal.

----- Original Message -----
> From: "Allon Mureinik" <amureini at redhat.com>
> To: "infra" <infra at ovirt.org>
> Cc: "Eyal Edri" <eedri at redhat.com>
> Sent: Wednesday, September 4, 2013 10:33:01 AM
> Subject: False failures on checkstyle in Jenkins-gerrit hook
> 
> Hi guys,
> 
> Lots, and I mean LOTS of recent ovirt-engine patches are falsely failing the
> checkstyle gerrit-hook (e.g.,: http://gerrit.ovirt.org/#/c/18854/)
> 
> From the job's output it seems that the slave simply can't clone the git
> repo.
> E.g.
> http://jenkins.ovirt.org/job/ovirt_engine_sanity_compile_checkstyle_gerrit/7643/:
> consoleTriggered by Gerrit: http://gerrit.ovirt.org/18854
> Building remotely on centos64-vm01 in workspace
> /home/jenkins/workspace/ovirt_engine_sanity_compile_checkstyle_gerrit
> Checkout:ovirt_engine_sanity_compile_checkstyle_gerrit /
> /home/jenkins/workspace/ovirt_engine_sanity_compile_checkstyle_gerrit -
> hudson.remoting.Channel at 381f2c7e:centos64-vm01
> Using strategy: Gerrit Trigger
> Last Built Revision: Revision 1b81a483250b4c0969b6bfac04dd8e8330a97d11
> (master)
> Cloning the remote Git repository
> Cloning repository git://gerrit.ovirt.org/ovirt-engine
> Error trying to determine the git version: Error performing command:
> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/ --version
> Assuming 1.6
> ERROR: Error cloning remote repo 'origin' : Could not clone
> git://gerrit.ovirt.org/ovirt-engine
> hudson.plugins.git.GitException: Could not clone
> git://gerrit.ovirt.org/ovirt-engine
> 	at
> 	org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:226)
> 	at
> 	org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.clone(AbstractGitAPIImpl.java:57)
> 	at
> 	org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clone(CliGitAPIImpl.java:33)
> 	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1006)
> 	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
> 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> 	at hudson.remoting.Request$2.run(Request.java:326)
> 	at
> 	hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at
> 	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at
> 	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:724)
> Caused by: hudson.plugins.git.GitException: Error performing command:
> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/ clone -o origin
> git://gerrit.ovirt.org/ovirt-engine
> /home/jenkins/workspace/ovirt_engine_sanity_compile_checkstyle_gerrit/ovirt-engine
> 	at
> 	org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:797)
> 	at
> 	org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$100(CliGitAPIImpl.java:33)
> 	at
> 	org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:224)
> 	... 14 more
> Caused by: java.io.IOException: Cannot run program
> "/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/": error=13, Permission denied
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
> 	at hudson.Proc$LocalProc.<init>(Proc.java:244)
> 	at hudson.Proc$LocalProc.<init>(Proc.java:216)
> 	at hudson.Launcher$LocalLauncher.launch(Launcher.java:763)
> 	at hudson.Launcher$ProcStarter.start(Launcher.java:353)
> 	at hudson.Launcher$ProcStarter.join(Launcher.java:360)
> 	at
> 	org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:786)
> 	... 16 more
> Caused by: java.io.IOException: error=13, Permission denied
> 	at java.lang.UNIXProcess.forkAndExec(Native Method)
> 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
> 	at java.lang.ProcessImpl.start(ProcessImpl.java:130)
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
> 	... 22 more
> Trying next repository
> ERROR: Could not clone repository
> 
> 
> Can you please take care of this?
> It's causing a lot of noise and false alarms on gerrit.
> 
> 
> Thanks,
> Allon
> 



More information about the Infra mailing list