release: prepare Hulumath v1.2.0
CI / test (pull_request) Successful in 3m58s
PR合并自动部署 / release-check (pull_request) Successful in 13s
PR合并自动部署 / deploy (pull_request) Successful in 16s

This commit is contained in:
2026-08-10 01:23:30 +08:00
parent aafaf1b77a
commit 6c9f475ba5
14 changed files with 280 additions and 6 deletions
+7 -2
View File
@@ -31,7 +31,11 @@ def main():
args = parser.parse_args()
health = json.loads(fetch(args.base_url, "/health/"))
if health != {"status": "ok", "database": "ok"}:
if (
health.get("status") != "ok"
or health.get("database") != "ok"
or not health.get("version")
):
raise RuntimeError(f"unexpected health payload: {health}")
homepage = fetch(args.base_url, "/").decode("utf-8")
@@ -49,7 +53,8 @@ def main():
asyncio.run(check_websocket(args.ws_url))
print(
"Production smoke checks passed: "
f"health, homepage, admin, {catalog['total']} videos, websocket"
f"health v{health['version']}, homepage, admin, "
f"{catalog['total']} videos, websocket"
)