UTC 2026-11-13T10:14:48.740224+00:00
COMMAND python scripts/verify.py --base-url http://127.0.0.1:18083
Client=29.5.3 Server=29.5.3
Docker CPUs=8 memory_bytes=2967707648 OS=Docker Desktop
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
test_access_before_payload_validation (test_api.API.test_access_before_payload_validation) ... ok
test_bad_credentials_and_schemes (test_api.API.test_bad_credentials_and_schemes) ... ok
test_chat_atomic_invalid_members (test_api.API.test_chat_atomic_invalid_members) ... ok
test_concurrent_messages_and_keyset (test_api.API.test_concurrent_messages_and_keyset) ... ok
test_cursor_scope_and_tampering (test_api.API.test_cursor_scope_and_tampering) ... ok
test_json_and_sender_validation (test_api.API.test_json_and_sender_validation) ... ok
test_logout_only_revokes_current_session (test_api.API.test_logout_only_revokes_current_session) ... ok
test_registration_validation (test_api.API.test_registration_validation) ... ok
test_unicode_password_with_colon_and_max_length (test_api.API.test_unicode_password_with_colon_and_max_length) ... ok
test_username_race (test_api.API.test_username_race) ... ok
test_conflicting_bodies_race (test_idempotency.Idempotency.test_conflicting_bodies_race) ... ok
test_invalid_keys_and_no_cached_error (test_idempotency.Idempotency.test_invalid_keys_and_no_cached_error) ... ok
test_key_scope_and_access (test_idempotency.Idempotency.test_key_scope_and_access) ... ok
test_same_key_concurrent_across_replicas (test_idempotency.Idempotency.test_same_key_concurrent_across_replicas) ... PASS: concurrent_retries=12 observed_replicas=2 committed_messages=1
ok

----------------------------------------------------------------------
Ran 14 tests in 20.505s

OK
OBSERVED_INSTANCES ["api1-8bf4ca1b6782", "api2-84a86743f141"]
 Container mtusi2026lab3-migrate-run-ce2dbd67e3aa Creating
 Container mtusi2026lab3-migrate-run-ce2dbd67e3aa Created
PASS: migrations applied
 Container mtusi2026lab3-migrate-run-29635236b377 Creating
 Container mtusi2026lab3-migrate-run-29635236b377 Created
PASS: migrations applied
PASS: repeated migrations preserve all table counts 50|18|34|53|47|53|2
BEFORE_RESTART {"api1": {"id": "02bbaf71155d", "status": "running", "started_at": "2026-11-13T10:13:03.914179031Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "api2": {"id": "29260af8132d", "status": "running", "started_at": "2026-11-13T10:13:03.905124693Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "postgres": {"id": "7ddc2e9d0ff8", "status": "running", "started_at": "2026-11-13T10:12:52.495526953Z", "volumes": ["mtusi2026lab3_postgres_data"], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "lb": {"id": "36838b658528", "status": "running", "started_at": "2026-11-13T10:14:24.206525036Z", "volumes": [], "ports": {"8080/tcp": [{"HostIp": "127.0.0.1", "HostPort": "18083"}]}, "memory_limit": 134217728, "nano_cpus": 500000000}}
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
AFTER_RESTART {"api1": {"id": "02bbaf71155d", "status": "running", "started_at": "2026-11-13T10:15:39.648840987Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "api2": {"id": "29260af8132d", "status": "running", "started_at": "2026-11-13T10:15:41.135861407Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "postgres": {"id": "7ddc2e9d0ff8", "status": "running", "started_at": "2026-11-13T10:15:40.976703745Z", "volumes": ["mtusi2026lab3_postgres_data"], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "lb": {"id": "36838b658528", "status": "running", "started_at": "2026-11-13T10:15:39.495114394Z", "volumes": [], "ports": {"8080/tcp": [{"HostIp": "127.0.0.1", "HostPort": "18083"}]}, "memory_limit": 134217728, "nano_cpus": 500000000}}
PASS: four containers restarted; volume, sessions, cursor and idempotency result preserved
FAILOVER_RUN 1
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 97, "failed_attempts": 0, "first_recovery_seconds": 3.359}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
AFTER_FAILOVER {"api1": {"id": "02bbaf71155d", "status": "exited", "started_at": "2026-11-13T10:15:39.648840987Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "api2": {"id": "29260af8132d", "status": "running", "started_at": "2026-11-13T10:15:41.135861407Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "postgres": {"id": "7ddc2e9d0ff8", "status": "running", "started_at": "2026-11-13T10:15:40.976703745Z", "volumes": ["mtusi2026lab3_postgres_data"], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "lb": {"id": "36838b658528", "status": "running", "started_at": "2026-11-13T10:15:39.495114394Z", "volumes": [], "ports": {"8080/tcp": [{"HostIp": "127.0.0.1", "HostPort": "18083"}]}, "memory_limit": 134217728, "nano_cpus": 500000000}}
CONCURRENT_READS {"ok": 139, "errors": 1}
FAILOVER_RUN 2
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 95, "failed_attempts": 1, "first_recovery_seconds": 3.016}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
AFTER_FAILOVER {"api1": {"id": "02bbaf71155d", "status": "running", "started_at": "2026-11-13T10:16:20.233122551Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "api2": {"id": "29260af8132d", "status": "exited", "started_at": "2026-11-13T10:15:41.135861407Z", "volumes": [], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "postgres": {"id": "7ddc2e9d0ff8", "status": "running", "started_at": "2026-11-13T10:15:40.976703745Z", "volumes": ["mtusi2026lab3_postgres_data"], "ports": {}, "memory_limit": 268435456, "nano_cpus": 1000000000}, "lb": {"id": "36838b658528", "status": "running", "started_at": "2026-11-13T10:15:39.495114394Z", "volumes": [], "ports": {"8080/tcp": [{"HostIp": "127.0.0.1", "HostPort": "18083"}]}, "memory_limit": 134217728, "nano_cpus": 500000000}}
CONCURRENT_READS {"ok": 130, "errors": 0}
PASS: each API stopped separately; reads/writes and original session survive; both replicas restored
PASS: grade-3 verification complete
