From: Xiubo Li Date: Wed, 23 Nov 2022 05:24:38 +0000 (+0800) Subject: qa: switch to https protocol for repos' server X-Git-Tag: v16.2.11~27^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f48d8d4723106fde7dc7f841cd5f63986734ed1;p=ceph.git qa: switch to https protocol for repos' server Since the git:// is not reachable any more and have switch to https://. The git archive does not support the https protocol, so we couldn't user the git archive to retrieve the tar ball any more, will split this into 3 steps: 1, clone the whole ceph repo 2, checkout the commit/tag/branch 3, then change directory to qa/workunits/. Signed-off-by: Xiubo Li (cherry picked from commit 89177d65988c56324916de8394089b6e4b38aab7) Conflicts: - qa/workunits/fs/snaps/snaptest-git-ceph.sh: minor conflicts - qa/machine_types/schedule_subset.sh: no need to fix this - qa/tasks/cephfs/xfstests_dev.py: minor confilicts --- diff --git a/qa/tasks/restart.py b/qa/tasks/restart.py index 716148a7566c..4053bd2cb443 100644 --- a/qa/tasks/restart.py +++ b/qa/tasks/restart.py @@ -3,6 +3,7 @@ Daemon restart """ import logging import pipes +import os from teuthology import misc as teuthology from teuthology.orchestra import run as tor @@ -48,17 +49,16 @@ def get_tests(ctx, config, role, remote, testdir): 'mkdir', '--', srcdir, run.Raw('&&'), 'git', - 'archive', - '--remote=git://git.ceph.com/ceph.git', - '%s:qa/workunits' % refspec, - run.Raw('|'), - 'tar', - '-C', srcdir, - '-x', - '-f-', + 'clone', + 'https://git.ceph.com/ceph.git', + srcdir, run.Raw('&&'), 'cd', '--', srcdir, run.Raw('&&'), + 'git', 'checkout', '-b', 'restart_test', str(refspec), + run.Raw('&&'), + 'cd', '--', 'qa/workunits', + run.Raw('&&'), 'if', 'test', '-e', 'Makefile', run.Raw(';'), 'then', 'make', run.Raw(';'), 'fi', run.Raw('&&'), 'find', '-executable', '-type', 'f', '-printf', r'%P\0', @@ -66,7 +66,7 @@ def get_tests(ctx, config, role, remote, testdir): ], ) restarts = sorted(remote.read_file(f'{testdir}/restarts.list').decode().split('\0')) - return (srcdir, restarts) + return (os.path.join(srcdir, 'qa/workunits'), restarts) def task(ctx, config): """ diff --git a/qa/workunits/fs/snaps/snaptest-git-ceph.sh b/qa/workunits/fs/snaps/snaptest-git-ceph.sh index 0d11efedb73d..f7f16c166ce7 100755 --- a/qa/workunits/fs/snaps/snaptest-git-ceph.sh +++ b/qa/workunits/fs/snaps/snaptest-git-ceph.sh @@ -2,7 +2,7 @@ set -e -git clone git://git.ceph.com/ceph.git +git clone https://git.ceph.com/ceph.git cd ceph versions=`seq 1 21` diff --git a/qa/workunits/suites/fsx.sh b/qa/workunits/suites/fsx.sh index 813e211dc32e..0d5ba3a58baf 100755 --- a/qa/workunits/suites/fsx.sh +++ b/qa/workunits/suites/fsx.sh @@ -2,12 +2,12 @@ set -e -git clone git://git.ceph.com/xfstests.git -cd xfstests +git clone https://git.ceph.com/xfstests-dev.git +cd xfstests-dev git checkout 12973fc04fd10d4af086901e10ffa8e48866b735 make -j4 cd .. -cp xfstests/ltp/fsx . +cp xfstests-dev/ltp/fsx . OPTIONS="-z" # don't use zero range calls; not supported by cephfs