chore(release): promote development to master #258

Merged
developer merged 18 commits from development into master 2026-07-13 22:22:00 +00:00
Showing only changes of commit 1d77ee83b3 - Show all commits
+10 -8
View File
@@ -536,17 +536,19 @@ jobs:
- name: Probe the /privacy/ and /eula/ legal pages are served
run: |
set -u
# /privacy/ and /eula/ are static legal markdown rendered by the render sidecar (no backend
# fetch). If the @legal caddy route is missing they fall to the landing shell (also 200), so
# assert the page-specific canonical URL (the landing's is erudit-game.ru/) plus the seller
# INN — proving the rendered legal doc reached the edge, not the landing catch-all. Retry
# like the landing/gateway/backend probe: the renderer is recreated in this same deploy and
# a single-shot check can race its restart (it answers /offer/ then is briefly re-listening).
# /privacy/ and /eula/ are static legal markdown rendered by the render sidecar. If the
# @legal caddy route is missing they fall to the landing shell (also 200, canonical
# erudit-game.ru/), so assert the page-specific canonical URL — it uniquely identifies the
# rendered legal doc reaching the edge, not the landing catch-all. Read only the <head>
# (head -c 4096; the canonical link sits in the first bytes): the check is then
# size-independent, so the large EULA page does not exceed the timeout while the monitoring
# stack is still booting post-deploy and starving the CPU-capped renderer. Retry like the
# landing/gateway/backend probe to ride out that window.
for route in privacy eula; do
ok=
for i in $(seq 1 20); do
out="$(docker run --rm --network edge alpine:3.20 wget -q -T 10 -O - "http://scrabble/${route}/" 2>&1 || true)"
if echo "$out" | grep -qF "erudit-game.ru/${route}/" && echo "$out" | grep -qF "290210610742"; then
head_out="$(docker run --rm --network edge alpine:3.20 sh -c "wget -q -T 10 -O - http://scrabble/${route}/ 2>/dev/null | head -c 4096" || true)"
if printf '%s' "$head_out" | grep -qF "erudit-game.ru/${route}/"; then
echo "ok: /${route}/ serves the rendered legal page"
ok=1
break