]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: switch to https protocol for ffsb and xfstests-dev repos
authorXiubo Li <xiubli@redhat.com>
Tue, 29 Nov 2022 13:24:21 +0000 (21:24 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 27 Dec 2022 02:01:32 +0000 (10:01 +0800)
Since the git protocol is not reachable any more, just switch it
to https.

Fixes: https://tracker.ceph.com/issues/58133
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 4c97a9e469cfe060531be12988ff087ad2ff36c5)

Conflicts:
- qa/workunits/suites/ffsb.sh: no need to fix

qa/tasks/cephfs/xfstests_dev.py

index c0bdf338e1671ba1db4761d7cf9414a516c7f199..c241e0cc5a97ebe8d6a166c2044f4426899590f6 100644 (file)
@@ -41,12 +41,11 @@ class XFSTestsDev(CephFSTestCase):
 
         # TODO: make sure that repo is not cloned for every test. it should
         # happen only once.
-        remoteurl = 'git://git.ceph.com/xfstests-dev.git'
+        remoteurl = 'https://git.ceph.com/xfstests-dev.git'
         self.repo_path = self.mount_a.client_remote.mkdtemp(suffix=
                                                             'xfstests-dev')
-        self.mount_a.run_shell(['git', 'archive', '--remote=' + remoteurl,
-                                'HEAD', run.Raw('|'),
-                                'tar', '-C', self.repo_path, '-x', '-f', '-'])
+        self.mount_a.run_shell(['git', 'clone', remoteurl, '--depth', '1',
+                                self.repo_path])
 
     def get_admin_key(self):
         import configparser