Attempt to improve TiKV CI consistency without attempting to write data (#4627)

This commit is contained in:
Tobie Morgan Hitchcock 2024-08-28 13:42:43 +01:00 committed by GitHub
parent af76817924
commit bf788c2987
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,15 +210,20 @@ script = """
category = "CI - SERVICES" category = "CI - SERVICES"
script = """ script = """
#!/bin/bash -ex #!/bin/bash -ex
echo "Installing TiKV playground..."
${HOME}/.tiup/bin/tiup install pd 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 & 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 set +e
tries=0 tries=0
echo "Waiting for tiup playground to be ready..." echo "Waiting for TiKV playground to be ready..."
while [[ $tries -lt 10 ]]; do while [[ $tries -lt 10 ]]; do
sleep 5
echo "Displaying playground status..."
if ! ${HOME}/.tiup/bin/tiup playground display >/dev/null; then if ! ${HOME}/.tiup/bin/tiup playground display >/dev/null; then
tries=$((tries + 1)); tries=$((tries + 1));
sleep 5;
continue continue
fi fi
exit 0; exit 0;