]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/workunit.py: when cloning, use --depth=1
authorDan Mick <dan.mick@redhat.com>
Wed, 29 Mar 2017 03:08:13 +0000 (20:08 -0700)
committerKefu Chai <kchai@redhat.com>
Fri, 7 Apr 2017 05:29:48 +0000 (13:29 +0800)
Help avoid killing git.ceph.com.  A depth 1 clone takes about
7 seconds, whereas a full one takes about 3:40 (much of it
waiting for the server to create a huge compressed pack)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit c1309fbef300a062138ac40eb5d3e5081b833072)

qa/tasks/workunit.py

index c509d504eea016b617e147b7e33697d4aaefe641..a602c55f035a8abf5daf50c2da6077d7e92dc852 100644 (file)
@@ -319,6 +319,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
                 run.Raw('&&'),
                 'git',
                 'clone',
+                '--depth=1',
                 git_url,
                 clonedir,
                 run.Raw('&&'),
@@ -344,6 +345,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
                 run.Raw('&&'),
                 'git',
                 'clone',
+                '--depth=1',
                 alt_git_url,
                 clonedir,
                 run.Raw('&&'),