Cloning into '/Users/ssmayorova/Documents/Учеба/Высоконагруженные приложения/lab4/build/lab4-clean-6e826b67/repo'...
done.
Local configuration ready; no secrets printed.
 Image mtusi-messenger:lab4 Building
#1 [internal] load local bake definitions
#1 reading from stdin 721B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 739B done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#3 DONE 0.0s

#4 [internal] load .dockerignore
#4 transferring context: 196B done
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 52.94kB done
#5 DONE 0.0s

#6 [1/7] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#6 resolve docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0 done
#6 DONE 0.0s

#7 [3/7] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
#7 CACHED

#8 [4/7] COPY requirements.txt ./
#8 CACHED

#9 [2/7] WORKDIR /app
#9 CACHED

#10 [5/7] RUN pip install --no-cache-dir -r requirements.txt
#10 CACHED

#11 [6/7] COPY src/ ./src/
#11 CACHED

#12 [7/7] COPY migrations/ ./migrations/
#12 CACHED

#13 exporting to image
#13 exporting layers done
#13 exporting manifest sha256:b9111c9adf12479532b94464933e51b833be4486c559d60f233006a4f2d448a8 done
#13 exporting config sha256:e59e3410c92a9e2663734ff4a9c33edcc65414616230d01ede4285bc1ab1f973 done
#13 exporting attestation manifest sha256:9b07c898e2f46418c89c2514d79a08b01b37144849451e0704173ea0c7c5c8c2 done
#13 exporting manifest list sha256:6db63c0e6e0d2f8d4f650a7ed60998284a8e81d98bc294b41883cef612ba2bce done
#13 naming to docker.io/library/mtusi-messenger:lab4 done
#13 unpacking to docker.io/library/mtusi-messenger:lab4 done
#13 DONE 0.0s

#14 resolving provenance for metadata file
#14 DONE 0.0s
 Image mtusi-messenger:lab4 Built
 Network lab4-clean-6e826b67_storage Creating
 Network lab4-clean-6e826b67_storage Created
 Network lab4-clean-6e826b67_backend Creating
 Network lab4-clean-6e826b67_backend Created
 Network lab4-clean-6e826b67_edge Creating
 Network lab4-clean-6e826b67_edge Created
 Volume lab4-clean-6e826b67_s3_data Creating
 Volume lab4-clean-6e826b67_s3_data Created
 Volume lab4-clean-6e826b67_postgres_data Creating
 Volume lab4-clean-6e826b67_postgres_data Created
 Container lab4-clean-6e826b67-s3-store-1 Creating
 Container lab4-clean-6e826b67-redis-1 Creating
 Container lab4-clean-6e826b67-postgres-1 Creating
 Container lab4-clean-6e826b67-redis-1 Created
 Container lab4-clean-6e826b67-s3-store-1 Created
 Container lab4-clean-6e826b67-s3-1 Creating
 Container lab4-clean-6e826b67-postgres-1 Created
 Container lab4-clean-6e826b67-migrate-1 Creating
 Container lab4-clean-6e826b67-s3-1 Created
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Creating
 Container lab4-clean-6e826b67-migrate-1 Created
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Created
 Container lab4-clean-6e826b67-api-2 Creating
 Container lab4-clean-6e826b67-api-1 Creating
 Container lab4-clean-6e826b67-api-1 Created
 Container lab4-clean-6e826b67-api-2 Created
 Container lab4-clean-6e826b67-lb-1 Creating
 Container lab4-clean-6e826b67-lb-1 Created
 Container lab4-clean-6e826b67-postgres-1 Starting
 Container lab4-clean-6e826b67-s3-store-1 Starting
 Container lab4-clean-6e826b67-redis-1 Starting
 Container lab4-clean-6e826b67-s3-store-1 Started
 Container lab4-clean-6e826b67-s3-store-1 Waiting
 Container lab4-clean-6e826b67-postgres-1 Started
 Container lab4-clean-6e826b67-postgres-1 Waiting
 Container lab4-clean-6e826b67-redis-1 Started
 Container lab4-clean-6e826b67-postgres-1 Healthy
 Container lab4-clean-6e826b67-migrate-1 Starting
 Container lab4-clean-6e826b67-migrate-1 Started
 Container lab4-clean-6e826b67-s3-store-1 Healthy
 Container lab4-clean-6e826b67-s3-1 Starting
 Container lab4-clean-6e826b67-s3-1 Started
 Container lab4-clean-6e826b67-s3-1 Waiting
 Container lab4-clean-6e826b67-s3-1 Healthy
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Starting
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Started
 Container lab4-clean-6e826b67-migrate-1 Waiting
 Container lab4-clean-6e826b67-redis-1 Waiting
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Waiting
 Container lab4-clean-6e826b67-migrate-1 Exited
 Container lab4-clean-6e826b67-redis-1 Healthy
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Exited
 Container lab4-clean-6e826b67-api-2 Starting
 Container lab4-clean-6e826b67-api-2 Started
 Container lab4-clean-6e826b67-api-1 Starting
 Container lab4-clean-6e826b67-api-1 Started
 Container lab4-clean-6e826b67-api-2 Waiting
 Container lab4-clean-6e826b67-api-1 Waiting
 Container lab4-clean-6e826b67-api-2 Healthy
 Container lab4-clean-6e826b67-api-1 Healthy
 Container lab4-clean-6e826b67-lb-1 Starting
 Container lab4-clean-6e826b67-lb-1 Started
 Container lab4-clean-6e826b67-api-2 Waiting
 Container lab4-clean-6e826b67-api-1 Waiting
 Container lab4-clean-6e826b67-lb-1 Waiting
 Container lab4-clean-6e826b67-s3-1 Waiting
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Waiting
 Container lab4-clean-6e826b67-postgres-1 Waiting
 Container lab4-clean-6e826b67-migrate-1 Waiting
 Container lab4-clean-6e826b67-s3-store-1 Waiting
 Container lab4-clean-6e826b67-redis-1 Waiting
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Exited
 Container lab4-clean-6e826b67-redis-1 Healthy
 Container lab4-clean-6e826b67-s3-store-1 Healthy
 Container lab4-clean-6e826b67-s3-1 Healthy
 Container lab4-clean-6e826b67-postgres-1 Healthy
 Container lab4-clean-6e826b67-migrate-1 Exited
 Container lab4-clean-6e826b67-api-2 Healthy
 Container lab4-clean-6e826b67-api-1 Healthy
 Container lab4-clean-6e826b67-lb-1 Healthy
Ready through load balancer.
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python3 tests/smoke.py --base-url "http://127.0.0.1:18090"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
BASE_URL="http://127.0.0.1:18090" python3 -m unittest discover -s student-tests -p 'test_*.py' -v
test_concurrent_messages_and_pagination (test_api.APIContract) ... ok
test_cursor_scope_and_validation (test_api.APIContract) ... ok
test_foreign_chat (test_api.APIContract) ... ok
test_idempotency_concurrent_replicas (test_api.APIContract) ... ok
test_idempotency_conflicting_race (test_api.APIContract) ... ok
test_idempotency_invalid_keys (test_api.APIContract) ... ok
test_idempotency_scope (test_api.APIContract) ... ok
test_idempotency_semantic_body (test_api.APIContract) ... ok
test_invalid_chat_creation (test_api.APIContract) ... ok
test_malformed_json_and_extra_fields (test_api.APIContract) ... ok
test_protocol_error_headers (test_api.APIContract) ... ok
test_registration_race (test_api.APIContract) ... ok
test_unicode_limits (test_api.APIContract) ... ok
test_unicode_nul_round_trip (test_api.APIContract) ... ok
test_unicode_password_basic_and_logout (test_api.APIContract) ... ok
test_access_and_cross_chat (test_attachments.Attachments) ... ok
test_attachment_message_replay (test_attachments.Attachments) ... ok
test_bad_images_and_mime (test_attachments.Attachments) ... ok
test_binary_roundtrip_and_metadata (test_attachments.Attachments) ... ok
test_dangerous_names_and_query (test_attachments.Attachments) ... ok
test_valid_pixel_boundary (test_attachments.Attachments) ... ok

----------------------------------------------------------------------
Ran 21 tests in 5.458s

OK
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18090"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
 Container lab4-clean-6e826b67-lb-1 Stopping
 Container lab4-clean-6e826b67-lb-1 Stopped
 Container lab4-clean-6e826b67-lb-1 Removing
 Container lab4-clean-6e826b67-lb-1 Removed
 Container lab4-clean-6e826b67-api-1 Stopping
 Container lab4-clean-6e826b67-api-2 Stopping
 Container lab4-clean-6e826b67-api-2 Stopped
 Container lab4-clean-6e826b67-api-2 Removing
 Container lab4-clean-6e826b67-api-2 Removed
 Container lab4-clean-6e826b67-api-1 Stopped
 Container lab4-clean-6e826b67-api-1 Removing
 Container lab4-clean-6e826b67-api-1 Removed
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Stopping
 Container lab4-clean-6e826b67-migrate-1 Stopping
 Container lab4-clean-6e826b67-redis-1 Stopping
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Stopped
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Removing
 Container lab4-clean-6e826b67-migrate-1 Stopped
 Container lab4-clean-6e826b67-migrate-1 Removing
 Container lab4-clean-6e826b67-migrate-1 Removed
 Container lab4-clean-6e826b67-postgres-1 Stopping
 Container lab4-clean-6e826b67-bucket-bootstrap-1 Removed
 Container lab4-clean-6e826b67-s3-1 Stopping
 Container lab4-clean-6e826b67-postgres-1 Stopped
 Container lab4-clean-6e826b67-postgres-1 Removing
 Container lab4-clean-6e826b67-postgres-1 Removed
 Container lab4-clean-6e826b67-s3-1 Stopped
 Container lab4-clean-6e826b67-s3-1 Removing
 Container lab4-clean-6e826b67-s3-1 Removed
 Container lab4-clean-6e826b67-s3-store-1 Stopping
 Container lab4-clean-6e826b67-redis-1 Stopped
 Container lab4-clean-6e826b67-redis-1 Removing
 Container lab4-clean-6e826b67-redis-1 Removed
 Container lab4-clean-6e826b67-s3-store-1 Stopped
 Container lab4-clean-6e826b67-s3-store-1 Removing
 Container lab4-clean-6e826b67-s3-store-1 Removed
 Volume lab4-clean-6e826b67_postgres_data Removing
 Network lab4-clean-6e826b67_storage Removing
 Volume lab4-clean-6e826b67_s3_data Removing
 Network lab4-clean-6e826b67_edge Removing
 Network lab4-clean-6e826b67_backend Removing
 Volume lab4-clean-6e826b67_postgres_data Removed
 Volume lab4-clean-6e826b67_s3_data Removed
 Network lab4-clean-6e826b67_storage Removed
 Network lab4-clean-6e826b67_edge Removed
 Network lab4-clean-6e826b67_backend Removed
PASS: clean clone, new credentials, empty PostgreSQL/S3 volumes, all 21 own tests, full restart and byte persistence.
