From 5f03031e16c3ab3053f8e74e22e024a5355ad37c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 24 Jun 2022 06:09:33 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitpod.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 96c4eafd0e4..07cc7f2ecb6 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,7 +3,9 @@ image: registry.gitlab.com/gitlab-org/gitlab-development-kit/gitpod-workspace:st tasks: - name: GDK - command: gp sync-await gdk-copied && cd /workspace/gitlab-development-kit && gdk help + command: | + echo START_TIME_IN_SECONDS="$(date +%s)" | tee /workspace/gitpod_start_time.sh + gp sync-await gdk-copied && cd /workspace/gitlab-development-kit && gdk help - init: | echo "$(date) – Copying GDK" | tee -a /workspace/startup.log @@ -35,6 +37,7 @@ tasks: ( set -e gp sync-done gdk-copied + source /workspace/gitpod_start_time.sh SECONDS=0 cd /workspace/gitlab-development-kit # update GDK @@ -80,6 +83,8 @@ tasks: sleep 5 printf "$(date) – GitLab is up (took ~%.1f minutes)\n" "$((10*$SECONDS/60))e-1" | tee -a /workspace/startup.log gp preview $(gp url 3000) || true + PREBUILD_LOG=(/workspace/.gitpod/prebuild-log-*) + printf "Took %.1f minutes from https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitpod.yml being executed through to completion %s\n" "$((10*(($(date +%s)-${START_TIME_IN_SECONDS}))/60))e-1" "$([[ -f "$PREBUILD_LOG" ]] && echo "With Prebuilds")" ) ports: