Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3da1f918a4 | ||
|
|
f8d8e5b1e2 |
No files matched your search
@@ -5,6 +5,12 @@ release's per-component sections are labelled beneath its heading.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.50.1] - 2026-10-08
|
||||
|
||||
### archied
|
||||
|
||||
- When an update is rolled back, the log names the health check that failed instead of only "unhealthy".
|
||||
|
||||
## [1.50.0] - 2026-10-08
|
||||
|
||||
### archied
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
"/news/archie/1.49.4/": "/news/1.49.4/",
|
||||
"/news/archie/1.5.0/": "/news/1.5.0/",
|
||||
"/news/archie/1.50.0/": "/news/1.50.0/",
|
||||
"/news/archie/1.50.1/": "/news/1.50.1/",
|
||||
"/news/archie/1.6.0/": "/news/1.6.0/",
|
||||
"/news/archie/1.7.0/": "/news/1.7.0/",
|
||||
"/news/archie/1.8.0/": "/news/1.8.0/",
|
||||
@@ -164,6 +165,7 @@
|
||||
"/news/archied/1.49.4/": "/news/1.49.4/",
|
||||
"/news/archied/1.5.0/": "/news/1.5.0/",
|
||||
"/news/archied/1.50.0/": "/news/1.50.0/",
|
||||
"/news/archied/1.50.1/": "/news/1.50.1/",
|
||||
"/news/archied/1.6.0/": "/news/1.6.0/",
|
||||
"/news/archied/1.7.0/": "/news/1.7.0/",
|
||||
"/news/archied/1.8.0/": "/news/1.8.0/",
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
[
|
||||
{
|
||||
"version": "1.50.1",
|
||||
"date": "2026-10-08",
|
||||
"body": "### archied\n\n- When an update is rolled back, the log names the health check that failed instead of only \"unhealthy\"."
|
||||
},
|
||||
{
|
||||
"version": "1.50.0",
|
||||
"date": "2026-10-08",
|
||||
|
||||
@@ -78,9 +78,16 @@ EOF
|
||||
mv -f "$tmp" "$REPORT_PATH"
|
||||
}
|
||||
|
||||
# LAST_HEALTH is the last report healthy saw, printed when the update is
|
||||
# given up so the log says which component failed.
|
||||
LAST_HEALTH=""
|
||||
healthy() {
|
||||
local report
|
||||
report="$(curl -fsS --max-time 10 "$HEALTH_URL/health/detailed")" || return 1
|
||||
if ! report="$(curl -fsS --max-time 10 "$HEALTH_URL/health/detailed")"; then
|
||||
LAST_HEALTH="$(curl -sS --max-time 10 "$HEALTH_URL/health/detailed" 2>&1)"
|
||||
return 1
|
||||
fi
|
||||
LAST_HEALTH="$report"
|
||||
[ "$(jq -r '.version' <<< "$report")" = "$ARCHIE_UPDATE_INSTALLED_GATEWAY" ] &&
|
||||
[ "$(jq -r '.status' <<< "$report")" = ok ]
|
||||
}
|
||||
@@ -92,12 +99,13 @@ wait_healthy() {
|
||||
deadline=$((SECONDS + OBSERVE_SECONDS))
|
||||
while [ "$SECONDS" -lt "$deadline" ]; do
|
||||
sleep "$POLL_INTERVAL_SECONDS"
|
||||
healthy || return 1
|
||||
healthy || { echo "==> unhealthy while observing: $LAST_HEALTH"; return 1; }
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
sleep "$POLL_INTERVAL_SECONDS"
|
||||
done
|
||||
echo "==> never became healthy; last report: $LAST_HEALTH"
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user