From baae41fe10889bb511145148a1486a0f5bb8f030 Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Fri, 29 May 2026 16:34:11 +0100 Subject: [PATCH] =?UTF-8?q?fix(2):=20plausible=20HTTP=5FTIMEOUT=20600?= =?UTF-8?q?=E2=86=921200=20+=20DEPLOY=5FTIMEOUT=201200=20=E2=80=94=20app?= =?UTF-8?q?=20500s=20until=20clickhouse/migrations=20ready?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v1 failed wait_healthy 'not healthy / (last status 500)': plausible's app starts before clickhouse (plausible_events_db) is ready (recipe depends_on names events_db, mismatched → no swarm ordering) and returns 500 until DB migrations finish (several min on cold deploy). It serves 302 once ready; widen the health window. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/plausible/recipe_meta.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/plausible/recipe_meta.py b/tests/plausible/recipe_meta.py index 6a9a6a7..40e0ec7 100644 --- a/tests/plausible/recipe_meta.py +++ b/tests/plausible/recipe_meta.py @@ -3,8 +3,12 @@ # We use a fixed CI value for SECRET_KEY_BASE — safe for ephemeral per-run deploys. HEALTH_PATH = "/" HEALTH_OK = (200, 302) -DEPLOY_TIMEOUT = 900 -HTTP_TIMEOUT = 600 +# plausible's app starts before its clickhouse events DB is ready (the recipe's `app` depends_on lists +# `events_db` but the service is named `plausible_events_db`, so swarm applies no ordering) and returns +# 500 until clickhouse + DB migrations finish — several minutes on a cold deploy. Give a wide HTTP +# window so the health poll waits out that init (it serves 302 once ready). [v1 failed at HTTP_TIMEOUT=600.] +DEPLOY_TIMEOUT = 1200 +HTTP_TIMEOUT = 1200 # Phase-2: configure the recipe's required env (no placeholders allowed). EXTRA_ENV = {