Validate final PNG workloads and retain applicable evidence

This commit is contained in:
Artyom
2026-11-06 22:21:55 +03:00
parent 5e49502ae7
commit 4ed889c1e4
77 changed files with 7407 additions and 51 deletions
+22 -7
View File
@@ -1,10 +1,25 @@
# Индекс доказательств ЛР4
Отчётный snapshot: `7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4`, 2026-11-06.
[REPORT](../REPORT.md) различает целевую «5» и ещё не завершённое динамическое подтверждение
после PNG-фиксов. Сырые измерения сохранены; этот индекс не объявляет их прогонами текущего HEAD.
Финальный validation snapshot: `5e49502ae78fa48b992c97418e490666c699726d`, 2026-11-06.
Runtime совпадает с review `7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4`;
[аудит применимости и новые проверки](load-validation.md). Сохранённые cost и текстовая
нагрузка приняты с исходными SHA. Старые upload-memory остаются историческими.
## Текущий код и оставшиеся проверки
## Финальная validation после PNG-фиксов
| Команда / назначение | Наблюдение | Файл |
| --- | --- | --- |
| `make student-test PYTEST_ARGS='-q --tb=short'`, затем адресный повтор двух S3-тестов | 719 PASS + 2 setup errors RustFS; только эти два повторены: 2 PASS. 721 выбранная проверка исполнена; первый запуск не объявлен зелёным | [полный](png-final-2026-11-06/student-test.txt), [повтор](png-final-2026-11-06/student-s3-retry.txt) |
| `make up`, `make test`, `scripts/limits.py` | Новый изолированный project, fresh volumes, штатные лимиты, smoke PASS | [up](png-final-2026-11-06/up.txt), [smoke](png-final-2026-11-06/smoke.txt), [лимиты](png-final-2026-11-06/limits.txt) |
| Прямой argv `make upload-faults`, новый путь захвата | 7 PASS; оба PNG → 415; негативный suite: 0×5xx | [raw](png-final-2026-11-06/upload-faults.txt) |
| `png-roundtrip.py` | 415 без новых строк/объектов; PNG/JPEG → 201 и побайтное скачивание | [raw](png-final-2026-11-06/png-roundtrip.json) |
| `make upload-memory ARGS='--slots 3 --out <новый-runN>'`, 3 серии | 18 точек, 840/840×201, API ≤440 MiB, LB ≤31,1 MiB, OOM 0 | [сводка](png-final-2026-11-06/memory-summary.json), [raw](png-final-2026-11-06/upload-memory/) |
| `high-depth.py` | 10 параллельных 40 MP RGBA16, 10×201, checksum совпал, API ≤270,828 MiB, OOM 0 | [raw](png-final-2026-11-06/high-depth.json) |
| `scripts/reconcile_check.py` после RAM | 859 ready = 859 объектов, расхождений/остатков нет; shallow | [raw](png-final-2026-11-06/post-memory-invariants.json) |
| `concurrent-reconcile.py` (только under_load) | 3341×201, 67 проходов, 3 orphan удалены; deep SHA/lost_ready=0. Pending инъекция 0 на пустом dataset, прежний сценарий F сохранён | [raw](png-final-2026-11-06/concurrent-reconcile/under-load.json), [oracle](png-final-2026-11-06/concurrent-reconcile/check-under-load.json) |
| Повторный аудит 27 cost-замеров | Приняты все 27; страницы/память подтверждены, линейность времени отвергнута | [аудит](png-final-2026-11-06/cost-reaudit.json), [diff/SHA](png-final-2026-11-06/retained-audit.json) |
## Offline-проверки до финальной validation
| Команда / назначение | Результат | SHA и файлы |
| --- | --- | --- |
@@ -12,13 +27,13 @@
| `make check`, `make validate`, `make lint`, `openspec validate --all --strict --no-interactive` после фикса | PASS, 18 спецификаций после архивации | Архив `7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4`; [протокол](png-header-fix/NOTES.md), [OpenSpec](png-header-fix/openspec-final.txt) |
| Статическое/offline-ревью runner, round3 | Открытых major нет, один minor; Docker/нагрузки не выполнялись | Результат передан runner для `7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4`; отдельного raw-файла ревью в репозитории нет |
| Документационный аудит: check/validate/lint/OpenSpec, числа, ссылки, diff | Проверки отчётного этапа отдельно от предыдущих тестов | [Аудит](report-audit-2026-11-06.md); исходный snapshot указан выше |
| Финальные API/LB/RustFS-регрессии, память нового инспектора и upload при сверке | **Ожидают назначенного финального этапа, не PASS** | [Общий долг двух PNG-фиксов](png-header-fix/NOTES.md#обязательные-проверки-финального-этапа) |
| Финальные API/LB/RustFS-регрессии, память нового инспектора и upload при сверке | Выполненные результаты финальной фазы вынесены выше и в аудит применимости | [Общий долг двух PNG-фиксов](png-header-fix/NOTES.md#обязательные-проверки-финального-этапа) |
Первый PNG-фикс: `9387c3d82ab77ea376eecce19a36a22803d35efb`,
[причина и offline-доказательства](png-validation-fix/NOTES.md).
Второй фикс требует единственный IHDR; вместе они добавляют распаковку PNG ограниченными
блоками. Все предыдущие upload-memory и конкурентные upload ниже относятся к старому
инспектору. Collection API/stack в `png-header-fix/` — сбор тестов, не их исполнение.
блоками. Все предыдущие upload-memory и конкурентные upload в исторических разделах ниже
относятся к старому инспектору. Collection API/stack в `png-header-fix/` — сбор тестов, не их исполнение.
## После позднего переноса ЛР3, до PNG-фиксов
+140
View File
@@ -0,0 +1,140 @@
# Аудит применимости нагрузки — 2026-11-06
Фаза VALIDATION, исходный HEAD `5e49502ae78fa48b992c97418e490666c699726d`.
Код совпадает с прошедшим review `7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4`:
diff содержит только девять Markdown-файлов. Публикация не разрешена.
## Решение до новых запусков
| Серия | Решение и основание |
| --- | --- |
| Текстовая нагрузка F, 3 повтора по 8 с / 64 клиента | Принять `forward-final-2026-11-06/load/`: измеренный SHA `75b93bbba5f29575d3fca1d013cc7e0770d88082`; после него в runtime изменились только PNG `images.py`/`png.py`. Текстовый путь, обвязка, зависимости, лимиты и LB неизменны. Повтор не нужен. |
| Стоимость reconciler, 27 замеров | Принять `sqlalchemy-2026-11-06/track5/measurements/cost/`, SHA `3402fd69d4922e500035a204d957be2cccaeb85a`. Изменения identity/messaging и PNG находятся вне измеряемого обхода; SQL/S3, миграции, зависимости, compose и драйвер cost неизменны. API/LB/Valkey были остановлены. HAProxy также менялся, но был остановлен и в обходе не участвовал. Сохраняются dataset 1k/10k/30k/100k, три повтора shallow/deep и page100 на 10k, закреплённые CPU и фильтр фона. Повтор не нужен. |
| Smoke, persistence/failover, скачивание, S3 IAM/bootstrap, отказы и механизмы reconciler | Принять прежние подтверждения неизменённых механизмов с исходными SHA. Новый smoke и upload faults нужны для интеграции PNG. Остальные сценарии автоматически не повторять. |
| Все прежние upload-memory, включая 64/3 | Исторические: новый PNG-инспектор распаковывает IDAT, прежние измерения не доказывают его память/производительность. Повторить только штатные 3 слота × 1/10 MiB × 10/20/40 клиентов × 3 серии; контроль 64 оставить историческим. |
| PNG 40 MP высокой глубины цвета, ≥10 клиентов | Подтверждений нет; выполнить отдельную серию с cgroup, OOM, кодами и проверкой исходных байтов. |
| Upload во время сверки | Повторить только `reconcile_track.under_load`, 75 с / 3 клиента, с deep-проверкой всех подтверждённых ready. Остальные части demo и cost не повторять. |
| Полные собственные тесты | После PNG-фиксов были только offline/collection; выполнить `make student-test` с реальными временными зависимостями. |
Перед Docker-этапом запущенных контейнеров нет; Docker VM: 16 CPU, 8 217 190 400 байт RAM.
Новый project `hlpipe-lab4-validation-20261106`, working_dir — основной репозиторий,
HTTP 18084, stats 24846, свежие volumes. Нагрузочные серии выполняются последовательно.
Секреты не выводятся. Остановка только собственных стендов, постоянные volumes сохраняются.
Эта таблица зафиксировала решение до запусков. Выполненные результаты приведены ниже.
Реализация, конфигурация, контракт и OpenSpec не менялись.
## Выполнено на итоговом runtime
- `make check`, `make validate`, `make lint` — PASS; OpenSpec strict — 18 PASS
([вывод](png-final-2026-11-06/offline.txt)). Новый OpenSpec-цикл не нужен:
реализация/требования не меняются, архивы обоих фиксов уже закрыты.
- `make student-test PYTEST_ARGS='-q --tb=short'`: 719 passed, 19 stack deselected,
2 setup errors: временный RustFS не ответил за 60 с. Причина не локализована, запуск
не объявляется полностью успешным. Повтор только двух неисполненных тестов с явными
NO_PROXY/no_proxy прошёл: 2 passed за 0,69 с. Итого 721 выбранная проверка исполнена
успешно, полного повторного прогона не было. [Первый запуск](png-final-2026-11-06/student-test.txt),
[повтор](png-final-2026-11-06/student-s3-retry.txt).
- `make up`, `make test`, проверка штатных лимитов — PASS. Два запущенных контейнера
содержат PNG-файлы с SHA-256, совпадающими с прошедшим review кодом.
[Образ](png-final-2026-11-06/image-code.txt), [настройки](png-final-2026-11-06/runtime-settings.txt).
- Прямой argv из `make upload-faults` с новым выходным путём: 7 PASS. Исторический
`evidence/upload-faults.txt` не перезаписан. Битый IDAT/повторный IHDR → 415; 54 ответа
негативного теста, 0×5xx. Компенсация, crash/grace, обрыв, stall и идущие медленные
передачи проверены через LB/RustFS. [Raw](png-final-2026-11-06/upload-faults.txt).
- Отдельные точные PNG из review: 415, до/после 7 строк и 7 объектов, расхождений нет.
Валидные PNG и JPEG → 201; второй участник получил идентичные байты с правильным MIME.
[Ответы/сверка](png-final-2026-11-06/png-roundtrip.json).
- 10 синхронно стартующих загрузок PNG RGBA16 8000×5000: 311 100 байт на проводе,
320 005 000 байт распакованных строк, Pillow.load независимо подтвердил файл до нагрузки.
10×201, 10 побайтных скачиваний, максимум API 283 983 872 байта (270,828 MiB)
при лимите 512 MiB; OOM/oom_kill/max = 0, LB 24,2 MiB.
[Драйвер](png-final-2026-11-06/high-depth.py), [raw](png-final-2026-11-06/high-depth.json).
Предварительные попытки `png-roundtrip.txt` и `high-depth.txt` завершились на регистрации
синтетического пользователя (недопустимый дефис / длина username >32), до загрузок/замера.
Исправлены только вспомогательные драйверы в evidence; приложение не менялось. Оба вывода
сохранены, повторные команды имеют суффикс `-retry`, успешные серии не повторялись.
## Новая матрица памяти
[Агрегатор](png-final-2026-11-06/summarize-memory.py) проверил 18 JSON, состав матрицы,
SHA, две обслуживающие реплики и число запросов: [сводка](png-final-2026-11-06/memory-summary.json).
Команды `make upload-memory ARGS='--slots 3 --out evidence/png-final-2026-11-06/upload-memory/runN'`
выполнены для N=1,2,3 ровно по одному разу; 6 точек на серию, два upload на клиента.
Входы — случайные RGB8 PNG из штатного генератора: 1 048 276 / 10 485 256 байт.
Два API по 1 CPU/512 MiB, два worker, 3 upload/2 image-check слота на worker;
MALLOC_MMAP_THRESHOLD_=131072. Перед каждой точкой API/LB пересозданы для нового cgroup peak.
Итог: **840/840×201**, ошибок/таймаутов/OOM-kill нет. API ≤440,0 MiB, LB ≤31,1 MiB
при лимитах 512/128 MiB. После серии shallow-аудит обнаружил ровно 859 ready и 859 объектов,
без pending/orphan/missing/size mismatch: [сверка](png-final-2026-11-06/post-memory-invariants.json).
Это сверка размеров/наличия, не повторное хеширование всех крупных объектов.
| PNG / клиенты | API peak по повторам, MiB | p95 по повторам, мс | Успехи |
| --- | --- | --- | ---: |
| ~1 MiB / 10 | 278,3 / 279,8 / 279,4 | 134,3 / 241,0 / 257,7 | 60/60 |
| ~1 MiB / 20 | 283,4 / 284,4 / 284,5 | 243,8 / 310,2 / 226,6 | 120/120 |
| ~1 MiB / 40 | 289,5 / 290,4 / 289,4 | 373,4 / 417,6 / 367,6 | 240/240 |
| ~10 MiB / 10 | 394,8 / 391,3 / 391,8 | 1236,1 / 3287,8 / 1520,3 | 60/60 |
| ~10 MiB / 20 | 427,6 / 440,0 / 425,0 | 2514,0 / 2632,8 / 3632,6 | 120/120 |
| ~10 MiB / 40 | 439,2 / 428,9 / 438,4 | 6534,9 / 4256,0 / 5971,4 | 240/240 |
[Фон до](png-final-2026-11-06/host-before.txt), во время
[1](png-final-2026-11-06/host-memory-1.txt), [2](png-final-2026-11-06/host-memory-2.txt),
[3](png-final-2026-11-06/host-memory-3.txt), [после](png-final-2026-11-06/host-after-memory.txt):
только собственные контейнеры. Functional tests/build завершились до нагрузочных серий.
macOS, частоты, файловый кэш и диск физического хоста не изолированы; результаты не SLO
и не предел архитектуры. Высокая глубина проверена на одном сильно сжатом RGBA16-паттерне;
он не представляет все допустимые PNG. Старый контроль 64/3 не выдаётся за современный A/B.
Для конкурентной сверки выбран второй свежий project
`hlpipe-lab4-validation-reconcile-20261106` с тем же проверенным образом и штатными ресурсами.
Первый project остановлен командой `make down` без удаления volumes. Отдельный dataset
сохраняет методику tiny-PNG 75 с / 3 потока и не добавляет к deep-аудиту 840 крупных объектов
из независимого опыта RAM. Это единственный новый запуск затронутой части demo.
## Конкурентная сверка и итог применимости
[Команда](png-final-2026-11-06/concurrent-reconcile.txt) вызывает только
`reconcile_track.under_load`: 75 с, 3 потока, tiny PNG 8×8, привязка каждого десятого
вложения к сообщению. **3341/3341×201**, 67 проходов `--apply`, errors=0/skipped=0.
Удалены только 3 внедрённых старых orphan. Независимый deep-аудит всех 3341 ready
подтвердил SHA-256, lost_ready=0; хеширование заняло 65,637 с и не включено в 75 с загрузок.
[Raw](png-final-2026-11-06/concurrent-reconcile/under-load.json),
[ожидаемые id/SHA](png-final-2026-11-06/concurrent-reconcile/ready-load.json),
[oracle](png-final-2026-11-06/concurrent-reconcile/check-under-load.json).
Ограничение выборочного запуска: до нагрузки новый bucket/attachments были пусты,
поэтому `reconcile-inject.sh stale-pending` не нашёл базовую строку chat/owner и создал
**0**, а не запрошенные 3 pending. Raw это показывает. Новый результат не доказывает
очистку внедрённых pending под нагрузкой; эта незатронутая часть сохраняется из
[прежнего полного demo](forward-final-2026-11-06/reconcile-demo/under-load.json).
Затронутый PNG-путь и сохранность всех 201 подтверждены, повторять успешную серию
не требуется, поскольку механизм удаления pending не изменялся. Наблюдения свежих объектов/намерений также есть в raw.
[Фон](png-final-2026-11-06/host-reconcile.txt) и
[после](png-final-2026-11-06/host-after-reconcile.txt): только собственный project.
Строка `-- 0.00% 0B / 0B` в docker stats не содержит имени контейнера и
не используется для расчётов. После нагрузки публичный smoke прошёл.
Все обязательные затронутые сценарии закрыты. Приняты новые 18 точек RAM, один опыт
40 MP и один опыт upload+reconcile; пригодные 3 текстовых и 27 cost-прогонов не повторялись.
Открытых major не выявлено. Сохранён известный minor Unicode-surrogate → HTTP 500
([finding](png-final-2026-11-06/findings.json)); он отражён в ограничениях REPORT.
Отрицательный вывод о линейном времени и разброс deep 100k сохранены.
Context7 `/docker/compose` использован для проверки изоляции project и поведения
[down без --volumes](https://github.com/docker/compose/blob/main/docs/reference/compose_down.md).
PUBLICATION не разрешена, push и Telegram не выполнялись.
Оба своих project завершены `make down` без `-v`; проверены labels: контейнеров 0,
по три постоянных volume на project, всего шесть. Временных test fixtures не осталось.
[Инвентаризация](png-final-2026-11-06/shutdown-state.txt),
[основной down](png-final-2026-11-06/main-down.txt),
[reconcile down](png-final-2026-11-06/reconcile-down.txt).
Финальный аудит ссылок/JSON/границ изменений и шаблонов секретов: [вывод](png-final-2026-11-06/final-audit.txt).
Найден только известный синтетический invalid-bearer из исторического тестового лога;
реальные секреты не найдены, `.env`, `secrets/`, `volumes/` не tracked. Значения не выводились.
В новых `.txt` удалены только хвостовые пробелы; числа, порядок строк и JSON не менялись.
@@ -0,0 +1,16 @@
import json
import os
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
sys.path.insert(0, str(ROOT / "scripts"))
import reconcile_track as track
track.evidence_root().mkdir(parents=True, exist_ok=False)
check = track.Checks()
client = track.client.Client(os.environ["BASE_URL"], timeout=30)
track.under_load(client, check, os.environ["BASE_URL"], 75, 3)
track.save("checks.json", {"ok": check.ok, "checks": check.items})
print(json.dumps({"ok": check.ok, "checks": len(check.items)}))
sys.exit(0 if check.ok else 1)
@@ -0,0 +1,7 @@
date: 2026-11-06T19:15:21Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "RECONCILE_EVIDENCE_DIR": "evidence/png-final-2026-11-06/concurrent-reconcile", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-validation-20261106"}
$ python3 evidence/png-final-2026-11-06/concurrent-reconcile.py
PASS под нагрузкой: исправлены только внедрённые, ошибок нет
PASS под нагрузкой: все 201 готовы и совпадают по SHA-256, потерь 0
{"ok": true, "checks": 2}
exit_code: 0 elapsed_seconds: 144.912
@@ -0,0 +1,33 @@
{
"checked_at": "2026-11-06T19:17:46Z",
"grace_seconds": 60,
"deep": true,
"objects": 3341,
"rows": 3341,
"ready_healthy": 3341,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
},
"samples": {},
"seconds": {
"s3_list": 0.602,
"s3_incomplete": 0.34,
"pg_query": 0.133,
"deep_hash": 65.637,
"total": 66.719
},
"violations": [],
"ok": true
}
@@ -0,0 +1,27 @@
{
"date": "2026-11-06T19:17:46Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"ok": true,
"checks": [
{
"name": "под нагрузкой: исправлены только внедрённые, ошибок нет",
"ok": true,
"fixed": {
"orphan_stale": 3,
"missing": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale": 0
},
"runs": 67
},
{
"name": "под нагрузкой: все 201 готовы и совпадают по SHA-256, потерь 0",
"ok": true,
"uploads": {
"201": 3341
},
"lost_ready": 0
}
]
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,126 @@
{
"date": "2026-11-06T19:17:46Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"seconds": 75,
"upload_threads": 3,
"uploads": {
"201": 3341
},
"created": 3341,
"linked_every": 10,
"reconciler_runs": 67,
"run_seconds": [
0.025,
0.032,
0.031,
0.036,
0.04,
0.048,
0.049,
0.058,
0.067,
0.067,
0.071,
0.067,
0.08,
0.084,
0.089,
0.088,
0.094,
0.1,
0.108,
0.105,
0.115,
0.115,
0.122,
0.127,
0.134,
0.142,
0.148,
0.146,
0.148,
0.144,
0.15,
0.157,
0.169,
0.166,
0.173,
0.179,
0.186,
0.194,
0.235,
0.201,
0.205,
0.222,
0.228,
0.225,
0.232,
0.247,
0.241,
0.258,
0.252,
0.266,
0.273,
0.246,
0.269,
0.266,
0.304,
0.284,
0.298,
0.294,
0.293,
0.315,
0.314,
0.331,
0.33,
0.318,
0.339,
0.348,
0.351
],
"fixed_total": {
"orphan_stale": 3,
"missing": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale": 0
},
"fresh_seen_total": {
"orphan_fresh": 162,
"pending_fresh": 29
},
"rechecked_total": {
"missing": 107
},
"errors": 0,
"skipped": 0,
"injected_before_load": {
"orphan": 3,
"pending_stale": 0
},
"left_from_faults": {
"orphan_stale": 0,
"pending_stale": 0
},
"check_after": {
"objects": 3341,
"rows": 3341,
"ready_healthy": 3341,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
},
"ok": true
}
}
@@ -0,0 +1,401 @@
{
"current_commit": "3402fd69d4922e500035a204d957be2cccaeb85a",
"baseline_commit": "61dcb6b",
"accepted": 27,
"rejected_files": 0,
"requests_and_consistency_verified_for_every_raw_run": true,
"h2": {
"t100k_over_t10k": 20.235235235235233,
"within_7_to_13": false,
"rss100k_over_rss1k": 1.01183970856102,
"rss_growth_below_10_percent": true,
"deep_over_shallow": {
"1000": 4.663551401869159,
"10000": 5.003003003003003,
"30000": 4.350180505415162,
"100000": 5.48651991095721
},
"deep_at_least_tenfold": false
},
"comparison": [
{
"objects": 1000,
"mode": "deep",
"runs": 3,
"seconds_median": 0.499,
"seconds_all": [
0.498,
0.499,
0.536
],
"wall_seconds_median": 1.477,
"us_per_object": 499.0,
"cpu_seconds_median": 0.995,
"s3_list_wait_median": 0.088,
"sql_wait_median": 0.012,
"requests": {
"s3_list": 1,
"s3_head": 0,
"s3_get": 1000,
"s3_delete": 0,
"sql": 1
},
"max_rss_mib_median": 110.2,
"other_cores_max": 0.25,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 1000,
"rows": 1000
},
"found_nonzero": {},
"seconds_range": [
0.498,
0.536
],
"spread_percent": 7.62,
"historical_seconds": 0.546,
"historical_rss_mib": 87.4,
"time_ratio_to_historical": 0.9139194139194139,
"rss_ratio_to_historical": 1.2608695652173914
},
{
"objects": 1000,
"mode": "shallow",
"runs": 3,
"seconds_median": 0.107,
"seconds_all": [
0.113,
0.107,
0.105
],
"wall_seconds_median": 1.041,
"us_per_object": 107.0,
"cpu_seconds_median": 0.56,
"s3_list_wait_median": 0.087,
"sql_wait_median": 0.011,
"requests": {
"s3_list": 1,
"s3_head": 0,
"s3_get": 0,
"s3_delete": 0,
"sql": 1
},
"max_rss_mib_median": 109.8,
"other_cores_max": 0.0,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 1000,
"rows": 1000
},
"found_nonzero": {},
"seconds_range": [
0.105,
0.113
],
"spread_percent": 7.48,
"historical_seconds": 0.108,
"historical_rss_mib": 86.9,
"time_ratio_to_historical": 0.9907407407407407,
"rss_ratio_to_historical": 1.2635212888377445
},
{
"objects": 10000,
"mode": "deep",
"runs": 3,
"seconds_median": 4.998,
"seconds_all": [
4.998,
4.972,
5.041
],
"wall_seconds_median": 5.926,
"us_per_object": 499.8,
"cpu_seconds_median": 4.808,
"s3_list_wait_median": 0.932,
"sql_wait_median": 0.081,
"requests": {
"s3_list": 10,
"s3_head": 0,
"s3_get": 10000,
"s3_delete": 0,
"sql": 10
},
"max_rss_mib_median": 111.3,
"other_cores_max": 0.0,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 10000,
"rows": 10000
},
"found_nonzero": {},
"seconds_range": [
4.972,
5.041
],
"spread_percent": 1.38,
"historical_seconds": 5.041,
"historical_rss_mib": 88.5,
"time_ratio_to_historical": 0.9914699464391985,
"rss_ratio_to_historical": 1.2576271186440677
},
{
"objects": 10000,
"mode": "page100",
"runs": 3,
"seconds_median": 2.037,
"seconds_all": [
2.035,
2.113,
2.037
],
"wall_seconds_median": 3.042,
"us_per_object": 203.7,
"cpu_seconds_median": 0.942,
"s3_list_wait_median": 1.897,
"sql_wait_median": 0.127,
"requests": {
"s3_list": 100,
"s3_head": 0,
"s3_get": 0,
"s3_delete": 0,
"sql": 100
},
"max_rss_mib_median": 107.9,
"other_cores_max": 0.0,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 10000,
"rows": 10000
},
"found_nonzero": {},
"seconds_range": [
2.035,
2.113
],
"spread_percent": 3.83,
"historical_seconds": 2.031,
"historical_rss_mib": 85.6,
"time_ratio_to_historical": 1.0029542097488922,
"rss_ratio_to_historical": 1.2605140186915889
},
{
"objects": 10000,
"mode": "shallow",
"runs": 3,
"seconds_median": 0.999,
"seconds_all": [
0.999,
0.996,
1.077
],
"wall_seconds_median": 1.942,
"us_per_object": 99.9,
"cpu_seconds_median": 0.865,
"s3_list_wait_median": 0.907,
"sql_wait_median": 0.079,
"requests": {
"s3_list": 10,
"s3_head": 0,
"s3_get": 0,
"s3_delete": 0,
"sql": 10
},
"max_rss_mib_median": 110.9,
"other_cores_max": 0.19,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 10000,
"rows": 10000
},
"found_nonzero": {},
"seconds_range": [
0.996,
1.077
],
"spread_percent": 8.11,
"historical_seconds": 1.032,
"historical_rss_mib": 88.3,
"time_ratio_to_historical": 0.9680232558139534,
"rss_ratio_to_historical": 1.2559456398640998
},
{
"objects": 30000,
"mode": "deep",
"runs": 3,
"seconds_median": 15.665,
"seconds_all": [
15.665,
15.779,
15.63
],
"wall_seconds_median": 16.631,
"us_per_object": 522.2,
"cpu_seconds_median": 13.503,
"s3_list_wait_median": 3.461,
"sql_wait_median": 0.204,
"requests": {
"s3_list": 30,
"s3_head": 0,
"s3_get": 30000,
"s3_delete": 0,
"sql": 30
},
"max_rss_mib_median": 111.6,
"other_cores_max": 0.0,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 30000,
"rows": 30000
},
"found_nonzero": {},
"seconds_range": [
15.63,
15.779
],
"spread_percent": 0.95,
"historical_seconds": 15.903,
"historical_rss_mib": 88.6,
"time_ratio_to_historical": 0.9850342702634722,
"rss_ratio_to_historical": 1.2595936794582392
},
{
"objects": 30000,
"mode": "shallow",
"runs": 3,
"seconds_median": 3.601,
"seconds_all": [
3.567,
3.601,
3.633
],
"wall_seconds_median": 4.58,
"us_per_object": 120.0,
"cpu_seconds_median": 1.495,
"s3_list_wait_median": 3.382,
"sql_wait_median": 0.176,
"requests": {
"s3_list": 30,
"s3_head": 0,
"s3_get": 0,
"s3_delete": 0,
"sql": 30
},
"max_rss_mib_median": 110.9,
"other_cores_max": 0.0,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 30000,
"rows": 30000
},
"found_nonzero": {},
"seconds_range": [
3.567,
3.633
],
"spread_percent": 1.83,
"historical_seconds": 3.761,
"historical_rss_mib": 88.4,
"time_ratio_to_historical": 0.9574581228396702,
"rss_ratio_to_historical": 1.254524886877828
},
{
"objects": 100000,
"mode": "deep",
"runs": 3,
"seconds_median": 110.91,
"seconds_all": [
147.215,
110.91,
58.661
],
"wall_seconds_median": 115.348,
"us_per_object": 1109.1,
"cpu_seconds_median": 83.969,
"s3_list_wait_median": 35.014,
"sql_wait_median": 1.199,
"requests": {
"s3_list": 100,
"s3_head": 0,
"s3_get": 100000,
"s3_delete": 0,
"sql": 100
},
"max_rss_mib_median": 111.4,
"other_cores_max": 0.16,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 100000,
"rows": 100000
},
"found_nonzero": {},
"seconds_range": [
58.661,
147.215
],
"spread_percent": 79.84,
"historical_seconds": 60.637,
"historical_rss_mib": 88.5,
"time_ratio_to_historical": 1.829081254019823,
"rss_ratio_to_historical": 1.2587570621468926
},
{
"objects": 100000,
"mode": "shallow",
"runs": 3,
"seconds_median": 20.215,
"seconds_all": [
21.335,
20.215,
20.206
],
"wall_seconds_median": 21.18,
"us_per_object": 202.2,
"cpu_seconds_median": 3.708,
"s3_list_wait_median": 19.538,
"sql_wait_median": 0.64,
"requests": {
"s3_list": 100,
"s3_head": 0,
"s3_get": 0,
"s3_delete": 0,
"sql": 100
},
"max_rss_mib_median": 111.1,
"other_cores_max": 0.0,
"other_on_pinned_cores_max": 0.0,
"disturbed_kept": 0,
"rejected": 0,
"scanned": {
"objects": 100000,
"rows": 100000
},
"found_nonzero": {},
"seconds_range": [
20.206,
21.335
],
"spread_percent": 5.58,
"historical_seconds": 20.211,
"historical_rss_mib": 88.4,
"time_ratio_to_historical": 1.0001979120281035,
"rss_ratio_to_historical": 1.2567873303167418
}
],
"limitation": "Historical comparison is not an isolated causal A/B experiment; warm seeded data in Docker Desktop."
}
@@ -0,0 +1,25 @@
date: 2026-11-06T19:10:34Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {}
$ .venv/bin/python tools/summarize_reconciler.py evidence/sqlalchemy-2026-11-06/track5/measurements/cost evidence/reconcile/cost/summary.json --out evidence/png-final-2026-11-06/cost-reaudit.json
{
"current_commit": "3402fd69d4922e500035a204d957be2cccaeb85a",
"baseline_commit": "61dcb6b",
"accepted": 27,
"rejected_files": 0,
"requests_and_consistency_verified_for_every_raw_run": true,
"h2": {
"t100k_over_t10k": 20.235235235235233,
"within_7_to_13": false,
"rss100k_over_rss1k": 1.01183970856102,
"rss_growth_below_10_percent": true,
"deep_over_shallow": {
"1000": 4.663551401869159,
"10000": 5.003003003003003,
"30000": 4.350180505415162,
"100000": 5.48651991095721
},
"deep_at_least_tenfold": false
},
"limitation": "Historical comparison is not an isolated causal A/B experiment; warm seeded data in Docker Desktop."
}
exit_code: 0 elapsed_seconds: 0.036
@@ -0,0 +1,90 @@
import json
import re
import subprocess
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
review = "7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4"
def git(*args):
return subprocess.check_output(["git", *args], cwd=ROOT, text=True).splitlines()
tracked = git("ls-files")
untracked = git("ls-files", "--others", "--exclude-standard")
changed = git("diff", "--name-only", "HEAD") + untracked
assert all(p in ("REPORT.md", "AGENTS.md") or p.startswith("evidence/") for p in changed)
protected = [
"src",
"infra",
"alembic",
"scripts",
"student-tests",
"contracts",
"tests",
"README.md",
"COURSE.md",
"compose.yaml",
"Dockerfile",
"pyproject.toml",
"uv.lock",
"openspec",
]
assert not git("diff", "--name-only", review, "--", *protected)
assert not [p for p in tracked + untracked if p == ".env" or p.startswith(("secrets/", "volumes/"))]
patterns = {
"private_key": r"-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----",
"github_token": r"\b(?:gh[pousr]_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{60,})\b",
"telegram_token": r"\b[0-9]{8,12}:[A-Za-z0-9_-]{30,50}\b",
"aws_access_id": r"\b(?:AKIA|ASIA)[A-Z0-9]{16}\b",
"s3_access_id": r"\b(?:api|root|rec)[0-9a-f]{16}\b",
"bearer_value": r"(?i)Bearer\s+[A-Za-z0-9_=-]{30,}",
}
matches, synthetic = [], []
files = sorted(set(tracked + untracked))
for name in files:
path = ROOT / name
if not path.is_file():
continue
contents = path.read_text(errors="replace")
for pattern_name, pattern in patterns.items():
for match in re.finditer(pattern, contents):
item = {
"file": name,
"line": contents.count("\n", 0, match.start()) + 1,
"pattern": pattern_name,
}
if name == "evidence/student-tests.txt" and match[0] == "Bearer " + "x" * 43:
synthetic.append(
{**item, "reason": "known invalid bearer fixture in test_negative.py"}
)
else:
matches.append(item)
assert not matches, matches
docs = [
ROOT / p
for p in ("REPORT.md", "AGENTS.md", "evidence/README.md", "evidence/load-validation.md")
]
links = 0
for path in docs:
for target in re.findall(r"\[[^\]]*\]\(([^)]+)\)", path.read_text()):
if target.startswith(("https://", "http://", "#", "mailto:")):
continue
local = target.split("#", 1)[0].strip("<>")
assert (path.parent / local).exists(), (str(path), local)
links += 1
json_files = [p for p in files if p.endswith(".json")]
for name in json_files:
json.loads((ROOT / name).read_text())
report = {
"head": git("rev-parse", "HEAD")[0],
"review_runtime_unchanged": True,
"only_allowed_changes": True,
"scanned_files": len(files),
"secret_pattern_matches": matches,
"known_synthetic_matches": synthetic,
"local_links_checked": links,
"json_files_checked": len(json_files),
}
print(json.dumps(report, ensure_ascii=False, indent=2))
@@ -0,0 +1,21 @@
date: 2026-11-06T19:20:44Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {}
$ python3 evidence/png-final-2026-11-06/final-audit.py
{
"head": "5e49502ae78fa48b992c97418e490666c699726d",
"review_runtime_unchanged": true,
"only_allowed_changes": true,
"scanned_files": 955,
"secret_pattern_matches": [],
"known_synthetic_matches": [
{
"file": "evidence/student-tests.txt",
"line": 164,
"pattern": "bearer_value",
"reason": "known invalid bearer fixture in test_negative.py"
}
],
"local_links_checked": 219,
"json_files_checked": 305
}
exit_code: 0 elapsed_seconds: 0.346
@@ -0,0 +1,6 @@
date: 2026-11-06T19:18:47Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "RECONCILE_EVIDENCE_DIR": "evidence/png-final-2026-11-06/concurrent-reconcile", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-validation-20261106"}
$ make test
python3 tests/smoke.py --base-url "http://127.0.0.1:18084"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
exit_code: 0 elapsed_seconds: 0.394
@@ -0,0 +1,7 @@
[
{
"severity": "minor",
"file": "src/messenger/messaging/entrypoints/schemas.py:35",
"problem": "Непарные Unicode-суррогаты в text вызывают HTTP 500. Код неизменён; evidence/forward-final-2026-11-06/known-minor-http.txt и review 7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4. Сохранено в REPORT; не блокирует validation по правилу пользователя."
}
]
@@ -0,0 +1,5 @@
date: 2026-11-06T19:09:58Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/python evidence/png-final-2026-11-06/high-depth.py
{"ok": true, "body_bytes": 311100, "decompressed_bytes": 320005000, "memory": {"9ad1dd66a1af": {"idle_bytes": 242806784, "peak_bytes": 283234304, "limit_bytes": 536870912, "events": {"low": "0", "high": "0", "max": "0", "oom": "0", "oom_kill": "0", "oom_group_kill": "0"}}, "133c1a16537c": {"idle_bytes": 243269632, "peak_bytes": 283983872, "limit_bytes": 536870912, "events": {"low": "0", "high": "0", "max": "0", "oom": "0", "oom_kill": "0", "oom_group_kill": "0"}}}, "lb": {"cgroup_memory_peak_mib": 24.2, "oom_kill": 0}}
exit_code: 0 elapsed_seconds: 9.802
@@ -0,0 +1,299 @@
{
"date": "2026-11-06T19:10:07Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"width": 8000,
"height": 5000,
"bit_depth": 16,
"color_type": 6,
"decompressed_bytes": 320005000,
"body_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"independent_pillow_load": true,
"concurrency": 10,
"upload_slots_per_worker": 3,
"results": [
{
"status": 201,
"seconds": 1.304,
"instance": "9ad1dd66a1af",
"response": {
"id": "01a1b244-a7cb-705a-ac19-df01506bc157",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-0.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:06.283119Z",
"updated_at": "2026-11-06T19:10:06.297045Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 2.095,
"instance": "133c1a16537c",
"response": {
"id": "01a1b244-ab24-7640-a6bb-e9ada4045a0f",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-1.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:07.140642Z",
"updated_at": "2026-11-06T19:10:07.146882Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 1.419,
"instance": "9ad1dd66a1af",
"response": {
"id": "01a1b244-a879-75d5-a283-d59eab042f00",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-2.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:06.457306Z",
"updated_at": "2026-11-06T19:10:06.469651Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 2.336,
"instance": "133c1a16537c",
"response": {
"id": "01a1b244-ac15-74ee-a8dd-3bfd96b1d08b",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-3.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:07.381422Z",
"updated_at": "2026-11-06T19:10:07.387669Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 2.104,
"instance": "9ad1dd66a1af",
"response": {
"id": "01a1b244-ab00-716a-968b-b022e42aa37a",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-4.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:07.104582Z",
"updated_at": "2026-11-06T19:10:07.110278Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 2.001,
"instance": "133c1a16537c",
"response": {
"id": "01a1b244-aac6-70cc-afca-4636b226e9fa",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-5.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:07.046755Z",
"updated_at": "2026-11-06T19:10:07.053174Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 1.903,
"instance": "133c1a16537c",
"response": {
"id": "01a1b244-aa5b-738a-b207-9d54f2b4b449",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-6.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:06.939993Z",
"updated_at": "2026-11-06T19:10:06.953987Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 1.434,
"instance": "9ad1dd66a1af",
"response": {
"id": "01a1b244-a88f-7360-ad8f-ad425bee3bc5",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-7.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:06.479210Z",
"updated_at": "2026-11-06T19:10:06.485455Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 1.91,
"instance": "133c1a16537c",
"response": {
"id": "01a1b244-aa63-72da-b7a4-fb7e34eed4d4",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-8.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:06.947696Z",
"updated_at": "2026-11-06T19:10:06.960764Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
},
{
"status": 201,
"seconds": 2.195,
"instance": "9ad1dd66a1af",
"response": {
"id": "01a1b244-ab88-77a2-a94e-4c6d72d3a027",
"chat_id": "01a1b244-a232-7199-9e9d-65500a47f701",
"owner_id": "01a1b244-a1d2-74c2-8a94-6ff37445a66f",
"filename": "rgba16-9.png",
"content_type": "image/png",
"size_bytes": 311100,
"sha256": "1453d745ff4032d153ef630a953512226b0690f222b781423ea52461ddcd214f",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:10:07.240920Z",
"updated_at": "2026-11-06T19:10:07.247037Z"
},
"download": {
"status": 200,
"sha256_matches": true,
"bytes": 311100,
"content_type": "image/png"
}
}
],
"memory": {
"9ad1dd66a1af": {
"idle_bytes": 242806784,
"peak_bytes": 283234304,
"limit_bytes": 536870912,
"events": {
"low": "0",
"high": "0",
"max": "0",
"oom": "0",
"oom_kill": "0",
"oom_group_kill": "0"
}
},
"133c1a16537c": {
"idle_bytes": 243269632,
"peak_bytes": 283983872,
"limit_bytes": 536870912,
"events": {
"low": "0",
"high": "0",
"max": "0",
"oom": "0",
"oom_kill": "0",
"oom_group_kill": "0"
}
}
},
"lb": {
"cgroup_memory_peak_mib": 24.2,
"oom_kill": 0
},
"ok": true
}
+116
View File
@@ -0,0 +1,116 @@
import io
import json
import os
import struct
import sys
import threading
import time
import zlib
from concurrent.futures import ThreadPoolExecutor
from hashlib import sha256
from pathlib import Path
from PIL import Image
ROOT = Path(__file__).resolve().parents[2]
sys.path.insert(0, str(ROOT / "scripts"))
import lab4_seed as seed
import upload_memory as memory
out = Path(__file__).with_name("high-depth.json")
assert not out.exists()
compressor = zlib.compressobj(9)
row = bytes(1 + 8000 * 8)
compressed = b"".join(compressor.compress(row) for _ in range(5000)) + compressor.flush()
body = (
b"\x89PNG\r\n\x1a\n"
+ seed.chunk(b"IHDR", struct.pack(">IIBBBBB", 8000, 5000, 16, 6, 0, 0, 0))
+ seed.chunk(b"IDAT", compressed)
+ seed.chunk(b"IEND", b"")
)
with Image.open(io.BytesIO(body)) as decoded:
decoded.load()
assert decoded.size == (8000, 5000)
digest = sha256(body).hexdigest()
memory.recreate(3)
api = seed.Http(os.environ["BASE_URL"], 60)
alice, token = seed.login(api, "high_alice")
bob, bob_token = seed.login(api, "high_bob")
status, _, data = api.call(
"POST", "/api/v1/chats", {"title": "high-depth", "member_ids": [alice, bob]}, token=token
)
assert status == 201
chat = json.loads(data)["id"]
containers = seed.run(["docker", "compose", "ps", "-q", "api"]).split()
idle = {cid: int(seed.cgroup(cid, "memory.current")) for cid in containers}
barrier = threading.Barrier(10)
def upload(index):
barrier.wait()
started = time.monotonic()
status, headers, data = api.call(
"POST",
f"/api/v1/chats/{chat}/attachments?filename=rgba16-{index}.png",
body,
{"Content-Type": "image/png"},
token,
)
return {
"status": status,
"seconds": round(time.monotonic() - started, 3),
"instance": headers.get("x-instance-id"),
"response": json.loads(data) if data else None,
}
with ThreadPoolExecutor(max_workers=10) as workers:
results = list(workers.map(upload, range(10)))
peaks = {
cid[:12]: {
"idle_bytes": idle[cid],
"peak_bytes": int(seed.cgroup(cid, "memory.peak")),
"limit_bytes": int(seed.cgroup(cid, "memory.max")),
"events": dict(row.split() for row in seed.cgroup(cid, "memory.events").splitlines()),
}
for cid in containers
}
for result in results:
if result["status"] == 201:
attachment = result["response"]
status, headers, downloaded = api.call(
"GET", f"/api/v1/attachments/{attachment['id']}/content", token=bob_token
)
result["download"] = {
"status": status,
"sha256_matches": sha256(downloaded).hexdigest() == digest,
"bytes": len(downloaded),
"content_type": headers.get("content-type"),
}
report = {
"date": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()),
"commit": seed.run(["git", "rev-parse", "HEAD"]).strip(),
"width": 8000,
"height": 5000,
"bit_depth": 16,
"color_type": 6,
"decompressed_bytes": len(row) * 5000,
"body_bytes": len(body),
"sha256": digest,
"independent_pillow_load": True,
"concurrency": 10,
"upload_slots_per_worker": 3,
"results": results,
"memory": peaks,
"lb": memory.balancer(),
}
report["ok"] = all(
r["status"] == 201 and r.get("download", {}).get("sha256_matches") for r in results
) and all(
p["peak_bytes"] < p["limit_bytes"] and int(p["events"]["oom_kill"]) == 0 for p in peaks.values()
)
out.write_text(json.dumps(report, ensure_ascii=False, indent=2) + "\n")
print(
json.dumps({k: report[k] for k in ("ok", "body_bytes", "decompressed_bytes", "memory", "lb")})
)
sys.exit(0 if report["ok"] else 1)
@@ -0,0 +1,5 @@
date: 2026-11-06T19:09:33Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/python evidence/png-final-2026-11-06/high-depth.py
user create failed: 400
exit_code: 1 elapsed_seconds: 6.418
@@ -0,0 +1,17 @@
date: 2026-11-06T19:14:30Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ sh -c 'uptime; docker ps --format "{{.Names}} {{.Status}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
22:14 up 37 days, 21:26, 6 users, load averages: 2.51 2.38 2.22
hlpipe-lab4-validation-20261106-api-2 Up 19 seconds (healthy)
hlpipe-lab4-validation-20261106-api-1 Up 19 seconds (healthy)
hlpipe-lab4-validation-20261106-lb-1 Up 19 seconds (healthy)
hlpipe-lab4-validation-20261106-postgres-1 Up 7 minutes (healthy)
hlpipe-lab4-validation-20261106-s3-1 Up 7 minutes (healthy)
hlpipe-lab4-validation-20261106-valkey-1 Up 7 minutes (healthy)
hlpipe-lab4-validation-20261106-api-2 0.77% 227.7MiB / 512MiB
hlpipe-lab4-validation-20261106-api-1 0.52% 227.9MiB / 512MiB
hlpipe-lab4-validation-20261106-lb-1 0.42% 16.78MiB / 128MiB
hlpipe-lab4-validation-20261106-postgres-1 0.11% 47.91MiB / 1GiB
hlpipe-lab4-validation-20261106-s3-1 1.19% 235.4MiB / 512MiB
hlpipe-lab4-validation-20261106-valkey-1 0.20% 13.61MiB / 128MiB
exit_code: 0 elapsed_seconds: 2.615
@@ -0,0 +1,17 @@
date: 2026-11-06T19:18:20Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "RECONCILE_EVIDENCE_DIR": "evidence/png-final-2026-11-06/concurrent-reconcile", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-validation-20261106"}
$ sh -c 'uptime; docker ps --format "{{.Names}} {{.Status}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
22:18 up 37 days, 21:30, 6 users, load averages: 2.38 2.49 2.30
hlpipe-lab4-validation-reconcile-20261106-api-2 Up 3 minutes (healthy)
hlpipe-lab4-validation-reconcile-20261106-api-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-reconcile-20261106-postgres-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-reconcile-20261106-lb-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-reconcile-20261106-valkey-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-reconcile-20261106-s3-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-reconcile-20261106-api-2 13.84% 268.4MiB / 512MiB
hlpipe-lab4-validation-reconcile-20261106-api-1 13.54% 268.2MiB / 512MiB
hlpipe-lab4-validation-reconcile-20261106-postgres-1 0.20% 55.66MiB / 1GiB
hlpipe-lab4-validation-reconcile-20261106-lb-1 0.19% 17.22MiB / 128MiB
hlpipe-lab4-validation-reconcile-20261106-valkey-1 1.34% 13.63MiB / 128MiB
hlpipe-lab4-validation-reconcile-20261106-s3-1 1.24% 160.4MiB / 512MiB
exit_code: 0 elapsed_seconds: 2.653
@@ -0,0 +1,18 @@
date: 2026-11-06T19:08:38Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ sh -c 'docker info --format "cpus={{.NCPU}} memory={{.MemTotal}}"; uptime; docker ps --format "{{.Names}} {{.Status}} {{.Ports}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
cpus=16 memory=8217190400
22:08 up 37 days, 21:20, 6 users, load averages: 3.68 2.36 2.14
hlpipe-lab4-validation-20261106-api-2 Up 49 seconds (healthy)
hlpipe-lab4-validation-20261106-api-1 Up 51 seconds (healthy)
hlpipe-lab4-validation-20261106-postgres-1 Up About a minute (healthy)
hlpipe-lab4-validation-20261106-lb-1 Up About a minute (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24846->8404/tcp
hlpipe-lab4-validation-20261106-s3-1 Up About a minute (healthy)
hlpipe-lab4-validation-20261106-valkey-1 Up About a minute (healthy)
hlpipe-lab4-validation-20261106-api-2 1.06% 265.6MiB / 512MiB
hlpipe-lab4-validation-20261106-api-1 13.15% 264.6MiB / 512MiB
hlpipe-lab4-validation-20261106-postgres-1 0.20% 53.68MiB / 1GiB
hlpipe-lab4-validation-20261106-lb-1 1.09% 20.36MiB / 128MiB
hlpipe-lab4-validation-20261106-s3-1 1.21% 80.67MiB / 512MiB
hlpipe-lab4-validation-20261106-valkey-1 1.20% 13.55MiB / 128MiB
exit_code: 0 elapsed_seconds: 2.714
@@ -0,0 +1,17 @@
date: 2026-11-06T19:10:39Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ sh -c 'uptime; docker ps --format "{{.Names}} {{.Status}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
22:10 up 37 days, 21:22, 6 users, load averages: 2.79 2.42 2.19
hlpipe-lab4-validation-20261106-api-2 Up 2 seconds (healthy)
hlpipe-lab4-validation-20261106-api-1 Up 2 seconds (healthy)
hlpipe-lab4-validation-20261106-lb-1 Up 2 seconds (healthy)
hlpipe-lab4-validation-20261106-postgres-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-20261106-s3-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-20261106-valkey-1 Up 3 minutes (healthy)
hlpipe-lab4-validation-20261106-api-2 0.50% 273.4MiB / 512MiB
hlpipe-lab4-validation-20261106-api-1 0.41% 273MiB / 512MiB
hlpipe-lab4-validation-20261106-lb-1 0.92% 18.66MiB / 128MiB
hlpipe-lab4-validation-20261106-postgres-1 24.38% 111MiB / 1GiB
hlpipe-lab4-validation-20261106-s3-1 6.30% 182.1MiB / 512MiB
hlpipe-lab4-validation-20261106-valkey-1 0.14% 13.21MiB / 128MiB
exit_code: 0 elapsed_seconds: 2.614
@@ -0,0 +1,15 @@
date: 2026-11-06T19:11:49Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ sh -c 'uptime; docker ps --format "{{.Names}} {{.Status}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
22:11 up 37 days, 21:23, 6 users, load averages: 2.53 2.44 2.21
hlpipe-lab4-validation-20261106-api-2 Up 9 seconds (healthy)
hlpipe-lab4-validation-20261106-postgres-1 Up 4 minutes (healthy)
hlpipe-lab4-validation-20261106-s3-1 Up 4 minutes (healthy)
hlpipe-lab4-validation-20261106-valkey-1 Up 4 minutes (healthy)
hlpipe-lab4-validation-20261106-postgres-1 0.64% 45.97MiB / 1GiB
hlpipe-lab4-validation-20261106-s3-1 0.05% 191.7MiB / 512MiB
hlpipe-lab4-validation-20261106-valkey-1 1.30% 14.32MiB / 128MiB
hlpipe-lab4-validation-20261106-api-2 24.48% 227.8MiB / 512MiB
hlpipe-lab4-validation-20261106-lb-1 0.85% 15.96MiB / 128MiB
hlpipe-lab4-validation-20261106-api-1 23.34% 176.8MiB / 512MiB
exit_code: 0 elapsed_seconds: 2.608
@@ -0,0 +1,17 @@
date: 2026-11-06T19:13:34Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ sh -c 'uptime; docker ps --format "{{.Names}} {{.Status}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
22:13 up 37 days, 21:25, 6 users, load averages: 1.66 2.22 2.16
hlpipe-lab4-validation-20261106-api-2 Up 2 seconds (healthy)
hlpipe-lab4-validation-20261106-api-1 Up 2 seconds (healthy)
hlpipe-lab4-validation-20261106-lb-1 Up 2 seconds (health: starting)
hlpipe-lab4-validation-20261106-postgres-1 Up 6 minutes (healthy)
hlpipe-lab4-validation-20261106-s3-1 Up 6 minutes (healthy)
hlpipe-lab4-validation-20261106-valkey-1 Up 6 minutes (healthy)
hlpipe-lab4-validation-20261106-api-2 29.13% 390.5MiB / 512MiB
hlpipe-lab4-validation-20261106-api-1 29.00% 346.3MiB / 512MiB
hlpipe-lab4-validation-20261106-lb-1 9.52% 17.49MiB / 128MiB
hlpipe-lab4-validation-20261106-postgres-1 8.25% 72.91MiB / 1GiB
hlpipe-lab4-validation-20261106-s3-1 0.46% 274.1MiB / 512MiB
hlpipe-lab4-validation-20261106-valkey-1 0.20% 13.38MiB / 128MiB
exit_code: 0 elapsed_seconds: 2.600
@@ -0,0 +1,18 @@
date: 2026-11-06T19:15:22Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "RECONCILE_EVIDENCE_DIR": "evidence/png-final-2026-11-06/concurrent-reconcile", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-validation-20261106"}
$ sh -c 'uptime; docker ps --format "{{.Names}} {{.Status}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
22:15 up 37 days, 21:27, 6 users, load averages: 2.21 2.32 2.21
hlpipe-lab4-validation-reconcile-20261106-api-2 Up 27 seconds (healthy)
hlpipe-lab4-validation-reconcile-20261106-api-1 Up 27 seconds (healthy)
hlpipe-lab4-validation-reconcile-20261106-postgres-1 Up 34 seconds (healthy)
hlpipe-lab4-validation-reconcile-20261106-lb-1 Up 34 seconds (healthy)
hlpipe-lab4-validation-reconcile-20261106-valkey-1 Up 34 seconds (healthy)
hlpipe-lab4-validation-reconcile-20261106-s3-1 Up 34 seconds (healthy)
hlpipe-lab4-validation-reconcile-20261106-api-2 10.69% 266.2MiB / 512MiB
hlpipe-lab4-validation-reconcile-20261106-api-1 10.17% 266.4MiB / 512MiB
hlpipe-lab4-validation-reconcile-20261106-postgres-1 6.96% 57.95MiB / 1GiB
hlpipe-lab4-validation-reconcile-20261106-lb-1 1.39% 17.22MiB / 128MiB
hlpipe-lab4-validation-reconcile-20261106-valkey-1 0.22% 12.89MiB / 128MiB
hlpipe-lab4-validation-reconcile-20261106-s3-1 4.84% 52.89MiB / 512MiB
-- 0.00% 0B / 0B
exit_code: 0 elapsed_seconds: 2.961
@@ -0,0 +1,11 @@
date: 2026-11-06T19:07:54Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 -
/hlpipe-lab4-validation-20261106-api-1 image=sha256:7946b3294cc03fbaa58564b6c0b365589a5b3bb5cf8893586dc7ec14f8a19cff cpus=1000000000 memory=536870912
/hlpipe-lab4-validation-20261106-api-2 image=sha256:7946b3294cc03fbaa58564b6c0b365589a5b3bb5cf8893586dc7ec14f8a19cff cpus=1000000000 memory=536870912
{
"attachments/infrastructure/images.py": "cef5f44a9c5bea5de5fca43ee12be7e53c5137bf24646100d795cd8ef024ff6d",
"attachments/infrastructure/png.py": "50491204d8a3667371962f43830a2b53a8b478b5941238a8db211a8a77cc57ff"
}
PASS: running PNG source SHA256 matches reviewed working tree
exit_code: 0 elapsed_seconds: 0.338
@@ -0,0 +1,30 @@
date: 2026-11-06T19:07:33Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/limits.py --out evidence/png-final-2026-11-06/limits.txt
date: 2026-11-06T19:07:34Z commit: 5e49502
$ docker compose --profile bench --profile tools --profile reconcile config --format json (declared)
service cpus/mem ports secrets volumes networks ro user
---------- ---------- ------------------------------- ------------------------------------------------------------------------------------------------------------------------------- ---------- ---------------------- ----- -----------
api 1/512MiB - cache_url,cursor_secret,database_url,s3_access_key_id,s3_secret_access_key - backend(internal) true image
k6 2/512MiB - - - edge false image
lb 1/128MiB 127.0.0.1:18084,127.0.0.1:24846 - - backend(internal),edge true image
migrate 0.5/256MiB - database_url - backend(internal) false image
postgres 2/1024MiB - postgres_password pgdata backend(internal) false 70:70
reconciler 1/256MiB - database_url,s3_reconciler_access_key_id,s3_reconciler_secret_access_key - backend(internal) true image
s3 1/512MiB - s3_root_password,s3_root_user s3data backend(internal) true image
s3-cli 0.5/64MiB - s3_access_key_id,s3_reconciler_access_key_id,s3_reconciler_secret_access_key,s3_root_password,s3_root_user,s3_secret_access_key - backend(internal) true 65534:65534
s3-init 0.5/64MiB - s3_access_key_id,s3_reconciler_access_key_id,s3_reconciler_secret_access_key,s3_root_password,s3_root_user,s3_secret_access_key - backend(internal) true 65534:65534
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false 999:1000
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
service hostname cpus memory published
-------- ------------ ---- ------- ---------------------------------------------------
api b853647278e7 1 512MiB
api be7bd4c0acb6 1 512MiB
lb c1bdaca42e75 1 128MiB 127.0.0.1:18084->8080/tcp,127.0.0.1:24846->8404/tcp
postgres 7863933b6b16 2 1024MiB
s3 47390705b9ed 1 512MiB
valkey 75369422db1c 0.5 128MiB
PASS: limits, ports, secrets, volumes and networks match the policy
exit_code: 0 elapsed_seconds: 0.270
+26
View File
@@ -0,0 +1,26 @@
date: 2026-11-06T19:07:34Z commit: 5e49502
$ docker compose --profile bench --profile tools --profile reconcile config --format json (declared)
service cpus/mem ports secrets volumes networks ro user
---------- ---------- ------------------------------- ------------------------------------------------------------------------------------------------------------------------------- ---------- ---------------------- ----- -----------
api 1/512MiB - cache_url,cursor_secret,database_url,s3_access_key_id,s3_secret_access_key - backend(internal) true image
k6 2/512MiB - - - edge false image
lb 1/128MiB 127.0.0.1:18084,127.0.0.1:24846 - - backend(internal),edge true image
migrate 0.5/256MiB - database_url - backend(internal) false image
postgres 2/1024MiB - postgres_password pgdata backend(internal) false 70:70
reconciler 1/256MiB - database_url,s3_reconciler_access_key_id,s3_reconciler_secret_access_key - backend(internal) true image
s3 1/512MiB - s3_root_password,s3_root_user s3data backend(internal) true image
s3-cli 0.5/64MiB - s3_access_key_id,s3_reconciler_access_key_id,s3_reconciler_secret_access_key,s3_root_password,s3_root_user,s3_secret_access_key - backend(internal) true 65534:65534
s3-init 0.5/64MiB - s3_access_key_id,s3_reconciler_access_key_id,s3_reconciler_secret_access_key,s3_root_password,s3_root_user,s3_secret_access_key - backend(internal) true 65534:65534
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false 999:1000
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
service hostname cpus memory published
-------- ------------ ---- ------- ---------------------------------------------------
api b853647278e7 1 512MiB
api be7bd4c0acb6 1 512MiB
lb c1bdaca42e75 1 128MiB 127.0.0.1:18084->8080/tcp,127.0.0.1:24846->8404/tcp
postgres 7863933b6b16 2 1024MiB
s3 47390705b9ed 1 512MiB
valkey 75369422db1c 0.5 128MiB
PASS: limits, ports, secrets, volumes and networks match the policy
@@ -0,0 +1,41 @@
date: 2026-11-06T19:14:38Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make down
docker compose --profile bench --profile tools --profile reconcile down
Container hlpipe-lab4-validation-20261106-api-1 Stopping
Container hlpipe-lab4-validation-20261106-lb-1 Stopping
Container hlpipe-lab4-validation-20261106-api-2 Stopping
Container hlpipe-lab4-validation-20261106-lb-1 Stopped
Container hlpipe-lab4-validation-20261106-lb-1 Removing
Container hlpipe-lab4-validation-20261106-lb-1 Removed
Container hlpipe-lab4-validation-20261106-api-1 Stopped
Container hlpipe-lab4-validation-20261106-api-1 Removing
Container hlpipe-lab4-validation-20261106-api-1 Removed
Container hlpipe-lab4-validation-20261106-api-2 Stopped
Container hlpipe-lab4-validation-20261106-api-2 Removing
Container hlpipe-lab4-validation-20261106-api-2 Removed
Container hlpipe-lab4-validation-20261106-s3-init-1 Stopping
Container hlpipe-lab4-validation-20261106-valkey-1 Stopping
Container hlpipe-lab4-validation-20261106-migrate-1 Stopping
Container hlpipe-lab4-validation-20261106-migrate-1 Stopped
Container hlpipe-lab4-validation-20261106-migrate-1 Removing
Container hlpipe-lab4-validation-20261106-s3-init-1 Stopped
Container hlpipe-lab4-validation-20261106-s3-init-1 Removing
Container hlpipe-lab4-validation-20261106-migrate-1 Removed
Container hlpipe-lab4-validation-20261106-postgres-1 Stopping
Container hlpipe-lab4-validation-20261106-s3-init-1 Removed
Container hlpipe-lab4-validation-20261106-s3-1 Stopping
Container hlpipe-lab4-validation-20261106-valkey-1 Stopped
Container hlpipe-lab4-validation-20261106-valkey-1 Removing
Container hlpipe-lab4-validation-20261106-postgres-1 Stopped
Container hlpipe-lab4-validation-20261106-postgres-1 Removing
Container hlpipe-lab4-validation-20261106-s3-1 Stopped
Container hlpipe-lab4-validation-20261106-s3-1 Removing
Container hlpipe-lab4-validation-20261106-valkey-1 Removed
Container hlpipe-lab4-validation-20261106-postgres-1 Removed
Container hlpipe-lab4-validation-20261106-s3-1 Removed
Network hlpipe-lab4-validation-20261106_backend Removing
Network hlpipe-lab4-validation-20261106_edge Removing
Network hlpipe-lab4-validation-20261106_edge Removed
Network hlpipe-lab4-validation-20261106_backend Removed
exit_code: 0 elapsed_seconds: 3.262
@@ -0,0 +1,13 @@
date: 2026-11-06T19:10:15Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make upload-memory 'ARGS=--slots 3 --out evidence/png-final-2026-11-06/upload-memory/run1'
python3 scripts/upload_memory.py --base-url "http://127.0.0.1:18084" --slots 3 --out evidence/png-final-2026-11-06/upload-memory/run1
# 2026-11-06T19:10:15Z commit 5e49502ae78fa48b992c97418e490666c699726d; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
3 1.0M 10 201x20 91.9 134.3 231.4 278.3 0 24.5 0
3 1.0M 20 201x40 140.0 243.8 232.8 283.4 0 26.8 0
3 1.0M 40 201x80 213.4 373.4 232.2 289.5 0 25.8 0
3 10.0M 10 201x20 750.9 1236.1 231.3 394.8 0 23.7 0
3 10.0M 20 201x40 1193.6 2514.0 231.3 427.6 0 25.7 0
3 10.0M 40 201x80 3202.7 6534.9 231.4 439.2 0 31.1 0
exit_code: 0 elapsed_seconds: 70.711
@@ -0,0 +1,13 @@
date: 2026-11-06T19:11:36Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make upload-memory 'ARGS=--slots 3 --out evidence/png-final-2026-11-06/upload-memory/run2'
python3 scripts/upload_memory.py --base-url "http://127.0.0.1:18084" --slots 3 --out evidence/png-final-2026-11-06/upload-memory/run2
# 2026-11-06T19:11:36Z commit 5e49502ae78fa48b992c97418e490666c699726d; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
3 1.0M 10 201x20 127.9 241.0 231.5 279.8 0 21.3 0
3 1.0M 20 201x40 159.1 310.2 232.5 284.4 0 24.1 0
3 1.0M 40 201x80 211.8 417.6 231.3 290.4 0 27.6 0
3 10.0M 10 201x20 733.0 3287.8 231.6 391.3 0 21.2 0
3 10.0M 20 201x40 1293.6 2632.8 231.1 440.0 0 25.8 0
3 10.0M 40 201x80 2784.9 4256.0 231.9 428.9 0 30.8 0
exit_code: 0 elapsed_seconds: 70.573
@@ -0,0 +1,13 @@
date: 2026-11-06T19:13:02Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make upload-memory 'ARGS=--slots 3 --out evidence/png-final-2026-11-06/upload-memory/run3'
python3 scripts/upload_memory.py --base-url "http://127.0.0.1:18084" --slots 3 --out evidence/png-final-2026-11-06/upload-memory/run3
# 2026-11-06T19:13:02Z commit 5e49502ae78fa48b992c97418e490666c699726d; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
3 1.0M 10 201x20 124.5 257.7 231.3 279.4 0 23.7 0
3 1.0M 20 201x40 131.1 226.6 231.5 284.5 0 25.7 0
3 1.0M 40 201x80 228.5 367.6 232.6 289.4 0 29.8 0
3 10.0M 10 201x20 780.0 1520.3 232.6 391.8 0 22.0 0
3 10.0M 20 201x40 2455.8 3632.6 231.4 425.0 0 25.3 0
3 10.0M 40 201x80 4620.3 5971.4 232.8 438.4 0 28.7 0
exit_code: 0 elapsed_seconds: 72.103
@@ -0,0 +1,168 @@
{
"points": 18,
"status_codes": {
"201": 840
},
"api_max_mib": 440.0,
"lb_max_mib": 31.1,
"api_oom_kills": 0,
"lb_oom_kills": 0,
"rows": [
{
"size_mib": 1,
"concurrency": 10,
"body_bytes": [
1048276,
1048276,
1048276
],
"successful_requests": 60,
"api_peak_mib": [
278.3,
279.8,
279.4
],
"lb_peak_mib": [
24.5,
21.3,
23.7
],
"p95_ms": [
134.3,
241.0,
257.7
],
"p95_median_ms": 241.0
},
{
"size_mib": 1,
"concurrency": 20,
"body_bytes": [
1048276,
1048276,
1048276
],
"successful_requests": 120,
"api_peak_mib": [
283.4,
284.4,
284.5
],
"lb_peak_mib": [
26.8,
24.1,
25.7
],
"p95_ms": [
243.8,
310.2,
226.6
],
"p95_median_ms": 243.8
},
{
"size_mib": 1,
"concurrency": 40,
"body_bytes": [
1048276,
1048276,
1048276
],
"successful_requests": 240,
"api_peak_mib": [
289.5,
290.4,
289.4
],
"lb_peak_mib": [
25.8,
27.6,
29.8
],
"p95_ms": [
373.4,
417.6,
367.6
],
"p95_median_ms": 373.4
},
{
"size_mib": 10,
"concurrency": 10,
"body_bytes": [
10485256,
10485256,
10485256
],
"successful_requests": 60,
"api_peak_mib": [
394.8,
391.3,
391.8
],
"lb_peak_mib": [
23.7,
21.2,
22.0
],
"p95_ms": [
1236.1,
3287.8,
1520.3
],
"p95_median_ms": 1520.3
},
{
"size_mib": 10,
"concurrency": 20,
"body_bytes": [
10485256,
10485256,
10485256
],
"successful_requests": 120,
"api_peak_mib": [
427.6,
440.0,
425.0
],
"lb_peak_mib": [
25.7,
25.8,
25.3
],
"p95_ms": [
2514.0,
2632.8,
3632.6
],
"p95_median_ms": 2632.8
},
{
"size_mib": 10,
"concurrency": 40,
"body_bytes": [
10485256,
10485256,
10485256
],
"successful_requests": 240,
"api_peak_mib": [
439.2,
428.9,
438.4
],
"lb_peak_mib": [
31.1,
30.8,
28.7
],
"p95_ms": [
6534.9,
4256.0,
5971.4
],
"p95_median_ms": 5971.4
}
]
}
@@ -0,0 +1,172 @@
date: 2026-11-06T19:14:21Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {}
$ python3 evidence/png-final-2026-11-06/summarize-memory.py
{
"points": 18,
"status_codes": {
"201": 840
},
"api_max_mib": 440.0,
"lb_max_mib": 31.1,
"api_oom_kills": 0,
"lb_oom_kills": 0,
"rows": [
{
"size_mib": 1,
"concurrency": 10,
"body_bytes": [
1048276,
1048276,
1048276
],
"successful_requests": 60,
"api_peak_mib": [
278.3,
279.8,
279.4
],
"lb_peak_mib": [
24.5,
21.3,
23.7
],
"p95_ms": [
134.3,
241.0,
257.7
],
"p95_median_ms": 241.0
},
{
"size_mib": 1,
"concurrency": 20,
"body_bytes": [
1048276,
1048276,
1048276
],
"successful_requests": 120,
"api_peak_mib": [
283.4,
284.4,
284.5
],
"lb_peak_mib": [
26.8,
24.1,
25.7
],
"p95_ms": [
243.8,
310.2,
226.6
],
"p95_median_ms": 243.8
},
{
"size_mib": 1,
"concurrency": 40,
"body_bytes": [
1048276,
1048276,
1048276
],
"successful_requests": 240,
"api_peak_mib": [
289.5,
290.4,
289.4
],
"lb_peak_mib": [
25.8,
27.6,
29.8
],
"p95_ms": [
373.4,
417.6,
367.6
],
"p95_median_ms": 373.4
},
{
"size_mib": 10,
"concurrency": 10,
"body_bytes": [
10485256,
10485256,
10485256
],
"successful_requests": 60,
"api_peak_mib": [
394.8,
391.3,
391.8
],
"lb_peak_mib": [
23.7,
21.2,
22.0
],
"p95_ms": [
1236.1,
3287.8,
1520.3
],
"p95_median_ms": 1520.3
},
{
"size_mib": 10,
"concurrency": 20,
"body_bytes": [
10485256,
10485256,
10485256
],
"successful_requests": 120,
"api_peak_mib": [
427.6,
440.0,
425.0
],
"lb_peak_mib": [
25.7,
25.8,
25.3
],
"p95_ms": [
2514.0,
2632.8,
3632.6
],
"p95_median_ms": 2632.8
},
{
"size_mib": 10,
"concurrency": 40,
"body_bytes": [
10485256,
10485256,
10485256
],
"successful_requests": 240,
"api_peak_mib": [
439.2,
428.9,
438.4
],
"lb_peak_mib": [
31.1,
30.8,
28.7
],
"p95_ms": [
6534.9,
4256.0,
5971.4
],
"p95_median_ms": 5971.4
}
]
}
exit_code: 0 elapsed_seconds: 0.027
+33
View File
@@ -0,0 +1,33 @@
date: 2026-11-06T19:05:12Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {}
$ sh -c 'make check && make validate && make lint && openspec validate --all --strict --no-interactive'
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
.venv/bin/ruff check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py
All checks passed!
.venv/bin/ruff format --check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py
166 files already formatted
.venv/bin/ty check src student-tests alembic
All checks passed!
✓ spec/lab1-event-publication
✓ spec/lab1-messenger-chats
✓ spec/lab1-messenger-history
✓ spec/lab1-messenger-identity
✓ spec/lab1-service-operability
✓ spec/lab2-auth-sessions
✓ spec/lab2-dependency-failures
✓ spec/lab2-history-index
✓ spec/lab2-persistent-storage
✓ spec/lab2-session-cache
✓ spec/lab3-failover-operations
✓ spec/lab3-idempotent-messages
✓ spec/lab3-load-balancing
✓ spec/lab4-attachments
✓ spec/lab4-evidence-runs
✓ spec/lab4-object-storage
✓ spec/lab4-storage-reconciler
✓ spec/lab4-upload-resilience
Totals: 18 passed, 0 failed (18 items)
exit_code: 0 elapsed_seconds: 1.553
@@ -0,0 +1,130 @@
date: 2026-11-06T19:09:23Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/python evidence/png-final-2026-11-06/png-roundtrip.py
{
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"negative": [
{
"case": "broken-idat",
"bytes": 74,
"sha256": "f69b6f437e8069914e8e13a761e9c668fcf45aa93f9dbf4e4da109dc49ffbf43",
"status": 415,
"headers": {
"content-length": "175",
"content-type": "application/json",
"x-request-id": "247a44e0-0ede-4825-8112-cefd8ba457a6",
"x-instance-id": "b853647278e7"
},
"response": {
"error": {
"code": "unsupported_media_type",
"message": "изображение повреждено или обрезано",
"request_id": "247a44e0-0ede-4825-8112-cefd8ba457a6"
}
}
},
{
"case": "duplicate-ihdr",
"bytes": 94,
"sha256": "ca1c6483affee11cde4a5f91fdc6f09558951fb2108f044acd4c1eb5b85423fc",
"status": 415,
"headers": {
"content-length": "191",
"content-type": "application/json",
"x-request-id": "a303ea2f-27f8-4112-b28a-e0390820f7d4",
"x-instance-id": "be7bd4c0acb6"
},
"response": {
"error": {
"code": "unsupported_media_type",
"message": "содержимое не является изображением PNG или JPEG",
"request_id": "a303ea2f-27f8-4112-b28a-e0390820f7d4"
}
}
}
],
"before": {
"objects": 7,
"rows": 7,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
}
},
"after": {
"objects": 7,
"rows": 7,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
}
},
"positive": [
{
"kind": "image/png",
"status": 201,
"response": {
"id": "01a1b244-0816-736e-8dc4-658722701245",
"chat_id": "01a1b244-0178-7406-bb1b-a932400b65f3",
"owner_id": "01a1b244-012f-77e8-a9bf-26d2790431bd",
"filename": "valid-image",
"content_type": "image/png",
"size_bytes": 111817,
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:09:25.398541Z",
"updated_at": "2026-11-06T19:09:25.404178Z"
},
"download_status": 200,
"content_type": "image/png",
"bytes_match": true
},
{
"kind": "image/jpeg",
"status": 201,
"response": {
"id": "01a1b244-0827-732c-8ef5-3224f274bc8e",
"chat_id": "01a1b244-0178-7406-bb1b-a932400b65f3",
"owner_id": "01a1b244-012f-77e8-a9bf-26d2790431bd",
"filename": "valid-image",
"content_type": "image/jpeg",
"size_bytes": 160987,
"sha256": "556c8acc96f68d4f6442f87e5e09300221b4830e9f44ffe694094761a6b74c28",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:09:25.415344Z",
"updated_at": "2026-11-06T19:09:25.419901Z"
},
"download_status": 200,
"content_type": "image/jpeg",
"bytes_match": true
}
],
"ok": true
}
exit_code: 0 elapsed_seconds: 1.961
@@ -0,0 +1,126 @@
{
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"negative": [
{
"case": "broken-idat",
"bytes": 74,
"sha256": "f69b6f437e8069914e8e13a761e9c668fcf45aa93f9dbf4e4da109dc49ffbf43",
"status": 415,
"headers": {
"content-length": "175",
"content-type": "application/json",
"x-request-id": "247a44e0-0ede-4825-8112-cefd8ba457a6",
"x-instance-id": "b853647278e7"
},
"response": {
"error": {
"code": "unsupported_media_type",
"message": "изображение повреждено или обрезано",
"request_id": "247a44e0-0ede-4825-8112-cefd8ba457a6"
}
}
},
{
"case": "duplicate-ihdr",
"bytes": 94,
"sha256": "ca1c6483affee11cde4a5f91fdc6f09558951fb2108f044acd4c1eb5b85423fc",
"status": 415,
"headers": {
"content-length": "191",
"content-type": "application/json",
"x-request-id": "a303ea2f-27f8-4112-b28a-e0390820f7d4",
"x-instance-id": "be7bd4c0acb6"
},
"response": {
"error": {
"code": "unsupported_media_type",
"message": "содержимое не является изображением PNG или JPEG",
"request_id": "a303ea2f-27f8-4112-b28a-e0390820f7d4"
}
}
}
],
"before": {
"objects": 7,
"rows": 7,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
}
},
"after": {
"objects": 7,
"rows": 7,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
}
},
"positive": [
{
"kind": "image/png",
"status": 201,
"response": {
"id": "01a1b244-0816-736e-8dc4-658722701245",
"chat_id": "01a1b244-0178-7406-bb1b-a932400b65f3",
"owner_id": "01a1b244-012f-77e8-a9bf-26d2790431bd",
"filename": "valid-image",
"content_type": "image/png",
"size_bytes": 111817,
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:09:25.398541Z",
"updated_at": "2026-11-06T19:09:25.404178Z"
},
"download_status": 200,
"content_type": "image/png",
"bytes_match": true
},
{
"kind": "image/jpeg",
"status": 201,
"response": {
"id": "01a1b244-0827-732c-8ef5-3224f274bc8e",
"chat_id": "01a1b244-0178-7406-bb1b-a932400b65f3",
"owner_id": "01a1b244-012f-77e8-a9bf-26d2790431bd",
"filename": "valid-image",
"content_type": "image/jpeg",
"size_bytes": 160987,
"sha256": "556c8acc96f68d4f6442f87e5e09300221b4830e9f44ffe694094761a6b74c28",
"status": "ready",
"variants": [],
"error_code": null,
"created_at": "2026-11-06T19:09:25.415344Z",
"updated_at": "2026-11-06T19:09:25.419901Z"
},
"download_status": 200,
"content_type": "image/jpeg",
"bytes_match": true
}
],
"ok": true
}
@@ -0,0 +1,88 @@
import json
import os
import sys
from hashlib import sha256
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
sys.path[:0] = [str(ROOT / "scripts"), str(ROOT / "student-tests")]
import lab4_seed as seed
import pictures
import reconcile_track as track
out = Path(__file__).with_name("png-roundtrip.json")
assert not out.exists()
api = seed.Http(os.environ["BASE_URL"], 30)
alice, token = seed.login(api, "png_alice")
bob, bob_token = seed.login(api, "png_bob")
status, _, data = api.call(
"POST", "/api/v1/chats", {"title": "PNG regression", "member_ids": [alice, bob]}, token=token
)
assert status == 201
chat = json.loads(data)["id"]
before = track.oracle()
results = []
for name, body in (
("broken-idat", pictures.BROKEN_PNG),
("duplicate-ihdr", pictures.DUPLICATE_IHDR_PNG),
):
status, headers, data = api.call(
"POST",
f"/api/v1/chats/{chat}/attachments?filename={name}.png",
body,
{"Content-Type": "image/png"},
token,
)
results.append(
{
"case": name,
"bytes": len(body),
"sha256": sha256(body).hexdigest(),
"status": status,
"headers": headers,
"response": json.loads(data),
}
)
after = track.oracle()
positive = []
for kind, body in (("image/png", pictures.SAMPLE), ("image/jpeg", pictures.JPEG)):
status, headers, data = api.call(
"POST",
f"/api/v1/chats/{chat}/attachments?filename=valid-image",
body,
{"Content-Type": kind},
token,
)
attachment = json.loads(data)
item = {"kind": kind, "status": status, "response": attachment}
if status == 201:
code, rh, downloaded = api.call(
"GET", f"/api/v1/attachments/{attachment['id']}/content", token=bob_token
)
item.update(
download_status=code,
content_type=rh.get("content-type"),
bytes_match=downloaded == body,
)
positive.append(item)
report = {
"commit": track.head(),
"negative": results,
"before": {k: before[k] for k in ("objects", "rows", "counts")},
"after": {k: after[k] for k in ("objects", "rows", "counts")},
"positive": positive,
}
report["ok"] = (
report["before"] == report["after"]
and all(
r["status"] == 415 and r["response"]["error"]["code"] == "unsupported_media_type"
for r in results
)
and all(
r["status"] == 201 and r.get("bytes_match") and r["content_type"] == r["kind"]
for r in positive
)
)
out.write_text(json.dumps(report, ensure_ascii=False, indent=2) + "\n")
print(json.dumps(report, ensure_ascii=False, indent=2))
sys.exit(0 if report["ok"] else 1)
@@ -0,0 +1,5 @@
date: 2026-11-06T19:09:16Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/python evidence/png-final-2026-11-06/png-roundtrip.py
user create failed: 400
exit_code: 1 elapsed_seconds: 0.131
@@ -0,0 +1,33 @@
{
"checked_at": "2026-11-06T19:14:30Z",
"grace_seconds": 3600,
"deep": false,
"objects": 859,
"rows": 859,
"ready_healthy": 859,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
},
"samples": {},
"seconds": {
"s3_list": 0.473,
"s3_incomplete": 0.333,
"pg_query": 0.127,
"deep_hash": 0.0,
"total": 0.935
},
"violations": [],
"ok": true
}
@@ -0,0 +1,37 @@
date: 2026-11-06T19:14:29Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/reconcile_check.py --output evidence/png-final-2026-11-06/post-memory-invariants.json
{
"checked_at": "2026-11-06T19:14:30Z",
"grace_seconds": 3600,
"deep": false,
"objects": 859,
"rows": 859,
"ready_healthy": 859,
"counts": {
"orphan_stale": 0,
"orphan_fresh": 0,
"missing_referenced": 0,
"missing_unreferenced": 0,
"size_mismatch": 0,
"sha_mismatch": 0,
"pending_stale_with_object": 0,
"pending_stale_without_object": 0,
"pending_fresh": 0,
"quarantined": 0,
"incomplete_stale": 0,
"incomplete_fresh": 0,
"lost_ready": 0
},
"samples": {},
"seconds": {
"s3_list": 0.473,
"s3_incomplete": 0.333,
"pg_query": 0.127,
"deep_hash": 0.0,
"total": 0.935
},
"violations": [],
"ok": true
}
exit_code: 0 elapsed_seconds: 0.964
@@ -0,0 +1,50 @@
date: 2026-11-06T19:21:32Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {}
$ sh -c 'make check && make validate && openspec validate --all --strict --no-interactive && python3 evidence/png-final-2026-11-06/final-audit.py && make lint'
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
✓ spec/lab1-event-publication
✓ spec/lab1-messenger-chats
✓ spec/lab1-messenger-history
✓ spec/lab1-messenger-identity
✓ spec/lab1-service-operability
✓ spec/lab2-auth-sessions
✓ spec/lab2-dependency-failures
✓ spec/lab2-history-index
✓ spec/lab2-persistent-storage
✓ spec/lab2-session-cache
✓ spec/lab3-failover-operations
✓ spec/lab3-idempotent-messages
✓ spec/lab3-load-balancing
✓ spec/lab4-attachments
✓ spec/lab4-evidence-runs
✓ spec/lab4-object-storage
✓ spec/lab4-storage-reconciler
✓ spec/lab4-upload-resilience
Totals: 18 passed, 0 failed (18 items)
{
"head": "5e49502ae78fa48b992c97418e490666c699726d",
"review_runtime_unchanged": true,
"only_allowed_changes": true,
"scanned_files": 956,
"secret_pattern_matches": [],
"known_synthetic_matches": [
{
"file": "evidence/student-tests.txt",
"line": 164,
"pattern": "bearer_value",
"reason": "known invalid bearer fixture in test_negative.py"
}
],
"local_links_checked": 220,
"json_files_checked": 305
}
.venv/bin/ruff check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py
All checks passed!
.venv/bin/ruff format --check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py
166 files already formatted
.venv/bin/ty check src student-tests alembic
All checks passed!
exit_code: 0 elapsed_seconds: 3.012
@@ -0,0 +1,41 @@
date: 2026-11-06T19:19:09Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "RECONCILE_EVIDENCE_DIR": "evidence/png-final-2026-11-06/concurrent-reconcile", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-validation-20261106"}
$ make down
docker compose --profile bench --profile tools --profile reconcile down
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Removing
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Removed
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Removing
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Removing
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Removed
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Removed
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Removing
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Removing
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Removed
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Removed
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Stopping
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Removing
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Removed
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Removing
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Stopped
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Removing
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Removed
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Removed
Network hlpipe-lab4-validation-reconcile-20261106_edge Removing
Network hlpipe-lab4-validation-reconcile-20261106_backend Removing
Network hlpipe-lab4-validation-reconcile-20261106_backend Removed
Network hlpipe-lab4-validation-reconcile-20261106_edge Removed
exit_code: 0 elapsed_seconds: 3.277
@@ -0,0 +1,70 @@
date: 2026-11-06T19:14:48Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "RECONCILE_EVIDENCE_DIR": "evidence/png-final-2026-11-06/concurrent-reconcile", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-validation-20261106"}
$ sh -c 'docker compose up -d --no-build --wait && scripts/lb-wait.sh'
Network hlpipe-lab4-validation-reconcile-20261106_edge Creating
Network hlpipe-lab4-validation-reconcile-20261106_edge Created
Network hlpipe-lab4-validation-reconcile-20261106_backend Creating
Network hlpipe-lab4-validation-reconcile-20261106_backend Created
Volume "hlpipe-lab4-validation-reconcile-20261106_pgdata" Creating
Volume "hlpipe-lab4-validation-reconcile-20261106_pgdata" Created
Volume "hlpipe-lab4-validation-reconcile-20261106_s3data" Creating
Volume "hlpipe-lab4-validation-reconcile-20261106_s3data" Created
Volume "hlpipe-lab4-validation-reconcile-20261106_valkeydata" Creating
Volume "hlpipe-lab4-validation-reconcile-20261106_valkeydata" Created
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Creating
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Creating
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Creating
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Creating
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Created
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Creating
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Created
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Created
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Created
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Creating
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Created
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Created
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Creating
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Creating
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Created
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Created
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Starting
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Starting
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Starting
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Starting
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Started
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Started
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Started
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Started
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Healthy
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Starting
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Started
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Healthy
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Starting
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Started
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Exited
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Exited
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Starting
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Started
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Starting
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Started
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Waiting
Container hlpipe-lab4-validation-reconcile-20261106-valkey-1 Healthy
Container hlpipe-lab4-validation-reconcile-20261106-s3-1 Healthy
Container hlpipe-lab4-validation-reconcile-20261106-migrate-1 Exited
Container hlpipe-lab4-validation-reconcile-20261106-s3-init-1 Exited
Container hlpipe-lab4-validation-reconcile-20261106-postgres-1 Healthy
Container hlpipe-lab4-validation-reconcile-20261106-api-2 Healthy
Container hlpipe-lab4-validation-reconcile-20261106-api-1 Healthy
Container hlpipe-lab4-validation-reconcile-20261106-lb-1 Healthy
exit_code: 0 elapsed_seconds: 10.501
@@ -0,0 +1,112 @@
{
"audited_head": "5e49502ae78fa48b992c97418e490666c699726d",
"review_diff": [
"AGENTS.md",
"REPORT.md",
"evidence/README.md",
"evidence/forward-port.md",
"evidence/report-audit-2026-11-06.md",
"evidence/sqlalchemy-2026-11-06/README.md",
"evidence/sqlalchemy-2026-11-06/grade3/NOTES.md",
"evidence/sqlalchemy-2026-11-06/grade4/NOTES.md",
"evidence/sqlalchemy-2026-11-06/track5/NOTES.md"
],
"runtime_diff_from_F": [
"src/messenger/attachments/infrastructure/images.py",
"src/messenger/attachments/infrastructure/png.py"
],
"diff_from_cost": [
"infra/haproxy/haproxy.cfg",
"src/messenger/attachments/infrastructure/images.py",
"src/messenger/attachments/infrastructure/png.py",
"src/messenger/identity/application/handlers.py",
"src/messenger/identity/domain/values.py",
"src/messenger/identity/entrypoints/authentication.py",
"src/messenger/identity/infrastructure/postgres.py",
"src/messenger/identity/infrastructure/valkey.py",
"src/messenger/messaging/domain/values.py"
],
"png_blob_manifest_matches": true,
"accepted_cost_runs": 27,
"cost_seconds": {
"n1000-deep": {
"runs": [
0.498,
0.499,
0.536
],
"median": 0.499
},
"n1000-shallow": {
"runs": [
0.113,
0.107,
0.105
],
"median": 0.107
},
"n10000-deep": {
"runs": [
4.998,
4.972,
5.041
],
"median": 4.998
},
"n10000-page100": {
"runs": [
2.035,
2.113,
2.037
],
"median": 2.037
},
"n10000-shallow": {
"runs": [
0.999,
0.996,
1.077
],
"median": 0.999
},
"n100000-deep": {
"runs": [
147.215,
110.91,
58.661
],
"median": 110.91
},
"n100000-shallow": {
"runs": [
21.335,
20.215,
20.206
],
"median": 20.215
},
"n30000-deep": {
"runs": [
15.665,
15.779,
15.63
],
"median": 15.665
},
"n30000-shallow": {
"runs": [
3.567,
3.601,
3.633
],
"median": 3.601
}
},
"text_rps": [
1428.577,
1456.338,
1529.32
],
"text_failed_requests": 0,
"text_median_rps": 1456.338
}
@@ -0,0 +1,9 @@
date: 2026-11-06T19:09:51Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 -
04584e706e33 {"WEB_CONCURRENCY": "2", "UPLOAD_CONCURRENCY": "3", "IMAGE_CHECK_CONCURRENCY": "2", "MALLOC_MMAP_THRESHOLD_": "131072", "REQUEST_TIMEOUT_SECONDS": "8", "MIN_TRANSFER_RATE_BYTES": "131072", "UPLOAD_GRACE_SECONDS": "900", "UPLOAD_SWEEP_INTERVAL_SECONDS": "30", "DB_POOL_MAX_SIZE": "8", "MAX_UPLOAD_BYTES": "10485760", "MAX_IMAGE_PIXELS": "40000000"}
5a692ea4d85d {"WEB_CONCURRENCY": "2", "UPLOAD_CONCURRENCY": "3", "IMAGE_CHECK_CONCURRENCY": "2", "MALLOC_MMAP_THRESHOLD_": "131072", "REQUEST_TIMEOUT_SECONDS": "8", "MIN_TRANSFER_RATE_BYTES": "131072", "UPLOAD_GRACE_SECONDS": "900", "UPLOAD_SWEEP_INTERVAL_SECONDS": "30", "DB_POOL_MAX_SIZE": "8", "MAX_UPLOAD_BYTES": "10485760", "MAX_IMAGE_PIXELS": "40000000"}
Compose .env excluded with COMPOSE_ENV_FILES=/dev/null; defaults + logged shell overrides
?? evidence/load-validation.md
?? evidence/png-final-2026-11-06/
exit_code: 0 elapsed_seconds: 0.339
@@ -0,0 +1,8 @@
date: 2026-11-06T19:20:30Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {}
$ python3 -
{"project": "hlpipe-lab4-validation-20261106", "containers": [], "preserved_volumes": ["hlpipe-lab4-validation-20261106_pgdata", "hlpipe-lab4-validation-20261106_s3data", "hlpipe-lab4-validation-20261106_valkeydata"]}
{"project": "hlpipe-lab4-validation-reconcile-20261106", "containers": [], "preserved_volumes": ["hlpipe-lab4-validation-reconcile-20261106_pgdata", "hlpipe-lab4-validation-reconcile-20261106_s3data", "hlpipe-lab4-validation-reconcile-20261106_valkeydata"]}
PASS: no test fixtures remain; six persistent validation volumes retained
Running container inventory: []
exit_code: 0 elapsed_seconds: 0.161
+6
View File
@@ -0,0 +1,6 @@
date: 2026-11-06T19:07:33Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make test
python3 tests/smoke.py --base-url "http://127.0.0.1:18084"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
exit_code: 0 elapsed_seconds: 0.423
@@ -0,0 +1,217 @@
{
"review_sha": "7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4",
"validation_sha": "5e49502ae78fa48b992c97418e490666c699726d",
"git_blobs": {
"Dockerfile": "ada32588d151bdefe340342552bdb22fb69c596f",
"alembic/env.py": "93a1fc1c22e19b8df144cbcc7e8024c3bb9a2f16",
"alembic/legacy.py": "205c43d8177b35aee2437949dc508a7ae0dd2fa1",
"alembic/script.py.mako": "fceee8a7138f5ee27824f2260b017cda835bdc28",
"alembic/versions/0001_init.py": "21c7bb2ba47f883bc7fe25550afc880d6f19eac8",
"alembic/versions/0002_idempotency_keys.py": "ccaa2530d2b75ddd1ef573cafb8955956e87a605",
"alembic/versions/0003_attachments.py": "f0395d0dbb3e06f4456151d1fe3427333d847942",
"alembic/versions/0004_attachment_quarantine.py": "4a0b5fad914b7601fbf9f888d7879e9c0e754648",
"compose.yaml": "27bc9c5ade7f51c5419af85575611666c01a2b92",
"infra/README.md": "5a39e8623668d78945e5f9f9bcaf7ba098fd2e69",
"infra/haproxy/haproxy.cfg": "9a1218c9d3e211a3dc4d1ff54fd05a29c13db171",
"infra/k6/messages.js": "722cf980c6425ac33248aad7f0d5bb6b6c2be61d",
"infra/s3/api-policy.json": "90635a6047c660439116c0ec86806cced5d126f1",
"infra/s3/cli.sh": "54ff852ec72f5dfb54ad41ce6b5058cd57d22a78",
"infra/s3/init.sh": "07a6954c709e67045935e08e96c1d44893049425",
"infra/s3/lifecycle.json": "ab206a0717c4ce8efee2aea43c803f513ef1792b",
"infra/s3/reconciler-policy.json": "a28fa83795f698042c591379c8c7f1b493ab54bd",
"pyproject.toml": "3954381f58fc568026a308d6a6c910c56f90a781",
"scripts/capture_evidence.py": "6f9ff8510eb887b59a5de92629ad1523ccb26c1d",
"scripts/check_contract.py": "dcb34dfa1cbf47e0832af6cd8221598eae5fc3bf",
"scripts/clean-clone.sh": "7642b25f6114fb470614eea85acc1ad89e505d2a",
"scripts/detection.sh": "5282baec52dcf65d3a317fe812b387078514d633",
"scripts/docker-stats.sh": "48ea85148843662be3da7186b474a58f561b327a",
"scripts/evidence-attachments.sh": "5161b564879903c8f558c943bd293742a9ca944a",
"scripts/evidence-cache.sh": "f116557ad3bb9bea60b385ef309f089b315f469f",
"scripts/evidence-stack.sh": "d469aac61697207df89a7f4655869b9315e371a5",
"scripts/evidence-storage.sh": "57bf66517419a760a2d152dae740b3e18031f2e8",
"scripts/failover-each.sh": "02f1b7ca1a5d267e40f3680c6af8649f7adf3b9c",
"scripts/failover-evidence.sh": "74e15c96b971d796905dc79d57f57352bf219b94",
"scripts/k6.sh": "01d95f296476d5a426d28bca4b7ecf5002a92f64",
"scripts/lab4_scenarios.py": "8964e26a3ad65896da9fc2351d5c3319678b2896",
"scripts/lab4_seed.py": "d37d23a303bf1250e496c9d650ab81ec29286d63",
"scripts/lb-stats.sh": "13754a59a3e0a7005944b72858eea36ed87d66d8",
"scripts/lb-wait.sh": "f1ead888ec7bc9d9586382cf2d7ba0638883f90a",
"scripts/limits.py": "7437726f76503220c562fd710f0d6c44409390ed",
"scripts/load-evidence.sh": "4b9953b9cf2539591c9b09e96c8a7a7382333263",
"scripts/overload-leftovers.sh": "923cdc523fd3e01737e35d607d16380b7401b0ea",
"scripts/persistence-evidence.sh": "582ffac49841478f53f9452774091d4bebe73d08",
"scripts/pg-stats.sh": "736a5d5af3741124f3ef68e0936a4f80502f340a",
"scripts/probe.py": "71652a59e358b9080a995512ea690d267e1b9548",
"scripts/reconcile-inject.sh": "fb18b47b3e7fd5a10d11e0bb9f9aec4cd9b96f67",
"scripts/reconcile_check.py": "8712c5ad1442cf52261406fa48fe0b0d3fe39f0c",
"scripts/reconcile_track.py": "74f1402bf64602fc0601fc0f41fc00abf3f64169",
"scripts/restart.example.sh": "967e95123a1599cf4ff1472f0e1c2c7ed4069218",
"scripts/restart.sh": "c78416dbcf7779d7ddd3f393bb9003c9a9d4c434",
"scripts/restore.sh": "705a092de6bed5aa0ce3f04e7f0566b01e08a7c4",
"scripts/rolling-update.sh": "777c66719e2205771bae50d414becea824ff125c",
"scripts/s3-check.sh": "79402bc615959d13d8fc50ff11097f1c227be1d2",
"scripts/scaling.py": "def0ba15bffec2d211aa32939290cfe696311eca",
"scripts/secrets.sh": "6e133aacc136321c664d133d3f26c5ae2459a94c",
"scripts/sql/explain-history.sql": "7752625e57b90d8e338e9ae2b2c51ff3d669511f",
"scripts/sql/seed-history.sql": "842b599a2a3fcfac702b8177cdd8c37ae683c110",
"scripts/stand-usage.sh": "97d469f9616fbf102c5e568a50fbdf47379a0193",
"scripts/stop-one.example.sh": "ae149e89168cdea74c9caf5e6ce1488d21e9e8a2",
"scripts/stop-one.sh": "c508503dcb01a9cab45f24009750a209fbb1fc1e",
"scripts/upload_memory.py": "9925e7195c3deca933265fffbcb1efe0bcd86ba7",
"scripts/validate_openapi.py": "1dfe4a98285249b171b33f547f4ae1dd790aef59",
"src/messenger/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/attachments/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/attachments/application/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/attachments/application/bus.py": "09bcf11a1640a2dc45cfda70fbeba44815833f57",
"src/messenger/attachments/application/commands.py": "40293321ec57b0ce41da08bc46fd33113df14a4b",
"src/messenger/attachments/application/errors.py": "f54eb025a937d1a48353f8e8d3c466f1f52ec8be",
"src/messenger/attachments/application/handlers.py": "36e767b554f61bd64034e25f1ea1c0ef244cfea0",
"src/messenger/attachments/application/ports.py": "56a2c06751a54470e11074634829c63322089924",
"src/messenger/attachments/application/queries.py": "c671cec1a27d74a0de8dc41a14f6946d36265d5b",
"src/messenger/attachments/application/reconcile.py": "638be5599afa33c265b75bd4ce79eeadda77062f",
"src/messenger/attachments/config.py": "956e4d95e6d050a8b4e94020be5d48fad197f712",
"src/messenger/attachments/domain/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/attachments/domain/errors.py": "bec7ffdfaa38cdf0108ea46de532bdeaff59fe5c",
"src/messenger/attachments/domain/events.py": "f12bbe977720615db7d38d1b1ead2b52cfbeda64",
"src/messenger/attachments/domain/models.py": "532742f49225de745edbaaa812eaaad05718575d",
"src/messenger/attachments/domain/values.py": "4c8a9a8f65b4535d60b3b1ffb50d6ae46ac1fd52",
"src/messenger/attachments/entrypoints/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/attachments/entrypoints/errors.py": "56e3e8e0212586a57d9d2907a74bae0ad8cfe419",
"src/messenger/attachments/entrypoints/http.py": "ac31decd90aec978ebbdb774e0089323122c64b5",
"src/messenger/attachments/entrypoints/ioc.py": "fa734643d19aef69b102f7c094846962d4908392",
"src/messenger/attachments/entrypoints/journal.py": "55ba5e5acd1512ce473bc6e2a52666d02552f365",
"src/messenger/attachments/entrypoints/reconcile.py": "bdecddff3b37f7bca27dca43099d14f3310c60c2",
"src/messenger/attachments/entrypoints/schemas.py": "86daa6cdcd08162a1dc6553f3f5d8fed5acd9532",
"src/messenger/attachments/entrypoints/sweeper.py": "63b08da43732d6fac1d2f59a53a90d937913ae15",
"src/messenger/attachments/infrastructure/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/attachments/infrastructure/images.py": "ad42b3f0a6cbce20f2a96c47f788720048180b23",
"src/messenger/attachments/infrastructure/png.py": "1e38495678224e15f02ff7af3b98f42294f837d6",
"src/messenger/attachments/infrastructure/postgres.py": "31888200dddf478351ab1392941fefce72c6326a",
"src/messenger/attachments/infrastructure/s3.py": "dbebf5d6219b9e298573cea25b6c1682092c0956",
"src/messenger/gunicorn_conf.py": "140d5880b3bcb8faaa58bca13024514f4b2dbd49",
"src/messenger/identity/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/identity/application/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/identity/application/bus.py": "1ce4aa8905d409e05ce9d0e8e913f8e21e775e00",
"src/messenger/identity/application/commands.py": "c98a4b57420519ed7ff10e471a5b6b7f4676d3eb",
"src/messenger/identity/application/handlers.py": "edb0adb1a30133e083ad240ca03f836ac7906cbc",
"src/messenger/identity/application/ports.py": "d9354c85391b5e333d9ef87cf6f454e202292bd2",
"src/messenger/identity/application/queries.py": "cf0c7d8dc3a7afef917fb441061d0bbe18b0e1f1",
"src/messenger/identity/config.py": "d1e19705642c03b081db8e49df9d5c8d565e6031",
"src/messenger/identity/domain/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/identity/domain/errors.py": "335a6d255c2ffb8a6f3ff4cb9fa598e8ba9c783e",
"src/messenger/identity/domain/events.py": "429a0b54c17c11b8ea5320865601476ac6567242",
"src/messenger/identity/domain/models.py": "7f5050373c2ae16d77a6d7c727b1476c040189c6",
"src/messenger/identity/domain/values.py": "5ccbf1b4017122b93bd3fa46b4f96e096c2ba02d",
"src/messenger/identity/entrypoints/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/identity/entrypoints/authentication.py": "1976ab9d2842ac6627f93b62aca11e40042575e1",
"src/messenger/identity/entrypoints/errors.py": "3b840f1fc8b69afaa5654fa72fa7400d18a4f0f7",
"src/messenger/identity/entrypoints/http.py": "e67ec4e63b62103782dc22a08f4e970c07c320dc",
"src/messenger/identity/entrypoints/ioc.py": "1616d95b81fe6e102fa0a26c39b9a2f0b4b06ef0",
"src/messenger/identity/entrypoints/journal.py": "9d51aeee0013b0e489d92ac3be9794077f9cf651",
"src/messenger/identity/entrypoints/schemas.py": "7560cfd25b241ebfe884842d0145dd17a877d8d9",
"src/messenger/identity/infrastructure/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/identity/infrastructure/argon2.py": "159dba7670625233cfcf9d5a6eaab9ace6b2711c",
"src/messenger/identity/infrastructure/postgres.py": "31e325b5ef43abf2a815eac304320d40ae5d0f49",
"src/messenger/identity/infrastructure/valkey.py": "2540c94ce9ce4b4b89f82c74329327d0fb793aae",
"src/messenger/main.py": "f19c8b65fb4f7e3dc049cc8dfcd39df7d9bf75b0",
"src/messenger/messaging/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/messaging/application/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/messaging/application/bus.py": "26fb2e6e0f0a46d8b661212375e63f069d4354f3",
"src/messenger/messaging/application/commands.py": "104b37ebbe55d34c5f0613746318291b45f0ead4",
"src/messenger/messaging/application/handlers.py": "e4e52c17ea28f92c4e5b1319e9321a0d0e4e2223",
"src/messenger/messaging/application/ports.py": "7882b9e0ee5606e1693e5cc9da1430c2e2d5d055",
"src/messenger/messaging/application/queries.py": "5fbb20aa33326aadec9b2231a3f559b62cb134b8",
"src/messenger/messaging/config.py": "71cd0c2a075341c404d2226653a1967f2a688ea4",
"src/messenger/messaging/domain/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/messaging/domain/errors.py": "2a3bb4edcfd8c250fa3b398232dac2cfd77c9241",
"src/messenger/messaging/domain/events.py": "1b0709d3627f9914fd6554917e650ed3dad21208",
"src/messenger/messaging/domain/keys.py": "2e432477028f754f028f75ed44cb0783296e37af",
"src/messenger/messaging/domain/models.py": "1221b0f3d83a6e3799594c8fd0fbcc91e3aea1a2",
"src/messenger/messaging/domain/values.py": "193b788ff220a7e7d7adbb2dafa000242a00edd3",
"src/messenger/messaging/entrypoints/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/messaging/entrypoints/errors.py": "645f38e69e0cad84e2900fc8ea42b736058164ef",
"src/messenger/messaging/entrypoints/http.py": "ad0a692d7d0b9114e44649352def186a823a134f",
"src/messenger/messaging/entrypoints/ioc.py": "80734a0bdb83795ba58553df3b12adefe101a9ad",
"src/messenger/messaging/entrypoints/journal.py": "17c7e67595cac57f6a4a89347c48d2998434a53e",
"src/messenger/messaging/entrypoints/schemas.py": "ffe319f5146b5714990a4ff998b29547c648bba7",
"src/messenger/messaging/infrastructure/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/messaging/infrastructure/cursor.py": "40044241fe429990a5ae88871b6339956903c6ce",
"src/messenger/messaging/infrastructure/postgres.py": "1803bafaf9e4a838000955008e51445b8d8159ef",
"src/messenger/shared/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/shared/application/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/shared/application/commands.py": "9eaa1e2e4a14e7d8e28d6fd23ed8d436207ac841",
"src/messenger/shared/application/errors.py": "dee87401d5a6186090fc71eece208304db31b2b9",
"src/messenger/shared/application/messagebus.py": "9abdb4703190e405935092e3c2a63231d37b8ae3",
"src/messenger/shared/application/ports.py": "53a4df3d4b8896f07aaa8cca3e17307aa22fd2de",
"src/messenger/shared/config.py": "8eff873681e18141d1e6f300fb8db052d84bc2fc",
"src/messenger/shared/domain/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/shared/domain/errors.py": "f7d33023c91bb2ae119de92063e19a6f33a669a2",
"src/messenger/shared/domain/events.py": "a295e3564501da6ae3e3638b374bef5414768469",
"src/messenger/shared/entrypoints/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/shared/entrypoints/actor.py": "b60a4a3c248ca5519e3bc647377fa48bab5db306",
"src/messenger/shared/entrypoints/config.py": "05f3cb4082388956e94bb1b5af43d1ea63a03bfc",
"src/messenger/shared/entrypoints/errors.py": "5efde313d53a228b3502cf3abc4e35623dcc3e2e",
"src/messenger/shared/entrypoints/health.py": "2986ccc7c641a5c895c4f6c9c464a6235e863d50",
"src/messenger/shared/entrypoints/ioc.py": "9a86fe189907d73ae1f4b57bb55258ae93b99075",
"src/messenger/shared/entrypoints/pipeline.py": "177142725bf7b6c04e161d3671bbd1053d01b801",
"src/messenger/shared/entrypoints/schemas.py": "f27d12b52d8d7674cf4ca5a70271a92d959224fe",
"src/messenger/shared/infrastructure/__init__.py": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"src/messenger/shared/infrastructure/clock.py": "808a3bf7def99b469366f7b46c4bf17a7430959a",
"src/messenger/shared/infrastructure/ids.py": "959982442f3139705013eef8e9ae0aa9e5c5a932",
"src/messenger/shared/infrastructure/logging.py": "c7259691324cee66a08097bbf94126088b2a4466",
"src/messenger/shared/infrastructure/postgres.py": "ccbcfd4b9886b3afd8d39a67c1d5ffb54f0c0a6b",
"src/messenger/shared/infrastructure/readiness.py": "4a2a02f745584c6ef81b3b3b6714cf0f14255e32",
"student-tests/adapters/test_s3_storage.py": "29277cd7fe6f581947f1604ba3951eeeab0d3409",
"student-tests/api/test_access.py": "339bc0094ccc5512741ee4152d467614043eb51b",
"student-tests/api/test_attachments.py": "ca64f2ce73d6a707736c395f1b00c67cc87e9216",
"student-tests/api/test_bounded_contexts.py": "8d87abf7fa7ded3a0d8327792e492e254cd534eb",
"student-tests/api/test_cache.py": "f0c37c44493c78dfe253300ee7bc60d24860f56a",
"student-tests/api/test_concurrency.py": "756bf6b31c4d54d202eb943ada6ec482578a01ee",
"student-tests/api/test_consistency.py": "bbf6988f5f7339134b8fed0962eed6b82fb4c09a",
"student-tests/api/test_drain.py": "dd0af03447296acc973f20e8fbb0734088d3f35a",
"student-tests/api/test_events.py": "3652bce7dc6d093656f26d77b440f833959d5047",
"student-tests/api/test_idempotency.py": "8ea53d95f73717d884108e048bdd72d15123f6ab",
"student-tests/api/test_instance.py": "b76fe4fb4fb483d835a9f6e03c1390a12221485b",
"student-tests/api/test_message_attachments.py": "dc95b5aaecece54d226fd07c0ef4f5e32fbfa428",
"student-tests/api/test_migrations.py": "f0b68ecaf05fb888cb9692814873567cdd6107d6",
"student-tests/api/test_negative.py": "a1dc7ccf4003e68342a06e464a002bfe93c3eb35",
"student-tests/api/test_nul_validation.py": "ca77d097abd10df7eb91e7764b83ecf4bbfcb078",
"student-tests/api/test_operability.py": "a6fcffb7aa82b679b0ac44d033ce567422400d3e",
"student-tests/api/test_pagination.py": "fa6a1e1fa640eaa437a1cda9a70bba61b632dd64",
"student-tests/api/test_pool.py": "3ccb588127d941db42b36f8b59a97a4d798df84f",
"student-tests/api/test_reconciler.py": "71ced92427ab3e2843d6fec7e0ee6d822273d5ce",
"student-tests/api/test_sessions.py": "ab4836abad452f8cd3d7b8359676fa9b1b40f8ce",
"student-tests/api/test_timeout.py": "7be7ab0cb8e752cb915741c9f9cad9a837d42231",
"student-tests/api/test_upload_consistency.py": "2e25ed9f1cc5ef2be47b83a8ae7ecfed80540752",
"student-tests/api/test_wire_format.py": "0167837d64428f48da780b42a67f1963e5cd1724",
"student-tests/conftest.py": "e63dccc1f168101264bcf0af96152bbe293fa58f",
"student-tests/fakes.py": "82ac80f81377e4dc8459f9402dda8b06f777ffda",
"student-tests/fixtures/legacy/0001_init.sql": "d8ccac016f93c77246db4414f20428fef3969942",
"student-tests/fixtures/legacy/0002_idempotency_keys.sql": "a556f0fd21d755fb0f6c876e36ac91b156228513",
"student-tests/fixtures/legacy/0003_attachments.sql": "91259da976b5d23dca9f57ea4f8b0aeff36647e6",
"student-tests/fixtures/legacy/0004_attachment_quarantine.sql": "7108f5f0b51df3751f6cdecafe30cbbfbd40fbb4",
"student-tests/pictures.py": "4cd6a9e892a9c29b9efd3f7b2244ea0e8c5907d4",
"student-tests/stack/test_attachment_faults.py": "22a6ca91a6496345e22e8a2b1a453e6811da70af",
"student-tests/stack/test_faults.py": "5a67c497a94ce97d3149f1ad76988df502d6874a",
"student-tests/stand.py": "a194f5f86097187c552a20f826be6e14cd28a9f3",
"student-tests/tools/forward_network.py": "376ecd37e2c15f0fe2be142c179a84a01b3b13f9",
"student-tests/tools/lb_errors/client.py": "583c5608f1a1f99444eedacf006a01921925f8d6",
"student-tests/tools/lb_errors/compose.yaml": "30d39991046660e8bc98a48f54aad8d78e6a7858",
"student-tests/tools/lb_errors/server.py": "dc16094dea9ac550fa2095d235eff0469d34a73d",
"student-tests/tools/seed_storage.py": "9deb592c37a98f84e9c5b083c18cefac1513d9d9",
"student-tests/unit/test_attachments_domain.py": "e26d31017f556b78d52606cb401ec799c9485520",
"student-tests/unit/test_authentication.py": "cded5cc18a2a96fa0de5340107b65d10dc084331",
"student-tests/unit/test_cursor.py": "5458b9ee8fab19562401eeaeb498194368f3c8dc",
"student-tests/unit/test_domain.py": "eaf5fd8ac81180e023889ee06a05645e2b113e40",
"student-tests/unit/test_haproxy_errors.py": "b15a916d2693f89afc51a25505ac997bbe2a72e1",
"student-tests/unit/test_image_inspection.py": "dfacb272391ebdfb572178f5dc76a07b4de5b8fb",
"student-tests/unit/test_nul_inputs.py": "822f285c95547ae81e76af6639b55e7499e47975",
"student-tests/unit/test_png_upload.py": "bf026762eda2bc5d4b1b99c70ed699f2cded407a",
"student-tests/unit/test_probe.py": "c0764d67c9259c8b9b0c6c023d5f2612c49a4bac",
"student-tests/unit/test_reconcile_measurements.py": "4625782142988650ec8437befdf5e6e354030f00",
"student-tests/unit/test_scaling.py": "a862032eb4b207fb90e085f9ea11a02ebbfe1994",
"student-tests/unit/test_session_cache.py": "cb79ef60971e3a03668db582a5203ac92c5e8260",
"student-tests/unit/test_timeouts.py": "3e6e917c17a139309859d150623c75d04c524d51",
"uv.lock": "cbec0d959e288ca2a1d49cf90d813e2e370c4ec7"
}
}
@@ -0,0 +1,7 @@
date: 2026-11-06T19:07:32Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make student-test 'PYTEST_ARGS=-q --tb=short student-tests/adapters/test_s3_storage.py::test_round_trip_of_the_largest_object student-tests/adapters/test_s3_storage.py::test_listing_is_paged_in_byte_order_and_stat_reads_size'
.venv/bin/pytest -q --tb=short student-tests/adapters/test_s3_storage.py::test_round_trip_of_the_largest_object student-tests/adapters/test_s3_storage.py::test_listing_is_paged_in_byte_order_and_stat_reads_size
.. [100%]
2 passed in 0.69s
exit_code: 0 elapsed_seconds: 1.346
@@ -0,0 +1,36 @@
date: 2026-11-06T19:05:03Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {}
$ make student-test 'PYTEST_ARGS=-q --tb=short'
.venv/bin/pytest -q --tb=short
EE...................................................................... [ 9%]
........................................................................ [ 19%]
........................................................................ [ 29%]
........................................................................ [ 39%]
........................................................................ [ 49%]
........................................................................ [ 59%]
........................................................................ [ 69%]
........................................................................ [ 79%]
........................................................................ [ 89%]
........................................................................ [ 99%]
. [100%]
==================================== ERRORS ====================================
___________ ERROR at setup of test_round_trip_of_the_largest_object ____________
student-tests/adapters/test_s3_storage.py:36: in rustfs
assert time.monotonic() < deadline, "RustFS не стал готов"
E AssertionError: RustFS не стал готов
E assert 1248379.651833583 < 1248379.589121583
E + where 1248379.651833583 = <built-in function monotonic>()
E + where <built-in function monotonic> = time.monotonic
__ ERROR at setup of test_listing_is_paged_in_byte_order_and_stat_reads_size ___
student-tests/adapters/test_s3_storage.py:36: in rustfs
assert time.monotonic() < deadline, "RustFS не стал готов"
E AssertionError: RustFS не стал готов
E assert 1248379.651833583 < 1248379.589121583
E + where 1248379.651833583 = <built-in function monotonic>()
E + where <built-in function monotonic> = time.monotonic
=========================== short test summary info ============================
ERROR student-tests/adapters/test_s3_storage.py::test_round_trip_of_the_largest_object
ERROR student-tests/adapters/test_s3_storage.py::test_listing_is_paged_in_byte_order_and_stat_reads_size
719 passed, 19 deselected, 2 errors in 138.76s (0:02:18)
make: *** [student-test] Error 1
exit_code: 2 elapsed_seconds: 140.238
@@ -0,0 +1,51 @@
import json
from collections import Counter
from pathlib import Path
from statistics import median
root = Path(__file__).parent
reports = []
for run in range(1, 4):
for size in (1, 10):
for concurrency in (10, 20, 40):
path = root / f"upload-memory/run{run}/slots3-{size}mib-c{concurrency}.json"
report = json.loads(path.read_text())
assert report["commit"] == "5e49502ae78fa48b992c97418e490666c699726d"
assert report["count"] == concurrency * 2
assert report["concurrency"] == concurrency
assert report["upload_concurrency"] == 3
assert sum(report["status_codes"].values()) == report["count"]
assert report["instances"] == 2
reports.append({"file": str(path), "size_mib": size, **report})
codes = Counter()
for report in reports:
codes.update(report["status_codes"])
rows = []
for size in (1, 10):
for concurrency in (10, 20, 40):
runs = [r for r in reports if r["size_mib"] == size and r["concurrency"] == concurrency]
peak = [max(m["cgroup_memory_peak_mib"] for m in r["memory"].values()) for r in runs]
rows.append(
{
"size_mib": size,
"concurrency": concurrency,
"body_bytes": [r["body_bytes"] for r in runs],
"successful_requests": sum(r["status_codes"].get("201", 0) for r in runs),
"api_peak_mib": peak,
"lb_peak_mib": [r["lb"]["cgroup_memory_peak_mib"] for r in runs],
"p95_ms": [r["latency_ms"]["p95"] for r in runs],
"p95_median_ms": median(r["latency_ms"]["p95"] for r in runs),
}
)
summary = {
"points": len(reports),
"status_codes": dict(codes),
"api_max_mib": max(max(r["api_peak_mib"]) for r in rows),
"lb_max_mib": max(max(r["lb_peak_mib"]) for r in rows),
"api_oom_kills": sum(m["oom_kill"] for r in reports for m in r["memory"].values()),
"lb_oom_kills": sum(r["lb"]["oom_kill"] for r in reports),
"rows": rows,
}
with (root / "memory-summary.json").open("x") as output:
output.write(json.dumps(summary, ensure_ascii=False, indent=2) + "\n")
print(json.dumps(summary, ensure_ascii=False, indent=2))
+159
View File
@@ -0,0 +1,159 @@
date: 2026-11-06T19:06:53Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make up
sh scripts/secrets.sh
docker compose up -d --build --wait
#1 [internal] load local bake definitions
#1 reading from stdin 450B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.65kB done
#2 DONE 0.0s
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
#3 DONE 0.0s
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
#4 DONE 3.5s
#5 [internal] load .dockerignore
#5 transferring context: 453B done
#5 DONE 0.0s
#6 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
#6 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
#6 DONE 0.0s
#7 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
#7 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
#7 DONE 0.0s
#8 [internal] load build context
#8 transferring context: 37.68kB 0.0s done
#8 DONE 0.0s
#9 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
#9 CACHED
#10 [builder 3/7] WORKDIR /build
#10 CACHED
#11 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
#11 CACHED
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
#12 CACHED
#13 [builder 6/7] COPY src ./src
#13 DONE 0.0s
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
#14 0.165 Resolved 78 packages in 0.46ms
#14 0.179 Building mtusi-messenger @ file:///build
#14 1.746 Built mtusi-messenger @ file:///build
#14 1.750 Prepared 1 package in 1.57s
#14 1.753 Installed 1 package in 3ms
#14 1.921 Bytecode compiled 1702 files in 167ms
#14 1.921 + mtusi-messenger==1.4.0 (from file:///build)
#14 DONE 2.0s
#15 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
#15 CACHED
#16 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
#16 DONE 0.4s
#17 [runtime 4/6] WORKDIR /app
#17 DONE 0.0s
#18 [runtime 5/6] COPY --chown=root:root alembic.ini ./
#18 DONE 0.0s
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
#19 DONE 0.0s
#20 exporting to image
#20 exporting layers
#20 exporting layers 3.0s done
#20 exporting manifest sha256:795b367c439f2279d22ca16477fb44e402ceb269b2c5ad40cdd670cce452affb
#20 exporting manifest sha256:795b367c439f2279d22ca16477fb44e402ceb269b2c5ad40cdd670cce452affb done
#20 exporting config sha256:725e5a2094373414036dafac8f3ab7a605b8c7433bcd7b8697a6e13fa35261ad done
#20 exporting attestation manifest sha256:fbc27d3e58e01f9adc3e99e995cc4183c64dc4b43decd15fdd1bb578d418e417 done
#20 exporting manifest list sha256:7946b3294cc03fbaa58564b6c0b365589a5b3bb5cf8893586dc7ec14f8a19cff 0.0s done
#20 naming to docker.io/library/mtusi-messenger:hlpipe-lab4-validation-20261106 done
#20 unpacking to docker.io/library/mtusi-messenger:hlpipe-lab4-validation-20261106
#20 unpacking to docker.io/library/mtusi-messenger:hlpipe-lab4-validation-20261106 0.6s done
#20 DONE 3.7s
#21 resolving provenance for metadata file
#21 DONE 0.0s
api Built
Network hlpipe-lab4-validation-20261106_edge Creating
Network hlpipe-lab4-validation-20261106_edge Created
Network hlpipe-lab4-validation-20261106_backend Creating
Network hlpipe-lab4-validation-20261106_backend Created
Volume "hlpipe-lab4-validation-20261106_pgdata" Creating
Volume "hlpipe-lab4-validation-20261106_pgdata" Created
Volume "hlpipe-lab4-validation-20261106_valkeydata" Creating
Volume "hlpipe-lab4-validation-20261106_valkeydata" Created
Volume "hlpipe-lab4-validation-20261106_s3data" Creating
Volume "hlpipe-lab4-validation-20261106_s3data" Created
Container hlpipe-lab4-validation-20261106-s3-1 Creating
Container hlpipe-lab4-validation-20261106-postgres-1 Creating
Container hlpipe-lab4-validation-20261106-lb-1 Creating
Container hlpipe-lab4-validation-20261106-valkey-1 Creating
Container hlpipe-lab4-validation-20261106-valkey-1 Created
Container hlpipe-lab4-validation-20261106-s3-1 Created
Container hlpipe-lab4-validation-20261106-s3-init-1 Creating
Container hlpipe-lab4-validation-20261106-lb-1 Created
Container hlpipe-lab4-validation-20261106-postgres-1 Created
Container hlpipe-lab4-validation-20261106-migrate-1 Creating
Container hlpipe-lab4-validation-20261106-s3-init-1 Created
Container hlpipe-lab4-validation-20261106-migrate-1 Created
Container hlpipe-lab4-validation-20261106-api-2 Creating
Container hlpipe-lab4-validation-20261106-api-1 Creating
Container hlpipe-lab4-validation-20261106-api-1 Created
Container hlpipe-lab4-validation-20261106-api-2 Created
Container hlpipe-lab4-validation-20261106-valkey-1 Starting
Container hlpipe-lab4-validation-20261106-lb-1 Starting
Container hlpipe-lab4-validation-20261106-s3-1 Starting
Container hlpipe-lab4-validation-20261106-postgres-1 Starting
Container hlpipe-lab4-validation-20261106-valkey-1 Started
Container hlpipe-lab4-validation-20261106-s3-1 Started
Container hlpipe-lab4-validation-20261106-s3-1 Waiting
Container hlpipe-lab4-validation-20261106-postgres-1 Started
Container hlpipe-lab4-validation-20261106-postgres-1 Waiting
Container hlpipe-lab4-validation-20261106-lb-1 Started
Container hlpipe-lab4-validation-20261106-postgres-1 Healthy
Container hlpipe-lab4-validation-20261106-migrate-1 Starting
Container hlpipe-lab4-validation-20261106-migrate-1 Started
Container hlpipe-lab4-validation-20261106-s3-1 Healthy
Container hlpipe-lab4-validation-20261106-s3-init-1 Starting
Container hlpipe-lab4-validation-20261106-s3-init-1 Started
Container hlpipe-lab4-validation-20261106-s3-init-1 Waiting
Container hlpipe-lab4-validation-20261106-migrate-1 Waiting
Container hlpipe-lab4-validation-20261106-s3-init-1 Exited
Container hlpipe-lab4-validation-20261106-migrate-1 Exited
Container hlpipe-lab4-validation-20261106-api-2 Starting
Container hlpipe-lab4-validation-20261106-api-2 Started
Container hlpipe-lab4-validation-20261106-api-1 Starting
Container hlpipe-lab4-validation-20261106-api-1 Started
Container hlpipe-lab4-validation-20261106-lb-1 Waiting
Container hlpipe-lab4-validation-20261106-postgres-1 Waiting
Container hlpipe-lab4-validation-20261106-valkey-1 Waiting
Container hlpipe-lab4-validation-20261106-migrate-1 Waiting
Container hlpipe-lab4-validation-20261106-api-2 Waiting
Container hlpipe-lab4-validation-20261106-api-1 Waiting
Container hlpipe-lab4-validation-20261106-s3-init-1 Waiting
Container hlpipe-lab4-validation-20261106-s3-1 Waiting
Container hlpipe-lab4-validation-20261106-s3-1 Healthy
Container hlpipe-lab4-validation-20261106-migrate-1 Exited
Container hlpipe-lab4-validation-20261106-s3-init-1 Exited
Container hlpipe-lab4-validation-20261106-postgres-1 Healthy
Container hlpipe-lab4-validation-20261106-valkey-1 Healthy
Container hlpipe-lab4-validation-20261106-api-2 Healthy
Container hlpipe-lab4-validation-20261106-api-1 Healthy
Container hlpipe-lab4-validation-20261106-lb-1 Healthy
scripts/lb-wait.sh
exit_code: 0 elapsed_seconds: 21.206
@@ -0,0 +1,71 @@
date: 2026-11-06T19:07:44Z commit: 5e49502ae78fa48b992c97418e490666c699726d
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-validation-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24846", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/png-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/pytest -m stack -v -s --no-header --tb=short -p no:cacheprovider student-tests/stack/test_attachment_faults.py
============================= test session starts ==============================
collecting ... collected 7 items
student-tests/stack/test_attachment_faults.py::test_user_errors_never_become_500 10 MiB + 1 с Content-Length, тело не отправлено: 413
10 MiB + 1 chunked: 413
PNG 100000×100000 (бомба): 413
PNG 8001×5000: 413
PNG с корректными CRC и битым IDAT: 415
PNG с повторным IHDR: 415
обрезанный PNG: 415
обрезанный JPEG: 415
JPEG как image/png: 415
GIF как image/png: 415
WebP как image/png: 415
текст как image/png: 415
PNG как image/jpeg: 415
пустое тело: 415
application/octet-stream: 415
без Content-Type: 415
filename='../a.png': 400
filename='a/b.png': 400
filename='a\\b.png': 400
filename='a\x00.png': 400
filename='a\x01.png': 400
filename='a\x7f.png': 400
filename='': 400
filename=' ': 400
filename='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: 400
filename=None: 400
посторонний: upload в чужой чат: 404
посторонний: метаданные: 404
посторонний: /content: 404
посторонний: ссылка на чужое вложение: 404
вложение другого чата: 404
неизвестное вложение: 404
11 вложений: 400
повтор вложения: 400
невалидный UUID: 400
пустой текст без вложений: 400
невалидный id вложения: 400
variant=thumbnail: 400
строк вложений в чате: 2 (= ответов 201); ответов в журнале реплик: 54, из них 5xx: 0
PASSED
student-tests/stack/test_attachment_faults.py::test_commit_failure_is_compensated_at_once отказ COMMIT после записи объекта: 503 unavailable
сразу после ответа: строка нет, объект HEAD 404
журнал: audit.attachment_discarded reason=compensation
PASSED
student-tests/stack/test_attachment_faults.py::test_crash_between_put_and_commit_is_swept_after_grace реплика be7bd4c0acb6 убита между PUT и COMMIT, клиент получил 502
реплика b853647278e7 убита между PUT и COMMIT, клиент получил 502
остаток после падения: строка pending, объект HEAD 200
остаток после падения: строка pending, объект HEAD 200
старше grace: строка убрана через 26.1 с, объект HEAD 404
моложе grace: строка pending, объект HEAD 200
тот же после сдвига: убран через 0.9 с, объект HEAD 404
готовое вложение в сообщении со сдвинутым created_at скачивается, SHA-256 совпадает
PASSED
student-tests/stack/test_attachment_faults.py::test_aborted_upload_leaves_nothing обрыв после 256 KiB из 5 MiB: статус в журнале реплики [400], намерение None
PASSED
student-tests/stack/test_attachment_faults.py::test_stalled_upload_is_cut_and_leaves_nothing тело зависло после 1 KiB: 503 unavailable за 8.02 с
PASSED
student-tests/stack/test_attachment_faults.py::test_token_is_checked_before_the_declared_size без токена, Content-Length 10485761: 401 unauthorized
PASSED
student-tests/stack/test_attachment_faults.py::test_slow_but_steady_transfers_outlive_the_request_timeout upload 3 MiB ≈ 256 KiB/s: клиент 12.3 с, реплика (201, 12.059859000000001)
скачивание 3 MiB ≈ 192 KiB/s из сети edge: клиент 16.1 с, реплика (200, 12.808703)
PASSED
========================= 7 passed in 74.96s (0:01:14) =========================
exit_code: 0 elapsed_seconds: 75.524
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:10:48Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 20,
"concurrency": 10,
"body_bytes": 10485256,
"status_codes": {
"201": 20
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 1.506,
"successful_rps": 13.28,
"latency_ms": {
"p50": 750.9,
"p95": 1236.1,
"p99": 1236.1,
"max": 1236.1
},
"memory": {
"8b675724c4c0": {
"idle_mib": 230.4,
"docker_stats_peak_mib": 290.2,
"cgroup_memory_peak_mib": 381.8,
"oom_kill": 0
},
"4ce72340547c": {
"idle_mib": 231.3,
"docker_stats_peak_mib": 302.6,
"cgroup_memory_peak_mib": 394.8,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 23.7,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:10:58Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 40,
"concurrency": 20,
"body_bytes": 10485256,
"status_codes": {
"201": 40
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 3.216,
"successful_rps": 12.44,
"latency_ms": {
"p50": 1193.6,
"p95": 2514.0,
"p99": 2989.5,
"max": 2989.5
},
"memory": {
"1d9a0f5d204f": {
"idle_mib": 231.3,
"docker_stats_peak_mib": 377.8,
"cgroup_memory_peak_mib": 423.6,
"oom_kill": 0
},
"a951c8bbdc87": {
"idle_mib": 230.2,
"docker_stats_peak_mib": 384.6,
"cgroup_memory_peak_mib": 427.6,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 25.7,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:11:10Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 80,
"concurrency": 40,
"body_bytes": 10485256,
"status_codes": {
"201": 80
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 8.072,
"successful_rps": 9.91,
"latency_ms": {
"p50": 3202.7,
"p95": 6534.9,
"p99": 6809.2,
"max": 6809.2
},
"memory": {
"0766d47ff9f8": {
"idle_mib": 231.4,
"docker_stats_peak_mib": 402.8,
"cgroup_memory_peak_mib": 414.9,
"oom_kill": 0
},
"df96b9a2348b": {
"idle_mib": 179.3,
"docker_stats_peak_mib": 419.9,
"cgroup_memory_peak_mib": 439.2,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 31.1,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:10:21Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 20,
"concurrency": 10,
"body_bytes": 1048276,
"status_codes": {
"201": 20
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.171,
"successful_rps": 116.65,
"latency_ms": {
"p50": 91.9,
"p95": 134.3,
"p99": 134.3,
"max": 134.3
},
"memory": {
"577511c29bb1": {
"idle_mib": 230.3,
"docker_stats_peak_mib": 267.4,
"cgroup_memory_peak_mib": 277.0,
"oom_kill": 0
},
"bbd28951ca10": {
"idle_mib": 231.4,
"docker_stats_peak_mib": 267.6,
"cgroup_memory_peak_mib": 278.3,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 24.5,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:10:30Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 40,
"concurrency": 20,
"body_bytes": 1048276,
"status_codes": {
"201": 40
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.296,
"successful_rps": 135.03,
"latency_ms": {
"p50": 140.0,
"p95": 243.8,
"p99": 245.8,
"max": 245.8
},
"memory": {
"4928e392f895": {
"idle_mib": 230.5,
"docker_stats_peak_mib": 269.7,
"cgroup_memory_peak_mib": 283.4,
"oom_kill": 0
},
"e27fbc4b5cbd": {
"idle_mib": 232.8,
"docker_stats_peak_mib": 268.5,
"cgroup_memory_peak_mib": 282.8,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 26.8,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:10:39Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 80,
"concurrency": 40,
"body_bytes": 1048276,
"status_codes": {
"201": 80
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.545,
"successful_rps": 146.78,
"latency_ms": {
"p50": 213.4,
"p95": 373.4,
"p99": 413.1,
"max": 413.1
},
"memory": {
"f2ecc37b7446": {
"idle_mib": 230.9,
"docker_stats_peak_mib": 273.0,
"cgroup_memory_peak_mib": 289.5,
"oom_kill": 0
},
"aea2109b29b6": {
"idle_mib": 232.2,
"docker_stats_peak_mib": 273.4,
"cgroup_memory_peak_mib": 287.9,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 25.8,
"oom_kill": 0
}
}
@@ -0,0 +1,8 @@
# 2026-11-06T19:10:15Z commit 5e49502ae78fa48b992c97418e490666c699726d; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
3 1.0M 10 201x20 91.9 134.3 231.4 278.3 0 24.5 0
3 1.0M 20 201x40 140.0 243.8 232.8 283.4 0 26.8 0
3 1.0M 40 201x80 213.4 373.4 232.2 289.5 0 25.8 0
3 10.0M 10 201x20 750.9 1236.1 231.3 394.8 0 23.7 0
3 10.0M 20 201x40 1193.6 2514.0 231.3 427.6 0 25.7 0
3 10.0M 40 201x80 3202.7 6534.9 231.4 439.2 0 31.1 0
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:12:10Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 20,
"concurrency": 10,
"body_bytes": 10485256,
"status_codes": {
"201": 20
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 4.208,
"successful_rps": 4.75,
"latency_ms": {
"p50": 733.0,
"p95": 3287.8,
"p99": 3287.8,
"max": 3287.8
},
"memory": {
"125244195f61": {
"idle_mib": 180.0,
"docker_stats_peak_mib": 300.0,
"cgroup_memory_peak_mib": 378.1,
"oom_kill": 0
},
"a76c16f34f2d": {
"idle_mib": 231.6,
"docker_stats_peak_mib": 340.5,
"cgroup_memory_peak_mib": 391.3,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 21.2,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:12:22Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 40,
"concurrency": 20,
"body_bytes": 10485256,
"status_codes": {
"201": 40
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 3.06,
"successful_rps": 13.07,
"latency_ms": {
"p50": 1293.6,
"p95": 2632.8,
"p99": 2633.0,
"max": 2633.0
},
"memory": {
"5f5ac839e166": {
"idle_mib": 179.3,
"docker_stats_peak_mib": 298.8,
"cgroup_memory_peak_mib": 440.0,
"oom_kill": 0
},
"35fb96dfd2ff": {
"idle_mib": 231.1,
"docker_stats_peak_mib": 302.8,
"cgroup_memory_peak_mib": 428.4,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 25.8,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:12:33Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 80,
"concurrency": 40,
"body_bytes": 10485256,
"status_codes": {
"201": 80
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 6.298,
"successful_rps": 12.7,
"latency_ms": {
"p50": 2784.9,
"p95": 4256.0,
"p99": 4884.9,
"max": 4884.9
},
"memory": {
"7706b31791f2": {
"idle_mib": 231.2,
"docker_stats_peak_mib": 406.2,
"cgroup_memory_peak_mib": 427.1,
"oom_kill": 0
},
"8996ef3c9308": {
"idle_mib": 231.9,
"docker_stats_peak_mib": 418.0,
"cgroup_memory_peak_mib": 428.9,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 30.8,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:11:42Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 20,
"concurrency": 10,
"body_bytes": 1048276,
"status_codes": {
"201": 20
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.247,
"successful_rps": 81.09,
"latency_ms": {
"p50": 127.9,
"p95": 241.0,
"p99": 241.0,
"max": 241.0
},
"memory": {
"12a73c3b36a2": {
"idle_mib": 179.5,
"docker_stats_peak_mib": 267.4,
"cgroup_memory_peak_mib": 279.1,
"oom_kill": 0
},
"0c68ba9a70ae": {
"idle_mib": 231.5,
"docker_stats_peak_mib": 267.2,
"cgroup_memory_peak_mib": 279.8,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 21.3,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:11:52Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 40,
"concurrency": 20,
"body_bytes": 1048276,
"status_codes": {
"201": 40
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.342,
"successful_rps": 117.04,
"latency_ms": {
"p50": 159.1,
"p95": 310.2,
"p99": 311.4,
"max": 311.4
},
"memory": {
"246cfd3d8b02": {
"idle_mib": 179.3,
"docker_stats_peak_mib": 269.2,
"cgroup_memory_peak_mib": 284.4,
"oom_kill": 0
},
"6b4db526e0e5": {
"idle_mib": 232.5,
"docker_stats_peak_mib": 270.1,
"cgroup_memory_peak_mib": 284.0,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 24.1,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:12:01Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 80,
"concurrency": 40,
"body_bytes": 1048276,
"status_codes": {
"201": 80
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.571,
"successful_rps": 140.1,
"latency_ms": {
"p50": 211.8,
"p95": 417.6,
"p99": 516.7,
"max": 516.7
},
"memory": {
"3991ab8a328c": {
"idle_mib": 179.5,
"docker_stats_peak_mib": 272.2,
"cgroup_memory_peak_mib": 290.4,
"oom_kill": 0
},
"2b8c3e43cd8d": {
"idle_mib": 231.3,
"docker_stats_peak_mib": 271.8,
"cgroup_memory_peak_mib": 286.7,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 27.6,
"oom_kill": 0
}
}
@@ -0,0 +1,8 @@
# 2026-11-06T19:11:36Z commit 5e49502ae78fa48b992c97418e490666c699726d; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
3 1.0M 10 201x20 127.9 241.0 231.5 279.8 0 21.3 0
3 1.0M 20 201x40 159.1 310.2 232.5 284.4 0 24.1 0
3 1.0M 40 201x80 211.8 417.6 231.3 290.4 0 27.6 0
3 10.0M 10 201x20 733.0 3287.8 231.6 391.3 0 21.2 0
3 10.0M 20 201x40 1293.6 2632.8 231.1 440.0 0 25.8 0
3 10.0M 40 201x80 2784.9 4256.0 231.9 428.9 0 30.8 0
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:13:35Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 20,
"concurrency": 10,
"body_bytes": 10485256,
"status_codes": {
"201": 20
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 1.686,
"successful_rps": 11.86,
"latency_ms": {
"p50": 780.0,
"p95": 1520.3,
"p99": 1520.3,
"max": 1520.3
},
"memory": {
"99c7131e1911": {
"idle_mib": 230.9,
"docker_stats_peak_mib": 276.8,
"cgroup_memory_peak_mib": 372.3,
"oom_kill": 0
},
"6eb29038418c": {
"idle_mib": 232.6,
"docker_stats_peak_mib": 301.4,
"cgroup_memory_peak_mib": 391.8,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 22.0,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:13:44Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 40,
"concurrency": 20,
"body_bytes": 10485256,
"status_codes": {
"201": 40
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 5.004,
"successful_rps": 7.99,
"latency_ms": {
"p50": 2455.8,
"p95": 3632.6,
"p99": 3638.6,
"max": 3638.6
},
"memory": {
"e9112c9b70c4": {
"idle_mib": 179.6,
"docker_stats_peak_mib": 388.3,
"cgroup_memory_peak_mib": 408.6,
"oom_kill": 0
},
"c9b6663aaf29": {
"idle_mib": 231.4,
"docker_stats_peak_mib": 392.4,
"cgroup_memory_peak_mib": 425.0,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 25.3,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:13:58Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 80,
"concurrency": 40,
"body_bytes": 10485256,
"status_codes": {
"201": 80
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 8.31,
"successful_rps": 9.63,
"latency_ms": {
"p50": 4620.3,
"p95": 5971.4,
"p99": 6821.3,
"max": 6821.3
},
"memory": {
"90c6b857633b": {
"idle_mib": 230.5,
"docker_stats_peak_mib": 416.1,
"cgroup_memory_peak_mib": 437.2,
"oom_kill": 0
},
"2a8c719c5404": {
"idle_mib": 232.8,
"docker_stats_peak_mib": 415.6,
"cgroup_memory_peak_mib": 438.4,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 28.7,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:13:07Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 20,
"concurrency": 10,
"body_bytes": 1048276,
"status_codes": {
"201": 20
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.258,
"successful_rps": 77.52,
"latency_ms": {
"p50": 124.5,
"p95": 257.7,
"p99": 257.7,
"max": 257.7
},
"memory": {
"fb3efda65803": {
"idle_mib": 179.7,
"docker_stats_peak_mib": 267.9,
"cgroup_memory_peak_mib": 277.0,
"oom_kill": 0
},
"537e47ddb56c": {
"idle_mib": 231.3,
"docker_stats_peak_mib": 266.8,
"cgroup_memory_peak_mib": 279.4,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 23.7,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:13:17Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 40,
"concurrency": 20,
"body_bytes": 1048276,
"status_codes": {
"201": 40
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.323,
"successful_rps": 123.99,
"latency_ms": {
"p50": 131.1,
"p95": 226.6,
"p99": 255.7,
"max": 255.7
},
"memory": {
"85861966e21c": {
"idle_mib": 231.5,
"docker_stats_peak_mib": 268.7,
"cgroup_memory_peak_mib": 284.5,
"oom_kill": 0
},
"89bd7f27d828": {
"idle_mib": 230.1,
"docker_stats_peak_mib": 269.8,
"cgroup_memory_peak_mib": 283.2,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 25.7,
"oom_kill": 0
}
}
@@ -0,0 +1,40 @@
{
"date": "2026-11-06T19:13:26Z",
"commit": "5e49502ae78fa48b992c97418e490666c699726d",
"upload_concurrency": 3,
"mode": "http",
"count": 80,
"concurrency": 40,
"body_bytes": 1048276,
"status_codes": {
"201": 80
},
"instances": 2,
"linked_in_messages": 0,
"elapsed_seconds": 0.582,
"successful_rps": 137.52,
"latency_ms": {
"p50": 228.5,
"p95": 367.6,
"p99": 401.6,
"max": 401.6
},
"memory": {
"847acb26203a": {
"idle_mib": 230.4,
"docker_stats_peak_mib": 272.9,
"cgroup_memory_peak_mib": 289.3,
"oom_kill": 0
},
"774f30fbb218": {
"idle_mib": 232.6,
"docker_stats_peak_mib": 272.1,
"cgroup_memory_peak_mib": 289.4,
"oom_kill": 0
}
},
"lb": {
"cgroup_memory_peak_mib": 29.8,
"oom_kill": 0
}
}
@@ -0,0 +1,8 @@
# 2026-11-06T19:13:02Z commit 5e49502ae78fa48b992c97418e490666c699726d; api x2: 1 CPU, 512 MiB, 2 workers; MALLOC_MMAP_THRESHOLD_=131072; 2 uploads per client; peaks from cgroup memory.peak, MiB
slots size conc codes p50_ms p95_ms api_idle api_peak api_oom lb_peak lb_oom
3 1.0M 10 201x20 124.5 257.7 231.3 279.4 0 23.7 0
3 1.0M 20 201x40 131.1 226.6 231.5 284.5 0 25.7 0
3 1.0M 40 201x80 228.5 367.6 232.6 289.4 0 29.8 0
3 10.0M 10 201x20 780.0 1520.3 232.6 391.8 0 22.0 0
3 10.0M 20 201x40 2455.8 3632.6 231.4 425.0 0 25.3 0
3 10.0M 40 201x80 4620.3 5971.4 232.8 438.4 0 28.7 0