ci(nas-verify): 加 /health gate 防存活探针回归
/health 是 Docker HEALTHCHECK 依赖端点,后端漏实现致容器恒unhealthy
(a17f291 已补端点)。nas-verify 加 gate:/health 非200→CI 红灯,防漏部署/被改坏。
public 端点无需 token,$BASE 已是 http://192.168.2.154:8000。
反馈: 前后端 session
This commit is contained in:
@@ -85,6 +85,10 @@ jobs:
|
|||||||
[ "$code" = "200" ] || { echo "❌ strategy/list HTTP $code"; exit 1; }
|
[ "$code" = "200" ] || { echo "❌ strategy/list HTTP $code"; exit 1; }
|
||||||
[ -s /tmp/sl.json ] || { echo "❌ strategy/list 空响应"; exit 1; }
|
[ -s /tmp/sl.json ] || { echo "❌ strategy/list 空响应"; exit 1; }
|
||||||
echo "✅ strategy/list 200 非空, 后端路由通"
|
echo "✅ strategy/list 200 非空, 后端路由通"
|
||||||
|
# /health 存活探针(Docker HEALTHCHECK 依赖;漏部署→容器恒unhealthy,本次回归即此)
|
||||||
|
code=$(curl -s -o /dev/null -w "%{http_code}" $BASE/health)
|
||||||
|
[ "$code" = "200" ] || { echo "❌ /health HTTP $code (容器会unhealthy)"; exit 1; }
|
||||||
|
echo "✅ /health 200, 存活探针通"
|
||||||
- name: NAS 副本数据可读(dbbardata)
|
- name: NAS 副本数据可读(dbbardata)
|
||||||
run: |
|
run: |
|
||||||
ssh sanguo-nas "python3 -c 'import sqlite3
|
ssh sanguo-nas "python3 -c 'import sqlite3
|
||||||
|
|||||||
Reference in New Issue
Block a user