feat(library): 维护窗口支持显式 no-gate 测试栈
build / build (push) Successful in 2m2s

0.9.0 测试栈没有入口闸门容器(只有 app/frontend/docreader/es/redis),
实例级维护窗口因此开不了。新增 LIBRARY_TARGET_INGRESS_MODE=none,
必须同时给 LIBRARY_NO_INGRESS_ACK=test-only 且不得声明半套闸门;
默认仍是 gate,行为与文案不变。

no-gate 下不调用任何闸门动作,改为要求 LIBRARY_TARGET_HEALTH_URL 并在
恢复后探测 200;维护记录、冻结日志与快照写入 ingress_mode/ingress_ack,
gate 证据位置如实写“无闸门(测试模式)”,不伪装“入口已排空”。
This commit is contained in:
姚章浩
2026-11-16 22:58:37 +08:00
parent 5f1a8f565c
commit 2066bedbbe
18 changed files with 1014 additions and 104 deletions
+9 -1
View File
@@ -384,7 +384,15 @@ const stageLabel: Record<string, string> = {
}
const ingressText = (state?: string) =>
state === 'closed' ? '已关闭(排空后等待写入)' : state === 'open' ? '打开' : state ? state : '未知'
state === 'closed'
? '已关闭(排空后等待写入)'
: state === 'none'
? '无闸门(测试模式)'
: state === 'open'
? '打开'
: state
? state
: '未知'
// 持有作业详情没读到时只写未读取/未知,绝不拿同 scope 最新作业顶替。
const ownerJobText = (lookup: LibraryJobLookup | undefined, ownerJobID: string) => {
+3
View File
@@ -545,6 +545,9 @@ export interface LibraryMaintenanceCapability {
project?: string
writers?: string[]
ingress_service?: string
// gate(默认)或 none:没有闸门的测试栈必须显示"无闸门(测试模式)"。
ingress_mode?: string
ingress_state?: string
note?: string
}