From 7db4f06ff7d476eb0993157a3452b7525922ebee Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Wed, 7 Aug 2024 11:51:14 +0800 Subject: [PATCH] qa: enable the git clone debug logs Fixes: https://tracker.ceph.com/issues/66991 Signed-off-by: Xiubo Li (cherry picked from commit b6f8f83470f1888f4820bec9fe41507e444ca673) --- qa/workunits/fs/snaps/snaptest-git-ceph.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qa/workunits/fs/snaps/snaptest-git-ceph.sh b/qa/workunits/fs/snaps/snaptest-git-ceph.sh index 4104f3c65e72..6079ba8945b1 100755 --- a/qa/workunits/fs/snaps/snaptest-git-ceph.sh +++ b/qa/workunits/fs/snaps/snaptest-git-ceph.sh @@ -8,6 +8,11 @@ sudo git config --global http.postBuffer 1024MB # default is 1MB sudo git config --global http.maxRequestBuffer 100M # default is 10MB sudo git config --global core.compression 0 +# enable the debug logs for git clone +export GIT_TRACE_PACKET=1 +export GIT_TRACE=1 +export GIT_CURL_VERBOSE=1 + # try it again if the clone is slow and the second time retried=false trap -- 'retry' EXIT @@ -21,6 +26,11 @@ timeout 1800 git clone https://git.ceph.com/ceph.git trap - EXIT cd ceph +# disable the debug logs for git clone +export GIT_TRACE_PACKET=0 +export GIT_TRACE=0 +export GIT_CURL_VERBOSE=0 + versions=`seq 1 90` for v in $versions -- 2.47.3