ЛР3 БВТ2304 Запорожец на 4

HAProxy + 2 API-реплики, общие PostgreSQL/Valkey, обязательный Idempotency-Key,
graceful drain по SIGTERM, stop-one/restart/rolling-update, серии отказов и REPORT.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 17:36:07 +03:00
co-authored by Claude Opus 5.5
parent 0ab3a341aa
commit 95556845e6
46 changed files with 4300 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Application stack
# Сборка решения, готовность стенда, публичный smoke и failover. Без секретов репозитория:
# синтетические credentials генерирует scripts/init-secrets.sh прямо в runner.
on: [push, pull_request]
permissions:
contents: read
jobs:
stack:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: sh scripts/init-secrets.sh
- run: docker compose --env-file .env config --quiet
- run: docker compose --env-file .env up -d --build --wait
- run: make test PYTHON=python
- run: make test-failover PYTHON=python ACTION_SCRIPT=scripts/stop-one.sh
- run: sh scripts/restore.sh
- run: make test-persistence PYTHON=python ACTION_SCRIPT=scripts/restart.sh
- if: always()
run: docker compose --env-file .env logs --no-color --tail 200 lb api migrate
- if: always()
run: docker compose --env-file .env down -v