thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 
make check
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.


thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$
make validate
python3 scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 


thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 
docker compose --env-file .env config --quiet
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 


User@DESKTOP-8Q26HPT MINGW64 ~/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork (solution/bvt2302-mironov)
$ docker compose --env-file .env up --build  
[+] Building 21.1s (8/12)                                                          docker:desktop-linux
 => => transferring context: 208.14kB                                                              0.0s
 => CACHED [migrate 2/8] WORKDIR /app                                                              0.0s
 => CACHED [migrate 3/8] RUN addgroup --system app && adduser --system --ingroup app app           0.0s
 => [migrate 4/8] COPY requirements.txt ./requirements.txt                                         0.0s
 => [migrate 5/8] RUN python -m pip install --no-cache-dir -r requirements.txt 

(проверка доступности приложения)
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$
until curl -fs http://localhost:8080/health/ready; do sleep 2; done
{"status":"ok"}thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 


thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 
make test
python3 tests/smoke.py --base-url "http://localhost:8080" 
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 

(проверки на уровень 4)
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 
python3 student-tests/level4_failures.py all

PASS worker_down: e05d5f76-4b0f-4b33-a81e-e3f6ab4bc72f events: accepted,claimed,ready

PASS commit_publish_gap: df3506d1-b835-49c7-8b0c-bf150273d750 events: accepted,claimed,ready

PASS crash_after_s3: 9f2b8d69-04f2-49f6-bd6c-dca100a9fe87 events: accepted,claimed,lease_expired,claimed,ready

REPLAYED job=5ea63d39-7ba8-4f9b-a9f9-506cc7e69034 attachment=b5a4228a-654f-4212-9b4d-9bd429d85020
PASS replay: b5a4228a-654f-4212-9b4d-9bd429d85020 events: accepted,claimed,failed,replay,claimed,ready

PASS s3_outage: e4ec52dc-cc63-4c2e-babe-d00b1e70de16 events: accepted,claimed,retry_scheduled,claimed,retry_scheduled,claimed,retry_scheduled,claimed,ready
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 

(тест на сохранность данных сервисов)
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 
make test-persistence ACTION_SCRIPT=scripts/restart.sh
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080" 
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.

(тест на работоспособность приложения во время того, как опущена одна реплика апи)
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 
make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080" 
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 88, "failed_attempts": 2, "first_recovery_seconds": 3.153}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
thereal_alyoname@DESKTOP-8Q26HPT:/mnt/c/Users/User/Desktop/MTUCI/4_course/highload_apps/lab5/mtusi2026lab5-fork$ 

