From 519ced8a527db98a779ad04e2181b80f05bca09a Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Tue, 29 Nov 2022 21:24:21 +0800 Subject: [PATCH] qa: switch to https protocol for ffsb and xfstests-dev repos 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 (cherry picked from commit 4c97a9e469cfe060531be12988ff087ad2ff36c5) Conflicts: - qa/workunits/suites/ffsb.sh: no need to fix --- qa/tasks/cephfs/xfstests_dev.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qa/tasks/cephfs/xfstests_dev.py b/qa/tasks/cephfs/xfstests_dev.py index c0bdf338e1671..c241e0cc5a97e 100644 --- a/qa/tasks/cephfs/xfstests_dev.py +++ b/qa/tasks/cephfs/xfstests_dev.py @@ -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 -- 2.39.5