тесты: ждать обновления счётчиков rabbitmqctl; collect_evidence и CI для lab5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alexey Bodanyuk
2026-10-31 17:02:24 +03:00
co-authored by Claude Opus 5.5
parent 962adbe03b
commit a3fa7713fa
4 changed files with 46 additions and 22 deletions
+8 -6
View File
@@ -1,4 +1,4 @@
name: Application (lab4)
name: Application (lab5)
on: [push, pull_request]
permissions:
contents: read
@@ -13,26 +13,28 @@ jobs:
python-version: '3.13'
- name: Synthetic secrets and env (CI only, never committed)
run: python scripts/init_secrets.py && cp .env.example .env
- name: Build, migrate once, bootstrap the S3 bucket, start 2 API replicas behind HAProxy
- name: Build, migrate once, bootstrap both S3 buckets, start broker, 2 API replicas, LB, relay, worker
run: docker compose --env-file .env up -d --build --wait
- name: Contract and public smoke
run: make check test PYTHON=python
- name: Persistence across restart of LB, API replicas, PostgreSQL, Valkey and S3
- name: Persistence across restart of LB, API replicas, relay, worker, PostgreSQL, Valkey, S3, RabbitMQ
run: make test-persistence ACTION_SCRIPT=scripts/restart.sh PYTHON=python
- name: Failover of the replica that served the test, then restore it
run: |
make test-failover ACTION_SCRIPT=scripts/stop-one.sh PYTHON=python
sh scripts/restore-api.sh && python scripts/lbctl.py wait-up 2
- name: Reconciler (track 2) dry-run on the stand - read-only report
run: docker compose run --rm reconciler
- name: Defense scenario - worker stopped, 202, 409, restart API and broker, ready
run: python -m pip install -q pillow==12.3.0 && python scripts/demo_pipeline.py
- name: Own tests (unit + stand; every failure is restored in finally)
run: |
python -m pip install --require-hashes --no-deps -r requirements.txt
python -m pip install -r requirements-test.txt
make student-test PYTHON=python
- name: Track 2 invariants (read-only audit of PostgreSQL and both buckets)
run: docker compose run --rm --no-deps auditor --verify-checksums
- name: Logs
if: always()
run: docker compose logs --tail 100 api lb s3 s3-init
run: docker compose logs --tail 100 api lb s3 s3-init broker relay worker
- name: Remove CI stand and its synthetic data
if: always()
run: docker compose down -v