Command: ./scripts/check-docker.sh; project: lab4-check-1ad8ecf540 Docker: 29.4.2 x86_64 CPUs=16 RAM=8019410944 Local .env and secrets are ready; values are not printed Image mtusi-messenger:lab4 Building #1 [internal] load local bake definitions #1 reading from stdin 585B done #1 DONE 0.0s #2 [internal] load build definition from Dockerfile #2 transferring dockerfile: 733B 0.1s done #2 DONE 0.1s #3 [internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 #3 DONE 0.0s #4 [internal] load .dockerignore #4 transferring context: 32B #4 transferring context: 167B 0.0s done #4 DONE 0.1s #5 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 #5 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 0.0s done #5 DONE 0.0s #6 [internal] load build context #6 transferring context: 1.01kB 0.1s done #6 DONE 0.2s #7 [7/8] COPY migrations/ ./migrations/ #7 CACHED #8 [2/8] WORKDIR /app #8 CACHED #9 [3/8] COPY requirements.txt . #9 CACHED #10 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check #10 CACHED #11 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app #11 CACHED #12 [6/8] COPY src/ ./src/ #12 CACHED #13 [8/8] COPY research/ ./research/ #13 CACHED #14 exporting to image #14 exporting layers done #14 exporting manifest sha256:6f1ead7285b0b8ce31023565fd9947f9056fe386b4bb9d560cc374a859d57257 0.0s done #14 exporting config sha256:c839d8ac2a7ee1b756f2be85e5d96c5503965c2119c85ebe1041b73b4db64133 0.0s done #14 exporting attestation manifest sha256:51ddc135889d95e4ad77fc4d24e36cac6576bd4bdedda79ea78db5ea3418e74d 0.0s done #14 exporting manifest list sha256:e2acb8a9a99c5e45c97ce6e8fb7b5e50b6309a353a33089bae1bc3a9da637b75 0.0s done #14 naming to docker.io/library/mtusi-messenger:lab4 done #14 unpacking to docker.io/library/mtusi-messenger:lab4 0.0s done #14 DONE 0.2s #15 resolving provenance for metadata file #15 DONE 0.0s Image mtusi-messenger:lab4 Built Network lab4-check-1ad8ecf540_default Creating Network lab4-check-1ad8ecf540_default Created Network lab4-check-1ad8ecf540_s3-internal Creating Network lab4-check-1ad8ecf540_s3-internal Created Volume lab4-check-1ad8ecf540_postgres_data Creating Volume lab4-check-1ad8ecf540_postgres_data Created Volume lab4-check-1ad8ecf540_valkey_data Creating Volume lab4-check-1ad8ecf540_valkey_data Created Volume lab4-check-1ad8ecf540_s3_data Creating Volume lab4-check-1ad8ecf540_s3_data Created Container lab4-check-1ad8ecf540-postgres-1 Creating Container lab4-check-1ad8ecf540-valkey-1 Creating Container lab4-check-1ad8ecf540-s3-storage-1 Creating Container lab4-check-1ad8ecf540-valkey-1 Created Container lab4-check-1ad8ecf540-s3-storage-1 Created Container lab4-check-1ad8ecf540-s3-1 Creating Container lab4-check-1ad8ecf540-postgres-1 Created Container lab4-check-1ad8ecf540-migrate-1 Creating Container lab4-check-1ad8ecf540-s3-1 Created Container lab4-check-1ad8ecf540-s3-bootstrap-1 Creating Container lab4-check-1ad8ecf540-migrate-1 Created Container lab4-check-1ad8ecf540-s3-bootstrap-1 Created Container lab4-check-1ad8ecf540-cleanup-1 Creating Container lab4-check-1ad8ecf540-api-1 Creating Container lab4-check-1ad8ecf540-api-2 Creating Container lab4-check-1ad8ecf540-api-2 Created Container lab4-check-1ad8ecf540-cleanup-1 Created Container lab4-check-1ad8ecf540-api-1 Created Container lab4-check-1ad8ecf540-lb-1 Creating Container lab4-check-1ad8ecf540-lb-1 Created Container lab4-check-1ad8ecf540-postgres-1 Starting Container lab4-check-1ad8ecf540-valkey-1 Starting Container lab4-check-1ad8ecf540-s3-storage-1 Starting Container lab4-check-1ad8ecf540-s3-storage-1 Started Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Started Container lab4-check-1ad8ecf540-postgres-1 Started Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Starting Container lab4-check-1ad8ecf540-s3-1 Started Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-valkey-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-cleanup-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-api-1 Starting Container lab4-check-1ad8ecf540-cleanup-1 Started Container lab4-check-1ad8ecf540-api-1 Started Container lab4-check-1ad8ecf540-api-2 Starting Container lab4-check-1ad8ecf540-api-2 Started Container lab4-check-1ad8ecf540-api-1 Waiting Container lab4-check-1ad8ecf540-api-2 Waiting Container lab4-check-1ad8ecf540-api-1 Healthy Container lab4-check-1ad8ecf540-api-2 Healthy Container lab4-check-1ad8ecf540-lb-1 Starting Container lab4-check-1ad8ecf540-lb-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 PASS: 2 real API containers, CPU/RAM limits, API non-root and no public ports; only LB published Проверяем сервер: http://127.0.0.1:37173 /mnt/c/Users/Арсен/Downloads/mtusi2026lab4/mtusi2026lab4/.venv/bin/python scripts/check_contract.py PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. /mnt/c/Users/Арсен/Downloads/mtusi2026lab4/mtusi2026lab4/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:37173" PASS: lab4 public API scenario; infrastructure and grading evidence remain separate. test_chat_access (test_api.ApiTests.test_chat_access) ... ok test_chat_pagination_and_cursor_owner (test_api.ApiTests.test_chat_pagination_and_cursor_owner) ... ok test_cursor_cannot_be_used_for_another_chat_or_changed (test_api.ApiTests.test_cursor_cannot_be_used_for_another_chat_or_changed) ... ok test_default_page_size (test_api.ApiTests.test_default_page_size) ... ok test_duplicate_username (test_api.ApiTests.test_duplicate_username) ... ok test_framework_errors_and_request_ids (test_api.ApiTests.test_framework_errors_and_request_ids) ... ok test_identification_and_authentication_order (test_api.ApiTests.test_identification_and_authentication_order) ... ok test_invalid_chat_members (test_api.ApiTests.test_invalid_chat_members) ... ok test_invalid_chat_title (test_api.ApiTests.test_invalid_chat_title) ... ok test_invalid_limits_and_cursors (test_api.ApiTests.test_invalid_limits_and_cursors) ... ok test_invalid_message_fields (test_api.ApiTests.test_invalid_message_fields) ... ok test_invalid_user_fields (test_api.ApiTests.test_invalid_user_fields) ... ok test_malformed_json_and_encoding (test_api.ApiTests.test_malformed_json_and_encoding) ... ok test_message_pagination_and_changing_limit (test_api.ApiTests.test_message_pagination_and_changing_limit) ... ok test_unicode_and_text_preservation (test_api.ApiTests.test_unicode_and_text_preservation) ... ok test_wrong_content_type (test_api.ApiTests.test_wrong_content_type) ... ok test_access_and_authentication (test_attachments.AttachmentTests.test_access_and_authentication) ... ok test_attachment_only_message_and_other_member (test_attachments.AttachmentTests.test_attachment_only_message_and_other_member) ... ok test_chunked_limit_without_content_length (test_attachments.AttachmentTests.test_chunked_limit_without_content_length) ... ok test_content_length_limit_before_body (test_attachments.AttachmentTests.test_content_length_limit_before_body) ... ok test_corruption_and_mime_spoof (test_attachments.AttachmentTests.test_corruption_and_mime_spoof) ... ok test_filename_rejected_before_storage (test_attachments.AttachmentTests.test_filename_rejected_before_storage) ... ok test_foreign_and_unknown_attachment_ids (test_attachments.AttachmentTests.test_foreign_and_unknown_attachment_ids) ... ok test_idempotency_includes_ordered_attachment_ids (test_attachments.AttachmentTests.test_idempotency_includes_ordered_attachment_ids) ... ok test_invalid_attachment_lists (test_attachments.AttachmentTests.test_invalid_attachment_lists) ... ok test_pixel_limit_before_decode (test_attachments.AttachmentTests.test_pixel_limit_before_decode) ... ok test_png_and_jpeg_originals (test_attachments.AttachmentTests.test_png_and_jpeg_originals) ... ok test_simultaneous_registration_of_one_username (test_concurrency.ConcurrencyTests.test_simultaneous_registration_of_one_username) ... ok test_ten_clients_send_one_hundred_messages (test_concurrency.ConcurrencyTests.test_ten_clients_send_one_hundred_messages) ... ok test_conflict_and_semantic_json_replay (test_idempotency.IdempotencyTests.test_conflict_and_semantic_json_replay) ... ok test_key_format_and_missing_key (test_idempotency.IdempotencyTests.test_key_format_and_missing_key) ... ok test_parallel_replay_across_replicas (test_idempotency.IdempotencyTests.test_parallel_replay_across_replicas) ... ok test_replay_rechecks_session_and_access (test_idempotency.IdempotencyTests.test_replay_rechecks_session_and_access) ... ok test_scope_is_user_and_chat (test_idempotency.IdempotencyTests.test_scope_is_user_and_chat) ... ok test_logout_revokes_only_one_session (test_sessions.SessionTests.test_logout_revokes_only_one_session) ... ok test_password_validation (test_sessions.SessionTests.test_password_validation) ... ok test_sql_like_message_is_plain_text (test_sessions.SessionTests.test_sql_like_message_is_plain_text) ... ok test_unicode_password_with_colon_and_private_response (test_sessions.SessionTests.test_unicode_password_with_colon_and_private_response) ... ok test_wrong_password_and_basic_only_for_login (test_sessions.SessionTests.test_wrong_password_and_basic_only_for_login) ... ok ---------------------------------------------------------------------- Ran 39 tests in 14.272s OK PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages. Container lab4-check-1ad8ecf540-postgres-1 Running Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-run-916abfabd827 Creating Container lab4-check-1ad8ecf540-migrate-run-916abfabd827 Created Container lab4-check-1ad8ecf540-postgres-1 Running Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-run-839efbaa362d Creating Container lab4-check-1ad8ecf540-migrate-run-839efbaa362d Created PASS: migrations only in one-shot service; repeated execution preserves data Container lab4-check-1ad8ecf540-cleanup-1 Stopping Container lab4-check-1ad8ecf540-cleanup-1 Stopped Container lab4-check-1ad8ecf540-s3-storage-1 Running Container lab4-check-1ad8ecf540-s3-1 Running Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-run-c4dad425de35 Creating Container lab4-check-1ad8ecf540-s3-bootstrap-run-c4dad425de35 Created Container lab4-check-1ad8ecf540-s3-storage-1 Running Container lab4-check-1ad8ecf540-s3-1 Running Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-run-2610d032cce8 Creating Container lab4-check-1ad8ecf540-s3-bootstrap-run-2610d032cce8 Created PASS: private S3, limited credentials, isolated administration, repeated bootstrap Stopped API: 27e984eebdb7 container=27e984eebdb76456c9f743366e95d6bc21d2b7df61da990d6d1f3dbe962a390d API ready through LB: 330027f55a61 Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-valkey-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-api-1 Starting Container lab4-check-1ad8ecf540-api-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 PASS: original downloaded through another replica after stopping uploader PASS: post-PUT DB failure recorded; cleanup protects fresh, active and ready uploads Container lab4-check-1ad8ecf540-s3-1 Stopping Container lab4-check-1ad8ecf540-s3-1 Stopped Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Starting Container lab4-check-1ad8ecf540-s3-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 PASS: S3 outage gives API 503; recovery preserves original and session Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-cleanup-1 Starting Container lab4-check-1ad8ecf540-cleanup-1 Started PASS: 10 concurrent real PNG uploads; all checksums match; memory peaks: [105451520, 234598400] Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Healthy Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited /mnt/c/Users/Арсен/Downloads/mtusi2026lab4/mtusi2026lab4/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:37173" Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. PASS: both API, LB, PostgreSQL, Valkey, S3 and cleaner actually restarted; data and session preserved PASS: SIGTERM with unfinished request: {"instance": "27e984eebdb7", "unfinished_request": true, "shutdown_seconds": 6.036, "new_connections_refused_seconds": 0.26, "exit_code": 0, "oom_killed": false} Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-valkey-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-api-1 Starting Container lab4-check-1ad8ecf540-api-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 Container lab4-check-1ad8ecf540-valkey-1 Stopping Container lab4-check-1ad8ecf540-valkey-1 Stopped PASS: valkey outage: API live=200, ready=503, LB ready=503 Container lab4-check-1ad8ecf540-valkey-1 Starting Container lab4-check-1ad8ecf540-valkey-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 Container lab4-check-1ad8ecf540-postgres-1 Stopping Container lab4-check-1ad8ecf540-postgres-1 Stopped PASS: postgres outage: API live=200, ready=503, LB ready=503 Container lab4-check-1ad8ecf540-postgres-1 Starting Container lab4-check-1ad8ecf540-postgres-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 Container lab4-check-1ad8ecf540-s3-1 Stopping Container lab4-check-1ad8ecf540-s3-1 Stopped PASS: s3 outage: API live=200, ready=503, LB ready=503 Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Starting Container lab4-check-1ad8ecf540-s3-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 Container lab4-check-1ad8ecf540-postgres-1 Paused Container lab4-check-1ad8ecf540-postgres-1 Unpaused PASS: paused PostgreSQL: SQL and direct readiness bounded; live works; unpause restores API without restart /mnt/c/Users/Арсен/Downloads/mtusi2026lab4/mtusi2026lab4/.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:37173" Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 113, "failed_attempts": 1, "first_recovery_seconds": 2.584} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-valkey-1 Healthy Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-api-2 Starting Container lab4-check-1ad8ecf540-api-2 Started API ready through LB: 27e984eebdb7, 330027f55a61 Stopped API: 27e984eebdb7 container=27e984eebdb76456c9f743366e95d6bc21d2b7df61da990d6d1f3dbe962a390d {"label": "stop 27e984eebdb7", "duration_seconds": 16.032, "successful_requests": 1104, "successful_writes": 551, "errors": 4, "successful_rps": 68.86, "first_success_after_action_seconds": {"POST": 0.027, "GET": 0.026}, "maximum_success_gap_seconds": {"POST": 1.99, "GET": 1.937}, "action_start_seconds": 1.002, "action_end_seconds": 2.378, "p50_ms": 18.076, "p95_ms": 80.838, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["27e984eebdb7", "330027f55a61"]} Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-valkey-1 Waiting Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-valkey-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-api-1 Starting Container lab4-check-1ad8ecf540-api-1 Started API ready through LB: 27e984eebdb7, 330027f55a61 Stopped API: 330027f55a61 container=330027f55a61e2a1205fe2ad0eead1233bfbf16822bfb79650c17c416991e85a {"label": "stop 330027f55a61", "duration_seconds": 16.105, "successful_requests": 1142, "successful_writes": 572, "errors": 4, "successful_rps": 70.91, "first_success_after_action_seconds": {"POST": 0.044, "GET": 0.003}, "maximum_success_gap_seconds": {"POST": 1.997, "GET": 2.0}, "action_start_seconds": 1.002, "action_end_seconds": 2.183, "p50_ms": 17.395, "p95_ms": 64.873, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["27e984eebdb7", "330027f55a61"]} Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Waiting Container lab4-check-1ad8ecf540-s3-storage-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Starting Container lab4-check-1ad8ecf540-migrate-1 Started Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-s3-bootstrap-1 Starting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Started Container lab4-check-1ad8ecf540-migrate-1 Waiting Container lab4-check-1ad8ecf540-s3-1 Waiting Container lab4-check-1ad8ecf540-s3-bootstrap-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-valkey-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-valkey-1 Healthy Container lab4-check-1ad8ecf540-s3-1 Healthy Container lab4-check-1ad8ecf540-migrate-1 Exited Container lab4-check-1ad8ecf540-s3-bootstrap-1 Exited Container lab4-check-1ad8ecf540-api-2 Starting Container lab4-check-1ad8ecf540-api-2 Started API ready through LB: 27e984eebdb7, 330027f55a61 Local .env and secrets are ready; values are not printed Image mtusi-messenger:lab4 Building #1 [internal] load local bake definitions #1 reading from stdin 585B done #1 DONE 0.0s #2 [internal] load build definition from Dockerfile #2 transferring dockerfile: 733B 0.1s done #2 DONE 0.1s #3 [internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 #3 DONE 0.0s #4 [internal] load .dockerignore #4 transferring context: 167B 0.1s done #4 DONE 0.1s #5 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 #5 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 0.0s done #5 DONE 0.0s #6 [internal] load build context #6 transferring context: 1.01kB 0.2s done #6 DONE 0.2s #7 [2/8] WORKDIR /app #7 CACHED #8 [3/8] COPY requirements.txt . #8 CACHED #9 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app #9 CACHED #10 [6/8] COPY src/ ./src/ #10 CACHED #11 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check #11 CACHED #12 [7/8] COPY migrations/ ./migrations/ #12 CACHED #13 [8/8] COPY research/ ./research/ #13 CACHED #14 exporting to image #14 exporting layers done #14 exporting manifest sha256:6f1ead7285b0b8ce31023565fd9947f9056fe386b4bb9d560cc374a859d57257 done #14 exporting config sha256:c839d8ac2a7ee1b756f2be85e5d96c5503965c2119c85ebe1041b73b4db64133 done #14 exporting attestation manifest sha256:5f69eeb2680e0b86cd71ba190ceb53013d7a75aacb52c1ef47a8faf648169b03 0.0s done #14 exporting manifest list sha256:c8960ea2adbe77df50a4e81d5a39cdde43c004ac67ba07023d54e3ae7ec6a02e #14 exporting manifest list sha256:c8960ea2adbe77df50a4e81d5a39cdde43c004ac67ba07023d54e3ae7ec6a02e 0.0s done #14 naming to docker.io/library/mtusi-messenger:lab4 done #14 unpacking to docker.io/library/mtusi-messenger:lab4 0.0s done #14 DONE 0.2s #15 resolving provenance for metadata file #15 DONE 0.0s Image mtusi-messenger:lab4 Built Container lab4-check-1ad8ecf540-postgres-1 Running Container lab4-check-1ad8ecf540-postgres-1 Waiting Container lab4-check-1ad8ecf540-postgres-1 Healthy Container lab4-check-1ad8ecf540-migrate-run-f258d2d53aaa Creating Container lab4-check-1ad8ecf540-migrate-run-f258d2d53aaa Created Migrations: already applied API ready through LB: 27e984eebdb7, 330027f55a61 Replacing API: 27e984eebdb7 Container lab4-check-1ad8ecf540-api-2 Running Container lab4-check-1ad8ecf540-api-3 Creating Container lab4-check-1ad8ecf540-api-3 Created Container lab4-check-1ad8ecf540-api-3 Starting Container lab4-check-1ad8ecf540-api-3 Started API ready through LB: 330027f55a61, e68fad5a7a8d Replacing API: 330027f55a61 Container lab4-check-1ad8ecf540-api-3 Running Container lab4-check-1ad8ecf540-api-4 Creating Container lab4-check-1ad8ecf540-api-4 Created Container lab4-check-1ad8ecf540-api-4 Starting Container lab4-check-1ad8ecf540-api-4 Started API ready through LB: 7311a0e8c865, e68fad5a7a8d PASS: all API containers replaced sequentially; stores and LB kept running {"label": "sequential API replacement", "duration_seconds": 30.186, "successful_requests": 2148, "successful_writes": 1075, "errors": 8, "successful_rps": 71.16, "first_success_after_action_seconds": {"POST": 0.016, "GET": 0.012}, "maximum_success_gap_seconds": {"POST": 1.995, "GET": 2.146}, "action_start_seconds": 1.002, "action_end_seconds": 27.178, "p50_ms": 15.574, "p95_ms": 46.361, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["27e984eebdb7", "330027f55a61", "7311a0e8c865", "e68fad5a7a8d"]} PASS: all lab4 grade-4 checks completed Container lab4-check-1ad8ecf540-cleanup-1 Stopping Container lab4-check-1ad8ecf540-lb-1 Stopping Container lab4-check-1ad8ecf540-lb-1 Stopped Container lab4-check-1ad8ecf540-lb-1 Removing Container lab4-check-1ad8ecf540-lb-1 Removed Container lab4-check-1ad8ecf540-api-3 Stopping Container lab4-check-1ad8ecf540-api-4 Stopping Container lab4-check-1ad8ecf540-api-4 Stopped Container lab4-check-1ad8ecf540-api-4 Removing Container lab4-check-1ad8ecf540-api-4 Removed Container lab4-check-1ad8ecf540-api-3 Stopped Container lab4-check-1ad8ecf540-api-3 Removing Container lab4-check-1ad8ecf540-api-3 Removed Container lab4-check-1ad8ecf540-valkey-1 Stopping Container lab4-check-1ad8ecf540-valkey-1 Stopped Container lab4-check-1ad8ecf540-valkey-1 Removing Container lab4-check-1ad8ecf540-valkey-1 Removed Container lab4-check-1ad8ecf540-cleanup-1 Stopped Container lab4-check-1ad8ecf540-cleanup-1 Removing Container lab4-check-1ad8ecf540-cleanup-1 Removed Container lab4-check-1ad8ecf540-s3-bootstrap-1 Stopping Container lab4-check-1ad8ecf540-migrate-1 Stopping Container lab4-check-1ad8ecf540-migrate-1 Stopped Container lab4-check-1ad8ecf540-migrate-1 Removing Container lab4-check-1ad8ecf540-s3-bootstrap-1 Stopped Container lab4-check-1ad8ecf540-s3-bootstrap-1 Removing Container lab4-check-1ad8ecf540-migrate-1 Removed Container lab4-check-1ad8ecf540-postgres-1 Stopping Container lab4-check-1ad8ecf540-s3-bootstrap-1 Removed Container lab4-check-1ad8ecf540-s3-1 Stopping Container lab4-check-1ad8ecf540-postgres-1 Stopped Container lab4-check-1ad8ecf540-postgres-1 Removing Container lab4-check-1ad8ecf540-postgres-1 Removed Container lab4-check-1ad8ecf540-s3-1 Stopped Container lab4-check-1ad8ecf540-s3-1 Removing Container lab4-check-1ad8ecf540-s3-1 Removed Container lab4-check-1ad8ecf540-s3-storage-1 Stopping Container lab4-check-1ad8ecf540-s3-storage-1 Stopped Container lab4-check-1ad8ecf540-s3-storage-1 Removing Container lab4-check-1ad8ecf540-s3-storage-1 Removed Network lab4-check-1ad8ecf540_default Removing Volume lab4-check-1ad8ecf540_postgres_data Removing Volume lab4-check-1ad8ecf540_s3_data Removing Volume lab4-check-1ad8ecf540_valkey_data Removing Network lab4-check-1ad8ecf540_s3-internal Removing Volume lab4-check-1ad8ecf540_postgres_data Removed Volume lab4-check-1ad8ecf540_s3_data Removed Volume lab4-check-1ad8ecf540_valkey_data Removed Network lab4-check-1ad8ecf540_default Removed Network lab4-check-1ad8ecf540_s3-internal Removed Removed only temporary test containers and volumes: lab4-check-1ad8ecf540