mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
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 <dan.mick@redhat.com>
This commit is contained in:
parent
97ea67fcee
commit
c1309fbef3
@ -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('&&'),
|
||||
|
Loading…
Reference in New Issue
Block a user