From bf788c2987a60c46911f15eb67ed99e69dd6cd9c Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 28 Aug 2024 13:42:43 +0100 Subject: [PATCH] Attempt to improve TiKV CI consistency without attempting to write data (#4627) --- Makefile.ci.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile.ci.toml b/Makefile.ci.toml index 971cecd6..5f3b7ce5 100644 --- a/Makefile.ci.toml +++ b/Makefile.ci.toml @@ -210,15 +210,20 @@ script = """ category = "CI - SERVICES" script = """ #!/bin/bash -ex + echo "Installing TiKV playground..." ${HOME}/.tiup/bin/tiup install pd tikv playground + echo "Cleaning TiKV playground..." + ${HOME}/.tiup/bin/tiup clean --all + echo "Starting TiKV playground..." nohup ${HOME}/.tiup/bin/tiup playground --mode tikv-slim --kv 1 --pd 1 --db 0 --ticdc 0 --tiflash 0 --without-monitor > /tmp/tiup.log & set +e tries=0 - echo "Waiting for tiup playground to be ready..." + echo "Waiting for TiKV playground to be ready..." while [[ $tries -lt 10 ]]; do + sleep 5 + echo "Displaying playground status..." if ! ${HOME}/.tiup/bin/tiup playground display >/dev/null; then tries=$((tries + 1)); - sleep 5; continue fi exit 0;