forked from mtusi2026/mtusi2026lab4
Проверка чистого клона
This commit is contained in:
@@ -71,6 +71,16 @@ Python 3.13.14, PostgreSQL 17.11, SeaweedFS 4.54 и HAProxy 3.2.26
|
||||
| Недоступность БД и S3 | live 200, ready/download 503; после восстановления 200 | [Сводка](evidence/summary.json) |
|
||||
| Logout и TTL=2 после рестарта API | Отозванный/истёкший токен получает 401 | [JSON](evidence/expiry.json), [данные](evidence/persistence.json) |
|
||||
|
||||
## Чистый клон
|
||||
|
||||
Полный `verify` прошёл на коммите [41799ee](https://gitea.privcloud.tech/DaniilKuznetsov/mtusi2026lab4/commit/41799eec533d5625016dabc81eb809f6d52a21e9)
|
||||
из опубликованной ветки: новые секреты, новые volumes, порты 18124/18134.
|
||||
Команда: `python -X utf8 scripts/lab.py verify --project kuznetsov-lab4-clean-final --port 18124 --test-port 18134`.
|
||||
[Сводка](evidence/clean-clone.json), [полный лог](evidence/clean-clone-verification.txt),
|
||||
[результаты](evidence/clean-clone-summary.json).
|
||||
Первая попытка упёрлась в занятые подсети Docker; [причина и повтор](evidence/clean-clone-first-attempt.json)
|
||||
сохранены. Освобождены только сети временных стендов Даниила, volumes сохранены.
|
||||
|
||||
## Ограничения и источники
|
||||
|
||||
Это локальный учебный стенд. Автоматической очистки остатков и эксперимента с памятью
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"stopped_service": "api1",
|
||||
"upload_instance": "fe2eaac8780f47c7af3b64a02df1ef98",
|
||||
"download_instance": "a3515843222742518f4328d42e044e59",
|
||||
"recovery_seconds": 4.186,
|
||||
"transitional_errors": 2,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
},
|
||||
{
|
||||
"stopped_service": "api2",
|
||||
"upload_instance": "a3515843222742518f4328d42e044e59",
|
||||
"download_instance": "95b3d69a22f64b988bcdb55049366742",
|
||||
"recovery_seconds": 5.174,
|
||||
"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,157 @@
|
||||
{
|
||||
"public": {
|
||||
"service": "api1",
|
||||
"target_instance": "586447382bad44b680a554342bffbb5c",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "586447382bad44b680a554342bffbb5c",
|
||||
"container_id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "b872d7a02e6e4f01ade7afdb17bc205c",
|
||||
"container_id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.989568724Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.862754462Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:06:55.91405525Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:55.647533647Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:56.061796484Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:07:05.458554646Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.004,
|
||||
"metrics": {
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 112,
|
||||
"failed_attempts": 3,
|
||||
"first_recovery_seconds": 2.683
|
||||
}
|
||||
},
|
||||
"second_replica": {
|
||||
"service": "api2",
|
||||
"target_instance": "b872d7a02e6e4f01ade7afdb17bc205c",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "fe2eaac8780f47c7af3b64a02df1ef98",
|
||||
"container_id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "b872d7a02e6e4f01ade7afdb17bc205c",
|
||||
"container_id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:07:44.608913102Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.862754462Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:06:55.91405525Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:55.647533647Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:56.061796484Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:07:05.458554646Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.923,
|
||||
"metrics": {
|
||||
"successful_writes": 101,
|
||||
"failed_attempts": 5,
|
||||
"first_recovery_seconds": 2.569,
|
||||
"replay_on_survivor": "PASS"
|
||||
}
|
||||
},
|
||||
"status": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,226 @@
|
||||
{
|
||||
"date_utc": "2026-11-16T19:00:58.167860+00:00",
|
||||
"platform": "Windows-11-10.0.26200-SP0",
|
||||
"source_commit": "0c5c19bb09ee4bfe43ada681ff3e7800c602f8a7",
|
||||
"worktree_dirty_at_start": false,
|
||||
"project": "kuznetsov-lab4-clean",
|
||||
"status": "FAIL",
|
||||
"private_s3": {
|
||||
"anonymous_get": 403
|
||||
},
|
||||
"persistence": {
|
||||
"idempotency_after_restart": "PASS",
|
||||
"public_persistence": "PASS",
|
||||
"cursor_after_restart": "PASS",
|
||||
"logout_after_restart": "PASS",
|
||||
"migration_replay": "PASS",
|
||||
"database": {
|
||||
"users": 115,
|
||||
"chats": 41,
|
||||
"members": 80,
|
||||
"messages": 138,
|
||||
"sessions": 111,
|
||||
"migrations": 3,
|
||||
"idempotency_keys": 137,
|
||||
"attachments": 13,
|
||||
"message_attachments": 8,
|
||||
"expiry_fingerprint": "bda7fc57ec8ee8b59cbc4927c91f92ec",
|
||||
"passwords_are_argon2id": true,
|
||||
"session_hashes_only": true
|
||||
}
|
||||
},
|
||||
"failover": {
|
||||
"public": {
|
||||
"service": "api1",
|
||||
"target_instance": "5d17dd9daab7446fae97e617861fdbaa",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "5d17dd9daab7446fae97e617861fdbaa",
|
||||
"container_id": "73bf3c380a01aa48dcbe8539fce199b929752745dc775e96bccbdfde2cc79702"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "a3fd73e98c0249dd9690e0d7e2e3e67c",
|
||||
"container_id": "2d45c1845c17bf0aee8274eece609a36819bdab2b1a596ac0033761d32453b76"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "73bf3c380a01aa48dcbe8539fce199b929752745dc775e96bccbdfde2cc79702",
|
||||
"image": "sha256:473b0be4f255a6e2b7e30144d2160367465929497ad713dfd0c72b24cb01bbf7",
|
||||
"started_at": "2026-11-16T19:02:29.024437146Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": [
|
||||
|
||||
]
|
||||
},
|
||||
"api2": {
|
||||
"id": "2d45c1845c17bf0aee8274eece609a36819bdab2b1a596ac0033761d32453b76",
|
||||
"image": "sha256:473b0be4f255a6e2b7e30144d2160367465929497ad713dfd0c72b24cb01bbf7",
|
||||
"started_at": "2026-11-16T19:02:28.949287012Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": [
|
||||
|
||||
]
|
||||
},
|
||||
"db": {
|
||||
"id": "3c8d92c574f19d10cf510b7de1f12d915c673567eab2d0782a0b588209248130",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:02:28.778182627Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "912d2c08188e2161a6244e712ef4fa2333552f8e1053a3477607fe09f1896d21",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:02:28.666832541Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": [
|
||||
|
||||
]
|
||||
},
|
||||
"s3": {
|
||||
"id": "e4ae3498910f732058d0f022eedccc9371971d718fd4883a518512f6d4a99e50",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:02:28.89570789Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"02ed83bbd31606b939c709e3b6cf9d906a92dbbbcaa732b39171e85aebf63c5b"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "82ef8dcb8408f3f375f0fe9a883521caa2202c287c1156ba773f9a886db4ed17",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:02:38.437007482Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.94,
|
||||
"metrics": {
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 103,
|
||||
"failed_attempts": 4,
|
||||
"first_recovery_seconds": 2.706
|
||||
}
|
||||
},
|
||||
"second_replica": {
|
||||
"service": "api2",
|
||||
"target_instance": "a3fd73e98c0249dd9690e0d7e2e3e67c",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "7a6dd77a3d7146ac920a3d1a64a27fca",
|
||||
"container_id": "73bf3c380a01aa48dcbe8539fce199b929752745dc775e96bccbdfde2cc79702"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "a3fd73e98c0249dd9690e0d7e2e3e67c",
|
||||
"container_id": "2d45c1845c17bf0aee8274eece609a36819bdab2b1a596ac0033761d32453b76"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "73bf3c380a01aa48dcbe8539fce199b929752745dc775e96bccbdfde2cc79702",
|
||||
"image": "sha256:473b0be4f255a6e2b7e30144d2160367465929497ad713dfd0c72b24cb01bbf7",
|
||||
"started_at": "2026-11-16T19:03:17.948335292Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": [
|
||||
|
||||
]
|
||||
},
|
||||
"api2": {
|
||||
"id": "2d45c1845c17bf0aee8274eece609a36819bdab2b1a596ac0033761d32453b76",
|
||||
"image": "sha256:473b0be4f255a6e2b7e30144d2160367465929497ad713dfd0c72b24cb01bbf7",
|
||||
"started_at": "2026-11-16T19:02:28.949287012Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": [
|
||||
|
||||
]
|
||||
},
|
||||
"db": {
|
||||
"id": "3c8d92c574f19d10cf510b7de1f12d915c673567eab2d0782a0b588209248130",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:02:28.778182627Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "912d2c08188e2161a6244e712ef4fa2333552f8e1053a3477607fe09f1896d21",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:02:28.666832541Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": [
|
||||
|
||||
]
|
||||
},
|
||||
"s3": {
|
||||
"id": "e4ae3498910f732058d0f022eedccc9371971d718fd4883a518512f6d4a99e50",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:02:28.89570789Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"02ed83bbd31606b939c709e3b6cf9d906a92dbbbcaa732b39171e85aebf63c5b"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "82ef8dcb8408f3f375f0fe9a883521caa2202c287c1156ba773f9a886db4ed17",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:02:38.437007482Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.007,
|
||||
"metrics": {
|
||||
"successful_writes": 101,
|
||||
"failed_attempts": 4,
|
||||
"first_recovery_seconds": 2.917,
|
||||
"replay_on_survivor": "PASS"
|
||||
}
|
||||
},
|
||||
"status": "PASS"
|
||||
},
|
||||
"attachments_failover": {
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"stopped_service": "api1",
|
||||
"upload_instance": "7a6dd77a3d7146ac920a3d1a64a27fca",
|
||||
"download_instance": "083652456ab9482aa96778a19bf8dda0",
|
||||
"recovery_seconds": 5.657,
|
||||
"transitional_errors": 3,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
},
|
||||
{
|
||||
"stopped_service": "api2",
|
||||
"upload_instance": "083652456ab9482aa96778a19bf8dda0",
|
||||
"download_instance": "4b985f8b2cd7489f94b4e1b12694f380",
|
||||
"recovery_seconds": 4.513,
|
||||
"transitional_errors": 2,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"failure_reason": "Docker predefined address pools exhausted while creating the isolated TTL project",
|
||||
"resolution": "Removed only Kuznetsov temporary containers and networks without deleting volumes; TTL teardown now releases its networks; repeated in a new clone with fresh volumes"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"idempotency_after_restart": "PASS",
|
||||
"public_persistence": "PASS",
|
||||
"cursor_after_restart": "PASS",
|
||||
"logout_after_restart": "PASS",
|
||||
"migration_replay": "PASS",
|
||||
"database": {
|
||||
"users": 115,
|
||||
"chats": 41,
|
||||
"members": 80,
|
||||
"messages": 138,
|
||||
"sessions": 111,
|
||||
"migrations": 3,
|
||||
"idempotency_keys": 137,
|
||||
"attachments": 13,
|
||||
"message_attachments": 8,
|
||||
"expiry_fingerprint": "152469de57b7224f018b4bd9f02dc2c7",
|
||||
"passwords_are_argon2id": true,
|
||||
"session_hashes_only": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"anonymous_get": 403
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"project": "kuznetsov-lab4-clean-final",
|
||||
"before": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:35.914943427Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:36.072778999Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:06:24.578447116Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:36.245660975Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:27.072580761Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:24.420897971Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.989568724Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.862754462Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:06:55.91405525Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:55.647533647Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:56.061796484Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:07:05.458554646Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"service": "api2",
|
||||
"target_instance": "a3515843222742518f4328d42e044e59",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "95b3d69a22f64b988bcdb55049366742",
|
||||
"container_id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "a3515843222742518f4328d42e044e59",
|
||||
"container_id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:08:12.985310328Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:08:04.172676373Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:06:55.91405525Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:55.647533647Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:56.061796484Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:07:05.458554646Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.762
|
||||
}
|
||||
@@ -0,0 +1,294 @@
|
||||
{
|
||||
"date_utc": "2026-11-16T19:05:27.542593+00:00",
|
||||
"platform": "Windows-11-10.0.26200-SP0",
|
||||
"source_commit": "41799eec533d5625016dabc81eb809f6d52a21e9",
|
||||
"worktree_dirty_at_start": false,
|
||||
"project": "kuznetsov-lab4-clean-final",
|
||||
"status": "PASS",
|
||||
"private_s3": {
|
||||
"anonymous_get": 403
|
||||
},
|
||||
"persistence": {
|
||||
"idempotency_after_restart": "PASS",
|
||||
"public_persistence": "PASS",
|
||||
"cursor_after_restart": "PASS",
|
||||
"logout_after_restart": "PASS",
|
||||
"migration_replay": "PASS",
|
||||
"database": {
|
||||
"users": 115,
|
||||
"chats": 41,
|
||||
"members": 80,
|
||||
"messages": 138,
|
||||
"sessions": 111,
|
||||
"migrations": 3,
|
||||
"idempotency_keys": 137,
|
||||
"attachments": 13,
|
||||
"message_attachments": 8,
|
||||
"expiry_fingerprint": "152469de57b7224f018b4bd9f02dc2c7",
|
||||
"passwords_are_argon2id": true,
|
||||
"session_hashes_only": true
|
||||
}
|
||||
},
|
||||
"failover": {
|
||||
"public": {
|
||||
"service": "api1",
|
||||
"target_instance": "586447382bad44b680a554342bffbb5c",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "586447382bad44b680a554342bffbb5c",
|
||||
"container_id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "b872d7a02e6e4f01ade7afdb17bc205c",
|
||||
"container_id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.989568724Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.862754462Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:06:55.91405525Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:55.647533647Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:56.061796484Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:07:05.458554646Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stop_seconds": 1.004,
|
||||
"metrics": {
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 112,
|
||||
"failed_attempts": 3,
|
||||
"first_recovery_seconds": 2.683
|
||||
}
|
||||
},
|
||||
"second_replica": {
|
||||
"service": "api2",
|
||||
"target_instance": "b872d7a02e6e4f01ade7afdb17bc205c",
|
||||
"before": {
|
||||
"api1": {
|
||||
"instance_id": "fe2eaac8780f47c7af3b64a02df1ef98",
|
||||
"container_id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365"
|
||||
},
|
||||
"api2": {
|
||||
"instance_id": "b872d7a02e6e4f01ade7afdb17bc205c",
|
||||
"container_id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:07:44.608913102Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:06:55.862754462Z",
|
||||
"running": false,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:06:55.91405525Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:55.647533647Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:06:56.061796484Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:07:05.458554646Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stop_seconds": 0.923,
|
||||
"metrics": {
|
||||
"successful_writes": 101,
|
||||
"failed_attempts": 5,
|
||||
"first_recovery_seconds": 2.569,
|
||||
"replay_on_survivor": "PASS"
|
||||
}
|
||||
},
|
||||
"status": "PASS"
|
||||
},
|
||||
"attachments_failover": {
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"stopped_service": "api1",
|
||||
"upload_instance": "fe2eaac8780f47c7af3b64a02df1ef98",
|
||||
"download_instance": "a3515843222742518f4328d42e044e59",
|
||||
"recovery_seconds": 4.186,
|
||||
"transitional_errors": 2,
|
||||
"same_original": true,
|
||||
"message_preserved": true
|
||||
},
|
||||
{
|
||||
"stopped_service": "api2",
|
||||
"upload_instance": "a3515843222742518f4328d42e044e59",
|
||||
"download_instance": "95b3d69a22f64b988bcdb55049366742",
|
||||
"recovery_seconds": 5.174,
|
||||
"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,
|
||||
"download": 503,
|
||||
"recovered": 200
|
||||
},
|
||||
"s3": {
|
||||
"live": 200,
|
||||
"ready": 503,
|
||||
"download": 503,
|
||||
"recovered": 200
|
||||
}
|
||||
},
|
||||
"containers": {
|
||||
"api1": {
|
||||
"id": "9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:08:12.985310328Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"api2": {
|
||||
"id": "fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794",
|
||||
"image": "sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc",
|
||||
"started_at": "2026-11-16T19:08:23.00437292Z",
|
||||
"running": true,
|
||||
"user": "messenger",
|
||||
"volumes": []
|
||||
},
|
||||
"db": {
|
||||
"id": "fa3bb7aef098f10935504e2867461c61118dc05da86c94223466a667d001a64e",
|
||||
"image": "sha256:665dc7b37ac52a17e298511414c21d23ffa4e6a6ef6225b3e5d59c7afb35e994",
|
||||
"started_at": "2026-11-16T19:09:09.261327056Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_pgdata"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"id": "2c2cfe574eed22e742bbc446b002fef89696553d3f6b93059ebfda21907b0c7b",
|
||||
"image": "sha256:1242e4006ac3f1ed15871efadca3d8d089e76f720017a1c51747133ee40cc953",
|
||||
"started_at": "2026-11-16T19:06:55.647533647Z",
|
||||
"running": true,
|
||||
"user": "haproxy",
|
||||
"volumes": []
|
||||
},
|
||||
"s3": {
|
||||
"id": "07875c8dc1d2ab1796d41d0702f754776244bf133936edff70cbda90a2078a7a",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:09:22.190425157Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"ff22dff59ea18d2df866867dbb8249222053b168ad320a4ba6d2d631bec7845c"
|
||||
]
|
||||
},
|
||||
"s3-storage": {
|
||||
"id": "9a2298d3be63526a2b82b8a7b73c2a20c53b59c8eb2826400a3ab134309cf49c",
|
||||
"image": "sha256:4b42c212543a0acd4c0e675215ecdcaf62a186ef98def76c7e12701871222d15",
|
||||
"started_at": "2026-11-16T19:07:05.458554646Z",
|
||||
"running": true,
|
||||
"user": "",
|
||||
"volumes": [
|
||||
"kuznetsov-lab4-clean-final_s3data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"docker": "29.9.3",
|
||||
"resources": {
|
||||
"cpus": 12,
|
||||
"memory_bytes": 16591364096
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,395 @@
|
||||
$ .\.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 kuznetsov-lab4-clean-final --env-file .env config --quiet
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env config --quiet
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env build api1
|
||||
Image mtusi-messenger:kuznetsov-lab4 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.68kB 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: 224B done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [1/6] FROM docker.io/library/python:3.13.14-slim-bookworm@sha256:67a1e1f215ccda113cfc024e8639049257e88f273898f595b61476d128d387e8
|
||||
#5 resolve docker.io/library/python:3.13.14-slim-bookworm@sha256:67a1e1f215ccda113cfc024e8639049257e88f273898f595b61476d128d387e8 0.0s done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [internal] load build context
|
||||
#6 transferring context: 44.08kB 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [2/6] WORKDIR /app
|
||||
#7 CACHED
|
||||
|
||||
#8 [3/6] COPY requirements.lock .
|
||||
#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 CACHED
|
||||
|
||||
#11 [6/6] COPY migrations ./migrations
|
||||
#11 CACHED
|
||||
|
||||
#12 exporting to image
|
||||
#12 exporting layers done
|
||||
#12 exporting manifest sha256:af911fac6ee957f113e5143c86b6bd77eb12a59c6ca4eced3636547fc055810a 0.0s done
|
||||
#12 exporting config sha256:65779d65f985c878bb2023192e1b4ad1b452ba3548e7adfc1876311328d16329 0.0s done
|
||||
#12 exporting attestation manifest sha256:48deebd99b9281038dc150f6684ccb69f77a6d72c916c31021bbc186c17f52ce 0.0s done
|
||||
#12 exporting manifest list sha256:d0dd994dab30042afab51ef659812042c96bb1e3d9c2946cb823a392c8c6e8bc 0.0s done
|
||||
#12 naming to docker.io/library/mtusi-messenger:kuznetsov-lab4 done
|
||||
#12 unpacking to docker.io/library/mtusi-messenger:kuznetsov-lab4 done
|
||||
#12 DONE 0.1s
|
||||
|
||||
#13 resolving provenance for metadata file
|
||||
#13 DONE 0.0s
|
||||
Image mtusi-messenger:kuznetsov-lab4 Built
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env run --rm --no-deps lb haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg
|
||||
Volume kuznetsov-lab4-clean-final_s3data Creating
|
||||
Volume kuznetsov-lab4-clean-final_s3data Creating
|
||||
Volume kuznetsov-lab4-clean-final_pgdata Creating
|
||||
Volume kuznetsov-lab4-clean-final_pgdata Creating
|
||||
Network kuznetsov-lab4-clean-final_storage Creating
|
||||
Network kuznetsov-lab4-clean-final_default Creating
|
||||
Network kuznetsov-lab4-clean-final_default Creating
|
||||
Network kuznetsov-lab4-clean-final_storage Creating
|
||||
Volume kuznetsov-lab4-clean-final_s3data Created
|
||||
Volume kuznetsov-lab4-clean-final_s3data Created
|
||||
Volume kuznetsov-lab4-clean-final_pgdata Created
|
||||
Volume kuznetsov-lab4-clean-final_pgdata Created
|
||||
Network kuznetsov-lab4-clean-final_storage Created
|
||||
Network kuznetsov-lab4-clean-final_storage Created
|
||||
Network kuznetsov-lab4-clean-final_default Created
|
||||
Network kuznetsov-lab4-clean-final_default Created
|
||||
Container kuznetsov-lab4-clean-final-lb-run-ae6da4cec828 Creating
|
||||
Container kuznetsov-lab4-clean-final-lb-run-ae6da4cec828 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 kuznetsov-lab4-clean-final --env-file .env up -d --no-build db migrate s3-storage s3 bootstrap api1 api2 lb
|
||||
Container kuznetsov-lab4-clean-final-db-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Created
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-db-1 Created
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Created
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Created
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Created
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Created
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Created
|
||||
Container kuznetsov-lab4-clean-final-lb-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-lb-1 Created
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Started
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Started
|
||||
Container kuznetsov-lab4-clean-final-db-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Started
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Started
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Started
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Started
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Started
|
||||
Container kuznetsov-lab4-clean-final-lb-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-lb-1 Started
|
||||
Two API replicas ready through LB: http://127.0.0.1:18124
|
||||
$ .\.venv\Scripts\python.exe -X utf8 tests/smoke.py --base-url http://127.0.0.1:18124
|
||||
PASS: lab4 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_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 37 tests in 12.886s
|
||||
|
||||
OK
|
||||
PASS: unsigned direct S3 GET denied
|
||||
$ .\.venv\Scripts\python.exe -X utf8 tests/resilience.py --mode persistence --action-script .\scripts\restart.cmd --base-url http://127.0.0.1:18124
|
||||
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 kuznetsov-lab4-clean-final --env-file .env run --rm --no-deps migrate
|
||||
Container kuznetsov-lab4-clean-final-migrate-run-91368ed51c1d Creating
|
||||
Container kuznetsov-lab4-clean-final-migrate-run-91368ed51c1d Created
|
||||
Already applied: 001_initial.sql
|
||||
Already applied: 002_idempotency.sql
|
||||
Already applied: 003_attachments.sql
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env run --rm --no-deps migrate
|
||||
Container kuznetsov-lab4-clean-final-migrate-run-ad80f6865d81 Creating
|
||||
Container kuznetsov-lab4-clean-final-migrate-run-ad80f6865d81 Created
|
||||
Already applied: 001_initial.sql
|
||||
Already applied: 002_idempotency.sql
|
||||
Already applied: 003_attachments.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:18124
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 112, "failed_attempts": 3, "first_recovery_seconds": 2.683}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env start api1 api2
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Started
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Started
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Started
|
||||
PASS: both physical API replicas stopped separately; no lost messages or duplicates
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env start api1 api2
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Started
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Started
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Started
|
||||
$ .\scripts\stop-one.cmd
|
||||
$ docker stop --timeout 3 9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365
|
||||
9e7522bf9e01ad6c4feab90e57ee53d1bfaa8d5ee35e6049d000cd6e84777365
|
||||
Stopped only api1
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env start api1 api2
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-db-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Started
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Started
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-api1-1 Started
|
||||
$ .\scripts\stop-one.cmd
|
||||
$ docker stop --timeout 3 fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794
|
||||
fb4272774ef2a5e120ff252217609bc0c4f7c25c27d8cbcf813d51bf62382794
|
||||
Stopped only api2
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env start api1 api2
|
||||
Container kuznetsov-lab4-clean-final-db-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Started
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Started
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-api2-1 Started
|
||||
PASS: stopped each uploader; other API downloaded the same original
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env start api1 api2
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Started
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Started
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-migrate-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-bootstrap-1 Exited
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final-ttl --env-file .env up -d --no-build db migrate s3-storage s3 bootstrap api1 api2 lb
|
||||
Volume kuznetsov-lab4-clean-final-ttl_s3data Creating
|
||||
Volume kuznetsov-lab4-clean-final-ttl_s3data Creating
|
||||
Network kuznetsov-lab4-clean-final-ttl_default Creating
|
||||
Network kuznetsov-lab4-clean-final-ttl_storage Creating
|
||||
Network kuznetsov-lab4-clean-final-ttl_default Creating
|
||||
Network kuznetsov-lab4-clean-final-ttl_storage Creating
|
||||
Volume kuznetsov-lab4-clean-final-ttl_pgdata Creating
|
||||
Volume kuznetsov-lab4-clean-final-ttl_pgdata Creating
|
||||
Volume kuznetsov-lab4-clean-final-ttl_pgdata Created
|
||||
Volume kuznetsov-lab4-clean-final-ttl_pgdata Created
|
||||
Volume kuznetsov-lab4-clean-final-ttl_s3data Created
|
||||
Volume kuznetsov-lab4-clean-final-ttl_s3data Created
|
||||
Network kuznetsov-lab4-clean-final-ttl_storage Created
|
||||
Network kuznetsov-lab4-clean-final-ttl_storage Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Creating
|
||||
Network kuznetsov-lab4-clean-final-ttl_default Created
|
||||
Network kuznetsov-lab4-clean-final-ttl_default Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Creating
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Created
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Exited
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Started
|
||||
Two API replicas ready through LB: http://127.0.0.1:18134
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final-ttl --env-file .env restart --timeout 3 api1 api2
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Restarting
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Restarting
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Started
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Started
|
||||
PASS: TTL=2, expired token rejected after API restart; fresh login works
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final-ttl --env-file .env down --timeout 10
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-lb-1 Removed
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-api2-1 Removed
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-api1-1 Removed
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-bootstrap-1 Removed
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-migrate-1 Removed
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-db-1 Removed
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-1 Removed
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Stopped
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Removing
|
||||
Container kuznetsov-lab4-clean-final-ttl-s3-storage-1 Removed
|
||||
Network kuznetsov-lab4-clean-final-ttl_default Removing
|
||||
Network kuznetsov-lab4-clean-final-ttl_storage Removing
|
||||
Network kuznetsov-lab4-clean-final-ttl_storage Removed
|
||||
Network kuznetsov-lab4-clean-final-ttl_default Removed
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env stop --timeout 10 db
|
||||
Container kuznetsov-lab4-clean-final-db-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-db-1 Stopped
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env start db
|
||||
Container kuznetsov-lab4-clean-final-db-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-db-1 Started
|
||||
PASS: db outage returns bounded errors; session and file work after recovery
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env stop --timeout 10 s3
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Stopping
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Stopped
|
||||
$ docker compose --project-name kuznetsov-lab4-clean-final --env-file .env start s3
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Waiting
|
||||
Container kuznetsov-lab4-clean-final-s3-storage-1 Healthy
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Starting
|
||||
Container kuznetsov-lab4-clean-final-s3-1 Started
|
||||
PASS: s3 outage returns bounded errors; session and file work after recovery
|
||||
$ .\.venv\Scripts\python.exe -X utf8 tests/smoke.py --base-url http://127.0.0.1:18124
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
PASS: full lab4 verification
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"tested_commit": "41799eec533d5625016dabc81eb809f6d52a21e9",
|
||||
"worktree_clean_at_start": true,
|
||||
"fresh_secrets": true,
|
||||
"fresh_project_and_volumes": true,
|
||||
"project": "kuznetsov-lab4-clean-final",
|
||||
"http_port": 18124,
|
||||
"ttl_port": 18134,
|
||||
"command": "python -X utf8 scripts/lab.py verify --project kuznetsov-lab4-clean-final --port 18124 --test-port 18134",
|
||||
"own_tests": 37,
|
||||
"public_files_unchanged": true,
|
||||
"previous_infrastructure_failure": "clean-clone-first-attempt.json",
|
||||
"source_artur_files_unchanged": true,
|
||||
"source_artur_git_config_unchanged": true
|
||||
}
|
||||
Reference in New Issue
Block a user