[ 
https://issues.apache.org/jira/browse/HBASE-21668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16736853#comment-16736853
 ] 

Peter Somogyi commented on HBASE-21668:
---------------------------------------

I reverted the change and added these configs to HBase Nightly:

Fetch tags: true (default value)
Honor refspec on initial clone: false (default value)
Shallow clone: 50
Path of the reference repo to use during clone: <empty> (default value)
Timeout (in minutes) for clone and fetch operations: <empty> (default value)

First run looks good so far.
{noformat}
08:51:22 Cloning the remote Git repository
08:51:22 Using shallow clone
08:51:22 shallow clone depth 50
Cloning repository https://github.com/apache/hbase.git
 > git init 
 > /home/jenkins/jenkins-slave/workspace/HBase_Nightly_master-4PMG3QPNOXT5YRQZS7HMZP3GLNX6XSF6DVHYXYIB5BWQ75VW3CPA@2/component
 >  # timeout=10
Fetching upstream changes from https://github.com/apache/hbase.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/apache/hbase.git 
 > +refs/heads/*:refs/remotes/origin/* --depth=50
08:51:51 Pruning obsolete local branches
 > git config remote.origin.url https://github.com/apache/hbase.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # 
 > timeout=10
 > git config remote.origin.url https://github.com/apache/hbase.git # timeout=10
Fetching upstream changes from https://github.com/apache/hbase.git
 > git fetch --tags --progress https://github.com/apache/hbase.git 
 > +refs/heads/*:refs/remotes/origin/* --prune --depth=50
08:51:56 Checking out Revision 7377fcd29bf45208214973547facf4853620fba8 
(master){noformat}

> SCM fetch times out for nightlies
> ---------------------------------
>
>                 Key: HBASE-21668
>                 URL: https://issues.apache.org/jira/browse/HBASE-21668
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>            Reporter: Peter Somogyi
>            Assignee: Peter Somogyi
>            Priority: Critical
>         Attachments: HBASE-21668.master.001.patch
>
>
> Many of the nightly builds are failing with timeout on checkout stage with 
> git fetch command. The default timeout is 2 minutes. We could either increase 
> the timeout or use shallow clone that would also reduce the used space.
> Error from console output:
> {noformat}
> 08:48:10 Cloning the remote Git repository
> 08:48:10 Cloning with configured refspecs honoured and without tags
> Cloning repository https://git.apache.org/hbase.git
>  > git init 
> /home/jenkins/jenkins-slave/workspace/HBase_Nightly_master-4PMG3QPNOXT5YRQZS7HMZP3GLNX6XSF6DVHYXYIB5BWQ75VW3CPA@2/component
>  # timeout=10
> Fetching upstream changes from https://git.apache.org/hbase.git
>  > git --version # timeout=10
>  > git fetch --no-tags --progress https://git.apache.org/hbase.git 
> +refs/heads/*:refs/remotes/origin/*
> 08:50:15 ERROR: Error cloning remote repo 'origin'
> 08:50:15 hudson.plugins.git.GitException: Command "git fetch --no-tags 
> --progress https://git.apache.org/hbase.git 
> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
> 08:50:15 stdout: 
> 08:50:15 stderr: fatal: unable to access 'https://git.apache.org/hbase.git/': 
> Failed to connect to git.apache.org port 443: Connection timed out{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to