sync @ 94e1ad6

This commit is contained in:
2026-10-13 07:07:05 +07:00
parent 82c6514b25
commit 1da7512150
3 changed files with 300 additions and 5 deletions
+23 -4
View File
@@ -9,8 +9,8 @@
# membuktikannya lebih awal (bukan menunggu verify-phase4/5).
#
# Yang diperiksa:
# A. Konektivitas & versi : /api/v2/config (specVersion, defaultBranch, …) +
# versi server (env NESSIE_VERSION / image container bila lokal).
# A. Konektivitas & versi : /api/v2/config (specVersion, defaultBranch, …) + versi
# server: /q/info (build.version) · NESSIE_VERSION(.env) · image container.
# B. Dukungan API : native v2 + Iceberg REST (<prefix>/v1/config) — wajib ada.
# C. Catalog (contoh) : ≤5 namespace (schema) via Iceberg REST + branch/refs.
# D. Ringkasan
@@ -95,12 +95,31 @@ for k in ("specVersion", "defaultBranch", "maxSupportedApiVersion", "minSupporte
' 2>/dev/null || true
ver_env="${NESSIE_VERSION:-}"
img="$(docker inspect --format '{{.Config.Image}}' sicabe-nessie 2>/dev/null || true)"
# Versi APLIKASI via Quarkus info (/q/info) — bila ekstensi quarkus-info aktif.
qi="$(curl -sf --max-time 10 "${BASE}/q/info" 2>/dev/null || echo "")"
qi_ver=""
if [[ -n "${qi}" ]]; then
qi_ver="$(printf '%s' "${qi}" | python3 -c '
import sys, json
try:
d = json.load(sys.stdin)
except Exception:
sys.exit()
b = d.get("build") or {}
print(b.get("version") or d.get("version") or "")
' 2>/dev/null)"
fi
[[ -n "${ver_env}" ]] && info "NESSIE_VERSION(.env) = ${ver_env}"
[[ -n "${img}" ]] && info "image container (lokal) = ${img}"
if [[ -n "${qi_ver}" ]]; then
info "versi server (/q/info build.version) = ${qi_ver}"
elif [[ -n "${qi}" ]]; then
info "/q/info tersedia tetapi build.version tak terlihat"
fi
hdr="$(curl -sD - -o /dev/null --max-time 10 "${BASE}/api/v2/config" 2>/dev/null | tr -d '\r' | grep -iE '^(server|via|x-nessie)' | paste -sd' ' - || true)"
[[ -n "${hdr}" ]] && info "header: ${hdr}"
if [[ -z "${ver_env}" && -z "${img}" ]]; then
warn "Versi SERVER Nessie tak terdeteksi (bukan container lokal) — set NESSIE_VERSION bila perlu"
if [[ -z "${ver_env}" && -z "${img}" && -z "${qi_ver}" ]]; then
warn "Versi SERVER Nessie tak terdeteksi (bukan container lokal; /q/info & header kosong) — set NESSIE_VERSION bila perlu"
fi
echo ""