Очередь и обработка изображений
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"stopped_service": "api1",
|
||||
"upload_instance": "fa2ba87fa2a64e4b9feedf20d941ea84",
|
||||
"download_instance": "69d1f9260b194453ad35d519c0a5906c",
|
||||
"recovery_seconds": 5.623,
|
||||
"transitional_errors": 3,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
},
|
||||
{
|
||||
"stopped_service": "api2",
|
||||
"upload_instance": "69d1f9260b194453ad35d519c0a5906c",
|
||||
"download_instance": "f77921887b1f4f4997ee9b565ef83d66",
|
||||
"recovery_seconds": 5.896,
|
||||
"transitional_errors": 3,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ttl_seconds": 2,
|
||||
"expiry_unchanged_on_restart": true,
|
||||
"before_restart": 200,
|
||||
"after_expiry_and_restart": 401,
|
||||
"new_login": 201
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
{
|
||||
"public": {
|
||||
"service": "api1",
|
||||
"target_instance": "fc41e620b1164355ae1dd45c899edda8",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "fc41e620b1164355ae1dd45c899edda8",
|
||||
"container_id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "2c50ea85014941d3b310929c66b6134e",
|
||||
"container_id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.144249288Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.222365178Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:29:51.078367154Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:00.670911356Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:29:50.963612779Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:29:50.705244093Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:29:50.880532374Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:30:00.574390532Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:50.803176612Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.945,
|
||||
"metrics": {
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 103,
|
||||
"failed_attempts": 5,
|
||||
"first_recovery_seconds": 3.123
|
||||
}
|
||||
},
|
||||
"second_replica": {
|
||||
"service": "api2",
|
||||
"target_instance": "2c50ea85014941d3b310929c66b6134e",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "fa2ba87fa2a64e4b9feedf20d941ea84",
|
||||
"container_id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "2c50ea85014941d3b310929c66b6134e",
|
||||
"container_id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:42.066305791Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.222365178Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:29:51.078367154Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:00.670911356Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:29:50.963612779Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:29:50.705244093Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:29:50.880532374Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:30:00.574390532Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:50.803176612Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.944,
|
||||
"metrics": {
|
||||
"successful_writes": 102,
|
||||
"failed_attempts": 5,
|
||||
"first_recovery_seconds": 3.266,
|
||||
"replay_on_survivor": "PASS"
|
||||
}
|
||||
},
|
||||
"status": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"idempotency_after_restart": "PASS",
|
||||
"public_persistence": "PASS",
|
||||
"cursor_after_restart": "PASS",
|
||||
"logout_after_restart": "PASS",
|
||||
"migration_replay": "PASS",
|
||||
"database": {
|
||||
"users": 244,
|
||||
"chats": 87,
|
||||
"members": 170,
|
||||
"messages": 279,
|
||||
"sessions": 237,
|
||||
"migrations": 4,
|
||||
"idempotency_keys": 277,
|
||||
"attachments": 41,
|
||||
"message_attachments": 19,
|
||||
"upload_intents": 0,
|
||||
"expiry_fingerprint": "b515dda584c2645cfdd498605c93ead8",
|
||||
"passwords_are_argon2id": true,
|
||||
"session_hashes_only": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"upload_with_stopped_worker": 202,
|
||||
"pending_content": 409,
|
||||
"same_attachment_after_api_broker_restart": true,
|
||||
"original_and_thumbnail": "PASS",
|
||||
"duplicate_noop": "PASS",
|
||||
"job_schema": "PASS",
|
||||
"anonymous_s3": 403,
|
||||
"before": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.391348295Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.183620875Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:24:45.59061737Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.666056478Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:20:43.895190965Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:20:55.756455015Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:48.152658278Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:43.446801226Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:45.989975353Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:28:26.909510941Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:28:26.860729772Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:28:26.416609962Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.666056478Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:20:43.895190965Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:20:55.756455015Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:48.152658278Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:43.446801226Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:45.989975353Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"project": "mtusi-lab5",
|
||||
"before": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:28:26.909510941Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:28:26.860729772Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:28:26.416609962Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.666056478Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:20:43.895190965Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:20:55.756455015Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:48.152658278Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:43.446801226Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:43.658069851Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.144249288Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.222365178Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:29:51.078367154Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:00.670911356Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:29:50.963612779Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:29:50.705244093Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:29:50.880532374Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:30:00.574390532Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:50.803176612Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"transient_attempts": 2,
|
||||
"max_attempts": 5,
|
||||
"failed_content": 409,
|
||||
"failed_link": 409,
|
||||
"processing_observed": true,
|
||||
"permanent_error_attempts": 1,
|
||||
"worker_stopped_before_result_commit": true,
|
||||
"staging_retention_and_pending_protection": true,
|
||||
"redelivery_same_result": true
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"service": "api2",
|
||||
"target_instance": "69d1f9260b194453ad35d519c0a5906c",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "f77921887b1f4f4997ee9b565ef83d66",
|
||||
"container_id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "69d1f9260b194453ad35d519c0a5906c",
|
||||
"container_id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:31:14.371462855Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:31:02.422395212Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:29:51.078367154Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:00.670911356Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:29:50.963612779Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:29:50.705244093Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:29:50.880532374Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:30:00.574390532Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:50.803176612Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.104
|
||||
}
|
||||
@@ -0,0 +1,562 @@
|
||||
{
|
||||
"date_utc": "2026-11-24T16:27:34.842629+00:00",
|
||||
"platform": "Windows-11-10.0.26200-SP0",
|
||||
"source_commit": "276dbdad8a34da4c5b57fbf1879ca169b581d75b",
|
||||
"worktree_dirty_at_start": true,
|
||||
"project": "mtusi-lab5",
|
||||
"status": "PASS",
|
||||
"queue": {
|
||||
"status": "PASS",
|
||||
"upload_with_stopped_worker": 202,
|
||||
"pending_content": 409,
|
||||
"same_attachment_after_api_broker_restart": true,
|
||||
"original_and_thumbnail": "PASS",
|
||||
"duplicate_noop": "PASS",
|
||||
"job_schema": "PASS",
|
||||
"anonymous_s3": 403,
|
||||
"before": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.391348295Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.183620875Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:24:45.59061737Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.666056478Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:20:43.895190965Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:20:55.756455015Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:48.152658278Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:43.446801226Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:45.989975353Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:28:26.909510941Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:28:26.860729772Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:28:26.416609962Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:46.666056478Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:20:43.895190965Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:20:55.756455015Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:48.152658278Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:20:43.446801226Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:27:45.989975353Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"retry": {
|
||||
"status": "PASS",
|
||||
"transient_attempts": 2,
|
||||
"max_attempts": 5,
|
||||
"failed_content": 409,
|
||||
"failed_link": 409,
|
||||
"processing_observed": true,
|
||||
"permanent_error_attempts": 1,
|
||||
"worker_stopped_before_result_commit": true,
|
||||
"staging_retention_and_pending_protection": true,
|
||||
"redelivery_same_result": true
|
||||
},
|
||||
"persistence": {
|
||||
"idempotency_after_restart": "PASS",
|
||||
"public_persistence": "PASS",
|
||||
"cursor_after_restart": "PASS",
|
||||
"logout_after_restart": "PASS",
|
||||
"migration_replay": "PASS",
|
||||
"database": {
|
||||
"users": 244,
|
||||
"chats": 87,
|
||||
"members": 170,
|
||||
"messages": 279,
|
||||
"sessions": 237,
|
||||
"migrations": 4,
|
||||
"idempotency_keys": 277,
|
||||
"attachments": 41,
|
||||
"message_attachments": 19,
|
||||
"upload_intents": 0,
|
||||
"expiry_fingerprint": "b515dda584c2645cfdd498605c93ead8",
|
||||
"passwords_are_argon2id": true,
|
||||
"session_hashes_only": true
|
||||
}
|
||||
},
|
||||
"failover": {
|
||||
"public": {
|
||||
"service": "api1",
|
||||
"target_instance": "fc41e620b1164355ae1dd45c899edda8",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "fc41e620b1164355ae1dd45c899edda8",
|
||||
"container_id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "2c50ea85014941d3b310929c66b6134e",
|
||||
"container_id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.144249288Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.222365178Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:29:51.078367154Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:00.670911356Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:29:50.963612779Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:29:50.705244093Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:29:50.880532374Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:30:00.574390532Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:50.803176612Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.945,
|
||||
"metrics": {
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 103,
|
||||
"failed_attempts": 5,
|
||||
"first_recovery_seconds": 3.123
|
||||
}
|
||||
},
|
||||
"second_replica": {
|
||||
"service": "api2",
|
||||
"target_instance": "2c50ea85014941d3b310929c66b6134e",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "fa2ba87fa2a64e4b9feedf20d941ea84",
|
||||
"container_id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "2c50ea85014941d3b310929c66b6134e",
|
||||
"container_id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:42.066305791Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:51.222365178Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:29:51.078367154Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:00.670911356Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:29:50.963612779Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:29:50.705244093Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:29:50.880532374Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:30:00.574390532Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:50.803176612Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.944,
|
||||
"metrics": {
|
||||
"successful_writes": 102,
|
||||
"failed_attempts": 5,
|
||||
"first_recovery_seconds": 3.266,
|
||||
"replay_on_survivor": "PASS"
|
||||
}
|
||||
},
|
||||
"status": "PASS"
|
||||
},
|
||||
"attachments_failover": {
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"stopped_service": "api1",
|
||||
"upload_instance": "fa2ba87fa2a64e4b9feedf20d941ea84",
|
||||
"download_instance": "69d1f9260b194453ad35d519c0a5906c",
|
||||
"recovery_seconds": 5.623,
|
||||
"transitional_errors": 3,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
},
|
||||
{
|
||||
"stopped_service": "api2",
|
||||
"upload_instance": "69d1f9260b194453ad35d519c0a5906c",
|
||||
"download_instance": "f77921887b1f4f4997ee9b565ef83d66",
|
||||
"recovery_seconds": 5.896,
|
||||
"transitional_errors": 3,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"expiry": {
|
||||
"ttl_seconds": 2,
|
||||
"expiry_unchanged_on_restart": true,
|
||||
"before_restart": 200,
|
||||
"after_expiry_and_restart": 401,
|
||||
"new_login": 201
|
||||
},
|
||||
"dependency": {
|
||||
"db": {
|
||||
"live": 200,
|
||||
"ready": 503,
|
||||
"business": 503,
|
||||
"recovered": 200
|
||||
},
|
||||
"s3": {
|
||||
"live": 200,
|
||||
"ready": 503,
|
||||
"business": 503,
|
||||
"recovered": 200
|
||||
},
|
||||
"broker": {
|
||||
"live": 200,
|
||||
"ready": 503,
|
||||
"business": 503,
|
||||
"recovered": 200
|
||||
}
|
||||
},
|
||||
"containers": {
|
||||
"api1": {
|
||||
"id": "fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:31:14.371462855Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:31:26.228371895Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "68e36f870cf0faf175ce5c898d5ebeeb54f655cea34efce6ffff6a55598adf5d",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:32:46.785829157Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "4874d98b6a449018a7502c513b1808b1ba4218e1bafe05fa81fe36d38a09e248",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:30:00.670911356Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "a03a2436afc77a67e37bbacb4a6e4ae534bf924b4d64dad076ef626aa839037d",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:32:26.843449766Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "5f2121990a6ff1c8604930ed89356971d2e5cdeebedbe59c4d6a358693a48b93",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:29:50.705244093Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "65b205271aca27ba856416924bb473381c136343c0444f7547f0f3ba6812170f",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:32:36.696669676Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"5e17138fd6d1e642aca5378e5dbe2fef43603b64a1b2799f9a1e311629d5869c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "4a743381e250ddb3dbf4fd217d2a0e3801863df3b34bd6b276238d0fabad4f67",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:30:00.574390532Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "413b5eb9f6df0d38465d3feca48447a839fb808a5f1f965f421dbf4b2b1b03f2",
|
||||
"image": "sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd",
|
||||
"started_at": "2026-11-24T16:29:50.803176612Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"docker": "29.9.3",
|
||||
"resources": {
|
||||
"cpus": 12,
|
||||
"memory_bytes": 16591368192
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,603 @@
|
||||
Environment ready; existing settings and secrets preserved
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env config --quiet
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env config --quiet
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env build api1
|
||||
Image mtusi-messenger:lab5 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.62kB 0.0s done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 728B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for docker.io/library/python:3.13.14-slim-bookworm@sha256:67a1e1f215ccda113cfc024e8639049257e88f273898f595b61476d128d387e8
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load .dockerignore
|
||||
#4 transferring context: 246B done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load build context
|
||||
#5 transferring context: 10.34kB 0.0s done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [1/6] FROM docker.io/library/python:3.13.14-slim-bookworm@sha256:67a1e1f215ccda113cfc024e8639049257e88f273898f595b61476d128d387e8
|
||||
#6 resolve docker.io/library/python:3.13.14-slim-bookworm@sha256:67a1e1f215ccda113cfc024e8639049257e88f273898f595b61476d128d387e8 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [3/6] COPY requirements.lock .
|
||||
#7 CACHED
|
||||
|
||||
#8 [2/6] WORKDIR /app
|
||||
#8 CACHED
|
||||
|
||||
#9 [4/6] RUN python -m pip install --no-cache-dir -r requirements.lock && useradd --uid 10001 --create-home messenger
|
||||
#9 CACHED
|
||||
|
||||
#10 [5/6] COPY src ./src
|
||||
#10 DONE 0.0s
|
||||
|
||||
#11 [6/6] COPY migrations ./migrations
|
||||
#11 DONE 0.0s
|
||||
|
||||
#12 exporting to image
|
||||
#12 exporting layers 0.1s done
|
||||
#12 exporting manifest sha256:d298c8da23d16bb5191f02a826135ae3c0643e7726f7ecefad86c3b7e6000248 0.0s done
|
||||
#12 exporting config sha256:6961726472768562b58cf7ed5bb4f9b78e51f22226be37834ae3b2cbabf612bd 0.0s done
|
||||
#12 exporting attestation manifest sha256:573e8b7d0ef38b12fb621bcf3c99da2fc9e96bd0cf53e6a10f08e87531b17d6d 0.0s done
|
||||
#12 exporting manifest list sha256:f5b122d0238358ecfb66d54f4e233c4bc04c998aa77d528a758f7d4fb639edfd 0.0s done
|
||||
#12 naming to docker.io/library/mtusi-messenger:lab5 done
|
||||
#12 unpacking to docker.io/library/mtusi-messenger:lab5 0.0s done
|
||||
#12 DONE 0.3s
|
||||
|
||||
#13 resolving provenance for metadata file
|
||||
#13 DONE 0.0s
|
||||
Image mtusi-messenger:lab5 Built
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env run --rm --no-deps lb haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg
|
||||
Container mtusi-lab5-lb-run-75a44d42d433 Creating
|
||||
Container mtusi-lab5-lb-run-75a44d42d433 Created
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env up -d --no-build db migrate s3-storage s3 bootstrap api1 api2 cleanup broker worker lb
|
||||
Container mtusi-lab5-db-1 Running
|
||||
Container mtusi-lab5-lb-1 Running
|
||||
Container mtusi-lab5-s3-1 Running
|
||||
Container mtusi-lab5-broker-1 Running
|
||||
Container mtusi-lab5-s3-storage-1 Running
|
||||
Container mtusi-lab5-bootstrap-1 Recreate
|
||||
Container mtusi-lab5-migrate-1 Recreate
|
||||
Container mtusi-lab5-migrate-1 Recreated
|
||||
Container mtusi-lab5-bootstrap-1 Recreated
|
||||
Container mtusi-lab5-api1-1 Recreate
|
||||
Container mtusi-lab5-worker-1 Recreate
|
||||
Container mtusi-lab5-cleanup-1 Recreate
|
||||
Container mtusi-lab5-api2-1 Recreate
|
||||
Container mtusi-lab5-worker-1 Recreated
|
||||
Container mtusi-lab5-api1-1 Recreated
|
||||
Container mtusi-lab5-api2-1 Recreated
|
||||
Container mtusi-lab5-cleanup-1 Recreated
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-api2-1 Starting
|
||||
Container mtusi-lab5-api1-1 Starting
|
||||
Container mtusi-lab5-cleanup-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
Container mtusi-lab5-api2-1 Started
|
||||
Container mtusi-lab5-api1-1 Started
|
||||
Container mtusi-lab5-cleanup-1 Started
|
||||
Two API replicas ready through LB: http://127.0.0.1:8080
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 tests/smoke.py --base-url http://127.0.0.1:8080
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 -m unittest discover -s student-tests -v
|
||||
test_auth_and_access (test_api.ApiTests.test_auth_and_access) ... ok
|
||||
test_bad_cursors_and_limits (test_api.ApiTests.test_bad_cursors_and_limits) ... ok
|
||||
test_chat_pagination (test_api.ApiTests.test_chat_pagination) ... ok
|
||||
test_chat_validation_is_atomic (test_api.ApiTests.test_chat_validation_is_atomic) ... ok
|
||||
test_invalid_json_and_content_type (test_api.ApiTests.test_invalid_json_and_content_type) ... ok
|
||||
test_message_fields_and_unicode (test_api.ApiTests.test_message_fields_and_unicode) ... ok
|
||||
test_message_pagination (test_api.ApiTests.test_message_pagination) ... ok
|
||||
test_parallel_messages (test_api.ApiTests.test_parallel_messages) ... ok
|
||||
test_parallel_username (test_api.ApiTests.test_parallel_username) ... ok
|
||||
test_read_after_write (test_api.ApiTests.test_read_after_write) ... ok
|
||||
test_user_fields (test_api.ApiTests.test_user_fields) ... ok
|
||||
test_attachment_access_and_unknown_ids (test_attachments.AttachmentTests.test_attachment_access_and_unknown_ids) ... ok
|
||||
test_bad_attachment_list_and_other_chat_do_not_create_messages (test_attachments.AttachmentTests.test_bad_attachment_list_and_other_chat_do_not_create_messages) ... ok
|
||||
test_byte_limit_and_original_at_exact_boundary (test_attachments.AttachmentTests.test_byte_limit_and_original_at_exact_boundary) ... ok
|
||||
test_chunked_body_cannot_bypass_size_limit (test_attachments.AttachmentTests.test_chunked_body_cannot_bypass_size_limit) ... ok
|
||||
test_corrupt_images_mime_and_multipart (test_attachments.AttachmentTests.test_corrupt_images_mime_and_multipart) ... ok
|
||||
test_filename_validation (test_attachments.AttachmentTests.test_filename_validation) ... ok
|
||||
test_idempotency_defaults_and_attachment_replay (test_attachments.AttachmentTests.test_idempotency_defaults_and_attachment_replay) ... ok
|
||||
test_messages_keep_attachment_order_and_allow_empty_text (test_attachments.AttachmentTests.test_messages_keep_attachment_order_and_allow_empty_text) ... ok
|
||||
test_original_png_jpeg_and_unicode_filename (test_attachments.AttachmentTests.test_original_png_jpeg_and_unicode_filename) ... ok
|
||||
test_pixel_boundary_and_decompression_bomb (test_attachments.AttachmentTests.test_pixel_boundary_and_decompression_bomb) ... ok
|
||||
test_thumbnail_orientation_transparency_and_small_size (test_attachments.AttachmentTests.test_thumbnail_orientation_transparency_and_small_size) ... ok
|
||||
test_different_body_conflicts (test_idempotency.IdempotencyTests.test_different_body_conflicts) ... ok
|
||||
test_failure_rolls_back_message_and_key (test_idempotency.IdempotencyTests.test_failure_rolls_back_message_and_key) ... ok
|
||||
test_invalid_body_does_not_reserve_key (test_idempotency.IdempotencyTests.test_invalid_body_does_not_reserve_key) ... ok
|
||||
test_key_required_and_format (test_idempotency.IdempotencyTests.test_key_required_and_format) ... ok
|
||||
test_replay_normalizes_json (test_idempotency.IdempotencyTests.test_replay_normalizes_json) ... ok
|
||||
test_replay_still_checks_access_and_session (test_idempotency.IdempotencyTests.test_replay_still_checks_access_and_session) ... ok
|
||||
test_retention_and_expired_key_reuse (test_idempotency.IdempotencyTests.test_retention_and_expired_key_reuse) ... ok
|
||||
test_same_session_on_both_instances (test_idempotency.IdempotencyTests.test_same_session_on_both_instances) ... ok
|
||||
test_scope_is_user_and_chat_not_session (test_idempotency.IdempotencyTests.test_scope_is_user_and_chat_not_session) ... ok
|
||||
test_twenty_concurrent_requests_use_both_replicas (test_idempotency.IdempotencyTests.test_twenty_concurrent_requests_use_both_replicas) ... ok
|
||||
test_logout_only_revokes_current_session (test_sessions.SessionTests.test_logout_only_revokes_current_session) ... ok
|
||||
test_malformed_basic_and_body (test_sessions.SessionTests.test_malformed_basic_and_body) ... ok
|
||||
test_only_bearer_identifies_user (test_sessions.SessionTests.test_only_bearer_identifies_user) ... ok
|
||||
test_password_boundaries_unicode_colon_spaces (test_sessions.SessionTests.test_password_boundaries_unicode_colon_spaces) ... ok
|
||||
test_password_required_and_limits (test_sessions.SessionTests.test_password_required_and_limits) ... ok
|
||||
test_wrong_and_unknown_credentials (test_sessions.SessionTests.test_wrong_and_unknown_credentials) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 38 tests in 29.453s
|
||||
|
||||
OK
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 scripts/pipeline_checks.py queue
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env restart --timeout 10 api1 api2 broker
|
||||
Container mtusi-lab5-broker-1 Restarting
|
||||
Container mtusi-lab5-api1-1 Restarting
|
||||
Container mtusi-lab5-api2-1 Restarting
|
||||
Container mtusi-lab5-broker-1 Started
|
||||
Container mtusi-lab5-api2-1 Started
|
||||
Container mtusi-lab5-api1-1 Started
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
PASS: accepted upload survived API/broker restart; thumbnail and duplicate delivery checked
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 scripts/pipeline_checks.py retry
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
PASS: retry recovery, final failed and real worker interruption
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start worker
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 tests/resilience.py --mode persistence --action-script ".\scripts\restart.cmd" --base-url http://127.0.0.1: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.
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env run --rm --no-deps migrate
|
||||
Container mtusi-lab5-migrate-run-eb06cee26192 Creating
|
||||
Container mtusi-lab5-migrate-run-eb06cee26192 Created
|
||||
Already applied: 001_initial.sql
|
||||
Already applied: 002_idempotency.sql
|
||||
Already applied: 003_attachments.sql
|
||||
Already applied: 004_jobs.sql
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env run --rm --no-deps migrate
|
||||
Container mtusi-lab5-migrate-run-6ca1c8d195f6 Creating
|
||||
Container mtusi-lab5-migrate-run-6ca1c8d195f6 Created
|
||||
Already applied: 001_initial.sql
|
||||
Already applied: 002_idempotency.sql
|
||||
Already applied: 003_attachments.sql
|
||||
Already applied: 004_jobs.sql
|
||||
PASS: old session/cursor, durable logout and repeatable migrations
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 tests/resilience.py --mode failover --action-script ".\scripts\stop-one.cmd" --base-url http://127.0.0.1:8080
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 103, "failed_attempts": 5, "first_recovery_seconds": 3.123}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start api1 api2
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-api1-1 Starting
|
||||
Container mtusi-lab5-api1-1 Started
|
||||
PASS: both physical API replicas stopped separately; no lost messages or duplicates
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start api1 api2
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-api2-1 Starting
|
||||
Container mtusi-lab5-api2-1 Started
|
||||
$ ".\scripts\stop-one.cmd"
|
||||
$ docker stop --timeout 3 fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad
|
||||
fec8e909fcec6277abf0c5d1b7a0147148170fa929b3478cf745e28243c7f6ad
|
||||
Stopped only api1
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start api1 api2
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-api1-1 Starting
|
||||
Container mtusi-lab5-api1-1 Started
|
||||
$ ".\scripts\stop-one.cmd"
|
||||
$ docker stop --timeout 3 ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98
|
||||
ed1e546c7de3f74e64aff8e56782efe93284d03395d66eaac8959d295f1d9c98
|
||||
Stopped only api2
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start api1 api2
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
Container mtusi-lab5-api2-1 Starting
|
||||
Container mtusi-lab5-api2-1 Started
|
||||
PASS: stopped each uploader; other API downloaded the same original
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start api1 api2
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-db-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-bootstrap-1 Starting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-db-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-bootstrap-1 Started
|
||||
Container mtusi-lab5-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bootstrap-1 Exited
|
||||
$ docker compose --project-name mtusi-lab5-ttl --env-file .env up -d --no-build db migrate s3-storage s3 bootstrap api1 api2 cleanup broker worker lb
|
||||
Volume mtusi-lab5-ttl_pgdata Creating
|
||||
Volume mtusi-lab5-ttl_pgdata Creating
|
||||
Network mtusi-lab5-ttl_default Creating
|
||||
Volume mtusi-lab5-ttl_brokerdata Creating
|
||||
Volume mtusi-lab5-ttl_brokerdata Creating
|
||||
Network mtusi-lab5-ttl_default Creating
|
||||
Network mtusi-lab5-ttl_storage Creating
|
||||
Volume mtusi-lab5-ttl_s3data Creating
|
||||
Volume mtusi-lab5-ttl_s3data Creating
|
||||
Network mtusi-lab5-ttl_storage Creating
|
||||
Volume mtusi-lab5-ttl_s3data Created
|
||||
Volume mtusi-lab5-ttl_s3data Created
|
||||
Volume mtusi-lab5-ttl_pgdata Created
|
||||
Volume mtusi-lab5-ttl_pgdata Created
|
||||
Volume mtusi-lab5-ttl_brokerdata Created
|
||||
Volume mtusi-lab5-ttl_brokerdata Created
|
||||
Network mtusi-lab5-ttl_default Created
|
||||
Network mtusi-lab5-ttl_default Created
|
||||
Container mtusi-lab5-ttl-broker-1 Creating
|
||||
Container mtusi-lab5-ttl-db-1 Creating
|
||||
Network mtusi-lab5-ttl_storage Created
|
||||
Network mtusi-lab5-ttl_storage Created
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Creating
|
||||
Container mtusi-lab5-ttl-broker-1 Created
|
||||
Container mtusi-lab5-ttl-db-1 Created
|
||||
Container mtusi-lab5-ttl-migrate-1 Creating
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Created
|
||||
Container mtusi-lab5-ttl-s3-1 Creating
|
||||
Container mtusi-lab5-ttl-migrate-1 Created
|
||||
Container mtusi-lab5-ttl-s3-1 Created
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Creating
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Created
|
||||
Container mtusi-lab5-ttl-worker-1 Creating
|
||||
Container mtusi-lab5-ttl-api1-1 Creating
|
||||
Container mtusi-lab5-ttl-api2-1 Creating
|
||||
Container mtusi-lab5-ttl-cleanup-1 Creating
|
||||
Container mtusi-lab5-ttl-api2-1 Created
|
||||
Container mtusi-lab5-ttl-api1-1 Created
|
||||
Container mtusi-lab5-ttl-lb-1 Creating
|
||||
Container mtusi-lab5-ttl-cleanup-1 Created
|
||||
Container mtusi-lab5-ttl-worker-1 Created
|
||||
Container mtusi-lab5-ttl-lb-1 Created
|
||||
Container mtusi-lab5-ttl-broker-1 Starting
|
||||
Container mtusi-lab5-ttl-db-1 Starting
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Starting
|
||||
Container mtusi-lab5-ttl-broker-1 Started
|
||||
Container mtusi-lab5-ttl-broker-1 Waiting
|
||||
Container mtusi-lab5-ttl-db-1 Started
|
||||
Container mtusi-lab5-ttl-db-1 Waiting
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Started
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-ttl-db-1 Healthy
|
||||
Container mtusi-lab5-ttl-migrate-1 Starting
|
||||
Container mtusi-lab5-ttl-migrate-1 Started
|
||||
Container mtusi-lab5-ttl-migrate-1 Waiting
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-ttl-s3-1 Starting
|
||||
Container mtusi-lab5-ttl-s3-1 Started
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Starting
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Started
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-ttl-migrate-1 Exited
|
||||
Container mtusi-lab5-ttl-broker-1 Healthy
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Exited
|
||||
Container mtusi-lab5-ttl-worker-1 Starting
|
||||
Container mtusi-lab5-ttl-api2-1 Starting
|
||||
Container mtusi-lab5-ttl-api1-1 Starting
|
||||
Container mtusi-lab5-ttl-cleanup-1 Starting
|
||||
Container mtusi-lab5-ttl-worker-1 Started
|
||||
Container mtusi-lab5-ttl-api2-1 Started
|
||||
Container mtusi-lab5-ttl-cleanup-1 Started
|
||||
Container mtusi-lab5-ttl-api1-1 Started
|
||||
Container mtusi-lab5-ttl-lb-1 Starting
|
||||
Container mtusi-lab5-ttl-lb-1 Started
|
||||
Two API replicas ready through LB: http://127.0.0.1:18087
|
||||
$ docker compose --project-name mtusi-lab5-ttl --env-file .env restart --timeout 3 api1 api2
|
||||
Container mtusi-lab5-ttl-api2-1 Restarting
|
||||
Container mtusi-lab5-ttl-api1-1 Restarting
|
||||
Container mtusi-lab5-ttl-api2-1 Started
|
||||
Container mtusi-lab5-ttl-api1-1 Started
|
||||
PASS: TTL=2, expired token rejected after API restart; fresh login works
|
||||
$ docker compose --project-name mtusi-lab5-ttl --env-file .env down --timeout 10
|
||||
Container mtusi-lab5-ttl-lb-1 Stopping
|
||||
Container mtusi-lab5-ttl-cleanup-1 Stopping
|
||||
Container mtusi-lab5-ttl-worker-1 Stopping
|
||||
Container mtusi-lab5-ttl-lb-1 Stopped
|
||||
Container mtusi-lab5-ttl-lb-1 Removing
|
||||
Container mtusi-lab5-ttl-lb-1 Removed
|
||||
Container mtusi-lab5-ttl-api2-1 Stopping
|
||||
Container mtusi-lab5-ttl-api1-1 Stopping
|
||||
Container mtusi-lab5-ttl-worker-1 Stopped
|
||||
Container mtusi-lab5-ttl-worker-1 Removing
|
||||
Container mtusi-lab5-ttl-worker-1 Removed
|
||||
Container mtusi-lab5-ttl-api1-1 Stopped
|
||||
Container mtusi-lab5-ttl-api1-1 Removing
|
||||
Container mtusi-lab5-ttl-api1-1 Removed
|
||||
Container mtusi-lab5-ttl-api2-1 Stopped
|
||||
Container mtusi-lab5-ttl-api2-1 Removing
|
||||
Container mtusi-lab5-ttl-api2-1 Removed
|
||||
Container mtusi-lab5-ttl-broker-1 Stopping
|
||||
Container mtusi-lab5-ttl-broker-1 Stopped
|
||||
Container mtusi-lab5-ttl-broker-1 Removing
|
||||
Container mtusi-lab5-ttl-broker-1 Removed
|
||||
Container mtusi-lab5-ttl-cleanup-1 Stopped
|
||||
Container mtusi-lab5-ttl-cleanup-1 Removing
|
||||
Container mtusi-lab5-ttl-cleanup-1 Removed
|
||||
Container mtusi-lab5-ttl-migrate-1 Stopping
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Stopping
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Stopped
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Removing
|
||||
Container mtusi-lab5-ttl-migrate-1 Stopped
|
||||
Container mtusi-lab5-ttl-migrate-1 Removing
|
||||
Container mtusi-lab5-ttl-bootstrap-1 Removed
|
||||
Container mtusi-lab5-ttl-s3-1 Stopping
|
||||
Container mtusi-lab5-ttl-migrate-1 Removed
|
||||
Container mtusi-lab5-ttl-db-1 Stopping
|
||||
Container mtusi-lab5-ttl-db-1 Stopped
|
||||
Container mtusi-lab5-ttl-db-1 Removing
|
||||
Container mtusi-lab5-ttl-db-1 Removed
|
||||
Container mtusi-lab5-ttl-s3-1 Stopped
|
||||
Container mtusi-lab5-ttl-s3-1 Removing
|
||||
Container mtusi-lab5-ttl-s3-1 Removed
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Stopping
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Stopped
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Removing
|
||||
Container mtusi-lab5-ttl-s3-storage-1 Removed
|
||||
Network mtusi-lab5-ttl_default Removing
|
||||
Network mtusi-lab5-ttl_storage Removing
|
||||
Network mtusi-lab5-ttl_storage Removed
|
||||
Network mtusi-lab5-ttl_default Removed
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 10 db
|
||||
Container mtusi-lab5-db-1 Stopping
|
||||
Container mtusi-lab5-db-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start db
|
||||
Container mtusi-lab5-db-1 Starting
|
||||
Container mtusi-lab5-db-1 Started
|
||||
PASS: db outage and recovery
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 10 s3
|
||||
Container mtusi-lab5-s3-1 Stopping
|
||||
Container mtusi-lab5-s3-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start s3
|
||||
Container mtusi-lab5-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-s3-1 Starting
|
||||
Container mtusi-lab5-s3-1 Started
|
||||
PASS: s3 outage and recovery
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env stop --timeout 10 broker
|
||||
Container mtusi-lab5-broker-1 Stopping
|
||||
Container mtusi-lab5-broker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5 --env-file .env start broker
|
||||
Container mtusi-lab5-broker-1 Starting
|
||||
Container mtusi-lab5-broker-1 Started
|
||||
PASS: broker outage and recovery
|
||||
$ ".\.venv\Scripts\python.exe" -X utf8 tests/smoke.py --base-url http://127.0.0.1:8080
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
PASS: full lab5 verification
|
||||
Reference in New Issue
Block a user