Skip to content

Commit

Permalink
tasks/workunit.py: when cloning, use --depth=1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dmick authored and tchaikov committed Apr 6, 2017
1 parent a64d3e4 commit 87768e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qa/tasks/workunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('&&'),
Expand All @@ -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('&&'),
Expand Down

0 comments on commit 87768e7

Please sign in to comment.