Files
cc-ci/tests/loomio/recipe_meta.py
T
notplants 5033cf2b2c
continuous-integration/drone/push Build is failing
loomio: declare the 5.2.1 db-config upgrade boundary
2026-11-26 03:17:58 +00:00

27 lines
1.6 KiB
Python

# Per-recipe harness config for loomio (collaborative decision-making; Rails app + sidekiq
# worker + postgres (pgautoupgrade) + redis, with a separate loomio_channel_server).
#
# `/` redirects into the SPA/dashboard (302 for an anonymous visitor, 200 once it settles), so the
# serving gate accepts both. The real liveness signal is the Rails JSON API under /api/v1.
#
# Boot is heavy: every app start runs `apt install postgresql-client`, `bundle install`, then
# `db:setup`/`db:migrate` before puma. The recipe's healthcheck start_period is only 2m, so give
# the deploy a generous ceiling (DB init + first-boot schema load + asset boot).
HEALTH_PATH = "/"
HEALTH_OK = (200, 302)
DEPLOY_TIMEOUT = 1800
HTTP_TIMEOUT = 900
# Structural upgrade boundary: 5.2.1 added a `pg_backup` config + backupbot labels to the `db`
# service. Swarm therefore RECREATES the db task during a 5.2.0 -> 5.2.1 stack update, and the app
# task (which restarts in parallel and runs `db:setup` against host `db`) dies with
# `PG::ConnectionBad: could not translate host name "db"` before the db task is back — swarm then
# pauses/rolls back the app update. In-place 5.2.0 -> 5.2.1 is consequently not supported; bases
# below 5.2.1 are excluded from upgrade-base resolution. From 5.2.1 onward the db service config is
# unchanged between releases, so later upgrades are app-only and do run.
UPGRADE_BASE_FLOOR = "5.2.1+v3.0.20"
# canon §2.B: enroll as a DATA-WARM canonical (all recipes enrolled — operator 2026-06-17).
# The weekly sweep promotes this recipe's canonical to its latest green RELEASE TAG.
WARM_CANONICAL = True