Проверка чистого клона
This commit is contained in:
@@ -68,6 +68,12 @@ ready проверяет БД, S3 и брокер; остановленный wo
|
||||
| Отказ каждой API и скачивание после остановки загрузившей реплики | [failover.json](evidence/failover.json), [attachment-failover.json](evidence/attachment-failover.json) |
|
||||
| TTL=2, logout, недоступность БД/S3/брокера и восстановление | [expiry.json](evidence/expiry.json), общий итог |
|
||||
|
||||
Чистый клон коммита `616b5d4e4ebafbf1cd9386637d751f6cc39d1ffb` прошёл весь verify
|
||||
с новой БД, S3, брокером и секретами. Команда:
|
||||
`python -X utf8 scripts/lab.py verify --project mtusi-lab5-clean --port 18085 --test-port 18086`.
|
||||
[Сводка](evidence/clean-clone.json), [результаты](evidence/clean-clone-summary.json),
|
||||
[лог](evidence/clean-clone-verification.txt). Временный стенд остановлен, volumes сохранены.
|
||||
|
||||
## Ограничения
|
||||
|
||||
Один Docker-host, одна БД, один брокер и S3. At least once, без exactly-once.
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"stopped_service": "api1",
|
||||
"upload_instance": "94e3275a4a2b4a13a2e0f678629ec363",
|
||||
"download_instance": "281832e283d74b74a36c504655042152",
|
||||
"recovery_seconds": 6.051,
|
||||
"transitional_errors": 3,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
},
|
||||
{
|
||||
"stopped_service": "api2",
|
||||
"upload_instance": "281832e283d74b74a36c504655042152",
|
||||
"download_instance": "444a1b37e6684553a5d431249fd076c5",
|
||||
"recovery_seconds": 6.045,
|
||||
"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": "api2",
|
||||
"target_instance": "d22b983b6b354b4f9155490edf05c7b7",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "7e52b5fadd174b73adea6bd3da1a4fdc",
|
||||
"container_id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "d22b983b6b354b4f9155490edf05c7b7",
|
||||
"container_id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.845243974Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.733041782Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:37:58.54164217Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:08.105724207Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:37:58.607273801Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:37:58.099811307Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:37:58.679644286Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:38:08.036792372Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.391704853Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.21,
|
||||
"metrics": {
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 112,
|
||||
"failed_attempts": 4,
|
||||
"first_recovery_seconds": 3.29
|
||||
}
|
||||
},
|
||||
"second_replica": {
|
||||
"service": "api1",
|
||||
"target_instance": "7e52b5fadd174b73adea6bd3da1a4fdc",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "7e52b5fadd174b73adea6bd3da1a4fdc",
|
||||
"container_id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "281832e283d74b74a36c504655042152",
|
||||
"container_id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.845243974Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:50.410254304Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:37:58.54164217Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:08.105724207Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:37:58.607273801Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:37:58.099811307Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:37:58.679644286Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:38:08.036792372Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.391704853Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.351,
|
||||
"metrics": {
|
||||
"successful_writes": 111,
|
||||
"failed_attempts": 4,
|
||||
"first_recovery_seconds": 3.298,
|
||||
"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": 124,
|
||||
"chats": 44,
|
||||
"members": 86,
|
||||
"messages": 140,
|
||||
"sessions": 120,
|
||||
"migrations": 4,
|
||||
"idempotency_keys": 139,
|
||||
"attachments": 21,
|
||||
"message_attachments": 9,
|
||||
"upload_intents": 0,
|
||||
"expiry_fingerprint": "96715596608fa1a4226ae2dce7c16798",
|
||||
"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": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.754915181Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.377873129Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:35:41.060418682Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.566595504Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:35:40.801604684Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:35:52.946439962Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:43.28984423Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:40.598711496Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.201941201Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:36:35.068894452Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:36:35.109849233Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:36:34.66045438Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.566595504Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:35:40.801604684Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:35:52.946439962Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:43.28984423Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:40.598711496Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.201941201Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"project": "mtusi-lab5-clean",
|
||||
"before": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:36:35.068894452Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:36:35.109849233Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:36:34.66045438Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.566595504Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:35:40.801604684Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:35:52.946439962Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:43.28984423Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:40.598711496Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:50.477008434Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.845243974Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.733041782Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:37:58.54164217Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:08.105724207Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:37:58.607273801Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:37:58.099811307Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:37:58.679644286Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:38:08.036792372Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.391704853Z",
|
||||
"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": "281832e283d74b74a36c504655042152",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "444a1b37e6684553a5d431249fd076c5",
|
||||
"container_id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "281832e283d74b74a36c504655042152",
|
||||
"container_id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:39:23.877918531Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:50.410254304Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:37:58.54164217Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:08.105724207Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:37:58.607273801Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:37:58.099811307Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:37:58.679644286Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:38:08.036792372Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.391704853Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.21
|
||||
}
|
||||
@@ -0,0 +1,562 @@
|
||||
{
|
||||
"date_utc": "2026-11-24T16:34:35.074528+00:00",
|
||||
"platform": "Windows-11-10.0.26200-SP0",
|
||||
"source_commit": "616b5d4e4ebafbf1cd9386637d751f6cc39d1ffb",
|
||||
"worktree_dirty_at_start": false,
|
||||
"project": "mtusi-lab5-clean",
|
||||
"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": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.754915181Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.377873129Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:35:41.060418682Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.566595504Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:35:40.801604684Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:35:52.946439962Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:43.28984423Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:40.598711496Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.201941201Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:36:35.068894452Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:36:35.109849233Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:36:34.66045438Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.566595504Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:35:40.801604684Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:35:52.946439962Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:43.28984423Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:35:40.598711496Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:35:52.201941201Z",
|
||||
"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": 124,
|
||||
"chats": 44,
|
||||
"members": 86,
|
||||
"messages": 140,
|
||||
"sessions": 120,
|
||||
"migrations": 4,
|
||||
"idempotency_keys": 139,
|
||||
"attachments": 21,
|
||||
"message_attachments": 9,
|
||||
"upload_intents": 0,
|
||||
"expiry_fingerprint": "96715596608fa1a4226ae2dce7c16798",
|
||||
"passwords_are_argon2id": true,
|
||||
"session_hashes_only": true
|
||||
}
|
||||
},
|
||||
"failover": {
|
||||
"public": {
|
||||
"service": "api2",
|
||||
"target_instance": "d22b983b6b354b4f9155490edf05c7b7",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "7e52b5fadd174b73adea6bd3da1a4fdc",
|
||||
"container_id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "d22b983b6b354b4f9155490edf05c7b7",
|
||||
"container_id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.845243974Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.733041782Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:37:58.54164217Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:08.105724207Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:37:58.607273801Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:37:58.099811307Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:37:58.679644286Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:38:08.036792372Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.391704853Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.21,
|
||||
"metrics": {
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 112,
|
||||
"failed_attempts": 4,
|
||||
"first_recovery_seconds": 3.29
|
||||
}
|
||||
},
|
||||
"second_replica": {
|
||||
"service": "api1",
|
||||
"target_instance": "7e52b5fadd174b73adea6bd3da1a4fdc",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "7e52b5fadd174b73adea6bd3da1a4fdc",
|
||||
"container_id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "281832e283d74b74a36c504655042152",
|
||||
"container_id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.845243974Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:50.410254304Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:37:58.54164217Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:08.105724207Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:37:58.607273801Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:37:58.099811307Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:37:58.679644286Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:38:08.036792372Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.391704853Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.351,
|
||||
"metrics": {
|
||||
"successful_writes": 111,
|
||||
"failed_attempts": 4,
|
||||
"first_recovery_seconds": 3.298,
|
||||
"replay_on_survivor": "PASS"
|
||||
}
|
||||
},
|
||||
"status": "PASS"
|
||||
},
|
||||
"attachments_failover": {
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"stopped_service": "api1",
|
||||
"upload_instance": "94e3275a4a2b4a13a2e0f678629ec363",
|
||||
"download_instance": "281832e283d74b74a36c504655042152",
|
||||
"recovery_seconds": 6.051,
|
||||
"transitional_errors": 3,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
},
|
||||
{
|
||||
"stopped_service": "api2",
|
||||
"upload_instance": "281832e283d74b74a36c504655042152",
|
||||
"download_instance": "444a1b37e6684553a5d431249fd076c5",
|
||||
"recovery_seconds": 6.045,
|
||||
"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": "b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:39:23.877918531Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:39:38.25062496Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"broker": {
|
||||
"id": "fc049fbd22b938509aff6ac9510863979c2f77dd7711ec3f55e77951ca7a9d54",
|
||||
"image": "sha256:61f90c401a5b5ed2486771973ea92ad66046471eacab9c9149f1a6e091c91677",
|
||||
"started_at": "2026-11-24T16:40:58.251062301Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_brokerdata"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"id": "84fdc2b7f3d1c40b3469e34478a1cfd4c298c81fc1badc2d36a3215b1f03c759",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:38:08.105724207Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "f76dfe35307a60e212af12686dc1979987def184021616405fe7cfbd5ea88f6a",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-24T16:40:38.230944157Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "3ffe47e6d6388deff907d3412133468704a56671b5e41a611454067beb2791ac",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-24T16:37:58.099811307Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "c5052b93011e663604de9773ababc798d202dac295b557515b555f2e006cd786",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:40:48.363940529Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"8abdb1894a002931a0172f9aa4346cec9a01ff9523af0999cc3b7356903f08ff"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "ef4dbd9dcf4811934b411160912d711b7a89af0b46af3d55d41d2bf6a04b80f4",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-24T16:38:08.036792372Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"mtusi-lab5-clean_s3data"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"id": "7435d4027f5aa0811733a2963ef88b7d314864c5f117ed548c7a4093d74fe12d",
|
||||
"image": "sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2",
|
||||
"started_at": "2026-11-24T16:37:58.391704853Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"docker": "29.9.3",
|
||||
"resources": {
|
||||
"cpus": 12,
|
||||
"memory_bytes": 16591368192
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,649 @@
|
||||
$ .\.venv\Scripts\python.exe -X utf8 -m pip install --disable-pip-version-check --no-input --progress-bar off --quiet -r .\requirements.lock -r .\requirements-validation.lock
|
||||
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-clean --env-file .env config --quiet
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env config --quiet
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env build api1
|
||||
Image mtusi-messenger:lab5 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.60kB 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 ...
|
||||
|
||||
#4 [auth] library/python:pull token for registry-1.docker.io
|
||||
#4 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for docker.io/library/python:3.13.14-slim-bookworm@sha256:67a1e1f215ccda113cfc024e8639049257e88f273898f595b61476d128d387e8
|
||||
#3 DONE 1.0s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 224B 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 [internal] load build context
|
||||
#7 transferring context: 63.97kB 0.0s done
|
||||
#7 DONE 0.1s
|
||||
|
||||
#8 [2/6] WORKDIR /app
|
||||
#8 CACHED
|
||||
|
||||
#9 [3/6] COPY requirements.lock .
|
||||
#9 CACHED
|
||||
|
||||
#10 [4/6] RUN python -m pip install --no-cache-dir -r requirements.lock && useradd --uid 10001 --create-home messenger
|
||||
#10 CACHED
|
||||
|
||||
#11 [5/6] COPY src ./src
|
||||
#11 DONE 0.0s
|
||||
|
||||
#12 [6/6] COPY migrations ./migrations
|
||||
#12 DONE 0.0s
|
||||
|
||||
#13 exporting to image
|
||||
#13 exporting layers 0.1s done
|
||||
#13 exporting manifest sha256:744f390f4f18a7582adb71a12e6918b808bb7d1216c890c52fbf8812c29db93c 0.0s done
|
||||
#13 exporting config sha256:6bb898759258b74514ec00ca0e3e374437cedfa71c4c0dd4cd70be0c88b08dfe 0.0s done
|
||||
#13 exporting attestation manifest sha256:efdeded7506f9587c13e5e56063bef3ee6798f5757a23217fbe712477faa57d1 0.0s done
|
||||
#13 exporting manifest list sha256:e4c12bcdfe6e2b05a3598d60f64219dd8819d3602265aab9454a8a8fca223fd2 0.0s done
|
||||
#13 naming to docker.io/library/mtusi-messenger:lab5 done
|
||||
#13 unpacking to docker.io/library/mtusi-messenger:lab5 0.0s done
|
||||
#13 DONE 0.2s
|
||||
|
||||
#14 resolving provenance for metadata file
|
||||
#14 DONE 0.0s
|
||||
Image mtusi-messenger:lab5 Built
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env run --rm --no-deps lb haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg
|
||||
Volume mtusi-lab5-clean_s3data Creating
|
||||
Volume mtusi-lab5-clean_s3data Creating
|
||||
Volume mtusi-lab5-clean_brokerdata Creating
|
||||
Volume mtusi-lab5-clean_brokerdata Creating
|
||||
Network mtusi-lab5-clean_default Creating
|
||||
Network mtusi-lab5-clean_storage Creating
|
||||
Network mtusi-lab5-clean_storage Creating
|
||||
Network mtusi-lab5-clean_default Creating
|
||||
Volume mtusi-lab5-clean_pgdata Creating
|
||||
Volume mtusi-lab5-clean_pgdata Creating
|
||||
Volume mtusi-lab5-clean_s3data Created
|
||||
Volume mtusi-lab5-clean_s3data Created
|
||||
Volume mtusi-lab5-clean_pgdata Created
|
||||
Volume mtusi-lab5-clean_pgdata Created
|
||||
Volume mtusi-lab5-clean_brokerdata Created
|
||||
Volume mtusi-lab5-clean_brokerdata Created
|
||||
Network mtusi-lab5-clean_storage Created
|
||||
Network mtusi-lab5-clean_storage Created
|
||||
Network mtusi-lab5-clean_default Created
|
||||
Network mtusi-lab5-clean_default Created
|
||||
Container mtusi-lab5-clean-lb-run-fd80ff17eae9 Creating
|
||||
Container mtusi-lab5-clean-lb-run-fd80ff17eae9 Created
|
||||
[NOTICE] (1) : [/usr/local/etc/haproxy/haproxy.cfg:35] : 'server api_ready/first' : could not resolve address 'api1', disabling server.
|
||||
[NOTICE] (1) : [/usr/local/etc/haproxy/haproxy.cfg:36] : 'server api_ready/second' : could not resolve address 'api2', disabling server.
|
||||
[NOTICE] (1) : [/usr/local/etc/haproxy/haproxy.cfg:43] : 'server api_live/first' : could not resolve address 'api1', disabling server.
|
||||
[NOTICE] (1) : [/usr/local/etc/haproxy/haproxy.cfg:44] : 'server api_live/second' : could not resolve address 'api2', disabling server.
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env up -d --no-build db migrate s3-storage s3 bootstrap api1 api2 cleanup broker worker lb
|
||||
Container mtusi-lab5-clean-db-1 Creating
|
||||
Container mtusi-lab5-clean-broker-1 Creating
|
||||
Container mtusi-lab5-clean-s3-storage-1 Creating
|
||||
Container mtusi-lab5-clean-s3-storage-1 Created
|
||||
Container mtusi-lab5-clean-s3-1 Creating
|
||||
Container mtusi-lab5-clean-broker-1 Created
|
||||
Container mtusi-lab5-clean-db-1 Created
|
||||
Container mtusi-lab5-clean-migrate-1 Creating
|
||||
Container mtusi-lab5-clean-migrate-1 Created
|
||||
Container mtusi-lab5-clean-s3-1 Created
|
||||
Container mtusi-lab5-clean-bootstrap-1 Creating
|
||||
Container mtusi-lab5-clean-bootstrap-1 Created
|
||||
Container mtusi-lab5-clean-worker-1 Creating
|
||||
Container mtusi-lab5-clean-api1-1 Creating
|
||||
Container mtusi-lab5-clean-cleanup-1 Creating
|
||||
Container mtusi-lab5-clean-api2-1 Creating
|
||||
Container mtusi-lab5-clean-api1-1 Created
|
||||
Container mtusi-lab5-clean-cleanup-1 Created
|
||||
Container mtusi-lab5-clean-api2-1 Created
|
||||
Container mtusi-lab5-clean-worker-1 Created
|
||||
Container mtusi-lab5-clean-lb-1 Creating
|
||||
Container mtusi-lab5-clean-lb-1 Created
|
||||
Container mtusi-lab5-clean-s3-storage-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Starting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Started
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Started
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Started
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-s3-1 Starting
|
||||
Container mtusi-lab5-clean-s3-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-api2-1 Starting
|
||||
Container mtusi-lab5-clean-cleanup-1 Starting
|
||||
Container mtusi-lab5-clean-api1-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
Container mtusi-lab5-clean-api2-1 Started
|
||||
Container mtusi-lab5-clean-cleanup-1 Started
|
||||
Container mtusi-lab5-clean-api1-1 Started
|
||||
Container mtusi-lab5-clean-lb-1 Starting
|
||||
Container mtusi-lab5-clean-lb-1 Started
|
||||
Two API replicas ready through LB: http://127.0.0.1:18085
|
||||
$ .\.venv\Scripts\python.exe -X utf8 tests/smoke.py --base-url http://127.0.0.1:18085
|
||||
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 32.015s
|
||||
|
||||
OK
|
||||
$ .\.venv\Scripts\python.exe -X utf8 scripts/pipeline_checks.py queue
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-clean-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env restart --timeout 10 api1 api2 broker
|
||||
Container mtusi-lab5-clean-api2-1 Restarting
|
||||
Container mtusi-lab5-clean-broker-1 Restarting
|
||||
Container mtusi-lab5-clean-api1-1 Restarting
|
||||
Container mtusi-lab5-clean-broker-1 Started
|
||||
Container mtusi-lab5-clean-api1-1 Started
|
||||
Container mtusi-lab5-clean-api2-1 Started
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
PASS: accepted upload survived API/broker restart; thumbnail and duplicate delivery checked
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
$ .\.venv\Scripts\python.exe -X utf8 scripts/pipeline_checks.py retry
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-clean-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-clean-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-clean-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-clean-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-clean-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 3 worker
|
||||
Container mtusi-lab5-clean-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-worker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-worker-1 Starting
|
||||
Container mtusi-lab5-clean-worker-1 Started
|
||||
PASS: retry recovery, final failed and real worker interruption
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start worker
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-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:18085
|
||||
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-clean --env-file .env run --rm --no-deps migrate
|
||||
Container mtusi-lab5-clean-migrate-run-c2c9ea3dd72f Creating
|
||||
Container mtusi-lab5-clean-migrate-run-c2c9ea3dd72f 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-clean --env-file .env run --rm --no-deps migrate
|
||||
Container mtusi-lab5-clean-migrate-run-2d97c487d48e Creating
|
||||
Container mtusi-lab5-clean-migrate-run-2d97c487d48e 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:18085
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 112, "failed_attempts": 4, "first_recovery_seconds": 3.29}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start api1 api2
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-api2-1 Starting
|
||||
Container mtusi-lab5-clean-api2-1 Started
|
||||
PASS: both physical API replicas stopped separately; no lost messages or duplicates
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start api1 api2
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-api1-1 Starting
|
||||
Container mtusi-lab5-clean-api1-1 Started
|
||||
$ .\scripts\stop-one.cmd
|
||||
$ docker stop --timeout 3 b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a
|
||||
b5122e841813dae31bfb8938d1026bce793a900765d999ce76a086347ed9fb3a
|
||||
Stopped only api1
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start api1 api2
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-api1-1 Starting
|
||||
Container mtusi-lab5-clean-api1-1 Started
|
||||
$ .\scripts\stop-one.cmd
|
||||
$ docker stop --timeout 3 8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf
|
||||
8875f33b832536608454f937d808d02553d900f91175852ba053881df621b3bf
|
||||
Stopped only api2
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start api1 api2
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-api2-1 Starting
|
||||
Container mtusi-lab5-clean-api2-1 Started
|
||||
PASS: stopped each uploader; other API downloaded the same original
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start api1 api2
|
||||
Container mtusi-lab5-clean-db-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-db-1 Healthy
|
||||
Container mtusi-lab5-clean-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-migrate-1 Started
|
||||
Container mtusi-lab5-clean-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-bootstrap-1 Exited
|
||||
$ docker compose --project-name mtusi-lab5-clean-ttl --env-file .env up -d --no-build db migrate s3-storage s3 bootstrap api1 api2 cleanup broker worker lb
|
||||
Volume mtusi-lab5-clean-ttl_s3data Creating
|
||||
Volume mtusi-lab5-clean-ttl_s3data Creating
|
||||
Volume mtusi-lab5-clean-ttl_pgdata Creating
|
||||
Volume mtusi-lab5-clean-ttl_pgdata Creating
|
||||
Network mtusi-lab5-clean-ttl_default Creating
|
||||
Volume mtusi-lab5-clean-ttl_brokerdata Creating
|
||||
Volume mtusi-lab5-clean-ttl_brokerdata Creating
|
||||
Network mtusi-lab5-clean-ttl_storage Creating
|
||||
Network mtusi-lab5-clean-ttl_default Creating
|
||||
Network mtusi-lab5-clean-ttl_storage Creating
|
||||
Volume mtusi-lab5-clean-ttl_pgdata Created
|
||||
Volume mtusi-lab5-clean-ttl_pgdata Created
|
||||
Volume mtusi-lab5-clean-ttl_brokerdata Created
|
||||
Volume mtusi-lab5-clean-ttl_brokerdata Created
|
||||
Volume mtusi-lab5-clean-ttl_s3data Created
|
||||
Volume mtusi-lab5-clean-ttl_s3data Created
|
||||
Network mtusi-lab5-clean-ttl_storage Created
|
||||
Network mtusi-lab5-clean-ttl_storage Created
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Creating
|
||||
Network mtusi-lab5-clean-ttl_default Created
|
||||
Network mtusi-lab5-clean-ttl_default Created
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-db-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Created
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-db-1 Created
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Created
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Created
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Created
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Created
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Created
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Created
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Created
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Created
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Creating
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Created
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-db-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-db-1 Started
|
||||
Container mtusi-lab5-clean-ttl-db-1 Waiting
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Started
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Waiting
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Started
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-ttl-db-1 Healthy
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Started
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Waiting
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Started
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Exited
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Started
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Healthy
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Exited
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Started
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Started
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Started
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Starting
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Started
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Started
|
||||
Two API replicas ready through LB: http://127.0.0.1:18086
|
||||
$ docker compose --project-name mtusi-lab5-clean-ttl --env-file .env restart --timeout 3 api1 api2
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Restarting
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Restarting
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Started
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Started
|
||||
PASS: TTL=2, expired token rejected after API restart; fresh login works
|
||||
$ docker compose --project-name mtusi-lab5-clean-ttl --env-file .env down --timeout 10
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-worker-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-lb-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-api2-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-api1-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-broker-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-cleanup-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-bootstrap-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-migrate-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-db-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-db-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-db-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-db-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-s3-1 Removed
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Stopping
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Stopped
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Removing
|
||||
Container mtusi-lab5-clean-ttl-s3-storage-1 Removed
|
||||
Network mtusi-lab5-clean-ttl_default Removing
|
||||
Network mtusi-lab5-clean-ttl_storage Removing
|
||||
Network mtusi-lab5-clean-ttl_storage Removed
|
||||
Network mtusi-lab5-clean-ttl_default Removed
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 10 db
|
||||
Container mtusi-lab5-clean-db-1 Stopping
|
||||
Container mtusi-lab5-clean-db-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start db
|
||||
Container mtusi-lab5-clean-db-1 Starting
|
||||
Container mtusi-lab5-clean-db-1 Started
|
||||
PASS: db outage and recovery
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 10 s3
|
||||
Container mtusi-lab5-clean-s3-1 Stopping
|
||||
Container mtusi-lab5-clean-s3-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start s3
|
||||
Container mtusi-lab5-clean-s3-storage-1 Waiting
|
||||
Container mtusi-lab5-clean-s3-storage-1 Healthy
|
||||
Container mtusi-lab5-clean-s3-1 Starting
|
||||
Container mtusi-lab5-clean-s3-1 Started
|
||||
PASS: s3 outage and recovery
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env stop --timeout 10 broker
|
||||
Container mtusi-lab5-clean-broker-1 Stopping
|
||||
Container mtusi-lab5-clean-broker-1 Stopped
|
||||
$ docker compose --project-name mtusi-lab5-clean --env-file .env start broker
|
||||
Container mtusi-lab5-clean-broker-1 Starting
|
||||
Container mtusi-lab5-clean-broker-1 Started
|
||||
PASS: broker outage and recovery
|
||||
$ .\.venv\Scripts\python.exe -X utf8 tests/smoke.py --base-url http://127.0.0.1:18085
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
PASS: full lab5 verification
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"tested_commit": "616b5d4e4ebafbf1cd9386637d751f6cc39d1ffb",
|
||||
"initial_worktree_clean": true,
|
||||
"fresh_secrets": true,
|
||||
"fresh_volumes": true,
|
||||
"project": "mtusi-lab5-clean",
|
||||
"http_port": 18085,
|
||||
"ttl_port": 18086,
|
||||
"own_tests": 38,
|
||||
"command": "python -X utf8 scripts/lab.py verify --project mtusi-lab5-clean --port 18085 --test-port 18086"
|
||||
}
|
||||
Reference in New Issue
Block a user