清理spacetimedb绑定生成
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-26 20:41:11 +08:00
parent cbc27bad4a
commit f8ea3b704f
646 changed files with 4230 additions and 17557 deletions

View File

@@ -78,7 +78,7 @@ wait_for_spacetime() {
exit 1
fi
if spacetime --root-dir="${root_dir}" server ping "${server}" >/dev/null 2>&1; then
if is_spacetime_ready "${server}" "${root_dir}"; then
return
fi
@@ -92,8 +92,14 @@ wait_for_spacetime() {
is_spacetime_ready() {
local server="$1"
local root_dir="$2"
local output
spacetime --root-dir="${root_dir}" server ping "${server}" >/dev/null 2>&1
if ! output="$(spacetime --root-dir="${root_dir}" server ping "${server}" 2>&1)"; then
return 1
fi
# SpacetimeDB CLI 2.1.0 在 502 Bad Gateway 时仍可能返回 0不能只依赖退出码。
[[ "${output}" == *"Server is online:"* ]]
}
describe_spacetime_root_owner() {