]> 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)
committerZack Cerza <zack@redhat.com>
Wed, 12 Apr 2017 16:21:01 +0000 (10:21 -0600)
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 8ab9681c2c335ba1ebc4c5bcd036b45455402145..fa64edc764b4f56aa2bf9596a9c95ae1064bfaa9 100644 (file)
@@ -321,6 +321,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
                 run.Raw('&&'),
                 'git',
                 'clone',
+                '--depth=1',
                 git_url,
                 clonedir,
                 run.Raw('&&'),
@@ -348,6 +349,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('&&'),