# Доказывает: на отдельном чистом стенде (проект vladimirceva-lab6-isolated, # случайный порт LB, образ собран заново) проходят smoke, свои тесты через # LB (178 passed, в том числе 30 тестов телеметрии и 8 тестов цепочки # trace context), отказ реплики, вложение после остановки принявшей # реплики и сохранность данных после рестарта хранилищ и брокера. # Дата: 2026-11-15, 22:21 UTC; длительность 137 с (рабочий стенд в это время # был поднят и использовался другими проверками). # Окружение: macOS 26.7.1, Docker 29.9.2, Compose 5.6.1, Python хоста 3.11.9 # (pytest в uv-окружении, Python 3.13.15). # Стенд: отдельный (make test-isolated), удаляется самим прогоном. # Код: src_sha256 81c47ffceeb40acc6f333a9265a15480b3e13e2cb53b2e2229e5fa7391bd0b7a # Повторить: make test-isolated # `...` — пропущены строки сборки образа и подъёма контейнеров. $ make test-isolated python3 student-tests/stand.py isolated [isolated] project=vladimirceva-lab6-isolated [isolated] build image ... [isolated] start postgres, valkey, s3 and rabbitmq ... [isolated] s3 bootstrap [isolated] migrations ... [isolated] ready: lb=http://127.0.0.1:50017 replicas=2 [isolated] make test PASS: lab6 public API scenario; infrastructure and grading evidence remain separate. [isolated] pytest ============================= test session starts ============================== platform darwin -- Python 3.13.15, pytest-9.1.1, pluggy-1.6.0 configfile: pyproject.toml testpaths: student-tests plugins: anyio-4.15.1 collected 212 items / 34 deselected / 178 selected student-tests/test_attachments.py ...................................... [ 21%] ........ [ 25%] student-tests/test_auth.py ...................... [ 38%] student-tests/test_balancing.py ... [ 39%] student-tests/test_cache.py .... [ 42%] student-tests/test_idempotency.py ................... [ 52%] student-tests/test_processing.py .......... [ 58%] student-tests/test_race.py .... [ 60%] student-tests/test_request_id.py ............. [ 67%] student-tests/test_rubric.py ................... [ 78%] student-tests/unit/test_telemetry.py .............................. [ 95%] student-tests/unit/test_trace_chain.py ........ [100%] =============================== warnings summary =============================== student-tests/unit/test_telemetry.py:23 StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated ================ 178 passed, 34 deselected, 1 warning in 44.60s ================ [isolated] make test-failover (scripts/stop-one.sh) Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 1.297} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. [isolated] restore replicas ... [isolated] attachment failover (scripts/lab6.py, stop the uploader) ... PASS [isolated] make test-persistence (scripts/restart.sh) Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. [isolated] cleanup [isolated] results: {'test': 0, 'student-test': 0, 'test-failover': 0, 'attachment-failover': 0, 'test-persistence': 0} # Итог: results — все 0; 178 passed (34 deselected — проверки отказов, # их гоняет make failure-checks); при отказе реплики 128 успешных записей, # 0 неудачных, первое восстановление 1,3 с.