From f5672d048e943fabf9ad40811f7a7a6bd901dc36 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 2 Aug 2023 16:48:53 +0100 Subject: [PATCH] ci: include some timing information in the git cache download script In https://gitlab.freedesktop.org/zmike/mesa/-/jobs/46476087 it is unclear whether this script is where 30+ minutes were lost, or if this ran fine and the `git clone` afterwards is where the issue was. Printing these timestamps will help next time something like this happens. Signed-off-by: Eric Engestrom Part-of: --- .gitlab-ci/download-git-cache.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/download-git-cache.sh b/.gitlab-ci/download-git-cache.sh index 7b210de..e36f7e5 100644 --- a/.gitlab-ci/download-git-cache.sh +++ b/.gitlab-ci/download-git-cache.sh @@ -15,7 +15,7 @@ fi TMP_DIR=$(mktemp -d) -echo "Downloading archived master..." +echo "$(date +"%F %T") Downloading archived master..." if ! /usr/bin/wget \ -O "$TMP_DIR/$CI_PROJECT_NAME.tar.gz" \ "https://${S3_HOST}/git-cache/${FDO_UPSTREAM_REPO}/$CI_PROJECT_NAME.tar.gz"; @@ -27,8 +27,10 @@ fi set -e rm -rf "$CI_PROJECT_DIR" -echo "Extracting tarball into '$CI_PROJECT_DIR'..." +echo "$(date +"%F %T") Extracting tarball into '$CI_PROJECT_DIR'..." mkdir -p "$CI_PROJECT_DIR" tar xzf "$TMP_DIR/$CI_PROJECT_NAME.tar.gz" -C "$CI_PROJECT_DIR" rm -rf "$TMP_DIR" chmod a+w "$CI_PROJECT_DIR" + +echo "$(date +"%F %T") Git cache download done" -- 2.7.4