forked from mtusi2026/mtusi2026lab5
перенос 4 лабы и реализация 5
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
UTC: 2026-10-22T11:17:22.562634+00:00
|
||||
Host: Darwin arm64 Python 3.11.9
|
||||
Docker: 29.0.1 aarch64 CPUs=10 RAM=8217448448
|
||||
Commit: 9961362 + working tree
|
||||
Command: ./scripts/check-docker.sh; project: lab2-check-ae280d00db
|
||||
PASS: start.sh built and started the stack, readiness reached
|
||||
api image=sha256:0b3dc5056cced642eea5ade11d235dce9f69f0d9e6d63956ce9479f2deaa10a0 started=2026-10-22T11:17:27.057932632Z memory=268435456 nano_cpus=1000000000
|
||||
postgres image=sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3 started=2026-10-22T11:17:24.411773881Z memory=536870912 nano_cpus=1000000000
|
||||
valkey image=sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571 started=2026-10-22T11:17:24.406509756Z memory=134217728 nano_cpus=500000000
|
||||
PASS: non-root UID 10001; Python PID 1; healthcheck; named volumes; no API data volume
|
||||
Проверяем сервер: http://127.0.0.1:61900
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab2/mtusi2026lab2/.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab2/mtusi2026lab2/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:61900"
|
||||
PASS: lab2 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_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_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 23 tests in 5.743s
|
||||
|
||||
OK
|
||||
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
|
||||
PASS: demo.sh registered users, logged in and read two messages
|
||||
PASS: Argon2id in PostgreSQL; logs do not contain message text, passwords or session tokens
|
||||
PASS: failed membership insert rolled back chat; migrations run twice without duplicate data
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab2/mtusi2026lab2/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:61900"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
Restart api 2026-10-22T11:17:27.057932632Z -> 2026-10-22T11:17:45.460071626Z
|
||||
Restart postgres 2026-10-22T11:17:24.411773881Z -> 2026-10-22T11:17:44.637353001Z
|
||||
Restart valkey 2026-10-22T11:17:24.406509756Z -> 2026-10-22T11:17:44.670095293Z
|
||||
PASS: API, PostgreSQL and Valkey really restarted; previous token still works
|
||||
PASS: valkey unavailable -> 503 in 0.11s; anonymous -> 401; readiness 503, liveness 200
|
||||
API ready
|
||||
PASS: valkey recovered without a new login
|
||||
PASS: postgres unavailable -> 503 in 2.01s; anonymous -> 401; readiness 503, liveness 200
|
||||
API ready
|
||||
PASS: postgres recovered without a new login
|
||||
API ready
|
||||
PASS: SESSION_TTL_SECONDS=2; valid token expires without logout
|
||||
PASS: SIGTERM with unfinished request: 5.54s; new requests refused after 0.16s; exit=0; OOM=false
|
||||
PASS: all lab2 Docker checks completed
|
||||
PASS: stop.sh removed containers and preserved named volumes
|
||||
Removed only temporary Compose project and its test volumes: lab2-check-ae280d00db
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,403 @@
|
||||
Command: ./scripts/check-docker.sh; project: lab3-check-a31f544685
|
||||
Docker: 29.0.1 aarch64 CPUs=10 RAM=8217448448
|
||||
Local .env and secrets are ready; values are not printed
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.05kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [migrate internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 733B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [api internal] load metadata for docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [api internal] load .dockerignore
|
||||
#4 transferring context: 167B done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [migrate internal] load build context
|
||||
#5 transferring context: 809B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [migrate 1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
|
||||
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [migrate 2/8] WORKDIR /app
|
||||
#7 CACHED
|
||||
|
||||
#8 [migrate 3/8] COPY requirements.txt .
|
||||
#8 CACHED
|
||||
|
||||
#9 [migrate 4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
|
||||
#9 CACHED
|
||||
|
||||
#10 [migrate 6/8] COPY src/ ./src/
|
||||
#10 CACHED
|
||||
|
||||
#11 [migrate 7/8] COPY migrations/ ./migrations/
|
||||
#11 CACHED
|
||||
|
||||
#12 [migrate 5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
|
||||
#12 CACHED
|
||||
|
||||
#13 [migrate 8/8] COPY research/ ./research/
|
||||
#13 CACHED
|
||||
|
||||
#14 [api] exporting to image
|
||||
#14 exporting layers done
|
||||
#14 exporting manifest sha256:06163e45d3676c7cf4f7a1c7bfe108ed3b98559ebb485c7a09d1e87e6f418d17 done
|
||||
#14 exporting config sha256:3fed7460e9510eef7b2928f8d600d06d5d65329f74d820beac13809476b11398 done
|
||||
#14 exporting attestation manifest sha256:352319cde788733f2f237a2a78204630c542e7ca906cff14c902046e8c1d2e5b 0.0s done
|
||||
#14 exporting manifest list sha256:848e0c76f1678f35dd1b483e7c54552466999551ba7e77c0062bf346671e2902 done
|
||||
#14 naming to docker.io/library/mtusi-messenger:lab3 done
|
||||
#14 unpacking to docker.io/library/mtusi-messenger:lab3 done
|
||||
#14 DONE 0.1s
|
||||
|
||||
#15 [migrate] exporting to image
|
||||
#15 exporting layers done
|
||||
#15 exporting manifest sha256:a59568d34e2c5e8b4d23308342601fdaf8c07e78ec3065878679a067c082e952 done
|
||||
#15 exporting config sha256:b67b805ba1b7dd90f0a3e8444455488fe8c7f4118f14d671501dd63e85b59c97 done
|
||||
#15 exporting attestation manifest sha256:b1853c07ddac46c4b398b475052f334aa2753c2fe971e0e4fb2517b0e3e13656 0.0s done
|
||||
#15 exporting manifest list sha256:eff1abdd662eb60e2741e6ce6b8f364467d2817dafeef9754518247124a780eb done
|
||||
#15 naming to docker.io/library/mtusi-messenger:lab3 done
|
||||
#15 unpacking to docker.io/library/mtusi-messenger:lab3 done
|
||||
#15 DONE 0.1s
|
||||
|
||||
#16 [api] resolving provenance for metadata file
|
||||
#16 DONE 0.0s
|
||||
|
||||
#17 [migrate] resolving provenance for metadata file
|
||||
#17 DONE 0.0s
|
||||
mtusi-messenger:lab3 Built
|
||||
mtusi-messenger:lab3 Built
|
||||
Network lab3-check-a31f544685_default Creating
|
||||
Network lab3-check-a31f544685_default Created
|
||||
Volume lab3-check-a31f544685_postgres_data Creating
|
||||
Volume lab3-check-a31f544685_postgres_data Created
|
||||
Volume lab3-check-a31f544685_valkey_data Creating
|
||||
Volume lab3-check-a31f544685_valkey_data Created
|
||||
Container lab3-check-a31f544685-valkey-1 Creating
|
||||
Container lab3-check-a31f544685-postgres-1 Creating
|
||||
Container lab3-check-a31f544685-valkey-1 Created
|
||||
Container lab3-check-a31f544685-postgres-1 Created
|
||||
Container lab3-check-a31f544685-migrate-1 Creating
|
||||
Container lab3-check-a31f544685-migrate-1 Created
|
||||
Container lab3-check-a31f544685-api-2 Creating
|
||||
Container lab3-check-a31f544685-api-1 Creating
|
||||
Container lab3-check-a31f544685-api-1 Created
|
||||
Container lab3-check-a31f544685-api-2 Created
|
||||
Container lab3-check-a31f544685-lb-1 Creating
|
||||
Container lab3-check-a31f544685-lb-1 Created
|
||||
Container lab3-check-a31f544685-valkey-1 Starting
|
||||
Container lab3-check-a31f544685-postgres-1 Starting
|
||||
Container lab3-check-a31f544685-valkey-1 Started
|
||||
Container lab3-check-a31f544685-postgres-1 Started
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Starting
|
||||
Container lab3-check-a31f544685-migrate-1 Started
|
||||
Container lab3-check-a31f544685-migrate-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Healthy
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Exited
|
||||
Container lab3-check-a31f544685-api-2 Starting
|
||||
Container lab3-check-a31f544685-api-2 Started
|
||||
Container lab3-check-a31f544685-api-1 Starting
|
||||
Container lab3-check-a31f544685-api-1 Started
|
||||
Container lab3-check-a31f544685-api-2 Waiting
|
||||
Container lab3-check-a31f544685-api-1 Waiting
|
||||
Container lab3-check-a31f544685-api-2 Healthy
|
||||
Container lab3-check-a31f544685-api-1 Healthy
|
||||
Container lab3-check-a31f544685-lb-1 Starting
|
||||
Container lab3-check-a31f544685-lb-1 Started
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
PASS: 2 real API containers, CPU/RAM limits, API non-root and no public ports; only LB published
|
||||
Проверяем сервер: http://127.0.0.1:58474
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:58474"
|
||||
PASS: lab3 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_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 28 tests in 6.783s
|
||||
|
||||
OK
|
||||
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
|
||||
Container lab3-check-a31f544685-postgres-1 Running
|
||||
Container lab3-check-a31f544685-postgres-1 Running
|
||||
PASS: migrations only in one-shot service; repeated execution preserves data
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:58474"
|
||||
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 actually restarted; session and confirmed data preserved
|
||||
PASS: SIGTERM with unfinished request: {"instance": "7f6a80b69e32", "unfinished_request": true, "shutdown_seconds": 5.393, "new_connections_refused_seconds": 0.167, "exit_code": 0, "oom_killed": false}
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Starting
|
||||
Container lab3-check-a31f544685-migrate-1 Started
|
||||
Container lab3-check-a31f544685-valkey-1 Waiting
|
||||
Container lab3-check-a31f544685-migrate-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Healthy
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Exited
|
||||
Container lab3-check-a31f544685-api-1 Starting
|
||||
Container lab3-check-a31f544685-api-1 Started
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
Container lab3-check-a31f544685-valkey-1 Stopping
|
||||
Container lab3-check-a31f544685-valkey-1 Stopped
|
||||
PASS: valkey outage: API live=200, ready=503, LB ready=503
|
||||
Container lab3-check-a31f544685-valkey-1 Starting
|
||||
Container lab3-check-a31f544685-valkey-1 Started
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
Container lab3-check-a31f544685-postgres-1 Stopping
|
||||
Container lab3-check-a31f544685-postgres-1 Stopped
|
||||
PASS: postgres outage: API live=200, ready=503, LB ready=503
|
||||
Container lab3-check-a31f544685-postgres-1 Starting
|
||||
Container lab3-check-a31f544685-postgres-1 Started
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab3/mtusi2026lab3/.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:58474"
|
||||
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.452}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Starting
|
||||
Container lab3-check-a31f544685-migrate-1 Started
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Waiting
|
||||
Container lab3-check-a31f544685-migrate-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-valkey-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Exited
|
||||
Container lab3-check-a31f544685-api-1 Starting
|
||||
Container lab3-check-a31f544685-api-1 Started
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
Stopped API: 7f6a80b69e32 container=7f6a80b69e3297a4de72e756a6c9d867a108930c1ca0e57922b3821c26fd03e6
|
||||
{"label": "stop 7f6a80b69e32", "duration_seconds": 16.009, "successful_requests": 1576, "successful_writes": 788, "errors": 4, "successful_rps": 98.44, "first_success_after_action_seconds": {"POST": 0.014, "GET": 0.007}, "maximum_success_gap_seconds": {"POST": 1.957, "GET": 2.004}, "action_start_seconds": 1.003, "action_end_seconds": 1.666, "p50_ms": 7.813, "p95_ms": 16.393, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["7f6a80b69e32", "f973eaec4d52"]}
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Starting
|
||||
Container lab3-check-a31f544685-migrate-1 Started
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Waiting
|
||||
Container lab3-check-a31f544685-migrate-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Healthy
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Exited
|
||||
Container lab3-check-a31f544685-api-1 Starting
|
||||
Container lab3-check-a31f544685-api-1 Started
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
Stopped API: f973eaec4d52 container=f973eaec4d5290eb73cd96949877ccb8df1213523fce0ec05c6b40c1136bb31b
|
||||
{"label": "stop f973eaec4d52", "duration_seconds": 16.015, "successful_requests": 1574, "successful_writes": 786, "errors": 4, "successful_rps": 98.28, "first_success_after_action_seconds": {"POST": 0.002, "GET": 0.008}, "maximum_success_gap_seconds": {"POST": 2.006, "GET": 2.006}, "action_start_seconds": 1.005, "action_end_seconds": 1.713, "p50_ms": 7.98, "p95_ms": 17.217, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["7f6a80b69e32", "f973eaec4d52"]}
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Starting
|
||||
Container lab3-check-a31f544685-migrate-1 Started
|
||||
Container lab3-check-a31f544685-postgres-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Waiting
|
||||
Container lab3-check-a31f544685-migrate-1 Waiting
|
||||
Container lab3-check-a31f544685-valkey-1 Healthy
|
||||
Container lab3-check-a31f544685-postgres-1 Healthy
|
||||
Container lab3-check-a31f544685-migrate-1 Exited
|
||||
Container lab3-check-a31f544685-api-2 Starting
|
||||
Container lab3-check-a31f544685-api-2 Started
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
Local .env and secrets are ready; values are not printed
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.03kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 733B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#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 done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load build context
|
||||
#5 transferring context: 809B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
|
||||
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
|
||||
#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 [2/8] WORKDIR /app
|
||||
#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:06163e45d3676c7cf4f7a1c7bfe108ed3b98559ebb485c7a09d1e87e6f418d17 done
|
||||
#14 exporting config sha256:3fed7460e9510eef7b2928f8d600d06d5d65329f74d820beac13809476b11398 done
|
||||
#14 exporting attestation manifest sha256:3a88ce0975ddcbab53c3ecb185da08ef114e818e9db952983e997cd47add67bf done
|
||||
#14 exporting manifest list sha256:433a8a3293202a92f092574052b474e8373c0d58649cbcf1c7ebc1af17933d3c done
|
||||
#14 naming to docker.io/library/mtusi-messenger:lab3 done
|
||||
#14 unpacking to docker.io/library/mtusi-messenger:lab3 done
|
||||
#14 DONE 0.1s
|
||||
|
||||
#15 resolving provenance for metadata file
|
||||
#15 DONE 0.0s
|
||||
mtusi-messenger:lab3 Built
|
||||
Local .env and secrets are ready; values are not printed
|
||||
Container lab3-check-a31f544685-postgres-1 Running
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 576B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 733B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#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 done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load build context
|
||||
#5 transferring context: 809B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
|
||||
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [3/8] COPY requirements.txt .
|
||||
#7 CACHED
|
||||
|
||||
#8 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
|
||||
#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 [7/8] COPY migrations/ ./migrations/
|
||||
#11 CACHED
|
||||
|
||||
#12 [2/8] WORKDIR /app
|
||||
#12 CACHED
|
||||
|
||||
#13 [8/8] COPY research/ ./research/
|
||||
#13 CACHED
|
||||
|
||||
#14 exporting to image
|
||||
#14 exporting layers done
|
||||
#14 exporting manifest sha256:a59568d34e2c5e8b4d23308342601fdaf8c07e78ec3065878679a067c082e952 done
|
||||
#14 exporting config sha256:b67b805ba1b7dd90f0a3e8444455488fe8c7f4118f14d671501dd63e85b59c97 done
|
||||
#14 exporting attestation manifest sha256:25ff7934ca5161da9b6c345af61b6a10b452580e4d349b35939d32feb66664ea done
|
||||
#14 exporting manifest list sha256:3e102cd9a2c1e81e95aed4a0d4de1ac94352370595fced350257813f7a07bef8 done
|
||||
#14 naming to docker.io/library/mtusi-messenger:lab3 done
|
||||
#14 unpacking to docker.io/library/mtusi-messenger:lab3 done
|
||||
#14 DONE 0.0s
|
||||
|
||||
#15 resolving provenance for metadata file
|
||||
#15 DONE 0.0s
|
||||
Migrations: already applied
|
||||
API ready through LB: 7f6a80b69e32, f973eaec4d52
|
||||
Replacing API: 7f6a80b69e32
|
||||
Container lab3-check-a31f544685-api-2 Running
|
||||
Container lab3-check-a31f544685-api-3 Creating
|
||||
Container lab3-check-a31f544685-api-3 Created
|
||||
Container lab3-check-a31f544685-api-3 Starting
|
||||
Container lab3-check-a31f544685-api-3 Started
|
||||
API ready through LB: ca9c7a52da66, f973eaec4d52
|
||||
Replacing API: f973eaec4d52
|
||||
Container lab3-check-a31f544685-api-3 Running
|
||||
Container lab3-check-a31f544685-api-4 Creating
|
||||
Container lab3-check-a31f544685-api-4 Created
|
||||
Container lab3-check-a31f544685-api-4 Starting
|
||||
Container lab3-check-a31f544685-api-4 Started
|
||||
API ready through LB: 244bf0b910eb, ca9c7a52da66
|
||||
PASS: all API containers replaced sequentially; stores and LB kept running
|
||||
{"label": "sequential API replacement", "duration_seconds": 23.774, "successful_requests": 2131, "successful_writes": 1063, "errors": 11, "successful_rps": 89.64, "first_success_after_action_seconds": {"POST": 0.018, "GET": 0.004}, "maximum_success_gap_seconds": {"POST": 1.059, "GET": 2.034}, "action_start_seconds": 1.005, "action_end_seconds": 19.63, "p50_ms": 7.723, "p95_ms": 13.565, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["244bf0b910eb", "7f6a80b69e32", "ca9c7a52da66", "f973eaec4d52"]}
|
||||
PASS: all lab3 grade-4 checks completed
|
||||
Container lab3-check-a31f544685-lb-1 Stopping
|
||||
Container lab3-check-a31f544685-lb-1 Stopped
|
||||
Container lab3-check-a31f544685-lb-1 Removing
|
||||
Container lab3-check-a31f544685-lb-1 Removed
|
||||
Container lab3-check-a31f544685-api-3 Stopping
|
||||
Container lab3-check-a31f544685-api-4 Stopping
|
||||
Container lab3-check-a31f544685-api-4 Stopped
|
||||
Container lab3-check-a31f544685-api-4 Removing
|
||||
Container lab3-check-a31f544685-api-4 Removed
|
||||
Container lab3-check-a31f544685-api-3 Stopped
|
||||
Container lab3-check-a31f544685-api-3 Removing
|
||||
Container lab3-check-a31f544685-api-3 Removed
|
||||
Container lab3-check-a31f544685-migrate-1 Stopping
|
||||
Container lab3-check-a31f544685-valkey-1 Stopping
|
||||
Container lab3-check-a31f544685-migrate-1 Stopped
|
||||
Container lab3-check-a31f544685-migrate-1 Removing
|
||||
Container lab3-check-a31f544685-migrate-1 Removed
|
||||
Container lab3-check-a31f544685-postgres-1 Stopping
|
||||
Container lab3-check-a31f544685-valkey-1 Stopped
|
||||
Container lab3-check-a31f544685-valkey-1 Removing
|
||||
Container lab3-check-a31f544685-valkey-1 Removed
|
||||
Container lab3-check-a31f544685-postgres-1 Stopped
|
||||
Container lab3-check-a31f544685-postgres-1 Removing
|
||||
Container lab3-check-a31f544685-postgres-1 Removed
|
||||
Volume lab3-check-a31f544685_valkey_data Removing
|
||||
Network lab3-check-a31f544685_default Removing
|
||||
Volume lab3-check-a31f544685_postgres_data Removing
|
||||
Volume lab3-check-a31f544685_valkey_data Removed
|
||||
Volume lab3-check-a31f544685_postgres_data Removed
|
||||
Network lab3-check-a31f544685_default Removed
|
||||
Removed only temporary test containers and volumes: lab3-check-a31f544685
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,533 @@
|
||||
Command: ./scripts/check-docker.sh; project: lab4-check-5aad8e0065
|
||||
Docker: 29.0.1 aarch64 CPUs=10 RAM=8217448448
|
||||
Local .env and secrets are ready; values are not printed
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 564B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 733B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#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 done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load build context
|
||||
#5 transferring context: 1.01kB done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
|
||||
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
|
||||
#7 CACHED
|
||||
|
||||
#8 [7/8] COPY migrations/ ./migrations/
|
||||
#8 CACHED
|
||||
|
||||
#9 [2/8] WORKDIR /app
|
||||
#9 CACHED
|
||||
|
||||
#10 [6/8] COPY src/ ./src/
|
||||
#10 CACHED
|
||||
|
||||
#11 [3/8] COPY requirements.txt .
|
||||
#11 CACHED
|
||||
|
||||
#12 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
|
||||
#12 CACHED
|
||||
|
||||
#13 [8/8] COPY research/ ./research/
|
||||
#13 CACHED
|
||||
|
||||
#14 exporting to image
|
||||
#14 exporting layers done
|
||||
#14 exporting manifest sha256:644f5d408505f5982b75f18404860de692ee837b2b2e18f5c92b0b057081b7ec done
|
||||
#14 exporting config sha256:726011343b32f5b6277348f2f8b38f95b8c31754ae0d21336375124a18aa2e0e done
|
||||
#14 exporting attestation manifest sha256:1146b210a20471d58663fb48a3a24ba22986971d0cce8777f912886768f43306 done
|
||||
#14 exporting manifest list sha256:a04b1bfe2aea8391c8f92dd952499559d766cc4b34091963fe57bcbaf6ec015d done
|
||||
#14 naming to docker.io/library/mtusi-messenger:lab4 done
|
||||
#14 unpacking to docker.io/library/mtusi-messenger:lab4 done
|
||||
#14 DONE 0.1s
|
||||
|
||||
#15 resolving provenance for metadata file
|
||||
#15 DONE 0.0s
|
||||
mtusi-messenger:lab4 Built
|
||||
Network lab4-check-5aad8e0065_default Creating
|
||||
Network lab4-check-5aad8e0065_default Created
|
||||
Network lab4-check-5aad8e0065_s3-internal Creating
|
||||
Network lab4-check-5aad8e0065_s3-internal Created
|
||||
Volume lab4-check-5aad8e0065_valkey_data Creating
|
||||
Volume lab4-check-5aad8e0065_valkey_data Created
|
||||
Volume lab4-check-5aad8e0065_postgres_data Creating
|
||||
Volume lab4-check-5aad8e0065_postgres_data Created
|
||||
Volume lab4-check-5aad8e0065_s3_data Creating
|
||||
Volume lab4-check-5aad8e0065_s3_data Created
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Creating
|
||||
Container lab4-check-5aad8e0065-valkey-1 Creating
|
||||
Container lab4-check-5aad8e0065-postgres-1 Creating
|
||||
Container lab4-check-5aad8e0065-valkey-1 Created
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Created
|
||||
Container lab4-check-5aad8e0065-s3-1 Creating
|
||||
Container lab4-check-5aad8e0065-postgres-1 Created
|
||||
Container lab4-check-5aad8e0065-migrate-1 Creating
|
||||
Container lab4-check-5aad8e0065-s3-1 Created
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Creating
|
||||
Container lab4-check-5aad8e0065-migrate-1 Created
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Created
|
||||
Container lab4-check-5aad8e0065-api-2 Creating
|
||||
Container lab4-check-5aad8e0065-api-1 Creating
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Creating
|
||||
Container lab4-check-5aad8e0065-api-1 Created
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Created
|
||||
Container lab4-check-5aad8e0065-api-2 Created
|
||||
Container lab4-check-5aad8e0065-lb-1 Creating
|
||||
Container lab4-check-5aad8e0065-lb-1 Created
|
||||
Container lab4-check-5aad8e0065-postgres-1 Starting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Started
|
||||
Container lab4-check-5aad8e0065-postgres-1 Started
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-valkey-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-api-2 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Starting
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Started
|
||||
Container lab4-check-5aad8e0065-api-2 Started
|
||||
Container lab4-check-5aad8e0065-api-1 Starting
|
||||
Container lab4-check-5aad8e0065-api-1 Started
|
||||
Container lab4-check-5aad8e0065-api-2 Waiting
|
||||
Container lab4-check-5aad8e0065-api-1 Waiting
|
||||
Container lab4-check-5aad8e0065-api-2 Healthy
|
||||
Container lab4-check-5aad8e0065-api-1 Healthy
|
||||
Container lab4-check-5aad8e0065-lb-1 Starting
|
||||
Container lab4-check-5aad8e0065-lb-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
PASS: 2 real API containers, CPU/RAM limits, API non-root and no public ports; only LB published
|
||||
Проверяем сервер: http://127.0.0.1:57722
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:57722"
|
||||
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 9.593s
|
||||
|
||||
OK
|
||||
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
|
||||
Container lab4-check-5aad8e0065-postgres-1 Running
|
||||
Container lab4-check-5aad8e0065-postgres-1 Running
|
||||
PASS: migrations only in one-shot service; repeated execution preserves data
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Stopping
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Stopped
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Running
|
||||
Container lab4-check-5aad8e0065-s3-1 Running
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Running
|
||||
Container lab4-check-5aad8e0065-s3-1 Running
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
PASS: private S3, limited credentials, isolated administration, repeated bootstrap
|
||||
Stopped API: ca1f62dfc015 container=ca1f62dfc0156fc235dbcd2f52b58eec2282e6ba8d3e056de11ca92758c69df0
|
||||
API ready through LB: 19a474c69210
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-valkey-1 Healthy
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-api-2 Starting
|
||||
Container lab4-check-5aad8e0065-api-2 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
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-5aad8e0065-s3-1 Stopping
|
||||
Container lab4-check-5aad8e0065-s3-1 Stopped
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
PASS: S3 outage gives API 503; recovery preserves original and session
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Starting
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Started
|
||||
PASS: 10 concurrent real PNG uploads; all checksums match; memory peaks: [215191552, 103378944]
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-valkey-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-valkey-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:57722"
|
||||
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": "19a474c69210", "unfinished_request": true, "shutdown_seconds": 5.523, "new_connections_refused_seconds": 0.185, "exit_code": 0, "oom_killed": false}
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-api-1 Starting
|
||||
Container lab4-check-5aad8e0065-api-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Container lab4-check-5aad8e0065-valkey-1 Stopping
|
||||
Container lab4-check-5aad8e0065-valkey-1 Stopped
|
||||
PASS: valkey outage: API live=200, ready=503, LB ready=503
|
||||
Container lab4-check-5aad8e0065-valkey-1 Starting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Container lab4-check-5aad8e0065-postgres-1 Stopping
|
||||
Container lab4-check-5aad8e0065-postgres-1 Stopped
|
||||
PASS: postgres outage: API live=200, ready=503, LB ready=503
|
||||
Container lab4-check-5aad8e0065-postgres-1 Starting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Container lab4-check-5aad8e0065-s3-1 Stopping
|
||||
Container lab4-check-5aad8e0065-s3-1 Stopped
|
||||
PASS: s3 outage: API live=200, ready=503, LB ready=503
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Container lab4-check-5aad8e0065-postgres-1 Paused
|
||||
Container lab4-check-5aad8e0065-postgres-1 Unpaused
|
||||
PASS: paused PostgreSQL: SQL and direct readiness bounded; live works; unpause restores API without restart
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab4/mtusi2026lab4/.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:57722"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 110, "failed_attempts": 1, "first_recovery_seconds": 2.467}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-api-1 Starting
|
||||
Container lab4-check-5aad8e0065-api-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Stopped API: 19a474c69210 container=19a474c69210a7be1c6631830e8fa7f251cf6dd3890c7407843090383543ee75
|
||||
{"label": "stop 19a474c69210", "duration_seconds": 16.012, "successful_requests": 1420, "successful_writes": 709, "errors": 4, "successful_rps": 88.68, "first_success_after_action_seconds": {"POST": 0.051, "GET": 0.004}, "maximum_success_gap_seconds": {"POST": 2.002, "GET": 1.995}, "action_start_seconds": 1.006, "action_end_seconds": 1.77, "p50_ms": 10.62, "p95_ms": 24.67, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["19a474c69210", "ca1f62dfc015"]}
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Healthy
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-api-1 Starting
|
||||
Container lab4-check-5aad8e0065-api-1 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Stopped API: ca1f62dfc015 container=ca1f62dfc0156fc235dbcd2f52b58eec2282e6ba8d3e056de11ca92758c69df0
|
||||
{"label": "stop ca1f62dfc015", "duration_seconds": 16.008, "successful_requests": 1466, "successful_writes": 732, "errors": 4, "successful_rps": 91.58, "first_success_after_action_seconds": {"POST": 0.018, "GET": 0.028}, "maximum_success_gap_seconds": {"POST": 2.002, "GET": 1.999}, "action_start_seconds": 1.002, "action_end_seconds": 1.832, "p50_ms": 9.397, "p95_ms": 18.616, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["19a474c69210", "ca1f62dfc015"]}
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Started
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Starting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Started
|
||||
Container lab4-check-5aad8e0065-postgres-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Waiting
|
||||
Container lab4-check-5aad8e0065-migrate-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-1 Waiting
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Waiting
|
||||
Container lab4-check-5aad8e0065-valkey-1 Healthy
|
||||
Container lab4-check-5aad8e0065-postgres-1 Healthy
|
||||
Container lab4-check-5aad8e0065-s3-1 Healthy
|
||||
Container lab4-check-5aad8e0065-migrate-1 Exited
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Exited
|
||||
Container lab4-check-5aad8e0065-api-2 Starting
|
||||
Container lab4-check-5aad8e0065-api-2 Started
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Local .env and secrets are ready; values are not printed
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 564B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 733B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#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 done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load build context
|
||||
#5 transferring context: 1.01kB done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [1/8] FROM docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3
|
||||
#6 resolve docker.io/library/python:3.11.15-slim-bookworm@sha256:d29f48a31a8b408ed19272ca1e7b10ebae13b240a27e862d3d4217c528e2e0c3 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [3/8] COPY requirements.txt .
|
||||
#7 CACHED
|
||||
|
||||
#8 [6/8] COPY src/ ./src/
|
||||
#8 CACHED
|
||||
|
||||
#9 [2/8] WORKDIR /app
|
||||
#9 CACHED
|
||||
|
||||
#10 [7/8] COPY migrations/ ./migrations/
|
||||
#10 CACHED
|
||||
|
||||
#11 [5/8] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
|
||||
#11 CACHED
|
||||
|
||||
#12 [4/8] RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check
|
||||
#12 CACHED
|
||||
|
||||
#13 [8/8] COPY research/ ./research/
|
||||
#13 CACHED
|
||||
|
||||
#14 exporting to image
|
||||
#14 exporting layers done
|
||||
#14 exporting manifest sha256:644f5d408505f5982b75f18404860de692ee837b2b2e18f5c92b0b057081b7ec done
|
||||
#14 exporting config sha256:726011343b32f5b6277348f2f8b38f95b8c31754ae0d21336375124a18aa2e0e done
|
||||
#14 exporting attestation manifest sha256:f4a5559518ea1ef0e3747d6084c8ad8dbc8b16dc41cb00062303d0f895b9a235 0.0s done
|
||||
#14 exporting manifest list sha256:93c838d55d79a0001346ecab28f72621d9540ba5c52eaeb1ca6020286dd05fd6 done
|
||||
#14 naming to docker.io/library/mtusi-messenger:lab4 done
|
||||
#14 unpacking to docker.io/library/mtusi-messenger:lab4 done
|
||||
#14 DONE 0.1s
|
||||
|
||||
#15 resolving provenance for metadata file
|
||||
#15 DONE 0.0s
|
||||
mtusi-messenger:lab4 Built
|
||||
Container lab4-check-5aad8e0065-postgres-1 Running
|
||||
Migrations: already applied
|
||||
API ready through LB: 19a474c69210, ca1f62dfc015
|
||||
Replacing API: 19a474c69210
|
||||
Container lab4-check-5aad8e0065-api-2 Running
|
||||
Container lab4-check-5aad8e0065-api-3 Creating
|
||||
Container lab4-check-5aad8e0065-api-3 Created
|
||||
Container lab4-check-5aad8e0065-api-3 Starting
|
||||
Container lab4-check-5aad8e0065-api-3 Started
|
||||
API ready through LB: ca1f62dfc015, ed4f3c64a9f6
|
||||
Replacing API: ca1f62dfc015
|
||||
Container lab4-check-5aad8e0065-api-3 Running
|
||||
Container lab4-check-5aad8e0065-api-4 Creating
|
||||
Container lab4-check-5aad8e0065-api-4 Created
|
||||
Container lab4-check-5aad8e0065-api-4 Starting
|
||||
Container lab4-check-5aad8e0065-api-4 Started
|
||||
API ready through LB: 63549c0d63ba, ed4f3c64a9f6
|
||||
PASS: all API containers replaced sequentially; stores and LB kept running
|
||||
{"label": "sequential API replacement", "duration_seconds": 24.869, "successful_requests": 2254, "successful_writes": 1128, "errors": 8, "successful_rps": 90.63, "first_success_after_action_seconds": {"POST": 0.01, "GET": 0.021}, "maximum_success_gap_seconds": {"POST": 1.04, "GET": 1.04}, "action_start_seconds": 1.009, "action_end_seconds": 21.862, "p50_ms": 8.907, "p95_ms": 16.321, "confirmed_data_preserved": true, "duplicate_messages": 0, "instances": ["19a474c69210", "63549c0d63ba", "ca1f62dfc015", "ed4f3c64a9f6"]}
|
||||
PASS: all lab4 grade-4 checks completed
|
||||
Container lab4-check-5aad8e0065-lb-1 Stopping
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Stopping
|
||||
Container lab4-check-5aad8e0065-lb-1 Stopped
|
||||
Container lab4-check-5aad8e0065-lb-1 Removing
|
||||
Container lab4-check-5aad8e0065-lb-1 Removed
|
||||
Container lab4-check-5aad8e0065-api-3 Stopping
|
||||
Container lab4-check-5aad8e0065-api-4 Stopping
|
||||
Container lab4-check-5aad8e0065-api-3 Stopped
|
||||
Container lab4-check-5aad8e0065-api-3 Removing
|
||||
Container lab4-check-5aad8e0065-api-3 Removed
|
||||
Container lab4-check-5aad8e0065-api-4 Stopped
|
||||
Container lab4-check-5aad8e0065-api-4 Removing
|
||||
Container lab4-check-5aad8e0065-api-4 Removed
|
||||
Container lab4-check-5aad8e0065-valkey-1 Stopping
|
||||
Container lab4-check-5aad8e0065-valkey-1 Stopped
|
||||
Container lab4-check-5aad8e0065-valkey-1 Removing
|
||||
Container lab4-check-5aad8e0065-valkey-1 Removed
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Stopped
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Removing
|
||||
Container lab4-check-5aad8e0065-cleanup-1 Removed
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Stopping
|
||||
Container lab4-check-5aad8e0065-migrate-1 Stopping
|
||||
Container lab4-check-5aad8e0065-migrate-1 Stopped
|
||||
Container lab4-check-5aad8e0065-migrate-1 Removing
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Stopped
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Removing
|
||||
Container lab4-check-5aad8e0065-s3-bootstrap-1 Removed
|
||||
Container lab4-check-5aad8e0065-s3-1 Stopping
|
||||
Container lab4-check-5aad8e0065-migrate-1 Removed
|
||||
Container lab4-check-5aad8e0065-postgres-1 Stopping
|
||||
Container lab4-check-5aad8e0065-postgres-1 Stopped
|
||||
Container lab4-check-5aad8e0065-postgres-1 Removing
|
||||
Container lab4-check-5aad8e0065-postgres-1 Removed
|
||||
Container lab4-check-5aad8e0065-s3-1 Stopped
|
||||
Container lab4-check-5aad8e0065-s3-1 Removing
|
||||
Container lab4-check-5aad8e0065-s3-1 Removed
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Stopping
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Stopped
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Removing
|
||||
Container lab4-check-5aad8e0065-s3-storage-1 Removed
|
||||
Volume lab4-check-5aad8e0065_valkey_data Removing
|
||||
Network lab4-check-5aad8e0065_s3-internal Removing
|
||||
Volume lab4-check-5aad8e0065_postgres_data Removing
|
||||
Volume lab4-check-5aad8e0065_s3_data Removing
|
||||
Network lab4-check-5aad8e0065_default Removing
|
||||
Volume lab4-check-5aad8e0065_valkey_data Removed
|
||||
Volume lab4-check-5aad8e0065_s3_data Removed
|
||||
Volume lab4-check-5aad8e0065_postgres_data Removed
|
||||
Network lab4-check-5aad8e0065_s3-internal Removed
|
||||
Network lab4-check-5aad8e0065_default Removed
|
||||
Removed only temporary test containers and volumes: lab4-check-5aad8e0065
|
||||
@@ -0,0 +1,502 @@
|
||||
{
|
||||
"utc": "2026-11-12T15:23:27.573351+00:00",
|
||||
"command": "./scripts/check-docker.sh",
|
||||
"project": "lab5-check-d233766d34",
|
||||
"host": "Darwin arm64",
|
||||
"source_commit": "276dbdad8a34da4c5b57fbf1879ca169b581d75b",
|
||||
"working_tree": true,
|
||||
"configuration": {
|
||||
"concurrency": 2,
|
||||
"prefetch": 1,
|
||||
"attempts": 5,
|
||||
"timeout_seconds": 5,
|
||||
"lease_seconds": 15,
|
||||
"backoff_base_seconds": 0.15
|
||||
},
|
||||
"checks": {
|
||||
"topology_and_limits": {
|
||||
"passed": true,
|
||||
"api_replicas": 2,
|
||||
"broker": "Valkey Streams with AOF fsync always",
|
||||
"worker_processes": 2
|
||||
},
|
||||
"public_smoke_and_schema": {
|
||||
"passed": true
|
||||
},
|
||||
"student_api_regressions": {
|
||||
"passed": true
|
||||
},
|
||||
"worker_offline_api_broker_restart": {
|
||||
"passed": true,
|
||||
"attachment_id": "63406ab0-cc3c-4fa2-a0aa-e5e3353d5ae3",
|
||||
"job_id": "7f450ff7-cb2d-4189-a668-f1967dbd94e8",
|
||||
"message_id": "bc37bafb-efe1-4481-b304-c725c6e8368d",
|
||||
"variants": {
|
||||
"thumbnail": {
|
||||
"size": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"bytes": 5813
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"bytes": 2462
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
320,
|
||||
200
|
||||
],
|
||||
"bytes": 2462
|
||||
}
|
||||
}
|
||||
},
|
||||
"outbox_crash_before_publish": {
|
||||
"passed": true,
|
||||
"job_id": "a3973e2b-ff73-4bca-bc41-394f2b875d13",
|
||||
"automatic_recovery": true
|
||||
},
|
||||
"outbox_crash_after_publish": {
|
||||
"passed": true,
|
||||
"job_id": "007cb1d1-4b3b-4d12-9b2b-91a4682e8b08",
|
||||
"automatic_recovery": true
|
||||
},
|
||||
"worker_crash_after_objects": {
|
||||
"passed": true,
|
||||
"job_id": "21129707-7dd0-4a72-ac33-5691dae3194e",
|
||||
"attempt": 2,
|
||||
"canonical_objects": 4,
|
||||
"duplicate_noop": true
|
||||
},
|
||||
"worker_crash_before_ack": {
|
||||
"passed": true,
|
||||
"job_id": "2eeba68e-3fc7-42e0-adf9-13ac01c6c982",
|
||||
"attempt": 1,
|
||||
"canonical_objects": 4,
|
||||
"duplicate_noop": true
|
||||
},
|
||||
"bounded_retry_failed_registry_replay": {
|
||||
"passed": true,
|
||||
"job_id": "bf756bf3-c3ca-45d2-acdd-3e67eb882d4d",
|
||||
"max_automatic_attempts": 5,
|
||||
"audit": [
|
||||
{
|
||||
"event": "processing",
|
||||
"attempt": 1,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:18.431558+00:00"
|
||||
},
|
||||
{
|
||||
"event": "retry",
|
||||
"attempt": 1,
|
||||
"error_code": "storage_unavailable",
|
||||
"at": "2026-11-12T15:25:18.432821+00:00"
|
||||
},
|
||||
{
|
||||
"event": "processing",
|
||||
"attempt": 2,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:18.692895+00:00"
|
||||
},
|
||||
{
|
||||
"event": "retry",
|
||||
"attempt": 2,
|
||||
"error_code": "storage_unavailable",
|
||||
"at": "2026-11-12T15:25:18.69618+00:00"
|
||||
},
|
||||
{
|
||||
"event": "processing",
|
||||
"attempt": 3,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:19.206061+00:00"
|
||||
},
|
||||
{
|
||||
"event": "retry",
|
||||
"attempt": 3,
|
||||
"error_code": "storage_unavailable",
|
||||
"at": "2026-11-12T15:25:19.208065+00:00"
|
||||
},
|
||||
{
|
||||
"event": "processing",
|
||||
"attempt": 4,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:19.97778+00:00"
|
||||
},
|
||||
{
|
||||
"event": "retry",
|
||||
"attempt": 4,
|
||||
"error_code": "storage_unavailable",
|
||||
"at": "2026-11-12T15:25:19.978984+00:00"
|
||||
},
|
||||
{
|
||||
"event": "processing",
|
||||
"attempt": 5,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:21.777757+00:00"
|
||||
},
|
||||
{
|
||||
"event": "failed",
|
||||
"attempt": 5,
|
||||
"error_code": "retry_exhausted",
|
||||
"at": "2026-11-12T15:25:21.78129+00:00"
|
||||
},
|
||||
{
|
||||
"event": "operator_replay",
|
||||
"attempt": 5,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:22.680791+00:00"
|
||||
},
|
||||
{
|
||||
"event": "processing",
|
||||
"attempt": 6,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:22.802027+00:00"
|
||||
},
|
||||
{
|
||||
"event": "ready",
|
||||
"attempt": 6,
|
||||
"error_code": null,
|
||||
"at": "2026-11-12T15:25:23.151043+00:00"
|
||||
}
|
||||
],
|
||||
"ready_replay_rejected": true
|
||||
},
|
||||
"permanent_error": {
|
||||
"passed": true,
|
||||
"job_id": "c2056d32-08bf-4c8a-8980-2f8b6c2511c9",
|
||||
"attempt": 1,
|
||||
"error_code": "invalid_image"
|
||||
},
|
||||
"image_subprocess_timeout": {
|
||||
"passed": true,
|
||||
"job_id": "6e8efff5-d82d-45f4-af12-3b05dcdb0076",
|
||||
"timeout_seconds": 5,
|
||||
"task_memory_mb": 640,
|
||||
"recovered": true
|
||||
},
|
||||
"image_subprocess_memory": {
|
||||
"passed": true,
|
||||
"job_id": "ff1e7e76-b82d-4ba1-8ca9-79f3d78a4dfe",
|
||||
"timeout_seconds": 5,
|
||||
"task_memory_mb": 640,
|
||||
"recovered": true
|
||||
},
|
||||
"image_semantics": {
|
||||
"passed": true,
|
||||
"cases": [
|
||||
{
|
||||
"case": "small_alpha_on_white",
|
||||
"variants": {
|
||||
"thumbnail": {
|
||||
"size": [
|
||||
17,
|
||||
9
|
||||
],
|
||||
"bytes": 635
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"bytes": 883
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
17,
|
||||
9
|
||||
],
|
||||
"bytes": 56
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "exif_orientation_6_and_floor",
|
||||
"variants": {
|
||||
"thumbnail": {
|
||||
"size": [
|
||||
160,
|
||||
256
|
||||
],
|
||||
"bytes": 1270
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"bytes": 886
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
201,
|
||||
321
|
||||
],
|
||||
"bytes": 210
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"staging_cleanup": {
|
||||
"passed": true,
|
||||
"active_preserved": true,
|
||||
"orphan_removed": true,
|
||||
"ready_removed": true,
|
||||
"expired_failed_removed": true,
|
||||
"expired_replay_rejected": true
|
||||
},
|
||||
"broker_offline_outbox": {
|
||||
"passed": true,
|
||||
"attachment_id": "3b3d3600-efcc-4840-ab76-07868501c21d",
|
||||
"recovered": true
|
||||
},
|
||||
"public_persistence": {
|
||||
"passed": true
|
||||
},
|
||||
"public_api_failover": {
|
||||
"passed": true
|
||||
}
|
||||
},
|
||||
"docker": "29.0.1 aarch64 CPUs=10 RAM=8217448448",
|
||||
"containers": [
|
||||
{
|
||||
"id": "9fbe552bf1bd8c2be76b3434cc5662479ca8d328ca698813ac9a785bcafc0cfd",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"memory_bytes": 402653184,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/s3_secret_access_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/s3_access_key_id",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ebc82ed28847cbaf6f474088c68005f05d49469010b45ff3767fb0a944ead6e0",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"memory_bytes": 402653184,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/s3_access_key_id",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/s3_secret_access_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "26a48bd7b3390a4cd99667d4d99d6342edce8e26accaee3b181a4d842203261a",
|
||||
"service": "broker",
|
||||
"image": "valkey/valkey:8.1.3",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/data",
|
||||
"name": "lab5-check-d233766d34_broker_data"
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/broker_password",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "232fdc281b939bf905b4123102a6a6eb609a4ffcb730f6d03707beb07283d69c",
|
||||
"service": "cleanup",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"memory_bytes": 402653184,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/s3_access_key_id",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/s3_secret_access_key",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "e722801286bb112062f1da59af65dc21eddf5059ca086022e0d52f85a0f26154",
|
||||
"service": "lb",
|
||||
"image": "haproxy:3.2.6-alpine",
|
||||
"memory_bytes": 67108864,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ba806a4ce014a516ea867a516743de64bef0d449726bb544d265bf31b4055b1b",
|
||||
"service": "migrate",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"memory_bytes": 402653184,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "0fd62d960020290ba4089d05fdcc8da2bb0e2faf7528fc6ed3384e35236d4290",
|
||||
"service": "postgres",
|
||||
"image": "postgres:17.6-bookworm",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/var/lib/postgresql/data",
|
||||
"name": "lab5-check-d233766d34_postgres_data"
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/postgres_password",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c658ec3ef1e14ca2f1ca8f1530e6f13b37b99ce8389fafeae84e841e65daa2fc",
|
||||
"service": "publisher",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"memory_bytes": 402653184,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "bc944a3a03374052aba43f42767c253755a921090fd15ead92fa2a924507c941",
|
||||
"service": "s3",
|
||||
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/s3_config",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/data",
|
||||
"name": "0496c4617fd5cac2843b4c391fc1eb42e15c90c4d9a35d092e71a6fd8815960f"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "9e7382c34331cb65974fa3feb248105c8055fa25c251151f0f004b65fc388923",
|
||||
"service": "s3-bootstrap",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/s3_root_password",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/s3_root_user",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "b9821d3ec48ce18b8255a446cf99b02d6ea9658de406a15cc0ace7ccf7d7350e",
|
||||
"service": "s3-storage",
|
||||
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/data",
|
||||
"name": "lab5-check-d233766d34_s3_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c8ddc9fede2be42d05e79147dfc7dd87efede3b67f3226afeee1161fcaa49428",
|
||||
"service": "valkey",
|
||||
"image": "valkey/valkey:8.1.3",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/data",
|
||||
"name": "lab5-check-d233766d34_valkey_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "9fee2e7832c5c11e81bb56df9d435ad090fdb1fddb85efbf014ea6019559ed75",
|
||||
"service": "worker",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"memory_bytes": 1610612736,
|
||||
"nano_cpus": 2000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/s3_access_key_id",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/s3_secret_access_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
PASS: topology_and_limits {"api_replicas": 2, "broker": "Valkey Streams with AOF fsync always", "worker_processes": 2}
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:57277"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
PASS: public_smoke_and_schema {}
|
||||
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
|
||||
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 6.981s
|
||||
|
||||
OK
|
||||
PASS: student_api_regressions {}
|
||||
PASS: worker_offline_api_broker_restart {"attachment_id": "63406ab0-cc3c-4fa2-a0aa-e5e3353d5ae3", "job_id": "7f450ff7-cb2d-4189-a668-f1967dbd94e8", "message_id": "bc37bafb-efe1-4481-b304-c725c6e8368d", "variants": {"thumbnail": {"size": [256, 160], "bytes": 5813}, "crop": {"size": [128, 128], "bytes": 2462}, "optimized": {"size": [320, 200], "bytes": 2462}}}
|
||||
PASS: outbox_crash_before_publish {"job_id": "a3973e2b-ff73-4bca-bc41-394f2b875d13", "automatic_recovery": true}
|
||||
PASS: outbox_crash_after_publish {"job_id": "007cb1d1-4b3b-4d12-9b2b-91a4682e8b08", "automatic_recovery": true}
|
||||
PASS: worker_crash_after_objects {"job_id": "21129707-7dd0-4a72-ac33-5691dae3194e", "attempt": 2, "canonical_objects": 4, "duplicate_noop": true}
|
||||
PASS: worker_crash_before_ack {"job_id": "2eeba68e-3fc7-42e0-adf9-13ac01c6c982", "attempt": 1, "canonical_objects": 4, "duplicate_noop": true}
|
||||
PASS: bounded_retry_failed_registry_replay {"job_id": "bf756bf3-c3ca-45d2-acdd-3e67eb882d4d", "max_automatic_attempts": 5, "audit": [{"event": "processing", "attempt": 1, "error_code": null, "at": "2026-11-12T15:25:18.431558+00:00"}, {"event": "retry", "attempt": 1, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:18.432821+00:00"}, {"event": "processing", "attempt": 2, "error_code": null, "at": "2026-11-12T15:25:18.692895+00:00"}, {"event": "retry", "attempt": 2, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:18.69618+00:00"}, {"event": "processing", "attempt": 3, "error_code": null, "at": "2026-11-12T15:25:19.206061+00:00"}, {"event": "retry", "attempt": 3, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:19.208065+00:00"}, {"event": "processing", "attempt": 4, "error_code": null, "at": "2026-11-12T15:25:19.97778+00:00"}, {"event": "retry", "attempt": 4, "error_code": "storage_unavailable", "at": "2026-11-12T15:25:19.978984+00:00"}, {"event": "processing", "attempt": 5, "error_code": null, "at": "2026-11-12T15:25:21.777757+00:00"}, {"event": "failed", "attempt": 5, "error_code": "retry_exhausted", "at": "2026-11-12T15:25:21.78129+00:00"}, {"event": "operator_replay", "attempt": 5, "error_code": null, "at": "2026-11-12T15:25:22.680791+00:00"}, {"event": "processing", "attempt": 6, "error_code": null, "at": "2026-11-12T15:25:22.802027+00:00"}, {"event": "ready", "attempt": 6, "error_code": null, "at": "2026-11-12T15:25:23.151043+00:00"}], "ready_replay_rejected": true}
|
||||
PASS: permanent_error {"job_id": "c2056d32-08bf-4c8a-8980-2f8b6c2511c9", "attempt": 1, "error_code": "invalid_image"}
|
||||
PASS: image_subprocess_timeout {"job_id": "6e8efff5-d82d-45f4-af12-3b05dcdb0076", "timeout_seconds": 5, "task_memory_mb": 640, "recovered": true}
|
||||
PASS: image_subprocess_memory {"job_id": "ff1e7e76-b82d-4ba1-8ca9-79f3d78a4dfe", "timeout_seconds": 5, "task_memory_mb": 640, "recovered": true}
|
||||
PASS: image_semantics {"cases": [{"case": "small_alpha_on_white", "variants": {"thumbnail": {"size": [17, 9], "bytes": 635}, "crop": {"size": [128, 128], "bytes": 883}, "optimized": {"size": [17, 9], "bytes": 56}}}, {"case": "exif_orientation_6_and_floor", "variants": {"thumbnail": {"size": [160, 256], "bytes": 1270}, "crop": {"size": [128, 128], "bytes": 886}, "optimized": {"size": [201, 321], "bytes": 210}}}]}
|
||||
PASS: staging_cleanup {"active_preserved": true, "orphan_removed": true, "ready_removed": true, "expired_failed_removed": true, "expired_replay_rejected": true}
|
||||
PASS: broker_offline_outbox {"attachment_id": "3b3d3600-efcc-4840-ab76-07868501c21d", "recovered": true}
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:57277"
|
||||
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: public_persistence {}
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:57277"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 110, "failed_attempts": 1, "first_recovery_seconds": 2.797}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
PASS: public_api_failover {}
|
||||
PASS: all lab5 grade-4 criteria completed
|
||||
Removed isolated test stack: lab5-check-d233766d34
|
||||
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"utc": "2026-11-12T15:28:31.543303+00:00",
|
||||
"command": ".venv/bin/python student-tests/verify_restart.py",
|
||||
"passed": true,
|
||||
"before": {
|
||||
"9e5a9d3d2bf0b2e47ee6d85b40b1899881db0d4d91d9ec09e50fb36aca67833c": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-12T15:28:13.153166256Z",
|
||||
"volumes": []
|
||||
},
|
||||
"83bab824b05accd2aa8829e83e272d72d4105644f8270cf3dc15f3412d569f5b": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-12T15:28:13.038450506Z",
|
||||
"volumes": []
|
||||
},
|
||||
"6f72735cbaed44f82555dcd550199764ab53a8c61a63c88f25c612fd39b6baba": {
|
||||
"service": "broker",
|
||||
"started_at": "2026-11-12T15:27:46.698266716Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_broker_data"
|
||||
]
|
||||
},
|
||||
"0f9060c7dc8473fa926c5affc560b3478b90c77771de9810ebba7858a30838d5": {
|
||||
"service": "cleanup",
|
||||
"started_at": "2026-11-12T15:28:13.036348173Z",
|
||||
"volumes": []
|
||||
},
|
||||
"d381adfb7273a5dd2f22d361a6e1ff490e5c2cf44ff147a8253f7f940cd01de4": {
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-12T15:28:18.76757655Z",
|
||||
"volumes": []
|
||||
},
|
||||
"9906c3edca610723e6f09b64867fa71a543f18ef4b474804414e9f818a803115": {
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-12T15:27:46.700095216Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_postgres_data"
|
||||
]
|
||||
},
|
||||
"d705dceffd740900bbad04ee520bb96247f286c7c5381734a28bc1c9e30f27e4": {
|
||||
"service": "publisher",
|
||||
"started_at": "2026-11-12T15:27:49.924416218Z",
|
||||
"volumes": []
|
||||
},
|
||||
"cbe9063ff82960d9db58bc5713af90e4be3e72fdd1c08b0a92a93849dc6ad1aa": {
|
||||
"service": "s3",
|
||||
"started_at": "2026-11-12T15:28:09.808290754Z",
|
||||
"volumes": [
|
||||
"fe34bef7724beefe41335cd197f83aae91b16df70766cee6321bff12f765bc66"
|
||||
]
|
||||
},
|
||||
"6d1b6c402e19a068a0f2f4b9c06d5abbec7e41b5d778a883e6d045be409f6d4c": {
|
||||
"service": "s3-storage",
|
||||
"started_at": "2026-11-12T15:27:46.699445508Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3_data"
|
||||
]
|
||||
},
|
||||
"6d8c3e69c4b60acaf42e0259d367a0a3f2c06081a6349c284ddf9f2e9b5ba399": {
|
||||
"service": "valkey",
|
||||
"started_at": "2026-11-12T15:27:46.697619716Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_valkey_data"
|
||||
]
|
||||
},
|
||||
"28fabe35a9a5b57e0a3a96bb4ae5308fbd2fa825470799180a2471b55400206e": {
|
||||
"service": "worker",
|
||||
"started_at": "2026-11-12T15:28:13.037172673Z",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"9e5a9d3d2bf0b2e47ee6d85b40b1899881db0d4d91d9ec09e50fb36aca67833c": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-12T15:28:33.373854585Z",
|
||||
"volumes": []
|
||||
},
|
||||
"83bab824b05accd2aa8829e83e272d72d4105644f8270cf3dc15f3412d569f5b": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-12T15:28:33.338416001Z",
|
||||
"volumes": []
|
||||
},
|
||||
"6f72735cbaed44f82555dcd550199764ab53a8c61a63c88f25c612fd39b6baba": {
|
||||
"service": "broker",
|
||||
"started_at": "2026-11-12T15:28:33.257433543Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_broker_data"
|
||||
]
|
||||
},
|
||||
"0f9060c7dc8473fa926c5affc560b3478b90c77771de9810ebba7858a30838d5": {
|
||||
"service": "cleanup",
|
||||
"started_at": "2026-11-12T15:28:40.990298547Z",
|
||||
"volumes": []
|
||||
},
|
||||
"d381adfb7273a5dd2f22d361a6e1ff490e5c2cf44ff147a8253f7f940cd01de4": {
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-12T15:28:33.069501668Z",
|
||||
"volumes": []
|
||||
},
|
||||
"9906c3edca610723e6f09b64867fa71a543f18ef4b474804414e9f818a803115": {
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-12T15:28:33.134879876Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_postgres_data"
|
||||
]
|
||||
},
|
||||
"d705dceffd740900bbad04ee520bb96247f286c7c5381734a28bc1c9e30f27e4": {
|
||||
"service": "publisher",
|
||||
"started_at": "2026-11-12T15:28:40.90857463Z",
|
||||
"volumes": []
|
||||
},
|
||||
"cbe9063ff82960d9db58bc5713af90e4be3e72fdd1c08b0a92a93849dc6ad1aa": {
|
||||
"service": "s3",
|
||||
"started_at": "2026-11-12T15:28:33.167460626Z",
|
||||
"volumes": [
|
||||
"fe34bef7724beefe41335cd197f83aae91b16df70766cee6321bff12f765bc66"
|
||||
]
|
||||
},
|
||||
"6d1b6c402e19a068a0f2f4b9c06d5abbec7e41b5d778a883e6d045be409f6d4c": {
|
||||
"service": "s3-storage",
|
||||
"started_at": "2026-11-12T15:28:40.950084172Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3_data"
|
||||
]
|
||||
},
|
||||
"6d8c3e69c4b60acaf42e0259d367a0a3f2c06081a6349c284ddf9f2e9b5ba399": {
|
||||
"service": "valkey",
|
||||
"started_at": "2026-11-12T15:28:33.205284001Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_valkey_data"
|
||||
]
|
||||
},
|
||||
"28fabe35a9a5b57e0a3a96bb4ae5308fbd2fa825470799180a2471b55400206e": {
|
||||
"service": "worker",
|
||||
"started_at": "2026-11-12T15:28:33.299354043Z",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"same_containers_and_volumes": true
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/Users/vanek/Desktop/VNPlabs/VNPlab5/mtusi2026lab5/.venv/bin/python 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.
|
||||
PASS: all persistent services actually restarted; container IDs and volumes preserved
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"utc": "2026-11-06T07:27:40.514878+00:00",
|
||||
"project": "lab4-pg-pause-30f1d978ce",
|
||||
"command": ".venv/bin/python student-tests/postgres_pause.py",
|
||||
"passed": true,
|
||||
"sql_without_server_timeout": {
|
||||
"elapsed_seconds": 2.001,
|
||||
"connection_closed": true
|
||||
},
|
||||
"direct_ready": {
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.012
|
||||
},
|
||||
"direct_live": {
|
||||
"status": 200,
|
||||
"elapsed_seconds": 0.006
|
||||
},
|
||||
"repeated_ready": [
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.11
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.011
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.014
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.097
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.194
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.013
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.299
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.203
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.013
|
||||
},
|
||||
{
|
||||
"status": 503,
|
||||
"elapsed_seconds": 2.094
|
||||
}
|
||||
],
|
||||
"ready_after_12_seconds": {
|
||||
"status": 503,
|
||||
"elapsed_seconds": 0.009
|
||||
},
|
||||
"live_after_repeated_requests": {
|
||||
"status": 200,
|
||||
"elapsed_seconds": 0.006
|
||||
},
|
||||
"paused_seconds": 12.565,
|
||||
"recovered_ready": {
|
||||
"status": 200,
|
||||
"elapsed_seconds": 0.009
|
||||
},
|
||||
"recovery_seconds": 2.874,
|
||||
"api_not_restarted": true,
|
||||
"existing_session_and_message_preserved": true
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
Research project: lab2-research-85021a09d9
|
||||
Measuring two indexes on the same 100000 messages, three repeats...
|
||||
{
|
||||
"chat_only": {
|
||||
"insert_100000_median_ms": 1386.7587500000127,
|
||||
"index_bytes": 671744,
|
||||
"wal_bytes_median": 38822560,
|
||||
"queries": 180,
|
||||
"errors": 0,
|
||||
"concurrency": 1,
|
||||
"p50_ms": 1.6852079999978287,
|
||||
"p95_ms": 7.566457999985232,
|
||||
"p99_ms": 46.40233399999261,
|
||||
"successful_sql_rps": 282.01364182715855
|
||||
},
|
||||
"history": {
|
||||
"insert_100000_median_ms": 1404.4910420000178,
|
||||
"index_bytes": 7315456,
|
||||
"wal_bytes_median": 43108512,
|
||||
"queries": 180,
|
||||
"errors": 0,
|
||||
"concurrency": 1,
|
||||
"p50_ms": 0.22610399997802233,
|
||||
"p95_ms": 0.29704099995342403,
|
||||
"p99_ms": 0.3384169999662845,
|
||||
"successful_sql_rps": 4322.810483886352
|
||||
}
|
||||
}
|
||||
PASS: backup 0.54s; restore 0.68s; 100000 messages, all hashes and 12 samples match
|
||||
PASS: restored into a different container and fresh volume; one post-backup commit is absent as expected
|
||||
Results: evidence/research.json, evidence/query-plans.json; dump stays outside Git in backups/
|
||||
Removed only temporary research project: lab2-research-85021a09d9
|
||||
Reference in New Issue
Block a user