From 665f03a467c1b59eb80782e4ba3bbeb48b5d5efc Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Tue, 28 Mar 2017 20:08:13 -0700 Subject: [PATCH] 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) --- qa/tasks/workunit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 8ab9681c2c335..fa64edc764b4f 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -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('&&'), -- 2.39.5