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

Sean Busbey commented on HBASE-21668:
-------------------------------------

Looking at the job config for HBase Nightly, there's an option for "Advanced 
Clone Behaviors" and it has the option to make shallow clones.

I think we should try reverting this change and using that config. then we can 
see how it behaves across the per-branch checkouts.

For picking how shallow or deep to make the clone, here are our top days of 
activity:

{code}
 git log --format="%cd" --date=short origin/master | uniq -c | sort -n -r | 
head -n 20
  72 2013-02-13
  49 2014-06-27
  36 2018-06-28
  36 2018-01-09
  29 2017-05-22
  21 2014-05-22
  20 2018-04-11
  20 2013-09-17
  20 2013-07-18
  20 2010-11-10
  19 2013-11-26
  19 2013-09-20
  19 2013-02-14
  19 2012-05-17
  19 2011-11-01
  18 2018-03-14
  18 2012-05-30
  18 2011-03-24
  17 2015-10-22
  17 2014-11-18
{code}

I think maybe we go with 50 instead of 30?

> 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