]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/workunit: remove kludge to use git.ceph.com
authorSage Weil <sage@redhat.com>
Wed, 14 Dec 2016 17:18:29 +0000 (12:18 -0500)
committerSage Weil <sage@redhat.com>
Wed, 14 Dec 2016 17:18:29 +0000 (12:18 -0500)
This was hard-coded to ceph.git (almost) and breaks when
you specify --ceph-repo.  Remove it entirely.  We'll see if
github.com is better at handling our load than it used to
be!

Signed-off-by: Sage Weil <sage@redhat.com>
tasks/workunit.py

index 41802e712de5662bd51ece769f20a07f15b114a0..d424b324110dcecb0468114efb51cda3eda4f23d 100644 (file)
@@ -309,39 +309,21 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
     clonedir = '{tdir}/clone.{role}'.format(tdir=testdir, role=role)
 
     git_url = teuth_config.get_ceph_git_url()
-    if 'github.com/ceph/ceph' in git_url:
-        remote.run(
-            logger=log.getChild(role),
-            args=[
-                'mkdir', '--', srcdir,
-                run.Raw('&&'),
-                'git',
-                'archive',
-                '--remote=git://git.ceph.com/ceph.git',
-                '%s:qa/workunits' % refspec,
-                run.Raw('|'),
-                'tar',
-                '-C', srcdir,
-                '-x',
-                '-f-',
-            ],
-        )
-    else:
-        remote.run(
-            logger=log.getChild(role),
-            args=[
-                'git',
-                'clone',
-                git_url,
-                clonedir,
-                run.Raw(';'),
-                'cd', '--', clonedir,
-                run.Raw('&&'),
-                'git', 'checkout', refspec,
-                run.Raw('&&'),
-                'mv', 'qa/workunits', srcdir,
-            ],
-        )
+    remote.run(
+        logger=log.getChild(role),
+        args=[
+            'git',
+            'clone',
+            git_url,
+            clonedir,
+            run.Raw(';'),
+            'cd', '--', clonedir,
+            run.Raw('&&'),
+            'git', 'checkout', refspec,
+            run.Raw('&&'),
+            'mv', 'qa/workunits', srcdir,
+        ],
+    )
 
     remote.run(
         logger=log.getChild(role),