ci: wait for mysql tcp readiness

This commit is contained in:
2026-08-21 23:16:25 +08:00
parent 414e245fb4
commit b1ff485bda
+2
View File
@@ -129,6 +129,7 @@ pipeline {
mysql_ready=0
for attempt in $(seq 1 60); do
if $DOCKER_CMD exec "$SMOKE_MYSQL" mysqladmin ping \
--host=127.0.0.1 --protocol=tcp \
--user=jizhi --password=jizhi-smoke-password --silent; then
mysql_ready=1
break
@@ -139,6 +140,7 @@ pipeline {
$DOCKER_CMD logs "$SMOKE_MYSQL" >&2
exit 1
fi
sleep 2
host_port=$((18080 + BUILD_NUMBER % 1000))
$DOCKER_CMD run --detach \