]> 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>
Thu, 1 Dec 2022 08:33:10 +0000 (16:33 +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>
qa/tasks/cephfs/xfstests_dev.py
qa/workunits/suites/ffsb.sh

index de1f860d3d9df4fbd54d7845d813b90cdfb3f856..c9902fa9266660c2cf1e51ed1e5ae8a0e0816919 100644 (file)
@@ -43,12 +43,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
index a6ec7d198af9cdfbc4d6f9686b5ba2bc231288a5..bf95a05c4e8338cc8e9acdba48a6d88eb145cf3a 100755 (executable)
@@ -9,10 +9,10 @@ trap -- 'retry' EXIT
 retry() {
     rm -rf ffsb
     # double the timeout value
-    timeout 3600 git clone git://git.ceph.com/ffsb.git --depth 1
+    timeout 3600 git clone https://git.ceph.com/ffsb.git --depth 1
 }
 rm -rf ffsb
-timeout 1800 git clone git://git.ceph.com/ffsb.git --depth 1
+timeout 1800 git clone https://git.ceph.com/ffsb.git --depth 1
 trap - EXIT
 
 cd ffsb