From: Dan Mick Date: Wed, 29 Mar 2017 03:08:13 +0000 (-0700) Subject: tasks/workunit.py: when cloning, use --depth=1 X-Git-Tag: v10.2.8~120^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6c14a803894d71bae858705855551a44bdf9bf67;p=ceph.git tasks/workunit.py: when cloning, use --depth=1 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 (cherry picked from commit c1309fbef300a062138ac40eb5d3e5081b833072) --- diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index c509d504eea01..a602c55f035a8 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -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('&&'),