forked from mtusi2026/mtusi2026lab3
feat: исправила JSON-поля, пагинации и отчёт
This commit is contained in:
@@ -227,14 +227,14 @@ usage/throttling и pool wait counters — до/после. Ресурсное
|
||||
|
||||
| Воздействие | RPS | Ошибки / доля | p95, мс | Read / write после начала action, с | Подтверждения сохранены |
|
||||
| --- | ---: | --- | ---: | --- | --- |
|
||||
| stop-replica-1 | 88.7 | 42 / 2.31% | 47.0 | 3.797 / 3.781 | 882 из 882 |
|
||||
| stop-replica-2 | 84.0 | 39 / 2.27% | 47.0 | 4.000 / 4.000 | 836 из 836 |
|
||||
| hard-kill | 90.8 | 2 / 0.11% | 32.0 | 1.781 / 1.719 | 907 из 907 |
|
||||
| rolling-update | 88.6 | 46 / 1.70% | 47.0 | 13.157 / 13.172 | 1328 из 1328 |
|
||||
| cache-loss | 95.0 | 0 / 0.00% | 32.0 | 6.687 / 6.687 | 950 из 950 |
|
||||
| stop-replica-1 | 107.2 | 41 / 1.88% | 28.0 | 3.633 / 3.692 | 1078 из 1078 |
|
||||
| stop-replica-2 | 106.0 | 49 / 2.26% | 28.6 | 3.645 / 3.642 | 1049 из 1049 |
|
||||
| hard-kill | 107.4 | 2 / 0.09% | 28.3 | 1.129 / 1.131 | 1073 из 1073 |
|
||||
| rolling-update | 107.9 | 54 / 1.64% | 28.6 | 11.346 / 11.385 | 1615 из 1615 |
|
||||
| cache-loss | 102.7 | 0 / 0.00% | 29.4 | 6.382 / 6.394 | 1027 из 1027 |
|
||||
|
||||
`rolling-update`: action продолжался 13.157 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.141 / 0.172 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
`cache-loss`: action продолжался 6.656 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.110 / 0.141 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
`rolling-update`: action продолжался 11.330 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.093 / 0.091 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
`cache-loss`: action продолжался 6.378 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.663 / 0.375 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
|
||||
Переходные 503/оборванные соединения включены в ошибки. Дубли и потеря подтверждённых данных не обнаружены. Во время rolling сначала новая реплика наблюдалась через LB, затем старая останавливалась; в action сохранены реальные ID до/после. При Redis outage система продолжала работать через PostgreSQL.
|
||||
|
||||
@@ -253,6 +253,24 @@ coordinated omission; насыщение описывает этот профи
|
||||
изменения API/DDL требуют отдельного плана. В дальнейшем нужны janitor
|
||||
истёкших keys, open-loop генератор, более длинные серии и план HA DB/LB.
|
||||
|
||||
## Исправления по замечаниям от 29 октября 2026 года
|
||||
|
||||
Из актуальной lab2 перенесены точная проверка JSON-имён по тегам (включая
|
||||
регистр и дубли после Unicode-unescape) и проверка присутствия параметров
|
||||
пагинации. `Text`/`TEXT`, пустые `limit=`/`cursor=` и повторяющиеся параметры
|
||||
возвращают `400 invalid_request`. Отсутствующие параметры сохраняют значения
|
||||
по умолчанию. Код и файлы lab1/lab2 при переносе не изменялись.
|
||||
|
||||
Регрессии: `main_test.go`, `student-tests/review_regressions.py`; результаты —
|
||||
`evidence/review-build.txt`, `evidence/checks/review-regressions.txt` и
|
||||
`evidence/review-regressions.json`. HTTP-проверка подтверждает, что отклонённый
|
||||
POST не создаёт Message и не занимает Idempotency-Key.
|
||||
|
||||
Таблица отказов и `evidence/summary.md` генерируются из подробных raw JSON.
|
||||
`student-tests/verify.py` после успешной полной проверки автоматически
|
||||
запускает `student-tests/summarize.py`, синхронизируя отчёт с новым прогоном.
|
||||
|
||||
|
||||
## Источники
|
||||
|
||||
- [Docker Compose services](https://docs.docker.com/reference/compose-file/services/): replicas, healthcheck, depends_on, CPU/RAM и stop_grace_period.
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"action": "cache-loss",
|
||||
"at_utc": "2026-10-29T09:49:28.631802+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "b47d70b5286f",
|
||||
"name": "mtusi-lab3-redis-1",
|
||||
"service": "redis",
|
||||
"instance": "b47d70b5286f",
|
||||
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:23.454925109Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "b47d70b5286f",
|
||||
"name": "mtusi-lab3-redis-1",
|
||||
"service": "redis",
|
||||
"instance": "b47d70b5286f",
|
||||
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||
"status": "exited",
|
||||
"started": "2026-10-29T09:47:23.454925109Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"action": "kill",
|
||||
"at_utc": "2026-10-29T09:48:35.139663+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"target": "ee0d1482c5cf"
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
{
|
||||
"action": "restart",
|
||||
"at_utc": "2026-10-29T09:47:28.046589+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:03.881932495Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:04.081005338Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "0d69ca2aa516",
|
||||
"name": "mtusi-lab3-lb-1",
|
||||
"service": "lb",
|
||||
"instance": "0d69ca2aa516",
|
||||
"image": "sha256:e49b7beb96f4dba79f9a671515b469a6e516a2b88ff0681a820b184bba1effbd",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:37:53.790900094Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8083"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ec7f95f615d1",
|
||||
"name": "mtusi-lab3-migrate-1",
|
||||
"service": "migrate",
|
||||
"instance": "ec7f95f615d1",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-29T09:47:03.19606727Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "05b93b527179",
|
||||
"name": "mtusi-lab3-postgres-1",
|
||||
"service": "postgres",
|
||||
"instance": "05b93b527179",
|
||||
"image": "sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:37:53.708154795Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "b47d70b5286f",
|
||||
"name": "mtusi-lab3-redis-1",
|
||||
"service": "redis",
|
||||
"instance": "b47d70b5286f",
|
||||
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:37:53.98111014Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:26.033424878Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "0d69ca2aa516",
|
||||
"name": "mtusi-lab3-lb-1",
|
||||
"service": "lb",
|
||||
"instance": "0d69ca2aa516",
|
||||
"image": "sha256:e49b7beb96f4dba79f9a671515b469a6e516a2b88ff0681a820b184bba1effbd",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:23.635812542Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8083"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ec7f95f615d1",
|
||||
"name": "mtusi-lab3-migrate-1",
|
||||
"service": "migrate",
|
||||
"instance": "ec7f95f615d1",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-29T09:47:03.19606727Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "05b93b527179",
|
||||
"name": "mtusi-lab3-postgres-1",
|
||||
"service": "postgres",
|
||||
"instance": "05b93b527179",
|
||||
"image": "sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:23.381514871Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "b47d70b5286f",
|
||||
"name": "mtusi-lab3-redis-1",
|
||||
"service": "redis",
|
||||
"instance": "b47d70b5286f",
|
||||
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:23.454925109Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"action": "rolling",
|
||||
"at_utc": "2026-10-29T09:49:07.350641+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:51.288401872Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "3cce86c2250e",
|
||||
"name": "mtusi-lab3-api-7",
|
||||
"service": "api",
|
||||
"instance": "3cce86c2250e",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:56.995368282Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "1fbdc803701d",
|
||||
"name": "mtusi-lab3-api-8",
|
||||
"service": "api",
|
||||
"instance": "1fbdc803701d",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:49:02.499529746Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"replacements": [
|
||||
{
|
||||
"old": {
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:51.288401872Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
"new": {
|
||||
"id": "3cce86c2250e",
|
||||
"name": "mtusi-lab3-api-7",
|
||||
"service": "api",
|
||||
"instance": "3cce86c2250e",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:56.995368282Z",
|
||||
"health": "starting",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"old": {
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
"new": {
|
||||
"id": "1fbdc803701d",
|
||||
"name": "mtusi-lab3-api-8",
|
||||
"service": "api",
|
||||
"instance": "1fbdc803701d",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:49:02.499529746Z",
|
||||
"health": "starting",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"action": "stop",
|
||||
"at_utc": "2026-10-29T09:47:32.970233+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:26.033424878Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-29T09:47:26.033424878Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"target": "ee0d1482c5cf"
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"action": "stop",
|
||||
"at_utc": "2026-10-29T09:47:53.499688+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:44.549102349Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-29T09:47:44.549102349Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"target": "ee0d1482c5cf"
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"action": "stop",
|
||||
"at_utc": "2026-10-29T09:48:15.437798+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"target": "51fd87d53616"
|
||||
}
|
||||
+6741
-7147
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
stop-replica-1: PASS; 102.8 RPS, errors=52, recovery={'GET': 0.05783330003032461, 'POST': 0.045167400036007166}
|
||||
stop-replica-2: PASS; 99.7 RPS, errors=44, recovery={'GET': 0.03329029999440536, 'POST': 0.029974000004585832}
|
||||
hard-kill: PASS; 97.3 RPS, errors=0, recovery={'GET': 0.19631329999538139, 'POST': 0.18044009996810928}
|
||||
rolling-update: PASS; 103.7 RPS, errors=56, recovery={'GET': 0.01739559997804463, 'POST': 0.022559899953193963}
|
||||
cache-loss: PASS; 105.6 RPS, errors=0, recovery={'GET': 0.006495899986475706, 'POST': 0.039045199984684587}
|
||||
stop-replica-1: PASS; 107.2 RPS, errors=41, recovery={'GET': 0.007119700079783797, 'POST': 0.06569770001806319}
|
||||
stop-replica-2: PASS; 106.0 RPS, errors=49, recovery={'GET': 0.032959400210529566, 'POST': 0.03058970021083951}
|
||||
hard-kill: PASS; 107.4 RPS, errors=2, recovery={'GET': 0.007260899990797043, 'POST': 0.009793800069019198}
|
||||
rolling-update: PASS; 107.9 RPS, errors=54, recovery={'GET': 0.016626600176095963, 'POST': 0.05509410006925464}
|
||||
cache-loss: PASS; 102.7 RPS, errors=0, recovery={'GET': 0.004215099848806858, 'POST': 0.015473600011318922}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 118, "failed_attempts": 4, "first_recovery_seconds": 3.307}
|
||||
{"observed_instances_before": 2, "successful_writes": 119, "failed_attempts": 3, "first_recovery_seconds": 3.899}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"pass": true,
|
||||
"parallel_requests": 24,
|
||||
"observed_instances": [
|
||||
"efd1dd190f18",
|
||||
"f8f40a53b9cf"
|
||||
"51fd87d53616",
|
||||
"ee0d1482c5cf"
|
||||
],
|
||||
"identical_response_and_one_message": true,
|
||||
"conflicting_body_race_201": 12,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
PASS: exact JSON fields, pagination presence and no message/key side effects.
|
||||
+7841
-6413
File diff suppressed because it is too large
Load Diff
@@ -2,8 +2,8 @@
|
||||
"pass": true,
|
||||
"parallel_requests": 24,
|
||||
"observed_instances": [
|
||||
"efd1dd190f18",
|
||||
"f8f40a53b9cf"
|
||||
"51fd87d53616",
|
||||
"ee0d1482c5cf"
|
||||
],
|
||||
"identical_response_and_one_message": true,
|
||||
"conflicting_body_race_201": 12,
|
||||
|
||||
+178
-178
@@ -4,50 +4,50 @@
|
||||
"pass": true,
|
||||
"duration_seconds": 20,
|
||||
"workers": 4,
|
||||
"successful_rps": 102.8,
|
||||
"successful_rps": 107.25,
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 9.320300014223903,
|
||||
"p95": 30.52819997537881,
|
||||
"p99": 39.307700004428625
|
||||
"p50": 6.473399931564927,
|
||||
"p95": 28.032500064000487,
|
||||
"p99": 33.475999953225255
|
||||
},
|
||||
"error_ratio": 0.024667931688804556,
|
||||
"failed_requests": 52,
|
||||
"successful_requests": 2056,
|
||||
"confirmed_messages": 1031,
|
||||
"error_ratio": 0.018755718206770355,
|
||||
"failed_requests": 41,
|
||||
"successful_requests": 2145,
|
||||
"confirmed_messages": 1078,
|
||||
"all_confirmed_preserved": true,
|
||||
"no_duplicate_texts": true,
|
||||
"existing_token_and_idempotency_preserved": true,
|
||||
"first_success_after_action_completed_seconds": {
|
||||
"GET": 0.05783330003032461,
|
||||
"POST": 0.045167400036007166
|
||||
"GET": 0.007119700079783797,
|
||||
"POST": 0.06569770001806319
|
||||
},
|
||||
"action": {
|
||||
"started": 3.000508099969011,
|
||||
"started": 3.0004276998806745,
|
||||
"result": {
|
||||
"action": "stop",
|
||||
"at_utc": "2026-10-22T11:07:57.664318+00:00",
|
||||
"at_utc": "2026-10-29T09:47:53.499688+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:07:49.333450094Z",
|
||||
"started": "2026-10-29T09:47:44.549102349Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:07:30.906647733Z",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -56,39 +56,39 @@
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-22T11:07:49.333450094Z",
|
||||
"started": "2026-10-29T09:47:44.549102349Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:07:30.906647733Z",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"target": "efd1dd190f18"
|
||||
"target": "ee0d1482c5cf"
|
||||
},
|
||||
"completed": 6.062014499970246
|
||||
"completed": 6.626408899901435
|
||||
},
|
||||
"first_success_after_action_started_seconds": {
|
||||
"GET": 3.11933970003156,
|
||||
"POST": 3.1066738000372425
|
||||
"GET": 3.633100900100544,
|
||||
"POST": 3.6916789000388235
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -96,50 +96,50 @@
|
||||
"pass": true,
|
||||
"duration_seconds": 20,
|
||||
"workers": 4,
|
||||
"successful_rps": 99.7,
|
||||
"successful_rps": 105.95,
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 13.042300008237362,
|
||||
"p95": 32.52279997104779,
|
||||
"p99": 40.66260001854971
|
||||
"p50": 6.4125999342650175,
|
||||
"p95": 28.59230013564229,
|
||||
"p99": 36.39589995145798
|
||||
},
|
||||
"error_ratio": 0.021589793915603533,
|
||||
"failed_requests": 44,
|
||||
"successful_requests": 1994,
|
||||
"confirmed_messages": 980,
|
||||
"error_ratio": 0.022601476014760147,
|
||||
"failed_requests": 49,
|
||||
"successful_requests": 2119,
|
||||
"confirmed_messages": 1049,
|
||||
"all_confirmed_preserved": true,
|
||||
"no_duplicate_texts": true,
|
||||
"existing_token_and_idempotency_preserved": true,
|
||||
"first_success_after_action_completed_seconds": {
|
||||
"GET": 0.03329029999440536,
|
||||
"POST": 0.029974000004585832
|
||||
"GET": 0.032959400210529566,
|
||||
"POST": 0.03058970021083951
|
||||
},
|
||||
"action": {
|
||||
"started": 3.000329500006046,
|
||||
"started": 3.0004555000923574,
|
||||
"result": {
|
||||
"action": "stop",
|
||||
"at_utc": "2026-10-22T11:08:20.037802+00:00",
|
||||
"at_utc": "2026-10-29T09:48:15.437798+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:11.970530618Z",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:07:30.906647733Z",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -148,39 +148,39 @@
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:11.970530618Z",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-22T11:07:30.906647733Z",
|
||||
"started": "2026-10-29T09:47:25.929976254Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"target": "f8f40a53b9cf"
|
||||
"target": "51fd87d53616"
|
||||
},
|
||||
"completed": 6.0881758000468835
|
||||
"completed": 6.612365399952978
|
||||
},
|
||||
"first_success_after_action_started_seconds": {
|
||||
"GET": 3.1211366000352427,
|
||||
"POST": 3.117820300045423
|
||||
"GET": 3.64486930007115,
|
||||
"POST": 3.64249960007146
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -188,50 +188,50 @@
|
||||
"pass": true,
|
||||
"duration_seconds": 20,
|
||||
"workers": 4,
|
||||
"successful_rps": 97.3,
|
||||
"successful_rps": 107.4,
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 13.0424999515526,
|
||||
"p95": 31.69129998423159,
|
||||
"p99": 40.73850001441315
|
||||
"p50": 6.1847001779824495,
|
||||
"p95": 28.284600004553795,
|
||||
"p99": 33.7139000184834
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"failed_requests": 0,
|
||||
"successful_requests": 1946,
|
||||
"confirmed_messages": 973,
|
||||
"error_ratio": 0.0009302325581395349,
|
||||
"failed_requests": 2,
|
||||
"successful_requests": 2148,
|
||||
"confirmed_messages": 1073,
|
||||
"all_confirmed_preserved": true,
|
||||
"no_duplicate_texts": true,
|
||||
"existing_token_and_idempotency_preserved": true,
|
||||
"first_success_after_action_completed_seconds": {
|
||||
"GET": 0.19631329999538139,
|
||||
"POST": 0.18044009996810928
|
||||
"GET": 0.007260899990797043,
|
||||
"POST": 0.009793800069019198
|
||||
},
|
||||
"action": {
|
||||
"started": 3.0003833000082523,
|
||||
"started": 3.0007069997955114,
|
||||
"result": {
|
||||
"action": "kill",
|
||||
"at_utc": "2026-10-22T11:08:39.824952+00:00",
|
||||
"at_utc": "2026-10-29T09:48:35.139663+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:11.970530618Z",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:34.300287782Z",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -240,39 +240,39 @@
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-22T11:08:11.970530618Z",
|
||||
"started": "2026-10-29T09:48:07.207434195Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:34.300287782Z",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"target": "efd1dd190f18"
|
||||
"target": "ee0d1482c5cf"
|
||||
},
|
||||
"completed": 3.641908499994315
|
||||
"completed": 4.122128899907693
|
||||
},
|
||||
"first_success_after_action_started_seconds": {
|
||||
"GET": 0.8378384999814443,
|
||||
"POST": 0.8219652999541722
|
||||
"GET": 1.128682800102979,
|
||||
"POST": 1.131215700181201
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -280,50 +280,50 @@
|
||||
"pass": true,
|
||||
"duration_seconds": 30,
|
||||
"workers": 4,
|
||||
"successful_rps": 103.66666666666667,
|
||||
"successful_rps": 107.86666666666666,
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 6.835600011982024,
|
||||
"p95": 30.249400006141514,
|
||||
"p99": 38.34039997309446
|
||||
"p50": 6.453499896451831,
|
||||
"p95": 28.629800071939826,
|
||||
"p99": 35.583400167524815
|
||||
},
|
||||
"error_ratio": 0.017687934301958308,
|
||||
"failed_requests": 56,
|
||||
"successful_requests": 3110,
|
||||
"confirmed_messages": 1558,
|
||||
"error_ratio": 0.01641337386018237,
|
||||
"failed_requests": 54,
|
||||
"successful_requests": 3236,
|
||||
"confirmed_messages": 1615,
|
||||
"all_confirmed_preserved": true,
|
||||
"no_duplicate_texts": true,
|
||||
"existing_token_and_idempotency_preserved": true,
|
||||
"first_success_after_action_completed_seconds": {
|
||||
"GET": 0.01739559997804463,
|
||||
"POST": 0.022559899953193963
|
||||
"GET": 0.016626600176095963,
|
||||
"POST": 0.05509410006925464
|
||||
},
|
||||
"action": {
|
||||
"started": 3.000536000006832,
|
||||
"started": 3.0003606001846492,
|
||||
"result": {
|
||||
"action": "rolling",
|
||||
"at_utc": "2026-10-22T11:09:10.209704+00:00",
|
||||
"at_utc": "2026-10-29T09:49:07.350641+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:56.475643662Z",
|
||||
"started": "2026-10-29T09:48:51.288401872Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:34.300287782Z",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -332,26 +332,26 @@
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "94812bcac16d",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"id": "3cce86c2250e",
|
||||
"name": "mtusi-lab3-api-7",
|
||||
"service": "api",
|
||||
"instance": "94812bcac16d",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "3cce86c2250e",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:09:01.693531783Z",
|
||||
"started": "2026-10-29T09:48:56.995368282Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "86445f191cd1",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"id": "1fbdc803701d",
|
||||
"name": "mtusi-lab3-api-8",
|
||||
"service": "api",
|
||||
"instance": "86445f191cd1",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "1fbdc803701d",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:09:05.714308318Z",
|
||||
"started": "2026-10-29T09:49:02.499529746Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -361,26 +361,26 @@
|
||||
"replacements": [
|
||||
{
|
||||
"old": {
|
||||
"id": "efd1dd190f18",
|
||||
"name": "mtusi-lab3-api-3",
|
||||
"id": "ee0d1482c5cf",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"service": "api",
|
||||
"instance": "efd1dd190f18",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ee0d1482c5cf",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:56.475643662Z",
|
||||
"started": "2026-10-29T09:48:51.288401872Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
"new": {
|
||||
"id": "94812bcac16d",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"id": "3cce86c2250e",
|
||||
"name": "mtusi-lab3-api-7",
|
||||
"service": "api",
|
||||
"instance": "94812bcac16d",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "3cce86c2250e",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:09:01.693531783Z",
|
||||
"started": "2026-10-29T09:48:56.995368282Z",
|
||||
"health": "starting",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -389,26 +389,26 @@
|
||||
},
|
||||
{
|
||||
"old": {
|
||||
"id": "f8f40a53b9cf",
|
||||
"name": "mtusi-lab3-api-4",
|
||||
"id": "51fd87d53616",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"service": "api",
|
||||
"instance": "f8f40a53b9cf",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "51fd87d53616",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:08:34.300287782Z",
|
||||
"started": "2026-10-29T09:48:29.089021081Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
"new": {
|
||||
"id": "86445f191cd1",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"id": "1fbdc803701d",
|
||||
"name": "mtusi-lab3-api-8",
|
||||
"service": "api",
|
||||
"instance": "86445f191cd1",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "1fbdc803701d",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:09:05.714308318Z",
|
||||
"started": "2026-10-29T09:49:02.499529746Z",
|
||||
"health": "starting",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -417,11 +417,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"completed": 12.050871400046162
|
||||
"completed": 14.329985999967903
|
||||
},
|
||||
"first_success_after_action_started_seconds": {
|
||||
"GET": 9.067731000017375,
|
||||
"POST": 9.072895299992524
|
||||
"GET": 11.34625199995935,
|
||||
"POST": 11.384719499852508
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -429,28 +429,28 @@
|
||||
"pass": true,
|
||||
"duration_seconds": 20,
|
||||
"workers": 4,
|
||||
"successful_rps": 105.6,
|
||||
"successful_rps": 102.7,
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 6.094900018069893,
|
||||
"p95": 29.21010000864044,
|
||||
"p99": 31.124299974180758
|
||||
"p50": 7.15319998562336,
|
||||
"p95": 29.376500053331256,
|
||||
"p99": 38.29359984956682
|
||||
},
|
||||
"error_ratio": 0.0,
|
||||
"failed_requests": 0,
|
||||
"successful_requests": 2112,
|
||||
"confirmed_messages": 1056,
|
||||
"successful_requests": 2054,
|
||||
"confirmed_messages": 1027,
|
||||
"all_confirmed_preserved": true,
|
||||
"no_duplicate_texts": true,
|
||||
"existing_token_and_idempotency_preserved": true,
|
||||
"first_success_after_action_completed_seconds": {
|
||||
"GET": 0.006495899986475706,
|
||||
"POST": 0.039045199984684587
|
||||
"GET": 0.004215099848806858,
|
||||
"POST": 0.015473600011318922
|
||||
},
|
||||
"action": {
|
||||
"started": 3.000388699991163,
|
||||
"started": 3.000393300084397,
|
||||
"result": {
|
||||
"action": "cache-loss",
|
||||
"at_utc": "2026-10-22T11:09:32.838517+00:00",
|
||||
"at_utc": "2026-10-29T09:49:28.631802+00:00",
|
||||
"before": [
|
||||
{
|
||||
"id": "b47d70b5286f",
|
||||
@@ -459,7 +459,7 @@
|
||||
"instance": "b47d70b5286f",
|
||||
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:07:28.367384445Z",
|
||||
"started": "2026-10-29T09:47:23.454925109Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
@@ -474,7 +474,7 @@
|
||||
"instance": "b47d70b5286f",
|
||||
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||
"status": "exited",
|
||||
"started": "2026-10-22T11:07:28.367384445Z",
|
||||
"started": "2026-10-29T09:47:23.454925109Z",
|
||||
"health": "unhealthy",
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
@@ -482,11 +482,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"completed": 8.786695800023153
|
||||
"completed": 9.37854230008088
|
||||
},
|
||||
"first_success_after_action_started_seconds": {
|
||||
"GET": 5.792803000018466,
|
||||
"POST": 5.825352300016675
|
||||
"GET": 6.38236409984529,
|
||||
"POST": 6.393622600007802
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
Image mtusi-messenger:lab3 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.05kB 0.0s done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 570B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [auth] library/golang:pull token for registry-1.docker.io
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [auth] library/alpine:pull token for registry-1.docker.io
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load metadata for docker.io/library/golang:1.24.7-alpine3.22
|
||||
#5 ...
|
||||
|
||||
#6 [internal] load metadata for docker.io/library/alpine:3.22.1
|
||||
#6 DONE 1.0s
|
||||
|
||||
#5 [internal] load metadata for docker.io/library/golang:1.24.7-alpine3.22
|
||||
#5 DONE 1.0s
|
||||
|
||||
#7 [internal] load .dockerignore
|
||||
#7 transferring context: 243B 0.0s done
|
||||
#7 DONE 0.1s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [stage-1 1/4] FROM docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
|
||||
#9 resolve docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 0.0s done
|
||||
#9 DONE 0.0s
|
||||
|
||||
#10 [build 1/8] FROM docker.io/library/golang:1.24.7-alpine3.22@sha256:fc2cff6625f3c1c92e6c85938ac5bd09034ad0d4bc2dfb08278020b68540dbb5
|
||||
#10 resolve docker.io/library/golang:1.24.7-alpine3.22@sha256:fc2cff6625f3c1c92e6c85938ac5bd09034ad0d4bc2dfb08278020b68540dbb5
|
||||
#10 resolve docker.io/library/golang:1.24.7-alpine3.22@sha256:fc2cff6625f3c1c92e6c85938ac5bd09034ad0d4bc2dfb08278020b68540dbb5 0.0s done
|
||||
#10 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 411.72kB 0.2s done
|
||||
#8 DONE 0.2s
|
||||
|
||||
#11 [build 2/8] WORKDIR /src
|
||||
#11 CACHED
|
||||
|
||||
#12 [build 3/8] COPY go.mod go.sum ./
|
||||
#12 CACHED
|
||||
|
||||
#13 [build 4/8] RUN go mod download
|
||||
#13 CACHED
|
||||
|
||||
#14 [build 5/8] COPY . .
|
||||
#14 DONE 0.0s
|
||||
|
||||
#15 [build 6/8] RUN go test ./... && go vet ./...
|
||||
#15 8.550 ok mtusi2026lab3 0.125s
|
||||
#15 8.550 ? mtusi2026lab3/models [no test files]
|
||||
#15 8.550 ? mtusi2026lab3/student-tests [no test files]
|
||||
#15 DONE 9.6s
|
||||
|
||||
#16 [build 7/8] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/messenger .
|
||||
#16 DONE 8.9s
|
||||
|
||||
#17 [build 8/8] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/loadgen ./student-tests/loadgen.go
|
||||
#17 DONE 0.5s
|
||||
|
||||
#18 [stage-1 2/4] RUN addgroup -S app && adduser -S -G app app
|
||||
#18 CACHED
|
||||
|
||||
#19 [stage-1 3/4] COPY --from=build /out/messenger /usr/local/bin/messenger
|
||||
#19 DONE 0.1s
|
||||
|
||||
#20 [stage-1 4/4] COPY --from=build /out/loadgen /usr/local/bin/loadgen
|
||||
#20 DONE 0.1s
|
||||
|
||||
#21 exporting to image
|
||||
#21 exporting layers
|
||||
#21 exporting layers 0.3s done
|
||||
#21 exporting manifest sha256:f295fcddda6055110e89a80bbbccdcbe2c3528d0adb8f20547cff1cf8e5201b3 0.0s done
|
||||
#21 exporting config sha256:ea08034df42fd66283f57db1310e8d82651c574456e50008147791bad7348aba 0.0s done
|
||||
#21 exporting attestation manifest sha256:821928c7c3a06c69d4b9e6d02d7c159e5dc5ea14f3d159db3212236d70809f37 0.0s done
|
||||
#21 exporting manifest list sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5 0.0s done
|
||||
#21 naming to docker.io/library/mtusi-messenger:lab3 done
|
||||
#21 unpacking to docker.io/library/mtusi-messenger:lab3 0.1s done
|
||||
#21 DONE 0.6s
|
||||
|
||||
#22 resolving provenance for metadata file
|
||||
#22 DONE 0.0s
|
||||
Image mtusi-messenger:lab3 Built
|
||||
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"pass": true,
|
||||
"cases": [
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats?limit=",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats?cursor=",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats?limit",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats?cursor",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats?limit=1&limit=2",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats?cursor=&cursor=garbage",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?limit=",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?cursor=",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?limit",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?cursor",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?limit=1&limit=2",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/v1/chats/eade0647-1628-4f1c-91d0-7749f2edd10b/messages?cursor=&cursor=garbage",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/api/v1/chats",
|
||||
"status": 400
|
||||
}
|
||||
],
|
||||
"exact_json_field_names": true,
|
||||
"invalid_body_has_no_message_or_key_side_effect": true,
|
||||
"empty_and_duplicate_pagination_rejected": true,
|
||||
"absent_and_boundary_limits_accepted": true
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"mtusi2026lab1-fork": {
|
||||
".dockerignore": "697f3fbff3c7abe37468df6e5ff324bec3023f8fb0ba37badbe38dd75ff31180",
|
||||
".env.example": "0ac35625c64a8fa9b6afdd8596d313f39a98addb090d0788b2c35f20386fb052",
|
||||
".gitignore": "fd2c5f54cd9dde6efd64b3977cd10d1400f83609939585778a2acce1b087581d",
|
||||
"CONTRIBUTING.md": "08f247085938bd1efc4b8f7f48e3d520b1dc11ce569f4259491e8f01b9abd02c",
|
||||
"COURSE.md": "1e3c65e345b7f89d08ed86a3b50061935ee8157907cb4043cfa40689781f54e0",
|
||||
"debug.log": "3f40e735ec8533abf2e310e47c5f5575de2fee948d5cc46c916828f0075190cc",
|
||||
"degradation.go": "42d2868672cbf0c5fdd38a2bedfb515bba7ad666cd7faefd31cdd02f09324761",
|
||||
"docker-compose.yml": "50e356e96e3145e7088a7d696efa7f9a664506acfb3c6a70b38fa3e85a222dfb",
|
||||
"Dockerfile": "d494105f4eebb6ce89f1d058ed657cc0704ae7b795adacd29543d1ae5609025b",
|
||||
"Dockerfile.example": "37050a40f15e29ee7f5eed7b2123fea9e6531d68b5735256e4c41c60255cffc9",
|
||||
"go.mod": "2e48f488f21227082710d53c4a013fd47ff00f4a20af3a12b1915b8898cff31e",
|
||||
"lab.json": "4d7bdc7e53bb2bcb67ca48f8f00c8233f9f02704d75a053f657a3b7ddbbd8a3c",
|
||||
"main.go": "05572333f8a735b4848da8d4dcf64ab349f2a77a43960b901bbcdbf6fa0d589e",
|
||||
"MAINTAINERS.md": "aa0ab6e4eeb58170b5ffb987399f268f7da0fa50467b13672a870697c90b85c8",
|
||||
"main_test.go": "1960b13aa6338dc1c3a8c1377a9cc978866f18435701a88eddd1ec17f0880646",
|
||||
"Makefile": "a2b62be6f5a218e4f7ae92b2a9da2211b660963f36f525e6d860ba41fe926522",
|
||||
"README.md": "fcf21ec2b111a22987acaadc2c1e2b4a0566e93abe57724409ea692d25414f8d",
|
||||
"REPORT.md": "a717dddf6c457cc51519da9da21a07fe42a5745d1a54e32abba1f86e4daf6b45",
|
||||
"requirements-dev.txt": "e70f5e9db859ef3439dc6ae647890a18cd7a2752889598bbd19c822f31b7c499",
|
||||
"server.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
".github\\pull_request_template.md": "4a1127036cb6d69228cc8041dfe76a44e4d1798fc593ec8b20598633dc75df97",
|
||||
"contracts\\examples.json": "a0cb75bfe943e5ab979ff5435ecfd5fc46506be48e9606c7394f45100b4e534f",
|
||||
"contracts\\infrastructure.json": "a29f36927e74554f2a2c2b679510340003e9edd17a03b7fd48c42b9fe086d6d0",
|
||||
"contracts\\openapi.json": "55e710086c14279e4b4bf600dad003dce2ae6f569d7a38ace7e4f29f930515af",
|
||||
"contracts\\README.md": "4c04faede4a2ffa35183455b51da21764b7fa3997c0a4b3963614b82586eed28",
|
||||
"evidence\\image-1.png": "c29d774b744dae01edd638796bc33569b7bb512751e9fc2ef8438d0936c8770e",
|
||||
"evidence\\image.png": "1c1325d27c2fe80088ecca20336df00e473480c465ceb9abe34d6da63c71c549",
|
||||
"evidence\\load.json": "d895ad4f1c32e47b965caa7f72987fe79c31a3187af86e1564f17125f1872917",
|
||||
"evidence\\README.md": "6c012110fa70b191ca9af69eac8b58b08d9a9c041d88a66957487f2d50c43a10",
|
||||
"evidence\\track2-log-sample.txt": "46839392c616055b3e51620c4ff7b881920b592b460ff6ee0a2beb506f13088f",
|
||||
"examples\\requests.http": "6f84035a2e6e21d1c97499920698bad12b27a316a297a873e583ef92667ca79e",
|
||||
"models\\models.go": "1161c73ad6f8794d8d697e997c9fe5878556b75f078101ca7b599d8dcfeae9d1",
|
||||
"models\\store.go": "4c00dd877dba7238300bb8d8f7a492d4bd70d7705045f84487a576b92446c958",
|
||||
"observability\\grafana-dashboard.json": "6046b508ed418a7eeb511d5b639ba71db475f7ebb15d842fc90fce7510b76d7c",
|
||||
"observability\\prometheus.yml": "16fd8f49f430bcea9ae3252dbda9def9ce26237d77a14ce95ff81d6c187772b6",
|
||||
"observability\\README.md": "6b99a9857398e910f15de2aed20dab47825b34c14c6c2f76081028ec8209a5e5",
|
||||
"scripts\\check_contract.py": "61e300fe5c1074360418e24b4653b12f96808247a2beaf2a64859aa360f81493",
|
||||
"scripts\\validate_openapi.py": "cd7a33221b1860c5d2330e52afa6cb222d375db671ae9ab379ba51a0d3a77946",
|
||||
"tests\\client.py": "b318084e2a4c380db91a55d082190bf33979fa556a4c4ca87e01f46ae275775c",
|
||||
"tests\\concurrency.py": "882bfa062e809585efc3108ee6ab258e3ff7453b82552bc31e663a13491d81ab",
|
||||
"tests\\load.py": "04d2ab39b07080a48cf86eec8bb1d9192a3480c89a3b9857b5ddfa97711a8970",
|
||||
"tests\\README.md": "89afb3063ec0ccd7cb68fdac1de57513f9cc81b77bad96f202daaca2b66a5e82",
|
||||
"tests\\smoke.py": "354e168e1e644145c3ff50bbbe189fd217cce5659aa125f588098025ffab0fdf",
|
||||
"observability\\grafana\\provisioning\\dashboards\\dashboards.yml": "0e1eaf47f6984d75fb92d3a1398ad6ed3fcc558057436c43163d15bdce27cefb",
|
||||
"observability\\grafana\\provisioning\\datasources\\prometheus.yml": "3514dd3727511871ce5fe9374a685b3e91d15a5a5d595c67149cb75461439343",
|
||||
".github\\workflows\\contracts.yml": "57acaf40811dddc83f27bc52bff3e22e60f817ef1b71d764678562ec56f5ca97"
|
||||
},
|
||||
"mtusi2026lab2": {
|
||||
".dockerignore": "9c307884eda8387a781e8942b4df571ae0eee950c822aff044e7ed3d21e325f9",
|
||||
".env": "cedbc8f79c0b2c5b6acaf1dca75b1a97ff2e9c40cd810a5cf1fd353f3242daa0",
|
||||
".env.example": "20ced84bd123ccaadc17c1ca6b07afe4e707c0c500950ba226d5f38bfa9d2138",
|
||||
".gitignore": "fd2c5f54cd9dde6efd64b3977cd10d1400f83609939585778a2acce1b087581d",
|
||||
"compose.example.yaml": "68588e6bfa2f00fea39cbc35a1bac0dc4d5067e5045a27000fe7e2c49153a567",
|
||||
"compose.yaml": "55cf90b0348bf2e9ff35ee167c963820c037c0a92653a5870db93785caaba77b",
|
||||
"CONTRIBUTING.md": "08f247085938bd1efc4b8f7f48e3d520b1dc11ce569f4259491e8f01b9abd02c",
|
||||
"COURSE.md": "1e3c65e345b7f89d08ed86a3b50061935ee8157907cb4043cfa40689781f54e0",
|
||||
"database.go": "80433e78d2d6effe8ec72bf69440b045c825cd9e684e29e92d275d324d836820",
|
||||
"debug.log": "9ffb8cee7c48027bbc9409c8b69c940a9c9d1a33eb3a6684bb2f9d711afa0e30",
|
||||
"degradation.go": "be3c4ba0c73562f77f6aeba50fa22667d151c0c3236c8e92a4b3042c1b939057",
|
||||
"Dockerfile": "e16a43383bc8f8a46b18f1f3870028e7cc0cd4d2cc30c92a85ff1402c4903417",
|
||||
"Dockerfile.example": "37050a40f15e29ee7f5eed7b2123fea9e6531d68b5735256e4c41c60255cffc9",
|
||||
"go.mod": "34d5ce525e691f508e81a00604acf47d4c570e6598ea2621669a98077c1b67b9",
|
||||
"go.sum": "cd8cd861de44846dd7b3d0cf0456122fc05a7b5404d8860c30705e8edcf943e2",
|
||||
"lab.json": "022ea5b6d584a2fd6c2953db1eac73ca2f0888465a5bfe210422112a3d689464",
|
||||
"main.go": "5a6d4f0bef47db8a9f99f8010ae19420ad15c3c3d7f112da9f75550f0e970d5c",
|
||||
"MAINTAINERS.md": "b8ecf2db12f074875bb3425b99a25839e228a3d40097fc38d8ac8ea66214966d",
|
||||
"main_test.go": "5ed9d0118f5ec9c3f830332064a5d495d4c495434800e414c92a98fe38f3fb88",
|
||||
"Makefile": "eeccdd45153a6053d76e30b4dd3e621f1575bb7db97ca2da12ac6158f158c337",
|
||||
"password.go": "ab6ff7e45fbc7981546dbab7cffd9f1e2ca71c53b0088129178b0a1015695c81",
|
||||
"README.md": "eb2f458f8afe7ad955aae85d5bbb7caae097b07667cb006dbc9b2249b0527c21",
|
||||
"REPORT.md": "fd5ffd47dbc3a40f8248b3c4e52a416cf59c171f767180d874e4912faf7c34ad",
|
||||
"requirements-dev.txt": "e70f5e9db859ef3439dc6ae647890a18cd7a2752889598bbd19c822f31b7c499",
|
||||
".github\\pull_request_template.md": "a130d5d59558b4fe87ebaed543d73a68e085e5f2f1027874802a834b8332673c",
|
||||
"backups\\research_27f78a987f54.dump": "f33f2365e625b11a1f8ac0c34ee9e9df42495e3fbeec72af06e5eefdbfc0542c",
|
||||
"backups\\research_39f6f19a3a15.dump": "326afe65762316930de31b44c91352589d3ed52a71ccc6c3882e0e1c08f116d0",
|
||||
"contracts\\examples.json": "f566c2a935e583caf919ea8f4faeb8da29a4e05cc5fb7626c38f7be665cb60f5",
|
||||
"contracts\\infrastructure.json": "2697bf8850be8661eb35db4fb0806a909f66c5c5093a990921377dddaad10629",
|
||||
"contracts\\openapi.json": "3aa2a5459902b66c24895db2522868fe283c91012d9f8682113396be2c93bc9c",
|
||||
"contracts\\README.md": "4c04faede4a2ffa35183455b51da21764b7fa3997c0a4b3963614b82586eed28",
|
||||
"evidence\\build.txt": "f1a9a296c880058e4d5a4a70430398b47d69df7d1fae24a95b9b83461068c12b",
|
||||
"evidence\\integration.json": "c6393e3f52a6ea616db641bca10b71dd3ae70daed8be77b0eee619df9eb7192f",
|
||||
"evidence\\load.json": "a4f22ac6084993ff8dd2264b1517766e2175e517a676ecf2162ad505a959291e",
|
||||
"evidence\\README.md": "4ae3ab8da9fe3af5442f6b2e60c55d7d34de7bf0addffcc6a55f981baf0fe5cf",
|
||||
"evidence\\regression.json": "f64a9234f74df5b7d5f0b3d737b5f43535196c9de2ebf394d014ac25ee5027d6",
|
||||
"evidence\\research.json": "5618836a6581bad75fd0c69d44c5cb7e2bfeef7adc0c5ee892564518378bb576",
|
||||
"evidence\\resources.json": "6b739c788f80485af39e173980fa1e50844052f02a42e1656c2d4c086caa8719",
|
||||
"evidence\\verification.json": "090536bc38394810d3da984afb328a9455fc9b2b5eb955dde6d8019ce70741a7",
|
||||
"examples\\requests.http": "c91533d9c88101d9d8e0eaefe473f22f96eb530d0c55c6a59ac3476e5ccff6ab",
|
||||
"infra\\README.md": "33a4f7b870fd0b2bed98d46daf26d45dd7436176739672925246f8e3fe7c2278",
|
||||
"infra\\redis.conf": "204de9d2d05c115fec145c5583604c1815df01c8cd1970d67e191d8b8b8f6415",
|
||||
"migrations\\001_initial.sql": "e6024ac63c7e01d15efb380b21b1e3c3f58fff747359f3e46388385b8d3b8bbe",
|
||||
"models\\models.go": "1161c73ad6f8794d8d697e997c9fe5878556b75f078101ca7b599d8dcfeae9d1",
|
||||
"scripts\\bootstrap.py": "8a4c9035d530517848189ae010c8fd90dd484933ba19edd60edda4b0e0f6a768",
|
||||
"scripts\\check_contract.py": "61e300fe5c1074360418e24b4653b12f96808247a2beaf2a64859aa360f81493",
|
||||
"scripts\\restart.cmd": "d2841bd88be635fea2c854318a4d80eddcb3dc146bead78122b7acef2eb21fae",
|
||||
"scripts\\restart.example.sh": "7cbfc7f518b975ee3ca37a645359ff734ab0686789b795a9ac845789eb46fbd9",
|
||||
"scripts\\restart.sh": "e00f0e0422f3c94ef4a527071eb48906378e6a84b97e9da26fb3c76f87f424f0",
|
||||
"scripts\\validate_openapi.py": "cd7a33221b1860c5d2330e52afa6cb222d375db671ae9ab379ba51a0d3a77946",
|
||||
"scripts\\wait_ready.py": "b6e447d323df87abd4a683f23a4f765322f21e0a75e88c42688903a6685c84b1",
|
||||
"secrets\\cache_url": "f4e420c3b37c5503ad5d9aaca146a28e331d67cf2fc2b8fd090bfcbbf92e62b7",
|
||||
"secrets\\database_url": "19231cf01c33c87ee962ff3f0c53f2268a169e26b7548ea16a983eefb7fc62e3",
|
||||
"student-tests\\integration.py": "e30706e13e2b4d6d2cbf024ccb23de0e4c6e76e9451f340ad011ea2b3f6351d4",
|
||||
"student-tests\\profile_load.py": "829ec3af2b50c4fabc3f22d03ffe0e4fe5a8da6766a2d4f22f382460a441a2e5",
|
||||
"student-tests\\regression.py": "6242b7ddb52e69ad340ec9461643a0747894d64a989b14ea7b7a1d41c636e44f",
|
||||
"student-tests\\research.py": "f0e44e39f5bfafdcba7e1137745658a90f3845f0b734baa33ea5509b2e41bc89",
|
||||
"student-tests\\verify.py": "d29b4be15fc08579c532bad8d714124b06c77690536b31ff75eb294d06d32e1d",
|
||||
"tests\\client.py": "b318084e2a4c380db91a55d082190bf33979fa556a4c4ca87e01f46ae275775c",
|
||||
"tests\\load.py": "9a9aff05e109630e243c3b092d7bd564344e4872b29e38b6618647a08460a72e",
|
||||
"tests\\README.md": "89afb3063ec0ccd7cb68fdac1de57513f9cc81b77bad96f202daaca2b66a5e82",
|
||||
"tests\\resilience.py": "4ba30b9c81a0664127ddab2b0bea5e76aa2087be8bb25aa13cd5a8e69be23fdd",
|
||||
"tests\\smoke.py": "354e168e1e644145c3ff50bbbe189fd217cce5659aa125f588098025ffab0fdf",
|
||||
".github\\workflows\\application.yml": "ff2ef16783b66ef40eb1271572135d63023b94fe9700f74199aa0e30ad2b5bf3",
|
||||
".github\\workflows\\contracts.yml": "57acaf40811dddc83f27bc52bff3e22e60f817ef1b71d764678562ec56f5ca97"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"mtusi2026lab1-fork": {
|
||||
"unchanged": true,
|
||||
"files": 46,
|
||||
"sha256": "c853480bceca03d789b66d0922d9eb35f6a2bc5b49d040f1b5bb1bd3324b8ec0"
|
||||
},
|
||||
"mtusi2026lab2": {
|
||||
"unchanged": true,
|
||||
"files": 65,
|
||||
"sha256": "5ba76a3ba79c900095207e3acb9fc7030f5e39cca19df083b95e55685bd90ea9"
|
||||
}
|
||||
}
|
||||
+13474
-12606
File diff suppressed because it is too large
Load Diff
+7548
-7002
File diff suppressed because it is too large
Load Diff
+7701
-6791
File diff suppressed because it is too large
Load Diff
+7
-7
@@ -42,14 +42,14 @@
|
||||
|
||||
| Воздействие | RPS | Ошибки / доля | p95, мс | Read / write после начала action, с | Подтверждения сохранены |
|
||||
| --- | ---: | --- | ---: | --- | --- |
|
||||
| stop-replica-1 | 88.7 | 42 / 2.31% | 47.0 | 3.797 / 3.781 | 882 из 882 |
|
||||
| stop-replica-2 | 84.0 | 39 / 2.27% | 47.0 | 4.000 / 4.000 | 836 из 836 |
|
||||
| hard-kill | 90.8 | 2 / 0.11% | 32.0 | 1.781 / 1.719 | 907 из 907 |
|
||||
| rolling-update | 88.6 | 46 / 1.70% | 47.0 | 13.157 / 13.172 | 1328 из 1328 |
|
||||
| cache-loss | 95.0 | 0 / 0.00% | 32.0 | 6.687 / 6.687 | 950 из 950 |
|
||||
| stop-replica-1 | 107.2 | 41 / 1.88% | 28.0 | 3.633 / 3.692 | 1078 из 1078 |
|
||||
| stop-replica-2 | 106.0 | 49 / 2.26% | 28.6 | 3.645 / 3.642 | 1049 из 1049 |
|
||||
| hard-kill | 107.4 | 2 / 0.09% | 28.3 | 1.129 / 1.131 | 1073 из 1073 |
|
||||
| rolling-update | 107.9 | 54 / 1.64% | 28.6 | 11.346 / 11.385 | 1615 из 1615 |
|
||||
| cache-loss | 102.7 | 0 / 0.00% | 29.4 | 6.382 / 6.394 | 1027 из 1027 |
|
||||
|
||||
`rolling-update`: action продолжался 13.157 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.141 / 0.172 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
`cache-loss`: action продолжался 6.656 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.110 / 0.141 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
`rolling-update`: action продолжался 11.330 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.093 / 0.091 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
`cache-loss`: action продолжался 6.378 с, но запросы обслуживались во время него. Максимальный промежуток между успешными GET / POST за весь прогон — 0.663 / 0.375 с. Время в предыдущей таблице учитывает завершение всей action и не означает такой же простой.
|
||||
|
||||
Переходные 503/оборванные соединения включены в ошибки. Дубли и потеря подтверждённых данных не обнаружены. Во время rolling сначала новая реплика наблюдалась через LB, затем старая останавливалась; в action сохранены реальные ID до/после. При Redis outage система продолжала работать через PostgreSQL.
|
||||
|
||||
|
||||
+29
-18
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"at_utc": "2026-10-22T11:07:22.230849+00:00",
|
||||
"at_utc": "2026-10-29T09:47:16.738726+00:00",
|
||||
"checks": [
|
||||
{
|
||||
"name": "offline",
|
||||
@@ -36,6 +36,17 @@
|
||||
"exit_code": 0,
|
||||
"evidence": "evidence/checks/integration.txt"
|
||||
},
|
||||
{
|
||||
"name": "review-regressions",
|
||||
"command": [
|
||||
"python",
|
||||
"-X",
|
||||
"utf8",
|
||||
"student-tests/review_regressions.py"
|
||||
],
|
||||
"exit_code": 0,
|
||||
"evidence": "evidence/checks/review-regressions.txt"
|
||||
},
|
||||
{
|
||||
"name": "persistence",
|
||||
"command": [
|
||||
@@ -97,26 +108,26 @@
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"id": "94812bcac16d",
|
||||
"name": "mtusi-lab3-api-5",
|
||||
"id": "3cce86c2250e",
|
||||
"name": "mtusi-lab3-api-7",
|
||||
"service": "api",
|
||||
"instance": "94812bcac16d",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "3cce86c2250e",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:09:01.693531783Z",
|
||||
"started": "2026-10-29T09:48:56.995368282Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "86445f191cd1",
|
||||
"name": "mtusi-lab3-api-6",
|
||||
"id": "1fbdc803701d",
|
||||
"name": "mtusi-lab3-api-8",
|
||||
"service": "api",
|
||||
"instance": "86445f191cd1",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "1fbdc803701d",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:09:05.714308318Z",
|
||||
"started": "2026-10-29T09:49:02.499529746Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 268435456,
|
||||
@@ -129,7 +140,7 @@
|
||||
"instance": "0d69ca2aa516",
|
||||
"image": "sha256:e49b7beb96f4dba79f9a671515b469a6e516a2b88ff0681a820b184bba1effbd",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:07:28.670422703Z",
|
||||
"started": "2026-10-29T09:47:23.635812542Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 134217728,
|
||||
@@ -143,13 +154,13 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "d1a22ed6154a",
|
||||
"id": "ec7f95f615d1",
|
||||
"name": "mtusi-lab3-migrate-1",
|
||||
"service": "migrate",
|
||||
"instance": "d1a22ed6154a",
|
||||
"image": "sha256:f0473b9d49d131f7828dad21efd004d7b45c3864693671b4551da7a4e565158f",
|
||||
"instance": "ec7f95f615d1",
|
||||
"image": "sha256:a4a4ba290a0f70efc96960454e87d87e3f68940770dbfcf0caade037b702e0b5",
|
||||
"status": "exited",
|
||||
"started": "2026-10-22T11:07:04.069877088Z",
|
||||
"started": "2026-10-29T09:47:03.19606727Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 134217728,
|
||||
@@ -162,7 +173,7 @@
|
||||
"instance": "05b93b527179",
|
||||
"image": "sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:07:28.482246081Z",
|
||||
"started": "2026-10-29T09:47:23.381514871Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
@@ -175,7 +186,7 @@
|
||||
"instance": "b47d70b5286f",
|
||||
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||
"status": "running",
|
||||
"started": "2026-10-22T11:09:37.905888583Z",
|
||||
"started": "2026-10-29T09:49:33.716529905Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
|
||||
@@ -16,6 +16,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -264,13 +265,48 @@ func (a *app) decode(w http.ResponseWriter, r *http.Request, target any) bool {
|
||||
decoder := json.NewDecoder(bytes.NewReader(data))
|
||||
decoder.DisallowUnknownFields()
|
||||
var extra any
|
||||
if !utf8.Valid(data) || decoder.Decode(target) != nil || decoder.Decode(&extra) != io.EOF {
|
||||
if !utf8.Valid(data) || !strictObjectFields(data, target) || decoder.Decode(target) != nil || decoder.Decode(&extra) != io.EOF {
|
||||
a.error(w, 400, "invalid_request", "Неверный JSON")
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// encoding/json matches struct fields without regard to case. Validate decoded
|
||||
// top-level keys against the exact JSON tags before allowing it to fill a DTO.
|
||||
// Current request DTOs are flat objects (member_ids is an array of strings).
|
||||
func strictObjectFields(data []byte, target any) bool {
|
||||
t := reflect.TypeOf(target).Elem()
|
||||
allowed := make(map[string]bool, t.NumField())
|
||||
for i := 0; i < t.NumField(); i++ {
|
||||
field := t.Field(i)
|
||||
name := strings.Split(field.Tag.Get("json"), ",")[0]
|
||||
if field.IsExported() && name != "" && name != "-" {
|
||||
allowed[name] = true
|
||||
}
|
||||
}
|
||||
decoder := json.NewDecoder(bytes.NewReader(data))
|
||||
opening, err := decoder.Token()
|
||||
if err != nil || opening != json.Delim('{') {
|
||||
return false
|
||||
}
|
||||
seen := make(map[string]bool, len(allowed))
|
||||
for decoder.More() {
|
||||
token, err := decoder.Token()
|
||||
key, ok := token.(string)
|
||||
if err != nil || !ok || !allowed[key] || seen[key] {
|
||||
return false
|
||||
}
|
||||
seen[key] = true
|
||||
var value json.RawMessage
|
||||
if decoder.Decode(&value) != nil {
|
||||
return false
|
||||
}
|
||||
}
|
||||
closing, err := decoder.Token()
|
||||
return err == nil && closing == json.Delim('}')
|
||||
}
|
||||
|
||||
func (a *app) health(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/health/ready" && a.store.db.PingContext(r.Context()) != nil {
|
||||
a.unavailable(w)
|
||||
@@ -567,19 +603,26 @@ func (a *app) chatResource(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func (a *app) position(w http.ResponseWriter, r *http.Request, resource string) (cursor, int, bool) {
|
||||
query := r.URL.Query()
|
||||
limit := 50
|
||||
var err error
|
||||
if value := r.URL.Query().Get("limit"); value != "" {
|
||||
limit, err = strconv.Atoi(value)
|
||||
values, hasLimit := query["limit"]
|
||||
if hasLimit && len(values) == 1 {
|
||||
limit, err = strconv.Atoi(values[0])
|
||||
}
|
||||
p := cursor{Resource: resource, CreatedAt: time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC), ID: "00000000-0000-0000-0000-000000000000"}
|
||||
if limit < 1 || limit > 100 || err != nil {
|
||||
if (hasLimit && len(values) != 1) || limit < 1 || limit > 100 || err != nil {
|
||||
a.error(w, 400, "invalid_request", "Неверный limit")
|
||||
return p, 0, false
|
||||
}
|
||||
if value := r.URL.Query().Get("cursor"); value != "" {
|
||||
if values, present := query["cursor"]; present {
|
||||
if len(values) != 1 || values[0] == "" || len(values[0]) > 1024 {
|
||||
a.error(w, 400, "invalid_request", "Неверный cursor")
|
||||
return p, 0, false
|
||||
}
|
||||
value := values[0]
|
||||
data, e := base64.RawURLEncoding.DecodeString(value)
|
||||
if len(value) > 1024 || e != nil || json.Unmarshal(data, &p) != nil || p.Resource != resource || !isUUID(string(p.ID)) || p.CreatedAt.IsZero() {
|
||||
if e != nil || json.Unmarshal(data, &p) != nil || p.Resource != resource || !isUUID(string(p.ID)) || p.CreatedAt.IsZero() {
|
||||
a.error(w, 400, "invalid_request", "Неверный cursor")
|
||||
return p, 0, false
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
@@ -27,6 +28,12 @@ func TestCursorScopeAndValidation(t *testing.T) {
|
||||
query string
|
||||
valid bool
|
||||
}{
|
||||
{"", true},
|
||||
{"limit=", false}, {"cursor=", false}, {"limit", false}, {"cursor", false},
|
||||
{"limit=&cursor=" + encodeCursor(p), false},
|
||||
{"limit=1&cursor=", false},
|
||||
{"limit=1&limit=2", false},
|
||||
{"cursor=" + encodeCursor(p) + "&cursor=", false},
|
||||
{"limit=1&cursor=" + encodeCursor(p), true},
|
||||
{"limit=100&cursor=" + encodeCursor(p), true},
|
||||
{"limit=0", false}, {"limit=101", false}, {"limit=1.2", false}, {"cursor=garbage", false},
|
||||
@@ -41,6 +48,69 @@ func TestCursorScopeAndValidation(t *testing.T) {
|
||||
if ok != c.valid {
|
||||
t.Errorf("cursor query %s: valid=%v", c.query, ok)
|
||||
}
|
||||
if !c.valid {
|
||||
assertInvalidRequest(t, w)
|
||||
} else if c.query == "" {
|
||||
_, limit, _ := a.position(httptest.NewRecorder(), r, p.Resource)
|
||||
if limit != 50 {
|
||||
t.Fatal("absent limit must default to 50")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func assertInvalidRequest(t *testing.T, w *httptest.ResponseRecorder) {
|
||||
t.Helper()
|
||||
var body struct {
|
||||
Error struct {
|
||||
Code string `json:"code"`
|
||||
} `json:"error"`
|
||||
}
|
||||
if w.Code != 400 || json.Unmarshal(w.Body.Bytes(), &body) != nil || body.Error.Code != "invalid_request" {
|
||||
t.Fatalf("expected 400 invalid_request, received %d %s", w.Code, w.Body.String())
|
||||
}
|
||||
}
|
||||
|
||||
func TestExactJSONFieldNames(t *testing.T) {
|
||||
a := &app{limits: limits{maxBodyBytes: 1024}}
|
||||
cases := []struct {
|
||||
name, data string
|
||||
target func() any
|
||||
valid bool
|
||||
}{
|
||||
{"message", `{"text":"valid"}`, func() any { return &createMessage{} }, true},
|
||||
{"escaped exact key", `{"te\u0078t":"valid"}`, func() any { return &createMessage{} }, true},
|
||||
{"case overwrite", `{"text":"valid","TEXT":"unexpected-property"}`, func() any { return &createMessage{} }, false},
|
||||
{"case first", `{"TEXT":"unexpected-property","text":"valid"}`, func() any { return &createMessage{} }, false},
|
||||
{"mixed case", `{"Text":"unexpected-property"}`, func() any { return &createMessage{} }, false},
|
||||
{"escaped uppercase", `{"\u0054EXT":"unexpected-property"}`, func() any { return &createMessage{} }, false},
|
||||
{"duplicate", `{"text":"valid","text":"overwrite"}`, func() any { return &createMessage{} }, false},
|
||||
{"escaped duplicate", `{"text":"valid","te\u0078t":"overwrite"}`, func() any { return &createMessage{} }, false},
|
||||
{"null object", `null`, func() any { return &createMessage{} }, false},
|
||||
{"array", `[]`, func() any { return &createMessage{} }, false},
|
||||
{"user", `{"username":"alice","display_name":"Alice","password":"long-password"}`, func() any { return &createUser{} }, true},
|
||||
{"user case", `{"username":"alice","display_name":"Alice","PASSWORD":"long-password"}`, func() any { return &createUser{} }, false},
|
||||
{"Go field name", `{"Username":"alice"}`, func() any { return &createUser{} }, false},
|
||||
{"chat", `{"title":"Chat","member_ids":[]}`, func() any { return &createChat{} }, true},
|
||||
{"chat case", `{"TITLE":"Chat","member_ids":[]}`, func() any { return &createChat{} }, false},
|
||||
{"trailing object", `{"text":"valid"} {}`, func() any { return &createMessage{} }, false},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
w := httptest.NewRecorder()
|
||||
target := c.target()
|
||||
if got := a.decode(w, httptest.NewRequest("POST", "/", strings.NewReader(c.data)), target); got != c.valid {
|
||||
t.Fatalf("valid=%v, expected %v", got, c.valid)
|
||||
}
|
||||
if !c.valid {
|
||||
assertInvalidRequest(t, w)
|
||||
}
|
||||
if c.name == "message" || c.name == "escaped exact key" {
|
||||
if target.(*createMessage).Text != "valid" {
|
||||
t.Fatal("valid text changed")
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Reproduce teacher feedback through LB, including absence of side effects."""
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT/'tests'))
|
||||
sys.path.insert(0, str(ROOT/'scripts'))
|
||||
from client import Client
|
||||
from actions import base_url
|
||||
from resilience import history
|
||||
|
||||
|
||||
def main():
|
||||
c = Client(base_url())
|
||||
alice, bob, eve, chat = c.bootstrap()
|
||||
path = '/api/v1/chats/'+chat['id']+'/messages'
|
||||
results = []
|
||||
|
||||
def invalid(method, url, **kwargs):
|
||||
response = c.call(method, url, 400, actor=alice, **kwargs)
|
||||
assert response['json']['error']['code'] == 'invalid_request'
|
||||
results.append({'method': method, 'path': url, 'status': 400})
|
||||
|
||||
bodies = [b'{"Text":"case-field"}', b'{"TEXT":"case-field"}',
|
||||
b'{"text":"good","Text":"case-field"}',
|
||||
b'{"\\u0054ext":"case-field"}',
|
||||
b'{"text":"first","text":"second"}',
|
||||
b'{"text":"first","te\\u0078t":"second"}']
|
||||
before = history(c, bob, chat)
|
||||
for body in bodies:
|
||||
key = uuid.uuid4().hex
|
||||
invalid('POST', path, raw=body,
|
||||
headers={'Content-Type': 'application/json', 'Idempotency-Key': key})
|
||||
assert history(c, bob, chat) == before, 'invalid request created a message'
|
||||
# Invalid JSON must not reserve the key or store a 5xx/conflict result.
|
||||
message = c.message(alice, chat, 'valid-'+key, key=key)['json']
|
||||
assert c.message(alice, chat, 'valid-'+key, key=key)['json'] == message
|
||||
before = history(c, bob, chat)
|
||||
for endpoint in ('/api/v1/chats', path):
|
||||
for query in ('limit=', 'cursor=', 'limit', 'cursor',
|
||||
'limit=1&limit=2', 'cursor=&cursor=garbage'):
|
||||
invalid('GET', endpoint+'?'+query)
|
||||
for query in ('', '?limit=1', '?limit=100'):
|
||||
c.call('GET', endpoint+query, actor=alice,
|
||||
schema='ChatPage' if endpoint == '/api/v1/chats' else 'MessagePage')
|
||||
invalid('POST', '/api/v1/chats', body={'Title': 'wrong case', 'member_ids': [alice['id']]})
|
||||
c.call('POST', '/api/v1/users', 400,
|
||||
body={'Username': 'review_'+uuid.uuid4().hex[:8], 'display_name': 'Review', 'password': 'long-password'})
|
||||
report = {'pass': True, 'cases': results, 'exact_json_field_names': True,
|
||||
'invalid_body_has_no_message_or_key_side_effect': True,
|
||||
'empty_and_duplicate_pagination_rejected': True,
|
||||
'absent_and_boundary_limits_accepted': True}
|
||||
(ROOT/'evidence/review-regressions.json').write_text(json.dumps(report, indent=2)+'\n', encoding='utf-8')
|
||||
print('PASS: exact JSON fields, pagination presence and no message/key side effects.')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -15,7 +15,10 @@ def load(path):
|
||||
def main():
|
||||
research = load('evidence/research.json')
|
||||
verification = load('evidence/verification.json')
|
||||
resilience = load('evidence/resilience-summary.json')
|
||||
# Render metrics from the detailed files cited by the report, not a potentially
|
||||
# stale copy of the same numbers in the summary.
|
||||
resilience = [load('evidence/'+run['label']+'.json')
|
||||
for run in load('evidence/resilience-summary.json')]
|
||||
assert verification['all_passed'] and research['cache_improvement_confirmed']
|
||||
groups = research['groups']
|
||||
rows = ['### Измеренные результаты', '',
|
||||
|
||||
@@ -21,6 +21,7 @@ def main():
|
||||
('offline', ['scripts/check_contract.py']),
|
||||
('smoke', ['tests/smoke.py', '--base-url', base_url()]),
|
||||
('integration', ['student-tests/integration.py']),
|
||||
('review-regressions', ['student-tests/review_regressions.py']),
|
||||
('persistence', ['tests/resilience.py', '--mode', 'persistence', '--action-script', 'scripts/restart'+suffix, '--base-url', base_url()]),
|
||||
('failover', ['tests/resilience.py', '--mode', 'failover', '--action-script', 'scripts/stop-one'+suffix, '--base-url', base_url()]),
|
||||
('all-replica-failures', ['student-tests/resilience_load.py']),
|
||||
@@ -50,6 +51,8 @@ def main():
|
||||
result['containers'] = containers()
|
||||
result['all_passed'] = True
|
||||
(ROOT/'evidence'/'verification.json').write_text(json.dumps(result, indent=2)+'\n')
|
||||
# Keep the report synchronized whenever a new verification replaces raw data.
|
||||
subprocess.run([sys.executable, '-X', 'utf8', 'student-tests/summarize.py'], cwd=ROOT, check=True)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user