forked from mtusi2026/mtusi2026lab2
Compare commits
12
Commits
75b93bbba5
...
c67dd11029
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c67dd11029 | ||
|
|
4ed889c1e4 | ||
|
|
5e49502ae7 | ||
|
|
7a0ebac2aa | ||
|
|
7c8a1a6489 | ||
|
|
bcbd4ebc02 | ||
|
|
7342d5d97a | ||
|
|
9387c3d82a | ||
|
|
f0521fa1e0 | ||
|
|
8bc2da2c09 | ||
|
|
65003b6119 | ||
|
|
4c14ccbadd |
@@ -35,7 +35,7 @@ make clean-clone-evidence # блок «Запуск из чистого cl
|
||||
make reconcile ARGS="--apply" # трек 2: сверка PostgreSQL ↔ S3 (без ARGS — dry-run), one-off сервис reconciler
|
||||
make reconcile-demo # трек 2: внедрение ошибок, dry-run/apply/повтор, безопасность, нагрузка → evidence/reconcile/
|
||||
make reconcile-cost # трек 2: стоимость обхода 1k/10k/30k/100k × 3 (чистый стенд) → evidence/reconcile/cost/
|
||||
make down # остановка без удаления данных (с профилями bench, tools, reconcile); make reset-data — удаление volumes
|
||||
make down # остановка без удаления данных (с профилями bench, tools, reconcile)
|
||||
```
|
||||
|
||||
`tests/*.py` и `scripts/*.py` — только stdlib, синтаксис Python 3.9 (`make check` разбирает их системным `python3`). Проверки сами не поднимают стенд. Хуки `scripts/stop-one.sh` и `scripts/restart.sh` запускаются тестом без shell, поэтому исполняемые и с shebang. Данные не удаляются автоматически: каждый прогон smoke создаёт новых синтетических пользователей и вложения.
|
||||
@@ -58,7 +58,7 @@ make down # остановка без удаления д
|
||||
|
||||
- Поздние исправления ЛР3 перенесены из immutable snapshot `ba78cf6da439a4ec60fd59389583b38285b0b2b1`; диапазон от `f591fa64e525679a31c9db7f942d36c789e1a12f` и применимость evidence описаны в `evidence/forward-port.md`.
|
||||
- Только свой Compose project `mtusi2026lab4` либо `hlpipe-lab4-*` под разрешённым working_dir; HTTP 18084, остальные host-порты 24000–24999. `NO_PROXY` и `no_proxy`: localhost,127.0.0.1,::1. Чужие контейнеры не останавливать, WIP и volumes сохранять. Совместный Docker допустим; эксклюзивность только в финальном release.
|
||||
- Runner управляет этапами и агентами: реализация 3→4→5 и evidence → review/fix при major → report → нагрузка/публикация. Самостоятельных агентов, push и Telegram нет; runner/state не менять. Публикация только в разрешённой фазе в private MTUCI-Labs.
|
||||
- Runner назначает одного агента переноса и реализации 3→4→5 с evidence, затем review → отдельный fix при major → re-review, отдельный report и одного агента нагрузки/публикации. Грейды одной лабы последовательны; review/report предыдущей могут идти параллельно реализации следующей. Самостоятельных агентов, push и Telegram нет; runner/state не менять. Публикация только в назначенной фазе PUBLICATION в private MTUCI-Labs.
|
||||
- Исправлять критичное: major — доказанная угроза безопасности, данным, доступности или неработающий обязательный сценарий. Прочие minor остаются в findings и ограничениях REPORT и не блокируют этап. Пригодные измерения сохраняются; повторяется только затронутая или признанная непригодной серия с указанной причиной и фоном нагрузки.
|
||||
- Не менять и не ослаблять `contracts/`, `tests/`, `README.md`, `COURSE.md`, рубрику. Расхождение оформляется вопросом преподавателю.
|
||||
- Код — `src/messenger/`, миграции — `alembic/versions/NNNN_*.py`, конфигурация LB, нагрузки и S3 — `infra/`, хуки и обвязка стенда — `scripts/`, собственные тесты — `student-tests/`, обезличенные доказательства — `evidence/`.
|
||||
@@ -66,12 +66,17 @@ make down # остановка без удаления д
|
||||
- Без комментариев в коде; отступы — пробелы (`[tool.ruff.format]`); Python 3.14 без `from __future__ import annotations` и `TYPE_CHECKING`.
|
||||
- Порты реплик API и S3 наружу не публикуются: только LB. Нет `container_name`, `hostname` и общего `INSTANCE_ID` у сервиса `api`. Root-ключи S3 есть только у `s3`, `s3-init` и `s3-cli`; API получает отдельный ключ только на объекты bucket (`Get/Put/DeleteObject`), сверка — свой ключ (`ListBucket`, `Get/DeleteObject`). `s3-init` и `s3-cli` работают от uid 65534, `migrate` и `reconciler` — с `init: true`.
|
||||
- `REPORT.md`: команды из чистого clone, архитектура, таблица «критерий → команда → наблюдение → файл», таблица отказов. PASS без команды не доказательство; для отказов — какой контейнер реально остановлен (`docker ps -a`).
|
||||
- Отчётный этап меняет только `REPORT.md`, `AGENTS.md` и `evidence/**/*.md`; код, конфиги, OpenSpec и сырые измерения не меняет. Docker и нагрузку не запускает. `make student-test` поднимает зависимости: сохранённый результат или collection не выдаётся за новый полный прогон.
|
||||
- Ветка `solution/bpi2303-kostylev`, коммиты на английском, перед каждым — `make lint`. Никогда не коммитить `.env`, `secrets/`, токены, ключи S3, volumes, дампы.
|
||||
|
||||
## Уровни оценки
|
||||
|
||||
Решение заявлено на **«5»** с треком 2 «Согласованность двух хранилищ (reconciler)»; таблица доказательств — в `REPORT.md`, индекс файлов с командой и коммитом каждого — `evidence/README.md`. Доказательства снимаются на стенде из чистого состояния (`make reset-data`, `make up`); при изменении кода приложения или стенда их нужно снять заново.
|
||||
Цель — **«5»**, трек 2 «Согласованность двух хранилищ (reconciler)». На snapshot `7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4` ревью прошло без открытых major. Финальная validation на `5e49502ae78fa48b992c97418e490666c699726d` с идентичным runtime закрыла динамический долг обоих PNG-фиксов: `evidence/load-validation.md`. Сохранён minor Unicode-surrogate → HTTP 500 (`src/messenger/messaging/entrypoints/schemas.py:35`, `evidence/forward-final-2026-11-06/known-minor-http.txt`).
|
||||
|
||||
Таблица критериев — в `REPORT.md`, команды и SHA — в `evidence/README.md`. Новая серия использует отдельный разрешённый project со свежими volumes; `reset-data`, `down -v`, reset/clean и удаление пользовательских данных запрещены. После Docker-этапа остановить только свои стенды, сохранив volumes. При изменениях проверять применимость по diff: повторять лишь затронутые/непригодные серии с причиной и фоном. Документационный коммит измерений не обесценивает.
|
||||
|
||||
Исторические upload-memory и конкурентные upload до PNG-фиксов не доказывают RAM/производительность нового инспектора. Финальная validation выполнена: 721 собственная проверка (719 + адресный повтор 2 setup errors RustFS), 7 stack, PNG/JPEG через LB/RustFS; матрица 3 слота × 1/10 MiB × 10/20/40 клиентов ×3: 840/840×201, API ≤440 MiB, OOM 0; 10 PNG 40 MP RGBA16: 10×201, API ≤270,828 MiB; upload при сверке: 3341×201, 67 проходов, lost_ready=0. Сырьё — `evidence/png-final-2026-11-06/`. Эти пригодные серии повторять без нового изменения/обоснованной непригодности запрещено. Контроль 64/3 оставлен историческим. 27 пригодных cost-замеров reconciler на `3402fd69d4922e500035a204d957be2cccaeb85a` сохраняются: измеряемый путь не менялся. Отрицательный вывод о линейности времени и разброс deep 100k не скрываются.
|
||||
|
||||
- **3** — RustFS и приватный bucket в общем стенде, метаданные в PostgreSQL; upload `201 ready` после записи и `COMMIT`, побайтное скачивание вторым участником, `404` постороннему, `403` анонимному GET в S3; лимиты 10 MiB / 40 MP, тип по содержимому, опасные `filename`; upload → стоп обслужившей реплики → download через другую; restart с volumes; недоступный S3 → `503` при работающих текстах; минимум lab3 сохранён.
|
||||
- **4** — негативные тесты файлов без `500`; компенсация сбоя между S3 и БД под блокировкой строки и фоновая уборка намерений `pending` старше `UPLOAD_GRACE_SECONDS` (`SKIP LOCKED`, объект раньше строки); слоты загрузки на воркер, ограниченные буферы сокетов LB и API, фиксированный порог `mmap` glibc и замер ≥10 одновременных загрузок; идемпотентный bootstrap, ограниченные ключи API, закрытая консоль, проверка приватности вне API.
|
||||
- **5** — трек 2: one-off `reconciler` (`python -m messenger.attachments.entrypoints.reconcile`, по умолчанию `--dry-run`) сливает отсортированный листинг bucket и keyset-страницы `attachments` по `object_key` (O(N) по времени, O(страница) по памяти); объект без строки старше grace + skew удаляется после повторной проверки строки, готовые строки без объекта или с другими байтами уходят в карантин (миграция `0004`, `/content` → `404`) и не удаляются, `pending` старше grace удаляется (объект, затем строка), карантин снимается только после совпавшего SHA-256 объекта (и без `--deep`); удаление намерения — `audit.attachment_discarded reason=reconcile`; SQL-страниц `⌈N/страница⌉`; один проход за раз (`pg_try_advisory_lock`); повторный `--apply` — 0 действий; стоимость обхода 1k/10k/30k/100k объектов с закреплёнными CPU и отбраковкой прогонов с чужой нагрузкой (`evidence/reconcile/`).
|
||||
- **5** — трек 2: one-off `reconciler` (`python -m messenger.attachments.entrypoints.reconcile`, по умолчанию `--dry-run`) сливает отсортированный листинг bucket и keyset-страницы `attachments` по `object_key` (O(N) сравнений, O(страница) памяти; линейность времени в замерах не подтвердилась); объект без строки старше grace + skew удаляется после повторной проверки строки, готовые строки без объекта или с другими байтами уходят в карантин (миграция `0004`, `/content` → `404`) и не удаляются, `pending` старше grace удаляется (объект, затем строка), карантин снимается только после совпавшего SHA-256 объекта (и без `--deep`); удаление намерения — `audit.attachment_discarded reason=reconcile`; SQL-страниц `⌈N/страница⌉`; один проход за раз (`pg_try_advisory_lock`); повторный `--apply` — 0 действий; стоимость обхода 1k/10k/30k/100k объектов с закреплёнными CPU и отбраковкой прогонов с чужой нагрузкой (`evidence/reconcile/`).
|
||||
|
||||
+100
-63
@@ -1,75 +1,112 @@
|
||||
# Текущая серия SQLAlchemy
|
||||
# Индекс доказательств ЛР4
|
||||
|
||||
Новые результаты находятся в [sqlalchemy-2026-11-06](sqlalchemy-2026-11-06/).
|
||||
Уровень 3: [критерии, команды, результаты](sqlalchemy-2026-11-06/grade3/NOTES.md).
|
||||
Уровень 4: [отказы, память и уборка](sqlalchemy-2026-11-06/grade4/NOTES.md).
|
||||
Трек 2: [корректность и стоимость SQLAlchemy](sqlalchemy-2026-11-06/track5/NOTES.md).
|
||||
Все 21 замечание: [проверяемые основания](sqlalchemy-2026-11-06/REVIEW-CLOSURE.md).
|
||||
Полные SHA, UTC, параметры и exit code — в новых raw *.txt; API-код перенесён из
|
||||
immutable `f591fa64e525679a31c9db7f942d36c789e1a12f`.
|
||||
Индекс ниже сохранён как исторический: результаты asyncpg не выдаются за новые измерения.
|
||||
Финальный validation snapshot: `5e49502ae78fa48b992c97418e490666c699726d`, 2026-11-06.
|
||||
Runtime совпадает с review `7a0ebac2aa9e1d8602054ca4c7c1b0c23d3bfad4`;
|
||||
[аудит применимости и новые проверки](load-validation.md). Сохранённые cost и текстовая
|
||||
нагрузка приняты с исходными SHA. Старые upload-memory остаются историческими.
|
||||
|
||||
# Доказательства
|
||||
## Финальная validation после PNG-фиксов
|
||||
|
||||
Обезличенные результаты прогонов лабы 4. Пользователи, чаты, тексты и изображения синтетические. Паролей, токенов,
|
||||
ключей S3, `.env`, содержимого `secrets/`, ключей объектов в журналах и дампов здесь нет. В первой строке каждого
|
||||
отчёта `*.txt` стоят дата (UTC) и коммит прогона. В JSON сценариев (`failover-upload.json`, `s3-outage.json`,
|
||||
`reconcile/demo.json`, `reconcile/cost/summary.json`) поля `date`/`started_at` и `commit` лежат внутри, у прочих
|
||||
JSON коммит указан в таблицах ниже. Проверки через балансировщик шли на порт 18084 (`LB_HTTP_PORT`, потому что 8080
|
||||
на машине занят стендами других лаб): цели `make` берут `BASE_URL` из `docker compose port lb 8080`. Hostname
|
||||
реплики = `X-Instance-Id`, ID контейнеров меняются между прогонами.
|
||||
| Команда / назначение | Наблюдение | Файл |
|
||||
| --- | --- | --- |
|
||||
| `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) |
|
||||
|
||||
Код приложения последний раз менялся в `3de1dcd`, стенд (`compose.yaml`, `infra/`) — в `2891b37`, обвязка
|
||||
(`scripts/`, `Makefile`) — в `6ffb90d`. Всё ниже снято на этом коде.
|
||||
## Offline-проверки до финальной validation
|
||||
|
||||
Трек 2 снят 30.10 на `61dcb6b`, двумя свежими стендами (`make reset-data`, `make up`, `make test`): сначала
|
||||
`make reconcile-demo`, затем `make reconcile-cost`. Уровни «3» и «4» сняты после трека одной серией на `<SERIES>`.
|
||||
Порядок серии: `make reset-data`, `make up`, затем `make test`, `stack-evidence`, `limits`, `lb-check`,
|
||||
`scenario SCENARIO=failover-upload`, `failover-evidence`, `failover-evidence SHIFT=1`, `persistence-evidence`,
|
||||
`scenario SCENARIO=s3-outage`, `s3-check`, `retry-check`, `upload-faults`, `faults-evidence`, `attachments-evidence`,
|
||||
`storage-evidence`, три прогона `upload-memory` и `mmap-32m`, `overload-leftovers`, `load-evidence`. Без стенда сняты
|
||||
`contract-checks.txt` и `student-tests.txt`. `clean-clone.txt` снят в отдельном клоне со своим compose-проектом
|
||||
после серии, на `<CLONE>`.
|
||||
| Команда / назначение | Результат | SHA и файлы |
|
||||
| --- | --- | --- |
|
||||
| `make student-test PYTEST_ARGS='-q --tb=short student-tests/unit'` | 407 passed; оба повреждённых PNG отклоняются до записи | Код `7c8a1a64899dc0a1b5fa0949c0992ef40722eacf`; [unit](png-header-fix/unit.txt), [227 проверок инспектора/ASGI](png-header-fix/targeted.txt), [blob-манифест](png-header-fix/manifest.json) |
|
||||
| `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 при сверке | Выполненные результаты финальной фазы вынесены выше и в аудит применимости | [Общий долг двух PNG-фиксов](png-header-fix/NOTES.md#обязательные-проверки-финального-этапа) |
|
||||
|
||||
## Уровень «3» и перенос лабы 3
|
||||
Первый PNG-фикс: `9387c3d82ab77ea376eecce19a36a22803d35efb`,
|
||||
[причина и offline-доказательства](png-validation-fix/NOTES.md).
|
||||
Второй фикс требует единственный IHDR; вместе они добавляют распаковку PNG ограниченными
|
||||
блоками. Все предыдущие upload-memory и конкурентные upload в исторических разделах ниже
|
||||
относятся к старому инспектору. Collection API/stack в `png-header-fix/` — сбор тестов, не их исполнение.
|
||||
|
||||
| Файл | Что доказывает | Команда | Коммит |
|
||||
| --- | --- | --- | --- |
|
||||
| `clean-clone.txt` | запуск из свежего clone на пустых volumes: секреты, `config`, `make up` с миграциями `0001`–`0004` и `s3-init`, smoke, persistence, failover, `restore`, `failover-upload`, `s3-outage`, `s3-check`, `reconcile`, повтор миграций, `make down` (volumes остаются), `make reset-data` (volumes удалены); сырой вывод каждой команды | `make clean-clone-evidence LB_HTTP_PORT=18084 LB_STATS_PORT=24084` (`scripts/clean-clone.sh`) | `<CLONE>` |
|
||||
| `contract-checks.txt` | `make check`, `make validate` (`openapi-spec-validator` 0.7.2 из `.venv`); `git diff --stat upstream/main` контракта, публичных тестов и задания (пусто) и `.github` (только свой CI job) | команды внутри файла | `<SERIES>` |
|
||||
| `student-tests.txt` | `make lint` и все собственные тесты по именам, включая адаптер S3 против RustFS | `make student-test PYTEST_ARGS='-v --no-header'` | `<SERIES>` |
|
||||
| `smoke.txt` | публичный smoke через LB, ветка `LAB ≥ 4` | `make test` | `<SERIES>` |
|
||||
| `stack.txt` | сервисы, порты только у `lb`, `container_name` 0, `docker port` реплик пуст, hostname ↔ `X-Instance-Id`, лимиты, сети, uid, взгляд LB | `make stack-evidence` | `<SERIES>` |
|
||||
| `environment.txt` | host, Docker, образы по digest, версии Python, HAProxy, RustFS и пакетов, uid процессов | `make stack-evidence` | `<SERIES>` |
|
||||
| `limits.txt` | лимиты CPU/RAM всех сервисов (объявлены и применены), порты только у LB на `127.0.0.1`, секреты (root-ключи S3 только у `s3`, `s3-init`, `s3-cli`; у `reconciler` свой ключ), пользователь сервисов, volumes и сети по политике | `make limits` | `<SERIES>` |
|
||||
| `lb-check.json` | 40 `GET /users/me` одним токеном — 20 + 20 по репликам; 20 раундов × 8 параллельных POST с одним ключом — 160 × `201`, одна копия, `409` на другое тело | `make lb-check` | `<SERIES>` |
|
||||
| `failover-upload.json` | upload → остановка принявшей реплики → скачивание через другую, SHA-256; `docker inspect` обеих реплик в момент скачивания (target `exited`, сосед `running`, `StartedAt`/`FinishedAt`) и после возврата | `make scenario SCENARIO=failover-upload` | `<SERIES>` |
|
||||
| `failover-<id>.txt` (две) | `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` для каждой реплики: `docker inspect` до/после, остановлен именно target, его журнал остановки, `restore` | `make failover-evidence`, затем `make failover-evidence SHIFT=1` | `<SERIES>` |
|
||||
| `persistence.txt` | `make test-persistence ACTION_SCRIPT=scripts/restart.sh` и `StartedAt` всех контейнеров до и после | `make persistence-evidence` | `<SERIES>` |
|
||||
| `s3-outage.json` | S3 остановлен (`docker inspect` контейнера `s3` в это время): upload и `/content` `503` с временем ответа, метаданные, текст и readiness, возврат S3 и скачивание с тем же SHA-256 | `make scenario SCENARIO=s3-outage` | `<SERIES>` |
|
||||
| `storage-layout.txt` | `\d attachments` и `\d message_attachments`, `bytea` всей схемы, строки по статусам и объекты bucket, сверка SHA-256 вне API, `ro` и mounts реплик, volume `s3`, секреты сервисов | `make attachments-evidence` | `<SERIES>` |
|
||||
| `schema.txt`, `migrations.txt`, `kdf.txt`, `secrets.txt` | `\d+` всех таблиц и применённые миграции; повтор `migrate` → `up to date` при тех же счётчиках; Argon2id и 32-байтовые хеши токенов; секреты, `.env` и volumes не в Git | `make storage-evidence` | `<SERIES>` |
|
||||
| `retry.json` | потерянный ответ: запись ждёт блокировку строки чата дольше таймаута клиента, повтор тем же ключом через LB — на живой и на убитой реплике; `201`, одна копия | `make retry-check` | `<SERIES>` |
|
||||
## После позднего переноса ЛР3, до PNG-фиксов
|
||||
|
||||
## Уровень «4»
|
||||
Runtime SHA **F**: `75b93bbba5f29575d3fca1d013cc7e0770d88082`, архив
|
||||
`8bc2da2c094afc7e5f5e97c7beb5f278e76253fd`. Источник — immutable snapshot ЛР3
|
||||
`ba78cf6da439a4ec60fd59389583b38285b0b2b1`, диапазон от `f591fa64e525679a31c9db7f942d36c789e1a12f`.
|
||||
[Все 214 путей и область применимости](forward-port.md), [source-manifest](forward-final-2026-11-06/source-manifest.json).
|
||||
Все успешные команды таблицы — на F; их полный argv, UTC, разрешённое окружение и exit code
|
||||
находятся в raw. Пользователи, данные и файлы синтетические.
|
||||
|
||||
| Файл | Что доказывает | Команда | Коммит |
|
||||
| --- | --- | --- | --- |
|
||||
| `upload-faults.txt` | 36 ошибочных запросов через LB без `5xx`; отказ `COMMIT` после `PUT` → немедленная компенсация; реплика убита между `PUT` и `COMMIT` → уборка после grace; обрыв и зависание тела | `make upload-faults` | `<SERIES>` |
|
||||
| `faults.txt` | все проверки стенда под маркером `stack`: тесты лаб 2–3 (гонка регистрации, остановка Valkey и PostgreSQL, рестарты, срок сессии) и `test_attachment_faults.py`, включая `401` раньше `413` и медленные upload и скачивание 3 MiB дольше таймаута запроса | `make faults-evidence` | `<SERIES>` |
|
||||
| `s3-security.txt` | нет host-портов у `s3`, консоль закрыта изнутри и из сети стенда, `s3-init` повторно дважды без изменений, права ключей API и сверки (разрешено и `AccessDenied`), анонимный доступ, снимок политик и пользователей без секретов и дат (валидный JSON) | `make s3-check` | `<SERIES>` |
|
||||
| `upload-memory/run{1,2,3}/` | три прогона матрицы: 64 и 3 слота × 1 и 10 MiB × 10/20/40 одновременных загрузок; `summary.txt` и JSON на точку (ответы, задержки, пик `memory.peak` реплик и LB, `oom_kill`) | `make upload-memory ARGS='--out evidence/upload-memory/runN'` | `<SERIES>` |
|
||||
| `upload-memory/mmap-32m/` | 3 слота, 10 MiB, порог `mmap` glibc 32 MiB вместо 128 KiB | `MALLOC_MMAP_THRESHOLD_=33554432 python3 scripts/upload_memory.py --slots 3 --sizes 10485760 --out evidence/upload-memory/mmap-32m` | `<SERIES>` |
|
||||
| `overload-leftovers.txt` | после серии памяти: невидимые намерения от `503` по таймауту, их вид в `make reconcile`, удаление уборкой после grace 900 с, сверка после | `make overload-leftovers` | `<SERIES>` |
|
||||
| `load.txt`, `load/run{1,2,3}.json` | нагрузка записи сообщений `tests/load.py` (64 потока, 8 с, 3 повтора) клиентом-контейнером в сети `<проект>_edge`: полная команда клиента, сырой вывод `load.py`, `docker stats` стенда и клиента, статусы `request.handled` реплик | `make load-evidence` | `<SERIES>` |
|
||||
| `load/host-attempt.txt` | отброшенная попытка той же нагрузки с хоста macOS (30.10, до этой серии): клиентские ошибки соединения при исчерпании эфемерных портов, ни одного `5xx` на репликах; строки перенесены из вывода консоли | команды внутри файла | `81dd816` |
|
||||
| Проверка / команда | Наблюдение | Файл |
|
||||
| --- | --- | --- |
|
||||
| `make check`, `make validate`, `make lint`, `make student-test` | PASS, 492 теста / 19 stack deselected | [offline-checks-rerun](forward-final-2026-11-06/offline-checks-rerun.txt) |
|
||||
| `make up`, `make test` | Обе реплики healthy; smoke/checksum/ACL PASS | [up](forward-final-2026-11-06/up.txt), [smoke](forward-final-2026-11-06/smoke.txt), [после нагрузок](forward-final-2026-11-06/final-smoke.txt) |
|
||||
| `sh scripts/persistence-evidence.sh http://127.0.0.1:18084` | PASS; StartedAt API/LB/PG/Valkey/S3 изменились | [persistence-rerun](forward-final-2026-11-06/persistence-rerun.txt) |
|
||||
| `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` | Target exited; 130 записей, 0 ошибок, 2,883 с до первой записи | [команда](forward-final-2026-11-06/failover-command.txt), [вывод/inspect](forward-final-2026-11-06/failover-d4c8d53d7433.txt) |
|
||||
| `make scenario SCENARIO=failover-upload`; отдельный `make restore` | Другая реплика отдала те же байты; восстановление выполнено отдельно | [команда](forward-final-2026-11-06/failover-upload-command.txt), [JSON](forward-final-2026-11-06/failover-upload.json), [restore](forward-final-2026-11-06/restore.txt) |
|
||||
| `make scenario SCENARIO=s3-outage` | 503 за 4,990/5,329 с; текст 201; checksum после старта совпал | [команда](forward-final-2026-11-06/s3-outage-command.txt), [JSON](forward-final-2026-11-06/s3-outage.json) |
|
||||
| `make test-faults` | 19 PASS, 112 ответов негативной файловой проверки без 5xx; компенсация/crash/grace/stall/PG/Valkey | [stack-faults](forward-final-2026-11-06/stack-faults.txt) |
|
||||
| `student-tests/tools/forward_network.py`; HAProxy fixture | Сессии/NUL/Basic PASS; 12 проверок реальных 502/503/504 и request_id | [сеть](forward-final-2026-11-06/network-regressions.txt), [LB](forward-final-2026-11-06/haproxy-errors.txt) |
|
||||
| `make limits` | Ресурсы, порты, mounts, сети и роли секретов PASS | [limits](forward-final-2026-11-06/limits.txt) |
|
||||
| `make load-evidence` | 3 повтора, медиана 1456,338 RPS, 0 ошибок; текстовый путь не менялся | [команда](forward-final-2026-11-06/load-command.txt), [вывод](forward-final-2026-11-06/load.txt), [raw JSON](forward-final-2026-11-06/load/) |
|
||||
| `scripts/upload_memory.py --slots 3 --sizes 10485760 --levels 40 --out ...` | 3×80: 238×201, 2×503; пик API 456,2 MiB, OOM 0. Историческая память до PNG-фиксов | [run1](forward-final-2026-11-06/memory-1.txt), [run2](forward-final-2026-11-06/memory-2.txt), [run3](forward-final-2026-11-06/memory-3.txt), [raw](forward-final-2026-11-06/memory/) |
|
||||
| `make reconcile-demo ARGS='--out evidence/forward-final-2026-11-06/reconcile-demo'` | 13 PASS; 3364 upload, 59 проходов, lost_ready 0. Конкурентные upload требуют повторения после PNG-фиксов | [команда](forward-final-2026-11-06/reconcile-demo.txt), [demo](forward-final-2026-11-06/reconcile-demo/demo.json), [deep-аудит](forward-final-2026-11-06/reconcile-demo/check-under-load.json) |
|
||||
| `git diff --exit-code` измеряемых файлов | Стоимость reconciler сохранена с исходным SHA, не переснята на F | [retained-cost-audit](forward-final-2026-11-06/retained-cost-audit.txt) |
|
||||
| Воспроизведение непарных surrogate в text | Два HTTP 500: известный **minor**, не успешный тест | [HTTP](forward-final-2026-11-06/known-minor-http.txt), [offline](forward-final-2026-11-06/known-minor.txt), [finding](forward-final-2026-11-06/findings.json) |
|
||||
| `make down` своих project, fixture `docker compose down`, инвентаризация по labels | 0 контейнеров трёх project, 6 volumes сохранены | [main](forward-final-2026-11-06/main-down.txt), [demo](forward-final-2026-11-06/reconcile-down.txt), [итог](forward-final-2026-11-06/shutdown-state.txt) |
|
||||
|
||||
## Трек 2 «Согласованность двух хранилищ»
|
||||
[Сводка чисел](forward-final-2026-11-06/measurement-summary.json),
|
||||
[команда агрегации](forward-final-2026-11-06/measurement-summary.txt),
|
||||
[фон до](forward-final-2026-11-06/performance-before.txt) и
|
||||
[после](forward-final-2026-11-06/performance-after.txt).
|
||||
Сохранены неуспешные попытки: [ty до исправления обвязки](forward-final-2026-11-06/offline-checks.txt)
|
||||
и [неверный BASE_URL до hook](forward-final-2026-11-06/persistence-command.txt); они не считаются PASS.
|
||||
|
||||
`reconcile/` — сценарий трека и матрица стоимости; состав и поля — `reconcile/README.md`.
|
||||
## Исходная SQLAlchemy-серия
|
||||
|
||||
| Файл | Что доказывает | Команда | Коммит |
|
||||
| --- | --- | --- | --- |
|
||||
| `reconcile/demo.json` и файлы сценария | внедрение ошибок на обеих сторонах, dry-run (счёт и множества id), `apply` дважды с журналом аудита, независимая проверка, карантин, снятие карантина только при совпавшем SHA-256, занятая блокировка, `docker stop` идущего прохода, остановленный S3, 74 прохода под загрузками | `make reconcile-demo` | `61dcb6b` |
|
||||
| `reconcile/cost/` | стоимость обхода 1k/10k/30k/100k × 3 прогона, `--deep` на всех точках, закреплённые CPU, отбраковка чужой нагрузки | `make reconcile-cost` | `61dcb6b` |
|
||||
| `reconcile/cost-b191623/`, `reconcile/cost-2026-10-29/`, `reconcile/cost-aborted/` | прошлые серии 1k/10k/30k (`b191623` — с лишней SQL-страницей; `5ca2cdc` — без отбраковки) и прерванные попытки наполнить 100k в прежних конфигурациях | `make reconcile-cost` | `b191623`, `5ca2cdc`, до `5ca2cdc` |
|
||||
Runtime основы: `8e4532f6f5c05d902b6e2c310f54320d95585904`. Все результаты ниже сняты
|
||||
**до F и обоих PNG-фиксов**. Обвязка менялась отдельно; точный SHA каждого захвата записан
|
||||
в его первой строке/JSON. [Общий протокол](sqlalchemy-2026-11-06/README.md).
|
||||
|
||||
| Команда / критерий | Наблюдение | SHA обвязки и файлы |
|
||||
| --- | --- | --- |
|
||||
| `make test`, `make limits`, `make attachments-evidence`, LB/retry/отказы | Уровень 3 на SQLAlchemy, 404 собственных теста | `1aec062aba4560b51a6d9155571c9610bc777d7e`, `763b0255575366082c4c6731b54611af717685a5`; [grade3](sqlalchemy-2026-11-06/grade3/NOTES.md) |
|
||||
| `make s3-check` | 31 PASS; private/IAM/bootstrap не менялись с этой серии | `763b0255575366082c4c6731b54611af717685a5`; [сырьё](sqlalchemy-2026-11-06/grade3/s3-security.txt) |
|
||||
| `make upload-memory`, три полные матрицы | 36 точек, штатные 3 слота 840/840×201, пик 448 MiB, OOM 0; контроль 64 слота 27×503 | `6c706a727ec7b4c5f8254e19401705847e8e9c78`, `cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e`; [методика](sqlalchemy-2026-11-06/grade4/NOTES.md), [raw](sqlalchemy-2026-11-06/grade4/memory/) |
|
||||
| `sh scripts/clean-clone.sh` | 76,866 с, проверки прошли, три volumes сохранены | `cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e`; [команда/вывод](sqlalchemy-2026-11-06/grade4/clean-clone-command.txt) |
|
||||
| `make overload-leftovers` | Без сдвига времени убраны 30 pending после grace 900 с; 1669 ready/объектов совпали | SHA в [команде](sqlalchemy-2026-11-06/grade4/leftovers-command.txt); [вывод](sqlalchemy-2026-11-06/grade4/overload-leftovers.txt) |
|
||||
| `make load-evidence` | 3 прогона, медиана 1529,186 RPS, 0 ошибок; историческая серия до F | SHA в [команде](sqlalchemy-2026-11-06/grade4/load-command.txt); [raw](sqlalchemy-2026-11-06/grade4/load/) |
|
||||
| `make reconcile-demo`, отдельный отказ PG | 13 PASS, 3331 upload, lost_ready 0; обновлён demo серии F | `827b783be355be9fa60117dc3eda350af3dab454`, `3402fd69d4922e500035a204d957be2cccaeb85a`; [протокол](sqlalchemy-2026-11-06/track5/NOTES.md), [PG](sqlalchemy-2026-11-06/track5/pg-outage.txt) |
|
||||
| `make reconcile-cost` | **Сохраняемые 27 замеров** до 100k; путь обхода неизменён | `3402fd69d4922e500035a204d957be2cccaeb85a`; [команда](sqlalchemy-2026-11-06/track5/cost-command.txt), [raw/план/фон](sqlalchemy-2026-11-06/track5/measurements/cost/), [расчёт](sqlalchemy-2026-11-06/track5/analysis.json) |
|
||||
| Финальные проверки исходной реализации | 410 тестов, check/validate/lint/smoke/limits PASS; не тесты нового PNG | `504f77cb7cef28202e1830fc04e10e646488e778`; [вывод](sqlalchemy-2026-11-06/track5/final-checks.txt), [остановка 4 project / 12 volumes](sqlalchemy-2026-11-06/track5/shutdown-state.txt) |
|
||||
|
||||
[Закрытие 21 замечания исходной реализации](sqlalchemy-2026-11-06/REVIEW-CLOSURE.md)
|
||||
относится к тому этапу. Оно предшествует независимым PNG-находкам и не отменяет их историю.
|
||||
|
||||
## Историческая реализация asyncpg
|
||||
|
||||
**Эти результаты не подтверждают нынешний SQLAlchemy-код или PNG-инспектор.**
|
||||
Основная серия и старый clean-clone: `81dd816df21f820a7fd0fa4269cc375d8fc44155`;
|
||||
reconciler: `61dcb6bf13f3d0853d36788930d79bca5f68ece6`. Дата и измеренный SHA
|
||||
сохранены в raw. Старые команды удаления volumes — история, не инструкция для повторения.
|
||||
|
||||
| Историческая команда | Сохранённые файлы |
|
||||
| --- | --- |
|
||||
| `make check`, `make validate`, `make student-test`, `make test` | [контракт](contract-checks.txt), [тесты](student-tests.txt), [smoke](smoke.txt) |
|
||||
| `make clean-clone-evidence`, `make stack-evidence`, `make limits`, `make attachments-evidence` | [clone](clean-clone.txt), [стенд](stack.txt), [окружение](environment.txt), [лимиты](limits.txt), [размещение](storage-layout.txt) |
|
||||
| `make lb-check`, `make retry-check`, persistence и сценарии отказов | [LB](lb-check.json), [retry](retry.json), [persistence](persistence.txt), [upload failover](failover-upload.json), [S3 outage](s3-outage.json) |
|
||||
| `make upload-faults`, `make faults-evidence`, `make s3-check` | [upload](upload-faults.txt), [stack](faults.txt), [S3](s3-security.txt) |
|
||||
| `make upload-memory`, `make overload-leftovers`, `make load-evidence` | [память](upload-memory/), [остатки](overload-leftovers.txt), [нагрузка](load.txt), [raw](load/), [отброшенная попытка с хоста](load/host-attempt.txt) |
|
||||
| `make reconcile-demo`, `make reconcile-cost` | [методика и все серии](reconcile/README.md), [raw](reconcile/), [cost](reconcile/cost/) |
|
||||
|
||||
Прежние cost-серии `b1916236f4391bfdf7d7718ebf741621047788cf` (лишняя SQL-страница),
|
||||
`5ca2cdc9af6016df8d6f1be8bd4681f06fada334` (без фильтра фона) и прерванные наполнения
|
||||
описаны в [историческом индексе reconciler](reconcile/README.md). Они не подмешиваются
|
||||
к 27 принятым измерениям SQLAlchemy и не удаляются.
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
date: 2026-11-06T09:10:22Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ sh scripts/failover-evidence.sh http://127.0.0.1:18084
|
||||
date: 2026-11-06T09:10:22Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
d4c8d53d7433 running started=2026-11-06T09:10:18.309662551Z finished=2026-11-06T09:10:12.020503506Z
|
||||
da922ab2ea09 running started=2026-11-06T09:10:18.377623592Z finished=2026-11-06T09:10:12.004100798Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18084"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 2.883}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
d4c8d53d7433 exited started=2026-11-06T09:10:18.309662551Z finished=2026-11-06T09:10:25.313223596Z
|
||||
da922ab2ea09 running started=2026-11-06T09:10:18.377623592Z finished=2026-11-06T09:10:12.004100798Z
|
||||
== stopped replica: d4c8d53d7433; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-11-06T09:10:22.774795Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-11-06T09:10:22.776559Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-11-06T09:10:22.848442Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"c23539767f7c4ef5ba39f58a446754a2","duration_ms":1.481,"event":"request.handled","level":"info","ts":"2026-11-06T09:10:23.545632Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"60444a3eba784d839b8caccbaa24d1f2","duration_ms":0.278,"event":"request.handled","level":"info","ts":"2026-11-06T09:10:24.058530Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"5a247b2f9b304ff789354712b9c2d857","duration_ms":0.282,"event":"request.handled","level":"info","ts":"2026-11-06T09:10:24.545468Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-11-06T09:10:24.779511Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-11-06T09:10:24.852501Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-11-06T09:10:24.884399Z"}
|
||||
{"event":"Finished server process [19]","level":"info","ts":"2026-11-06T09:10:24.884667Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-11-06T09:10:24.959721Z"}
|
||||
{"event":"Finished server process [20]","level":"info","ts":"2026-11-06T09:10:24.959901Z"}
|
||||
{"event":"Worker (pid:19) was sent SIGTERM!","level":"info","ts":"2026-11-06T09:10:24.961675Z"}
|
||||
{"event":"Worker (pid:20) was sent SIGTERM!","level":"info","ts":"2026-11-06T09:10:25.072586Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-11-06T09:10:25.178811Z"}
|
||||
$ scripts/restore.sh
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Running
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Healthy
|
||||
== after restore
|
||||
d4c8d53d7433 running started=2026-11-06T09:10:38.256484379Z finished=2026-11-06T09:10:25.313223596Z
|
||||
da922ab2ea09 running started=2026-11-06T09:10:18.377623592Z finished=2026-11-06T09:10:12.004100798Z
|
||||
exit_code: 0 elapsed_seconds: 19.912
|
||||
@@ -0,0 +1,39 @@
|
||||
date: 2026-11-06T09:10:22Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
||||
d4c8d53d7433 running started=2026-11-06T09:10:18.309662551Z finished=2026-11-06T09:10:12.020503506Z
|
||||
da922ab2ea09 running started=2026-11-06T09:10:18.377623592Z finished=2026-11-06T09:10:12.004100798Z
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18084"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 2.883}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: api replicas
|
||||
d4c8d53d7433 exited started=2026-11-06T09:10:18.309662551Z finished=2026-11-06T09:10:25.313223596Z
|
||||
da922ab2ea09 running started=2026-11-06T09:10:18.377623592Z finished=2026-11-06T09:10:12.004100798Z
|
||||
== stopped replica: d4c8d53d7433; shutdown: signal, drain window with readiness 503, close, exit
|
||||
{"event":"Handling signal: term","level":"info","ts":"2026-11-06T09:10:22.774795Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-11-06T09:10:22.776559Z"}
|
||||
{"limit":2.0,"event":"service.draining","level":"info","ts":"2026-11-06T09:10:22.848442Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"c23539767f7c4ef5ba39f58a446754a2","duration_ms":1.481,"event":"request.handled","level":"info","ts":"2026-11-06T09:10:23.545632Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"60444a3eba784d839b8caccbaa24d1f2","duration_ms":0.278,"event":"request.handled","level":"info","ts":"2026-11-06T09:10:24.058530Z"}
|
||||
{"method":"GET","route":"/health/ready","status":503,"request_id":"5a247b2f9b304ff789354712b9c2d857","duration_ms":0.282,"event":"request.handled","level":"info","ts":"2026-11-06T09:10:24.545468Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-11-06T09:10:24.779511Z"}
|
||||
{"event":"Shutting down","level":"info","ts":"2026-11-06T09:10:24.852501Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-11-06T09:10:24.884399Z"}
|
||||
{"event":"Finished server process [19]","level":"info","ts":"2026-11-06T09:10:24.884667Z"}
|
||||
{"event":"service.stopped","level":"info","ts":"2026-11-06T09:10:24.959721Z"}
|
||||
{"event":"Finished server process [20]","level":"info","ts":"2026-11-06T09:10:24.959901Z"}
|
||||
{"event":"Worker (pid:19) was sent SIGTERM!","level":"info","ts":"2026-11-06T09:10:24.961675Z"}
|
||||
{"event":"Worker (pid:20) was sent SIGTERM!","level":"info","ts":"2026-11-06T09:10:25.072586Z"}
|
||||
{"event":"Shutting down: Master","level":"info","ts":"2026-11-06T09:10:25.178811Z"}
|
||||
$ scripts/restore.sh
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Running
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Healthy
|
||||
== after restore
|
||||
d4c8d53d7433 running started=2026-11-06T09:10:38.256484379Z finished=2026-11-06T09:10:25.313223596Z
|
||||
da922ab2ea09 running started=2026-11-06T09:10:18.377623592Z finished=2026-11-06T09:10:12.004100798Z
|
||||
@@ -0,0 +1,33 @@
|
||||
date: 2026-11-06T09:13:29Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/lab4_scenarios.py failover-upload --base-url http://127.0.0.1:18084 --output evidence/forward-final-2026-11-06/failover-upload.json
|
||||
{
|
||||
"ok": true,
|
||||
"date": "2026-11-06T09:13:29Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"scenario": "failover-upload",
|
||||
"upload_instance": "d4c8d53d7433",
|
||||
"download_instance": "da922ab2ea09",
|
||||
"sha256_equal": true,
|
||||
"hook_seconds": 2.734,
|
||||
"download_ok_after_seconds": 2.762,
|
||||
"replicas_at_download": [
|
||||
{
|
||||
"hostname": "d4c8d53d7433",
|
||||
"status": "exited",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T09:12:33.47280571Z",
|
||||
"finished_at": "2026-11-06T09:13:32.422358668Z"
|
||||
},
|
||||
{
|
||||
"hostname": "da922ab2ea09",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T09:12:33.439519377Z",
|
||||
"finished_at": "2026-11-06T09:12:33.358178252Z"
|
||||
}
|
||||
],
|
||||
"restored": false,
|
||||
"replicas_after_restore": null
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 3.177
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"ok": true,
|
||||
"date": "2026-11-06T09:13:29Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"scenario": "failover-upload",
|
||||
"upload_instance": "d4c8d53d7433",
|
||||
"download_instance": "da922ab2ea09",
|
||||
"sha256_equal": true,
|
||||
"hook_seconds": 2.734,
|
||||
"download_ok_after_seconds": 2.762,
|
||||
"replicas_at_download": [
|
||||
{
|
||||
"hostname": "d4c8d53d7433",
|
||||
"status": "exited",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T09:12:33.47280571Z",
|
||||
"finished_at": "2026-11-06T09:13:32.422358668Z"
|
||||
},
|
||||
{
|
||||
"hostname": "da922ab2ea09",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T09:12:33.439519377Z",
|
||||
"finished_at": "2026-11-06T09:12:33.358178252Z"
|
||||
}
|
||||
],
|
||||
"restored": false,
|
||||
"replicas_after_restore": null
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
date: 2026-11-06T09:31:35Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ sh -c 'make check && make validate && make lint && openspec validate --all --strict'
|
||||
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
|
||||
163 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
- Validating...
|
||||
✓ change/forward-lab3-final-review-fixes
|
||||
✓ 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: 19 passed, 0 failed (19 items)
|
||||
exit_code: 0 elapsed_seconds: 1.660
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-06T09:18:22Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-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.435
|
||||
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"severity": "minor",
|
||||
"file": "src/messenger/messaging/entrypoints/schemas.py:35",
|
||||
"problem": "Непарный Unicode surrogate U+D800/U+DFFF в text принимается схемой, fingerprint вызывает PydanticSerializationError; реальный HTTP возвращает 500 internal_error. Воспроизведено на 75b93bbba5f29575d3fca1d013cc7e0770d88082: evidence/forward-final-2026-11-06/known-minor-http.txt. Сохранено без исправления по правилу minor."
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,49 @@
|
||||
date: 2026-11-06T09:30:40Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ python3 -c 'import collections
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
source = Path("/Users/artemkostylev/projects/learning/HL/labs/.pipeline/.runs/labs/snapshots/lab3-ba78cf6da439a4ec60fd59389583b38285b0b2b1")
|
||||
manifest = json.loads(Path("evidence/forward-final-2026-11-06/source-manifest.json").read_text())
|
||||
def source_git(*args):
|
||||
return subprocess.check_output(["git", "-C", str(source), *args], text=True)
|
||||
assert source_git("rev-parse", "HEAD").strip() == manifest["source_to"]
|
||||
changed = dict(line.split("\t", 1)[::-1] for line in source_git("diff", "--name-status", manifest["source_from"], manifest["source_to"]).splitlines())
|
||||
assert changed == {row["file"]: row["status"] for row in manifest["files"]}
|
||||
blobs = {}
|
||||
for line in source_git("ls-tree", "-r", manifest["source_to"]).splitlines():
|
||||
meta, path = line.split("\t", 1)
|
||||
blobs[path] = meta.split()[2]
|
||||
merged = {"infra/haproxy/haproxy.cfg", "src/messenger/messaging/domain/values.py"}
|
||||
exact = 0
|
||||
for row in manifest["files"]:
|
||||
assert blobs[row["file"]] == row["source_blob"], row["file"]
|
||||
if row["action"] == "copied-source-archive" or (row["action"] == "ported" and row["file"] not in merged):
|
||||
assert Path(row["file"]).read_bytes() == (source / row["file"]).read_bytes(), row["file"]
|
||||
exact += 1
|
||||
print(json.dumps({"source_from":manifest["source_from"], "source_to":manifest["source_to"], "manifest_paths":len(changed), "decisions":dict(collections.Counter(row["action"] for row in manifest["files"])), "byte_exact_paths":exact, "manual_lab4_merges":sorted(merged)}, indent=2))
|
||||
subprocess.run(["git", "diff", "--exit-code", manifest["target_base"], "--", "contracts", "tests", "README.md", "COURSE.md"], check=True)
|
||||
subprocess.run(["git", "diff", "--exit-code", "75b93bbba5f29575d3fca1d013cc7e0770d88082", "--", "src", "student-tests", "infra", "scripts", "compose.yaml", "Dockerfile", "pyproject.toml", "uv.lock", "alembic"], check=True)
|
||||
print("PASS: complete immutable-source manifest, preserved normative files, runtime unchanged since measurements")
|
||||
'
|
||||
{
|
||||
"source_from": "f591fa64e525679a31c9db7f942d36c789e1a12f",
|
||||
"source_to": "ba78cf6da439a4ec60fd59389583b38285b0b2b1",
|
||||
"manifest_paths": 214,
|
||||
"decisions": {
|
||||
"adapted-context": 2,
|
||||
"not-copied": 169,
|
||||
"adapted-test-tool": 4,
|
||||
"ported": 14,
|
||||
"copied-source-archive": 19,
|
||||
"merged-via-local-change": 6
|
||||
},
|
||||
"byte_exact_paths": 31,
|
||||
"manual_lab4_merges": [
|
||||
"infra/haproxy/haproxy.cfg",
|
||||
"src/messenger/messaging/domain/values.py"
|
||||
]
|
||||
}
|
||||
PASS: complete immutable-source manifest, preserved normative files, runtime unchanged since measurements
|
||||
exit_code: 0 elapsed_seconds: 0.195
|
||||
@@ -0,0 +1,48 @@
|
||||
date: 2026-11-06T09:14:49Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-forward-final-20261106"}
|
||||
$ sh -c '
|
||||
set -e
|
||||
fixture_project=hlpipe-lab4-forward-lb-20261106
|
||||
fixture_file=student-tests/tools/lb_errors/compose.yaml
|
||||
trap '"'"'docker compose -p "$fixture_project" -f "$fixture_file" --profile probe down'"'"' EXIT
|
||||
docker compose -p "$fixture_project" -f "$fixture_file" up -d lb api
|
||||
docker compose -p "$fixture_project" -f "$fixture_file" run --rm --no-deps probe 502
|
||||
docker compose -p "$fixture_project" -f "$fixture_file" run --rm --no-deps probe 504
|
||||
docker compose -p "$fixture_project" -f "$fixture_file" stop api
|
||||
docker compose -p "$fixture_project" -f "$fixture_file" run --rm --no-deps probe 503
|
||||
'
|
||||
Network hlpipe-lab4-forward-lb-20261106_default Creating
|
||||
Network hlpipe-lab4-forward-lb-20261106_default Created
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Creating
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Creating
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Created
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Created
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Starting
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Starting
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Started
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Started
|
||||
{"status": 502, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 502, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 502, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 502, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.001}
|
||||
{"status": 504, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 10.024}
|
||||
{"status": 504, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 10.005}
|
||||
{"status": 504, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 10.022}
|
||||
{"status": 504, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 10.007}
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Stopping
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Stopped
|
||||
{"status": 503, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.004}
|
||||
{"status": 503, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.0}
|
||||
{"status": 503, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.0}
|
||||
{"status": 503, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.0}
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Stopping
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Stopping
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Stopped
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Removing
|
||||
Container hlpipe-lab4-forward-lb-20261106-api-1 Removed
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Stopped
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Removing
|
||||
Container hlpipe-lab4-forward-lb-20261106-lb-1 Removed
|
||||
Network hlpipe-lab4-forward-lb-20261106_default Removing
|
||||
Network hlpipe-lab4-forward-lb-20261106_default Removed
|
||||
exit_code: 0 elapsed_seconds: 52.831
|
||||
@@ -0,0 +1,24 @@
|
||||
date: 2026-11-06T09:15:37Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ python3 -c 'import base64,http.client,json,uuid
|
||||
conn=http.client.HTTPConnection("127.0.0.1",18084,timeout=10)
|
||||
name="surrogate_"+uuid.uuid4().hex[:12]
|
||||
password=uuid.uuid4().hex
|
||||
def request(method,path,body=None,headers=None):
|
||||
conn.request(method,path,None if body is None else json.dumps(body).encode(),{"Content-Type":"application/json",**(headers or {})})
|
||||
response=conn.getresponse()
|
||||
return response.status,json.loads(response.read() or "null")
|
||||
status,user=request("POST","/api/v1/users",{"username":name,"password":password,"display_name":"Synthetic"})
|
||||
assert status==201
|
||||
status,session=request("POST","/api/v1/auth/sessions",headers={"Authorization":"Basic "+base64.b64encode((name+":"+password).encode()).decode()})
|
||||
assert status==201
|
||||
headers={"Authorization":"Bearer "+session["token"]}
|
||||
status,chat=request("POST","/api/v1/chats",{"title":"Synthetic","member_ids":[user["id"]]},headers)
|
||||
assert status==201
|
||||
for value in [chr(0xd800),chr(0xdfff)]:
|
||||
status,data=request("POST","/api/v1/chats/"+chat["id"]+"/messages",{"text":value},{**headers,"Idempotency-Key":uuid.uuid4().hex})
|
||||
print(json.dumps({"codepoint":hex(ord(value)),"status":status,"error_code":data.get("error",{}).get("code")}))
|
||||
conn.close()'
|
||||
{"codepoint": "0xd800", "status": 500, "error_code": "internal_error"}
|
||||
{"codepoint": "0xdfff", "status": 500, "error_code": "internal_error"}
|
||||
exit_code: 0 elapsed_seconds: 0.114
|
||||
@@ -0,0 +1,15 @@
|
||||
date: 2026-11-06T09:09:38Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ .venv/bin/python -c 'import json
|
||||
from messenger.messaging.entrypoints.schemas import CreateMessageRequest
|
||||
for value in [chr(0xd800), chr(0xdfff)]:
|
||||
body = CreateMessageRequest(text=value)
|
||||
try:
|
||||
body.fingerprint()
|
||||
result = "accepted"
|
||||
except Exception as error:
|
||||
result = type(error).__name__
|
||||
print(json.dumps({"codepoint": hex(ord(value)), "schema_accepted": True, "fingerprint_result": result}))'
|
||||
{"codepoint": "0xd800", "schema_accepted": true, "fingerprint_result": "PydanticSerializationError"}
|
||||
{"codepoint": "0xdfff", "schema_accepted": true, "fingerprint_result": "PydanticSerializationError"}
|
||||
exit_code: 0 elapsed_seconds: 0.124
|
||||
@@ -0,0 +1,29 @@
|
||||
date: 2026-11-06T09:13:49Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/limits.py
|
||||
date: 2026-11-06T09:13:49Z commit: 75b93bb
|
||||
$ 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:24844 - - 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 da922ab2ea09 1 512MiB
|
||||
lb ea6930f64089 1 128MiB 127.0.0.1:18084->8080/tcp,127.0.0.1:24844->8404/tcp
|
||||
postgres 3f3a870d89c0 2 1024MiB
|
||||
s3 5921e788f03d 1 512MiB
|
||||
valkey 07ea16e2fcfe 0.5 128MiB
|
||||
|
||||
PASS: limits, ports, secrets, volumes and networks match the policy
|
||||
exit_code: 0 elapsed_seconds: 0.308
|
||||
@@ -0,0 +1,116 @@
|
||||
date: 2026-11-06T09:16:16Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make load-evidence
|
||||
sh scripts/load-evidence.sh
|
||||
date: 2026-11-06T09:16:17Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082 network: hlpipe-lab4-forward-final-20261106_edge
|
||||
# make load-evidence (scripts/load-evidence.sh): закрытый контур tests/load.py, 64 потока, 8 с, все записи
|
||||
# прогона в один новый чат, 3 повтора с паузой 15 с; клиент — одноразовый контейнер в сети <проект>_edge
|
||||
# стенда (2 CPU, 512 MiB, базовый образ API по digest, tests/, contracts/ и lab.json только для чтения,
|
||||
# tcp_tw_reuse=1), адрес http://lb:8080. На 4-й секунде — docker stats; после прогона — request.handled реплик.
|
||||
$ docker ps --format '{{.Names}}' | grep -v '^hlpipe-lab4-forward-final-20261106-' # чужие контейнеры на VM во время серии
|
||||
$ client() { docker run --rm --name hlpipe-lab4-forward-final-20261106-load-client --network hlpipe-lab4-forward-final-20261106_edge --cpus 2 --memory 512m --sysctl net.ipv4.tcp_tw_reuse=1 -v "$PWD/tests:/w/tests:ro" -v "$PWD/contracts:/w/contracts:ro" -v "$PWD/lab.json:/w/lab.json:ro" -v "$PWD/evidence/forward-final-2026-11-06/load:/out" python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d python /w/tests/load.py "$@"; }
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run1.json
|
||||
exit 0
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.238,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 11768,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1428.577,
|
||||
"successful_latency_ms": {
|
||||
"p50": 40.163,
|
||||
"p95": 100.062,
|
||||
"p99": 141.558
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
||||
api-1 93.26% 271.2MiB / 512MiB
|
||||
api-2 89.65% 307.4MiB / 512MiB
|
||||
lb-1 46.78% 30.14MiB / 128MiB
|
||||
load-client 60.53% 83.66MiB / 512MiB
|
||||
postgres-1 157.07% 151.1MiB / 1GiB
|
||||
s3-1 0.76% 69.52MiB / 512MiB
|
||||
valkey-1 3.81% 13.9MiB / 128MiB
|
||||
$ docker compose logs --since 2026-11-06T09:16:17Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 22
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 11768
|
||||
201 POST /api/v1/users 3
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run2.json
|
||||
exit 0
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.229,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 11984,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1456.338,
|
||||
"successful_latency_ms": {
|
||||
"p50": 37.442,
|
||||
"p95": 98.948,
|
||||
"p99": 134.678
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
||||
api-1 90.89% 272.5MiB / 512MiB
|
||||
api-2 75.30% 310.1MiB / 512MiB
|
||||
lb-1 39.94% 30.58MiB / 128MiB
|
||||
load-client 46.50% 83.65MiB / 512MiB
|
||||
postgres-1 121.64% 158.2MiB / 1GiB
|
||||
s3-1 0.77% 69.37MiB / 512MiB
|
||||
valkey-1 3.02% 13.87MiB / 128MiB
|
||||
$ docker compose logs --since 2026-11-06T09:16:41Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 23
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 11984
|
||||
201 POST /api/v1/users 3
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run3.json
|
||||
exit 0
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.21,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 12555,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1529.32,
|
||||
"successful_latency_ms": {
|
||||
"p50": 33.478,
|
||||
"p95": 98.475,
|
||||
"p99": 138.028
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
||||
api-1 100.60% 273.6MiB / 512MiB
|
||||
api-2 99.12% 310.2MiB / 512MiB
|
||||
lb-1 58.14% 30.39MiB / 128MiB
|
||||
load-client 66.66% 83.66MiB / 512MiB
|
||||
postgres-1 168.89% 167.2MiB / 1GiB
|
||||
s3-1 0.80% 71.19MiB / 512MiB
|
||||
valkey-1 4.31% 13.5MiB / 128MiB
|
||||
$ docker compose logs --since 2026-11-06T09:17:05Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 24
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 12555
|
||||
201 POST /api/v1/users 3
|
||||
$ docker compose exec -T postgres psql -c 'SELECT count(*) FROM messages'
|
||||
36448
|
||||
exit_code: 0 elapsed_seconds: 57.764
|
||||
@@ -0,0 +1,111 @@
|
||||
date: 2026-11-06T09:16:17Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082 network: hlpipe-lab4-forward-final-20261106_edge
|
||||
# make load-evidence (scripts/load-evidence.sh): закрытый контур tests/load.py, 64 потока, 8 с, все записи
|
||||
# прогона в один новый чат, 3 повтора с паузой 15 с; клиент — одноразовый контейнер в сети <проект>_edge
|
||||
# стенда (2 CPU, 512 MiB, базовый образ API по digest, tests/, contracts/ и lab.json только для чтения,
|
||||
# tcp_tw_reuse=1), адрес http://lb:8080. На 4-й секунде — docker stats; после прогона — request.handled реплик.
|
||||
$ docker ps --format '{{.Names}}' | grep -v '^hlpipe-lab4-forward-final-20261106-' # чужие контейнеры на VM во время серии
|
||||
$ client() { docker run --rm --name hlpipe-lab4-forward-final-20261106-load-client --network hlpipe-lab4-forward-final-20261106_edge --cpus 2 --memory 512m --sysctl net.ipv4.tcp_tw_reuse=1 -v "$PWD/tests:/w/tests:ro" -v "$PWD/contracts:/w/contracts:ro" -v "$PWD/lab.json:/w/lab.json:ro" -v "$PWD/evidence/forward-final-2026-11-06/load:/out" python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d python /w/tests/load.py "$@"; }
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run1.json
|
||||
exit 0
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.238,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 11768,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1428.577,
|
||||
"successful_latency_ms": {
|
||||
"p50": 40.163,
|
||||
"p95": 100.062,
|
||||
"p99": 141.558
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
||||
api-1 93.26% 271.2MiB / 512MiB
|
||||
api-2 89.65% 307.4MiB / 512MiB
|
||||
lb-1 46.78% 30.14MiB / 128MiB
|
||||
load-client 60.53% 83.66MiB / 512MiB
|
||||
postgres-1 157.07% 151.1MiB / 1GiB
|
||||
s3-1 0.76% 69.52MiB / 512MiB
|
||||
valkey-1 3.81% 13.9MiB / 128MiB
|
||||
$ docker compose logs --since 2026-11-06T09:16:17Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 22
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 11768
|
||||
201 POST /api/v1/users 3
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run2.json
|
||||
exit 0
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.229,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 11984,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1456.338,
|
||||
"successful_latency_ms": {
|
||||
"p50": 37.442,
|
||||
"p95": 98.948,
|
||||
"p99": 134.678
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
||||
api-1 90.89% 272.5MiB / 512MiB
|
||||
api-2 75.30% 310.1MiB / 512MiB
|
||||
lb-1 39.94% 30.58MiB / 128MiB
|
||||
load-client 46.50% 83.65MiB / 512MiB
|
||||
postgres-1 121.64% 158.2MiB / 1GiB
|
||||
s3-1 0.77% 69.37MiB / 512MiB
|
||||
valkey-1 3.02% 13.87MiB / 128MiB
|
||||
$ docker compose logs --since 2026-11-06T09:16:41Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 23
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 11984
|
||||
201 POST /api/v1/users 3
|
||||
$ client --base-url http://lb:8080 --duration 8 --concurrency 64 --output /out/run3.json
|
||||
exit 0
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.21,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 12555,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1529.32,
|
||||
"successful_latency_ms": {
|
||||
"p50": 33.478,
|
||||
"p95": 98.475,
|
||||
"p99": 138.028
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
$ docker stats --no-stream # 4-я секунда прогона: контейнер CPU% память
|
||||
api-1 100.60% 273.6MiB / 512MiB
|
||||
api-2 99.12% 310.2MiB / 512MiB
|
||||
lb-1 58.14% 30.39MiB / 128MiB
|
||||
load-client 66.66% 83.66MiB / 512MiB
|
||||
postgres-1 168.89% 167.2MiB / 1GiB
|
||||
s3-1 0.80% 71.19MiB / 512MiB
|
||||
valkey-1 4.31% 13.5MiB / 128MiB
|
||||
$ docker compose logs --since 2026-11-06T09:17:05Z api | request.handled: статус метод маршрут число
|
||||
200 GET /health/live 1
|
||||
200 GET /health/ready 24
|
||||
201 POST /api/v1/auth/sessions 3
|
||||
201 POST /api/v1/chats 1
|
||||
201 POST /api/v1/chats/{chat_id}/messages 12555
|
||||
201 POST /api/v1/users 3
|
||||
$ docker compose exec -T postgres psql -c 'SELECT count(*) FROM messages'
|
||||
36448
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.238,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 11768,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1428.577,
|
||||
"successful_latency_ms": {
|
||||
"p50": 40.163,
|
||||
"p95": 100.062,
|
||||
"p99": 141.558
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.229,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 11984,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1456.338,
|
||||
"successful_latency_ms": {
|
||||
"p50": 37.442,
|
||||
"p95": 98.948,
|
||||
"p99": 134.678
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 4,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 8.0,
|
||||
"elapsed_seconds": 8.21,
|
||||
"concurrency": 64,
|
||||
"successful_requests": 12555,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1529.32,
|
||||
"successful_latency_ms": {
|
||||
"p50": 33.478,
|
||||
"p95": 98.475,
|
||||
"p99": 138.028
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
date: 2026-11-06T09:18:23Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-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-forward-final-20261106-api-2 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Removed
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Removed
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Removed
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Removed
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Removed
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Stopping
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Removed
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Stopped
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Removing
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Removed
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Removed
|
||||
Network hlpipe-lab4-forward-final-20261106_edge Removing
|
||||
Network hlpipe-lab4-forward-final-20261106_backend Removing
|
||||
Network hlpipe-lab4-forward-final-20261106_edge Removed
|
||||
Network hlpipe-lab4-forward-final-20261106_backend Removed
|
||||
exit_code: 0 elapsed_seconds: 3.283
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"load_rps": {
|
||||
"all": [
|
||||
1428.577,
|
||||
1456.338,
|
||||
1529.32
|
||||
],
|
||||
"median": 1456.338,
|
||||
"min": 1428.577,
|
||||
"max": 1529.32
|
||||
},
|
||||
"load_p95_ms": {
|
||||
"all": [
|
||||
100.062,
|
||||
98.948,
|
||||
98.475
|
||||
],
|
||||
"median": 98.948,
|
||||
"min": 98.475,
|
||||
"max": 100.062
|
||||
},
|
||||
"load_failed": 0,
|
||||
"memory_statuses": [
|
||||
{
|
||||
"201": 80
|
||||
},
|
||||
{
|
||||
"201": 80
|
||||
},
|
||||
{
|
||||
"201": 78,
|
||||
"503": 2
|
||||
}
|
||||
],
|
||||
"body_bytes": [
|
||||
10485256,
|
||||
10485256,
|
||||
10485256
|
||||
],
|
||||
"api_peak_mib": {
|
||||
"all": [
|
||||
456.2,
|
||||
438.1,
|
||||
450.4
|
||||
],
|
||||
"median": 450.4,
|
||||
"min": 438.1,
|
||||
"max": 456.2
|
||||
},
|
||||
"lb_peak_mib": {
|
||||
"all": [
|
||||
31.8,
|
||||
28.5,
|
||||
29.1
|
||||
],
|
||||
"median": 29.1,
|
||||
"min": 28.5,
|
||||
"max": 31.8
|
||||
},
|
||||
"upload_p95_ms": {
|
||||
"all": [
|
||||
3641.3,
|
||||
4755.0,
|
||||
8091.8
|
||||
],
|
||||
"median": 4755.0,
|
||||
"min": 3641.3,
|
||||
"max": 8091.8
|
||||
},
|
||||
"oom": 0
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
date: 2026-11-06T09:21:03Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ python3 -c 'import json,statistics,subprocess
|
||||
from pathlib import Path
|
||||
root=Path("evidence/forward-final-2026-11-06")
|
||||
loads=[json.loads(p.read_text()) for p in sorted((root/"load").glob("run*.json"))]
|
||||
memory=[json.loads(p.read_text()) for p in sorted((root/"memory").glob("run*/slots*.json"))]
|
||||
assert len(loads)==len(memory)==3
|
||||
assert all(r["failed_requests"]==0 for r in loads)
|
||||
assert all(r["count"]==80 and r["concurrency"]==40 and r["upload_concurrency"]==3 for r in memory)
|
||||
def stats(values):return {"all":values,"median":statistics.median(values),"min":min(values),"max":max(values)}
|
||||
result={"commit":subprocess.check_output(["git","rev-parse","HEAD"],text=True).strip(),"load_rps":stats([r["successful_rps"] for r in loads]),"load_p95_ms":stats([r["successful_latency_ms"]["p95"] for r in loads]),"load_failed":sum(r["failed_requests"] for r in loads),"memory_statuses":[r["status_codes"] for r in memory],"body_bytes":[r["body_bytes"] for r in memory],"api_peak_mib":stats([max(v["cgroup_memory_peak_mib"] for v in r["memory"].values()) for r in memory]),"lb_peak_mib":stats([r["lb"]["cgroup_memory_peak_mib"] for r in memory]),"upload_p95_ms":stats([r["latency_ms"]["p95"] for r in memory]),"oom":sum(sum(v["oom_kill"] for v in r["memory"].values())+r["lb"]["oom_kill"] for r in memory)}
|
||||
with (root/"measurement-summary.json").open("x") as stream:json.dump(result,stream,indent=2);stream.write("\n")
|
||||
print(json.dumps(result,indent=2))'
|
||||
{
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"load_rps": {
|
||||
"all": [
|
||||
1428.577,
|
||||
1456.338,
|
||||
1529.32
|
||||
],
|
||||
"median": 1456.338,
|
||||
"min": 1428.577,
|
||||
"max": 1529.32
|
||||
},
|
||||
"load_p95_ms": {
|
||||
"all": [
|
||||
100.062,
|
||||
98.948,
|
||||
98.475
|
||||
],
|
||||
"median": 98.948,
|
||||
"min": 98.475,
|
||||
"max": 100.062
|
||||
},
|
||||
"load_failed": 0,
|
||||
"memory_statuses": [
|
||||
{
|
||||
"201": 80
|
||||
},
|
||||
{
|
||||
"201": 80
|
||||
},
|
||||
{
|
||||
"201": 78,
|
||||
"503": 2
|
||||
}
|
||||
],
|
||||
"body_bytes": [
|
||||
10485256,
|
||||
10485256,
|
||||
10485256
|
||||
],
|
||||
"api_peak_mib": {
|
||||
"all": [
|
||||
456.2,
|
||||
438.1,
|
||||
450.4
|
||||
],
|
||||
"median": 450.4,
|
||||
"min": 438.1,
|
||||
"max": 456.2
|
||||
},
|
||||
"lb_peak_mib": {
|
||||
"all": [
|
||||
31.8,
|
||||
28.5,
|
||||
29.1
|
||||
],
|
||||
"median": 29.1,
|
||||
"min": 28.5,
|
||||
"max": 31.8
|
||||
},
|
||||
"upload_p95_ms": {
|
||||
"all": [
|
||||
3641.3,
|
||||
4755.0,
|
||||
8091.8
|
||||
],
|
||||
"median": 4755.0,
|
||||
"min": 3641.3,
|
||||
"max": 8091.8
|
||||
},
|
||||
"oom": 0
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 0.048
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-06T09:17:14Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/upload_memory.py --base-url http://127.0.0.1:18084 --slots 3 --sizes 10485760 --levels 40 --out evidence/forward-final-2026-11-06/memory/run1
|
||||
# 2026-11-06T09:17:14Z commit 75b93bbba5f29575d3fca1d013cc7e0770d88082; 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 10.0M 40 201x80 2587.5 3641.3 233.2 456.2 0 31.8 0
|
||||
exit_code: 0 elapsed_seconds: 20.084
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-06T09:17:34Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/upload_memory.py --base-url http://127.0.0.1:18084 --slots 3 --sizes 10485760 --levels 40 --out evidence/forward-final-2026-11-06/memory/run2
|
||||
# 2026-11-06T09:17:34Z commit 75b93bbba5f29575d3fca1d013cc7e0770d88082; 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 10.0M 40 201x80 2770.4 4755.0 231.3 438.1 0 28.5 0
|
||||
exit_code: 0 elapsed_seconds: 21.500
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-06T09:17:56Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/upload_memory.py --base-url http://127.0.0.1:18084 --slots 3 --sizes 10485760 --levels 40 --out evidence/forward-final-2026-11-06/memory/run3
|
||||
# 2026-11-06T09:17:56Z commit 75b93bbba5f29575d3fca1d013cc7e0770d88082; 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 10.0M 40 201x78,503x2 3560.9 8091.8 231.7 450.4 0 29.1 0
|
||||
exit_code: 0 elapsed_seconds: 23.514
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"date": "2026-11-06T09:17:21Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"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.143,
|
||||
"successful_rps": 13.02,
|
||||
"latency_ms": {
|
||||
"p50": 2587.5,
|
||||
"p95": 3641.3,
|
||||
"p99": 4322.0,
|
||||
"max": 4322.0
|
||||
},
|
||||
"memory": {
|
||||
"35b198e7b5ca": {
|
||||
"idle_mib": 230.7,
|
||||
"docker_stats_peak_mib": 409.6,
|
||||
"cgroup_memory_peak_mib": 424.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"93b12ae1c127": {
|
||||
"idle_mib": 233.2,
|
||||
"docker_stats_peak_mib": 419.5,
|
||||
"cgroup_memory_peak_mib": 456.2,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 31.8,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# 2026-11-06T09:17:14Z commit 75b93bbba5f29575d3fca1d013cc7e0770d88082; 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 10.0M 40 201x80 2587.5 3641.3 233.2 456.2 0 31.8 0
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"date": "2026-11-06T09:17:40Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"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.053,
|
||||
"successful_rps": 9.93,
|
||||
"latency_ms": {
|
||||
"p50": 2770.4,
|
||||
"p95": 4755.0,
|
||||
"p99": 5507.3,
|
||||
"max": 5507.3
|
||||
},
|
||||
"memory": {
|
||||
"5df14feadc75": {
|
||||
"idle_mib": 230.1,
|
||||
"docker_stats_peak_mib": 411.6,
|
||||
"cgroup_memory_peak_mib": 438.1,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"806f59cf0d4c": {
|
||||
"idle_mib": 231.3,
|
||||
"docker_stats_peak_mib": 401.0,
|
||||
"cgroup_memory_peak_mib": 425.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 28.5,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# 2026-11-06T09:17:34Z commit 75b93bbba5f29575d3fca1d013cc7e0770d88082; 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 10.0M 40 201x80 2770.4 4755.0 231.3 438.1 0 28.5 0
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"date": "2026-11-06T09:18:02Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"upload_concurrency": 3,
|
||||
"mode": "http",
|
||||
"count": 80,
|
||||
"concurrency": 40,
|
||||
"body_bytes": 10485256,
|
||||
"status_codes": {
|
||||
"201": 78,
|
||||
"503": 2
|
||||
},
|
||||
"instances": 2,
|
||||
"linked_in_messages": 0,
|
||||
"elapsed_seconds": 9.545,
|
||||
"successful_rps": 8.17,
|
||||
"latency_ms": {
|
||||
"p50": 3560.9,
|
||||
"p95": 8091.8,
|
||||
"p99": 8772.2,
|
||||
"max": 8772.2
|
||||
},
|
||||
"memory": {
|
||||
"798d7474c368": {
|
||||
"idle_mib": 231.7,
|
||||
"docker_stats_peak_mib": 428.2,
|
||||
"cgroup_memory_peak_mib": 450.4,
|
||||
"oom_kill": 0
|
||||
},
|
||||
"0b9a4f6359fb": {
|
||||
"idle_mib": 179.4,
|
||||
"docker_stats_peak_mib": 410.0,
|
||||
"cgroup_memory_peak_mib": 430.7,
|
||||
"oom_kill": 0
|
||||
}
|
||||
},
|
||||
"lb": {
|
||||
"cgroup_memory_peak_mib": 29.1,
|
||||
"oom_kill": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# 2026-11-06T09:17:56Z commit 75b93bbba5f29575d3fca1d013cc7e0770d88082; 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 10.0M 40 201x78,503x2 3560.9 8091.8 231.7 450.4 0 29.1 0
|
||||
@@ -0,0 +1,154 @@
|
||||
date: 2026-11-06T09:10:41Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ .venv/bin/python student-tests/tools/forward_network.py
|
||||
{
|
||||
"checks": [
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "42617369632080",
|
||||
"status": 401,
|
||||
"instance": "d4c8d53d7433"
|
||||
},
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "426173696320ff",
|
||||
"status": 401,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "426173696320c3a9",
|
||||
"status": 401,
|
||||
"instance": "d4c8d53d7433"
|
||||
},
|
||||
{
|
||||
"case": "non_ascii_basic",
|
||||
"raw_hex": "42617369632059577870593255366332566a636d5630ff",
|
||||
"status": 401,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'\\x00'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "d4c8d53d7433"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'\\x00abc'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'abc\\x00def'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "d4c8d53d7433"
|
||||
},
|
||||
{
|
||||
"case": "nul_basic_display_title",
|
||||
"position": "'abc\\x00'",
|
||||
"status": [
|
||||
401,
|
||||
400,
|
||||
201,
|
||||
400
|
||||
],
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'\\x00'",
|
||||
"instances": [
|
||||
"da922ab2ea09",
|
||||
"d4c8d53d7433"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'\\x00abc'",
|
||||
"instances": [
|
||||
"d4c8d53d7433",
|
||||
"da922ab2ea09"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'abc\\x00def'",
|
||||
"instances": [
|
||||
"da922ab2ea09",
|
||||
"d4c8d53d7433"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_message_corrected_retry",
|
||||
"position": "'abc\\x00'",
|
||||
"instances": [
|
||||
"d4c8d53d7433",
|
||||
"da922ab2ea09"
|
||||
],
|
||||
"status": [
|
||||
400,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"copies": 1
|
||||
},
|
||||
{
|
||||
"case": "nul_access",
|
||||
"status": [
|
||||
404,
|
||||
404
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "logout_across_replicas",
|
||||
"status": [
|
||||
204,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401
|
||||
]
|
||||
}
|
||||
],
|
||||
"instances": [
|
||||
"d4c8d53d7433",
|
||||
"da922ab2ea09"
|
||||
],
|
||||
"pass": true
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 0.403
|
||||
@@ -0,0 +1,64 @@
|
||||
date: 2026-11-06T09:07:00Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ sh -c 'make check && make validate && make lint && make student-test'
|
||||
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
|
||||
163 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
.venv/bin/pytest
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
testpaths: student-tests
|
||||
plugins: asyncio-1.4.0, anyio-4.15.1
|
||||
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
|
||||
collected 511 items / 19 deselected / 492 selected
|
||||
|
||||
student-tests/adapters/test_s3_storage.py ... [ 0%]
|
||||
student-tests/api/test_access.py ......... [ 2%]
|
||||
student-tests/api/test_attachments.py .................................. [ 9%]
|
||||
.... [ 10%]
|
||||
student-tests/api/test_bounded_contexts.py ................... [ 14%]
|
||||
student-tests/api/test_cache.py ............ [ 16%]
|
||||
student-tests/api/test_concurrency.py .... [ 17%]
|
||||
student-tests/api/test_consistency.py ........ [ 18%]
|
||||
student-tests/api/test_drain.py .. [ 19%]
|
||||
student-tests/api/test_events.py ...... [ 20%]
|
||||
student-tests/api/test_idempotency.py ............... [ 23%]
|
||||
student-tests/api/test_instance.py .... [ 24%]
|
||||
student-tests/api/test_message_attachments.py ........... [ 26%]
|
||||
student-tests/api/test_migrations.py ................................ [ 33%]
|
||||
student-tests/api/test_negative.py ..................................... [ 40%]
|
||||
[ 40%]
|
||||
student-tests/api/test_nul_validation.py ................. [ 44%]
|
||||
student-tests/api/test_operability.py .............. [ 46%]
|
||||
student-tests/api/test_pagination.py .................. [ 50%]
|
||||
student-tests/api/test_pool.py ............ [ 53%]
|
||||
student-tests/api/test_reconciler.py .......... [ 55%]
|
||||
student-tests/api/test_sessions.py ...................... [ 59%]
|
||||
student-tests/api/test_timeout.py ........ [ 61%]
|
||||
student-tests/api/test_upload_consistency.py ......... [ 63%]
|
||||
student-tests/api/test_wire_format.py .. [ 63%]
|
||||
student-tests/unit/test_attachments_domain.py .......................... [ 68%]
|
||||
. [ 68%]
|
||||
student-tests/unit/test_authentication.py ............................. [ 74%]
|
||||
student-tests/unit/test_cursor.py ........... [ 77%]
|
||||
student-tests/unit/test_domain.py ...................................... [ 84%]
|
||||
.. [ 85%]
|
||||
student-tests/unit/test_haproxy_errors.py ............... [ 88%]
|
||||
student-tests/unit/test_nul_inputs.py ...................... [ 92%]
|
||||
student-tests/unit/test_probe.py .............. [ 95%]
|
||||
student-tests/unit/test_reconcile_measurements.py ...... [ 96%]
|
||||
student-tests/unit/test_scaling.py ..... [ 97%]
|
||||
student-tests/unit/test_session_cache.py .......... [ 99%]
|
||||
student-tests/unit/test_timeouts.py . [100%]
|
||||
|
||||
================ 492 passed, 19 deselected in 88.06s (0:01:28) =================
|
||||
exit_code: 0 elapsed_seconds: 90.288
|
||||
@@ -0,0 +1,36 @@
|
||||
date: 2026-11-06T09:06:38Z commit: f0fc084fbbc6a6084ac9526c50fcee45b2c9a277
|
||||
environment: {"NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ sh -c 'make check && make validate && make lint && make student-test'
|
||||
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
|
||||
163 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
error[invalid-argument-type]: Argument to `HTTPConnection.__init__` is incorrect
|
||||
--> student-tests/tools/forward_network.py:16:39
|
||||
|
|
||||
16 | conn = http.client.HTTPConnection(base.hostname, base.port, timeout=12)
|
||||
| ^^^^^^^^^^^^^ Expected `str`, found `str | None`
|
||||
info: element `None` of union `str | None` is not assignable to `str`
|
||||
info: Method defined here
|
||||
--> stdlib/http/client.pyi:336:13
|
||||
|
|
||||
336 | def __init__(
|
||||
| ^^^^^^^^
|
||||
337 | self,
|
||||
338 | host: str,
|
||||
| --------- Parameter declared here
|
||||
|
||||
error[not-subscriptable]: Cannot subscript object of type `None` with no `__getitem__` method
|
||||
--> student-tests/tools/forward_network.py:28:16
|
||||
|
|
||||
28 | assert result["error"]["request_id"] == request_id
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
Found 2 diagnostics
|
||||
make: *** [lint] Error 1
|
||||
exit_code: 2 elapsed_seconds: 0.678
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-06T09:32:35Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ openspec archive forward-lab3-final-review-fixes --yes --skip-specs
|
||||
Task status: ✓ Complete
|
||||
Skipping spec updates (--skip-specs flag provided).
|
||||
Change 'forward-lab3-final-review-fixes' archived as '2026-11-06-forward-lab3-final-review-fixes'.
|
||||
exit_code: 0 elapsed_seconds: 0.776
|
||||
@@ -0,0 +1,17 @@
|
||||
date: 2026-11-06T09:18:19Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-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}}"'
|
||||
12:18 up 37 days, 11:30, 6 users, load averages: 4.69 4.19 4.16
|
||||
hlpipe-lab4-forward-final-20261106-api-1 Up 2 seconds (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-api-2 Up 2 seconds (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-lb-1 Up 2 seconds (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-postgres-1 Up 5 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-s3-1 Up 4 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-valkey-1 Up 5 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-api-1 0.49% 227.9MiB / 512MiB
|
||||
hlpipe-lab4-forward-final-20261106-api-2 0.83% 227.9MiB / 512MiB
|
||||
hlpipe-lab4-forward-final-20261106-lb-1 1.16% 15.97MiB / 128MiB
|
||||
hlpipe-lab4-forward-final-20261106-postgres-1 2.18% 59.24MiB / 1GiB
|
||||
hlpipe-lab4-forward-final-20261106-s3-1 1.32% 297.5MiB / 512MiB
|
||||
hlpipe-lab4-forward-final-20261106-valkey-1 0.19% 13.54MiB / 128MiB
|
||||
exit_code: 0 elapsed_seconds: 2.646
|
||||
@@ -0,0 +1,18 @@
|
||||
date: 2026-11-06T09:16:14Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-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}}"; docker stats --no-stream --format "{{.Name}} {{.CPUPerc}} {{.MemUsage}}"'
|
||||
cpus=16 memory=8217190400
|
||||
12:16 up 37 days, 11:28, 6 users, load averages: 3.42 4.16 4.16
|
||||
hlpipe-lab4-forward-final-20261106-api-1 Up About a minute (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-api-2 Up 3 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-postgres-1 Up 3 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-lb-1 Up 3 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-s3-1 Up 2 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-valkey-1 Up 3 minutes (healthy)
|
||||
hlpipe-lab4-forward-final-20261106-api-1 12.78% 258.1MiB / 512MiB
|
||||
hlpipe-lab4-forward-final-20261106-api-2 0.83% 298.8MiB / 512MiB
|
||||
hlpipe-lab4-forward-final-20261106-postgres-1 0.13% 40.44MiB / 1GiB
|
||||
hlpipe-lab4-forward-final-20261106-lb-1 0.14% 24.3MiB / 128MiB
|
||||
hlpipe-lab4-forward-final-20261106-s3-1 0.04% 69.52MiB / 512MiB
|
||||
hlpipe-lab4-forward-final-20261106-valkey-1 1.25% 13.12MiB / 128MiB
|
||||
exit_code: 0 elapsed_seconds: 2.724
|
||||
@@ -0,0 +1,17 @@
|
||||
date: 2026-11-06T09:09:23Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ sh scripts/persistence-evidence.sh
|
||||
date: 2026-11-06T09:09:23Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
== before: service hostname StartedAt status
|
||||
api d4c8d53d7433 2026-11-06T09:09:18.754909134Z running
|
||||
api da922ab2ea09 2026-11-06T09:09:18.824598676Z running
|
||||
lb ea6930f64089 2026-11-06T09:09:12.580488131Z running
|
||||
migrate adc778a3d97c 2026-11-06T09:09:13.657768882Z exited
|
||||
postgres 3f3a870d89c0 2026-11-06T09:09:12.588930798Z running
|
||||
s3 5921e788f03d 2026-11-06T09:09:12.58822809Z running
|
||||
s3-init c90ac1d6c503 2026-11-06T09:09:18.165289926Z exited
|
||||
valkey 07ea16e2fcfe 2026-11-06T09:09:12.587649298Z running
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
|
||||
FAIL: GET /health/live: connection/TLS failure (URLError)
|
||||
make: *** [test-persistence] Error 1
|
||||
exit_code: 2 elapsed_seconds: 0.381
|
||||
@@ -0,0 +1,26 @@
|
||||
date: 2026-11-06T09:10:08Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ sh scripts/persistence-evidence.sh http://127.0.0.1:18084
|
||||
date: 2026-11-06T09:10:08Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
== before: service hostname StartedAt status
|
||||
api d4c8d53d7433 2026-11-06T09:09:18.754909134Z running
|
||||
api da922ab2ea09 2026-11-06T09:09:18.824598676Z running
|
||||
lb ea6930f64089 2026-11-06T09:09:12.580488131Z running
|
||||
migrate adc778a3d97c 2026-11-06T09:09:13.657768882Z exited
|
||||
postgres 3f3a870d89c0 2026-11-06T09:09:12.588930798Z running
|
||||
s3 5921e788f03d 2026-11-06T09:09:12.58822809Z running
|
||||
s3-init c90ac1d6c503 2026-11-06T09:09:18.165289926Z exited
|
||||
valkey 07ea16e2fcfe 2026-11-06T09:09:12.587649298Z running
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18084"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== after: service hostname StartedAt status
|
||||
api d4c8d53d7433 2026-11-06T09:10:18.309662551Z running
|
||||
api da922ab2ea09 2026-11-06T09:10:18.377623592Z running
|
||||
lb ea6930f64089 2026-11-06T09:10:12.683407215Z running
|
||||
migrate adc778a3d97c 2026-11-06T09:10:13.202156257Z exited
|
||||
postgres 3f3a870d89c0 2026-11-06T09:10:12.374370839Z running
|
||||
s3 5921e788f03d 2026-11-06T09:10:12.339453423Z running
|
||||
s3-init c90ac1d6c503 2026-11-06T09:10:17.710432217Z exited
|
||||
valkey 07ea16e2fcfe 2026-11-06T09:10:12.392600006Z running
|
||||
exit_code: 0 elapsed_seconds: 13.179
|
||||
@@ -0,0 +1,37 @@
|
||||
date: 2026-11-06T09:33:10Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ sh -c 'make lint && openspec validate --all --strict && openspec list --json && git diff --check && git diff --exit-code d7478726a85791c21e065d58f610735a9e687433 -- contracts tests README.md COURSE.md'
|
||||
.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
|
||||
163 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
- Validating...
|
||||
✓ 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)
|
||||
{
|
||||
"changes": [],
|
||||
"root": {
|
||||
"path": "<repo>",
|
||||
"source": "nearest"
|
||||
}
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 1.921
|
||||
@@ -0,0 +1,19 @@
|
||||
date: 2026-11-06T09:19:41Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-forward-final-20261106"}
|
||||
$ make reconcile-demo 'ARGS=--out evidence/forward-final-2026-11-06/reconcile-demo'
|
||||
python3 scripts/reconcile_track.py demo --base-url "http://127.0.0.1:18084" --out evidence/forward-final-2026-11-06/reconcile-demo
|
||||
PASS dry-run находит каждый внедрённый класс, и найдено ровно внедрённое
|
||||
PASS dry-run ничего не меняет
|
||||
PASS apply исправляет ровно найденное dry-run, удаление намерений — в журнале аудита
|
||||
PASS повторный apply — 0 действий
|
||||
PASS независимая проверка после apply: нарушений нет, готовые не потеряны
|
||||
PASS строки с расхождениями и ссылки сообщений сохранены
|
||||
PASS карантин: метаданные 200, /content 404; нетронутое скачивается
|
||||
PASS вернули те же байты — карантин снят; другие байты той же длины — остался
|
||||
PASS второй одновременный проход пропущен
|
||||
PASS SIGTERM: идущий проход останавливается за секунды, блокировка освобождена
|
||||
PASS S3 остановлен: код 1 за ограниченное время, состояние не изменилось
|
||||
PASS под нагрузкой: исправлены только внедрённые, ошибок нет
|
||||
PASS под нагрузкой: все 201 готовы и совпадают по SHA-256, потерь 0
|
||||
{"ok": true, "checks": 13}
|
||||
exit_code: 0 elapsed_seconds: 257.493
|
||||
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"date": "2026-11-06T09:20:54Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"mode": "apply",
|
||||
"skipped": false,
|
||||
"grace_seconds": 60,
|
||||
"skew_seconds": 0,
|
||||
"deep": true,
|
||||
"page_size": 1000,
|
||||
"scanned": {
|
||||
"objects": 24,
|
||||
"rows": 27
|
||||
},
|
||||
"found": {
|
||||
"orphan_stale": 3,
|
||||
"orphan_fresh": 2,
|
||||
"missing": 3,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale": 6,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 0,
|
||||
"healed": 0
|
||||
},
|
||||
"fixed": {
|
||||
"orphan_stale": 3,
|
||||
"missing": 3,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale": 6,
|
||||
"healed": 0
|
||||
},
|
||||
"rechecked": {},
|
||||
"errors": 0,
|
||||
"samples": {
|
||||
"missing": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621"
|
||||
],
|
||||
"size_mismatch": [
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d"
|
||||
],
|
||||
"sha_mismatch": [
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2"
|
||||
],
|
||||
"pending_stale": [
|
||||
"2cc53ddd-063f-4edc-ae55-98f201965b7f",
|
||||
"73fc548a-79a1-4396-a848-2e598eba75a1",
|
||||
"848bed6c-437a-4169-8cca-940c1987055b",
|
||||
"99d824a9-d16d-481e-9804-e209f2fa410b",
|
||||
"a0a3b632-5fe3-447e-a93b-bbdce77c4fb1",
|
||||
"d86c4cba-2836-4150-bf0e-d32e1ec442ec"
|
||||
],
|
||||
"orphan_stale": [
|
||||
"attachments/35df74ac-5753-48e0-b106-d596db2ca8e6",
|
||||
"attachments/8ba5a522-a4b8-40a8-b1f3-274401976db6",
|
||||
"attachments/de3cc053-2a20-44ad-b223-e06818b039e7"
|
||||
],
|
||||
"orphan_fresh": [
|
||||
"attachments/7b96d477-2dc4-4a8c-8703-e6176a7e46a6",
|
||||
"attachments/d69d9843-ceab-4101-a278-7e5974071ac6"
|
||||
],
|
||||
"pending_fresh": [
|
||||
"dfb03912-2304-4280-bfb7-7a7b9cb28597",
|
||||
"f1cf4216-9e57-4217-866a-440aac9435f3"
|
||||
]
|
||||
},
|
||||
"cost": {
|
||||
"seconds": 0.119,
|
||||
"requests": {
|
||||
"s3_list": 1,
|
||||
"s3_head": 6,
|
||||
"s3_get": 13,
|
||||
"s3_delete": 9,
|
||||
"sql": 19
|
||||
},
|
||||
"waited_seconds": {
|
||||
"s3_list": 0.018,
|
||||
"sql": 0.006
|
||||
},
|
||||
"hashed_bytes": 1453621,
|
||||
"cpu_seconds": 0.621,
|
||||
"max_rss_mib": 107.6
|
||||
},
|
||||
"exit_code": 0,
|
||||
"wall_seconds": 1.106,
|
||||
"audit": [
|
||||
{
|
||||
"attachment_id": "2cc53ddd-063f-4edc-ae55-98f201965b7f",
|
||||
"chat_id": "01a1b028-1d47-75b7-a3d7-f9dda0509d40",
|
||||
"reason": "reconcile",
|
||||
"event": "audit.attachment_discarded",
|
||||
"level": "info",
|
||||
"ts": "2026-11-06T09:20:54.712257Z"
|
||||
},
|
||||
{
|
||||
"attachment_id": "73fc548a-79a1-4396-a848-2e598eba75a1",
|
||||
"chat_id": "01a1b028-1d47-75b7-a3d7-f9dda0509d40",
|
||||
"reason": "reconcile",
|
||||
"event": "audit.attachment_discarded",
|
||||
"level": "info",
|
||||
"ts": "2026-11-06T09:20:54.724316Z"
|
||||
},
|
||||
{
|
||||
"attachment_id": "848bed6c-437a-4169-8cca-940c1987055b",
|
||||
"chat_id": "01a1b028-1d47-75b7-a3d7-f9dda0509d40",
|
||||
"reason": "reconcile",
|
||||
"event": "audit.attachment_discarded",
|
||||
"level": "info",
|
||||
"ts": "2026-11-06T09:20:54.732394Z"
|
||||
},
|
||||
{
|
||||
"attachment_id": "99d824a9-d16d-481e-9804-e209f2fa410b",
|
||||
"chat_id": "01a1b028-1d47-75b7-a3d7-f9dda0509d40",
|
||||
"reason": "reconcile",
|
||||
"event": "audit.attachment_discarded",
|
||||
"level": "info",
|
||||
"ts": "2026-11-06T09:20:54.741795Z"
|
||||
},
|
||||
{
|
||||
"attachment_id": "a0a3b632-5fe3-447e-a93b-bbdce77c4fb1",
|
||||
"chat_id": "01a1b028-1d47-75b7-a3d7-f9dda0509d40",
|
||||
"reason": "reconcile",
|
||||
"event": "audit.attachment_discarded",
|
||||
"level": "info",
|
||||
"ts": "2026-11-06T09:20:54.749494Z"
|
||||
},
|
||||
{
|
||||
"attachment_id": "d86c4cba-2836-4150-bf0e-d32e1ec442ec",
|
||||
"chat_id": "01a1b028-1d47-75b7-a3d7-f9dda0509d40",
|
||||
"reason": "reconcile",
|
||||
"event": "audit.attachment_discarded",
|
||||
"level": "info",
|
||||
"ts": "2026-11-06T09:20:54.757598Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"date": "2026-11-06T09:20:55Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"mode": "apply",
|
||||
"skipped": false,
|
||||
"grace_seconds": 60,
|
||||
"skew_seconds": 0,
|
||||
"deep": true,
|
||||
"page_size": 1000,
|
||||
"scanned": {
|
||||
"objects": 18,
|
||||
"rows": 21
|
||||
},
|
||||
"found": {
|
||||
"orphan_stale": 0,
|
||||
"orphan_fresh": 2,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 9,
|
||||
"healed": 0
|
||||
},
|
||||
"fixed": {
|
||||
"orphan_stale": 0,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"healed": 0
|
||||
},
|
||||
"rechecked": {},
|
||||
"errors": 0,
|
||||
"samples": {
|
||||
"quarantined": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d",
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2"
|
||||
],
|
||||
"orphan_fresh": [
|
||||
"attachments/7b96d477-2dc4-4a8c-8703-e6176a7e46a6",
|
||||
"attachments/d69d9843-ceab-4101-a278-7e5974071ac6"
|
||||
],
|
||||
"pending_fresh": [
|
||||
"dfb03912-2304-4280-bfb7-7a7b9cb28597",
|
||||
"f1cf4216-9e57-4217-866a-440aac9435f3"
|
||||
]
|
||||
},
|
||||
"cost": {
|
||||
"seconds": 0.043,
|
||||
"requests": {
|
||||
"s3_list": 1,
|
||||
"s3_head": 0,
|
||||
"s3_get": 13,
|
||||
"s3_delete": 0,
|
||||
"sql": 1
|
||||
},
|
||||
"waited_seconds": {
|
||||
"s3_list": 0.017,
|
||||
"sql": 0.006
|
||||
},
|
||||
"hashed_bytes": 1453621,
|
||||
"cpu_seconds": 0.595,
|
||||
"max_rss_mib": 107.4
|
||||
},
|
||||
"exit_code": 0,
|
||||
"wall_seconds": 1.021,
|
||||
"audit": []
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"checked_at": "2026-11-06T09:20:57Z",
|
||||
"grace_seconds": 60,
|
||||
"deep": true,
|
||||
"objects": 18,
|
||||
"rows": 21,
|
||||
"ready_healthy": 10,
|
||||
"counts": {
|
||||
"orphan_stale": 0,
|
||||
"orphan_fresh": 2,
|
||||
"missing_referenced": 0,
|
||||
"missing_unreferenced": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale_with_object": 0,
|
||||
"pending_stale_without_object": 0,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 9,
|
||||
"incomplete_stale": 0,
|
||||
"incomplete_fresh": 0,
|
||||
"lost_ready": 0
|
||||
},
|
||||
"samples": {
|
||||
"orphan_fresh": [
|
||||
"attachments/7b96d477-2dc4-4a8c-8703-e6176a7e46a6",
|
||||
"attachments/d69d9843-ceab-4101-a278-7e5974071ac6"
|
||||
],
|
||||
"pending_fresh": [
|
||||
"dfb03912-2304-4280-bfb7-7a7b9cb28597",
|
||||
"f1cf4216-9e57-4217-866a-440aac9435f3"
|
||||
],
|
||||
"quarantined": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2"
|
||||
]
|
||||
},
|
||||
"seconds": {
|
||||
"s3_list": 0.3,
|
||||
"s3_incomplete": 0.325,
|
||||
"pg_query": 0.128,
|
||||
"deep_hash": 0.593,
|
||||
"total": 1.348
|
||||
},
|
||||
"violations": [],
|
||||
"ok": true
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"checked_at": "2026-11-06T09:20:51Z",
|
||||
"grace_seconds": 60,
|
||||
"deep": true,
|
||||
"objects": 24,
|
||||
"rows": 27,
|
||||
"ready_healthy": 10,
|
||||
"counts": {
|
||||
"orphan_stale": 3,
|
||||
"orphan_fresh": 2,
|
||||
"missing_referenced": 2,
|
||||
"missing_unreferenced": 1,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale_with_object": 3,
|
||||
"pending_stale_without_object": 3,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 0,
|
||||
"incomplete_stale": 0,
|
||||
"incomplete_fresh": 0,
|
||||
"lost_ready": 0
|
||||
},
|
||||
"samples": {
|
||||
"orphan_stale": [
|
||||
"attachments/35df74ac-5753-48e0-b106-d596db2ca8e6",
|
||||
"attachments/8ba5a522-a4b8-40a8-b1f3-274401976db6",
|
||||
"attachments/de3cc053-2a20-44ad-b223-e06818b039e7"
|
||||
],
|
||||
"orphan_fresh": [
|
||||
"attachments/7b96d477-2dc4-4a8c-8703-e6176a7e46a6",
|
||||
"attachments/d69d9843-ceab-4101-a278-7e5974071ac6"
|
||||
],
|
||||
"missing_referenced": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10"
|
||||
],
|
||||
"missing_unreferenced": [
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621"
|
||||
],
|
||||
"size_mismatch": [
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d"
|
||||
],
|
||||
"sha_mismatch": [
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2"
|
||||
],
|
||||
"pending_stale_with_object": [
|
||||
"848bed6c-437a-4169-8cca-940c1987055b",
|
||||
"a0a3b632-5fe3-447e-a93b-bbdce77c4fb1",
|
||||
"d86c4cba-2836-4150-bf0e-d32e1ec442ec"
|
||||
],
|
||||
"pending_stale_without_object": [
|
||||
"2cc53ddd-063f-4edc-ae55-98f201965b7f",
|
||||
"73fc548a-79a1-4396-a848-2e598eba75a1",
|
||||
"99d824a9-d16d-481e-9804-e209f2fa410b"
|
||||
],
|
||||
"pending_fresh": [
|
||||
"dfb03912-2304-4280-bfb7-7a7b9cb28597",
|
||||
"f1cf4216-9e57-4217-866a-440aac9435f3"
|
||||
]
|
||||
},
|
||||
"seconds": {
|
||||
"s3_list": 0.304,
|
||||
"s3_incomplete": 0.347,
|
||||
"pg_query": 0.112,
|
||||
"deep_hash": 0.556,
|
||||
"total": 1.319
|
||||
},
|
||||
"violations": [
|
||||
"orphan_stale",
|
||||
"missing_referenced",
|
||||
"missing_unreferenced",
|
||||
"size_mismatch",
|
||||
"sha_mismatch",
|
||||
"pending_stale_with_object",
|
||||
"pending_stale_without_object"
|
||||
],
|
||||
"ok": false
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"checked_at": "2026-11-06T09:23:59Z",
|
||||
"grace_seconds": 60,
|
||||
"deep": true,
|
||||
"objects": 3382,
|
||||
"rows": 3383,
|
||||
"ready_healthy": 3375,
|
||||
"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": 8,
|
||||
"incomplete_stale": 0,
|
||||
"incomplete_fresh": 0,
|
||||
"lost_ready": 0
|
||||
},
|
||||
"samples": {
|
||||
"quarantined": [
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2"
|
||||
]
|
||||
},
|
||||
"seconds": {
|
||||
"s3_list": 0.677,
|
||||
"s3_incomplete": 0.367,
|
||||
"pg_query": 0.149,
|
||||
"deep_hash": 67.224,
|
||||
"total": 68.428
|
||||
},
|
||||
"violations": [],
|
||||
"ok": true
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
{
|
||||
"date": "2026-11-06T09:23:59Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"started_at": "2026-11-06T09:19:42Z",
|
||||
"faults": {
|
||||
"injected": {
|
||||
"orphan_stale": [
|
||||
"35df74ac-5753-48e0-b106-d596db2ca8e6",
|
||||
"de3cc053-2a20-44ad-b223-e06818b039e7",
|
||||
"8ba5a522-a4b8-40a8-b1f3-274401976db6"
|
||||
],
|
||||
"missing": [
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808"
|
||||
],
|
||||
"size_mismatch": [
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d",
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9"
|
||||
],
|
||||
"sha_mismatch": [
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e"
|
||||
],
|
||||
"pending_stale": [
|
||||
"2cc53ddd-063f-4edc-ae55-98f201965b7f",
|
||||
"99d824a9-d16d-481e-9804-e209f2fa410b",
|
||||
"73fc548a-79a1-4396-a848-2e598eba75a1",
|
||||
"a0a3b632-5fe3-447e-a93b-bbdce77c4fb1",
|
||||
"848bed6c-437a-4169-8cca-940c1987055b",
|
||||
"d86c4cba-2836-4150-bf0e-d32e1ec442ec"
|
||||
],
|
||||
"orphan_fresh": [
|
||||
"d69d9843-ceab-4101-a278-7e5974071ac6",
|
||||
"7b96d477-2dc4-4a8c-8703-e6176a7e46a6"
|
||||
],
|
||||
"pending_fresh": [
|
||||
"f1cf4216-9e57-4217-866a-440aac9435f3",
|
||||
"dfb03912-2304-4280-bfb7-7a7b9cb28597"
|
||||
]
|
||||
},
|
||||
"targets": {
|
||||
"missing": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621"
|
||||
],
|
||||
"corrupt": [
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d"
|
||||
],
|
||||
"bitflip": [
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2"
|
||||
]
|
||||
},
|
||||
"linked": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-22cb-73b4-92c8-0db140de50a1",
|
||||
"01a1b028-22d2-7761-8bdd-8b9987dcd70f"
|
||||
]
|
||||
},
|
||||
"seconds": 256.6,
|
||||
"checks": [
|
||||
{
|
||||
"name": "dry-run находит каждый внедрённый класс, и найдено ровно внедрённое",
|
||||
"ok": true,
|
||||
"expected": {
|
||||
"orphan_stale": 3,
|
||||
"missing": 3,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale": 6,
|
||||
"orphan_fresh": 2,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 0
|
||||
},
|
||||
"found": {
|
||||
"orphan_stale": 3,
|
||||
"orphan_fresh": 2,
|
||||
"missing": 3,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale": 6,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 0,
|
||||
"healed": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "dry-run ничего не меняет",
|
||||
"ok": true,
|
||||
"objects": [
|
||||
24,
|
||||
24
|
||||
],
|
||||
"rows": [
|
||||
27,
|
||||
27
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "apply исправляет ровно найденное dry-run, удаление намерений — в журнале аудита",
|
||||
"ok": true,
|
||||
"dry_run": {
|
||||
"orphan_stale": 3,
|
||||
"missing": 3,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale": 6
|
||||
},
|
||||
"fixed": {
|
||||
"orphan_stale": 3,
|
||||
"missing": 3,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale": 6
|
||||
},
|
||||
"audit_discarded": 6
|
||||
},
|
||||
{
|
||||
"name": "повторный apply — 0 действий",
|
||||
"ok": true,
|
||||
"fixed": {
|
||||
"orphan_stale": 0,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"healed": 0
|
||||
},
|
||||
"found": {
|
||||
"orphan_stale": 0,
|
||||
"orphan_fresh": 2,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 9,
|
||||
"healed": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "независимая проверка после apply: нарушений нет, готовые не потеряны",
|
||||
"ok": true,
|
||||
"counts": {
|
||||
"orphan_stale": 0,
|
||||
"orphan_fresh": 2,
|
||||
"missing_referenced": 0,
|
||||
"missing_unreferenced": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale_with_object": 0,
|
||||
"pending_stale_without_object": 0,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 9,
|
||||
"incomplete_stale": 0,
|
||||
"incomplete_fresh": 0,
|
||||
"lost_ready": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "строки с расхождениями и ссылки сообщений сохранены",
|
||||
"ok": true,
|
||||
"quarantine": {
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808": "missing",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10": "missing",
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1": "size_mismatch",
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e": "sha_mismatch",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621": "missing",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9": "size_mismatch",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d": "size_mismatch",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2": "sha_mismatch",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2": "sha_mismatch"
|
||||
},
|
||||
"message_links": 6
|
||||
},
|
||||
{
|
||||
"name": "карантин: метаданные 200, /content 404; нетронутое скачивается",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "вернули те же байты — карантин снят; другие байты той же длины — остался",
|
||||
"ok": true,
|
||||
"fixed": {
|
||||
"orphan_stale": 0,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"healed": 1
|
||||
},
|
||||
"s3_get": 5
|
||||
},
|
||||
{
|
||||
"name": "второй одновременный проход пропущен",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "SIGTERM: идущий проход останавливается за секунды, блокировка освобождена",
|
||||
"ok": true,
|
||||
"s3": "paused",
|
||||
"state_before_stop": "running",
|
||||
"init": "true",
|
||||
"stop_seconds": 0.1,
|
||||
"exit_code": 143,
|
||||
"next_pass_skipped": false
|
||||
},
|
||||
{
|
||||
"name": "S3 остановлен: код 1 за ограниченное время, состояние не изменилось",
|
||||
"ok": true,
|
||||
"exit_code": 1,
|
||||
"wall_seconds": 2.32
|
||||
},
|
||||
{
|
||||
"name": "под нагрузкой: исправлены только внедрённые, ошибок нет",
|
||||
"ok": true,
|
||||
"fixed": {
|
||||
"orphan_stale": 5,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 5
|
||||
},
|
||||
"runs": 59
|
||||
},
|
||||
{
|
||||
"name": "под нагрузкой: все 201 готовы и совпадают по SHA-256, потерь 0",
|
||||
"ok": true,
|
||||
"uploads": {
|
||||
"201": 3364
|
||||
},
|
||||
"lost_ready": 0
|
||||
}
|
||||
],
|
||||
"ok": true
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"date": "2026-11-06T09:20:52Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"mode": "dry-run",
|
||||
"skipped": false,
|
||||
"grace_seconds": 60,
|
||||
"skew_seconds": 0,
|
||||
"deep": true,
|
||||
"page_size": 1000,
|
||||
"scanned": {
|
||||
"objects": 24,
|
||||
"rows": 27
|
||||
},
|
||||
"found": {
|
||||
"orphan_stale": 3,
|
||||
"orphan_fresh": 2,
|
||||
"missing": 3,
|
||||
"size_mismatch": 3,
|
||||
"sha_mismatch": 3,
|
||||
"pending_stale": 6,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 0,
|
||||
"healed": 0
|
||||
},
|
||||
"fixed": {
|
||||
"orphan_stale": 0,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"healed": 0
|
||||
},
|
||||
"rechecked": {},
|
||||
"errors": 0,
|
||||
"samples": {
|
||||
"missing": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621"
|
||||
],
|
||||
"size_mismatch": [
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d"
|
||||
],
|
||||
"sha_mismatch": [
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2"
|
||||
],
|
||||
"pending_stale": [
|
||||
"2cc53ddd-063f-4edc-ae55-98f201965b7f",
|
||||
"73fc548a-79a1-4396-a848-2e598eba75a1",
|
||||
"848bed6c-437a-4169-8cca-940c1987055b",
|
||||
"99d824a9-d16d-481e-9804-e209f2fa410b",
|
||||
"a0a3b632-5fe3-447e-a93b-bbdce77c4fb1",
|
||||
"d86c4cba-2836-4150-bf0e-d32e1ec442ec"
|
||||
],
|
||||
"orphan_stale": [
|
||||
"attachments/35df74ac-5753-48e0-b106-d596db2ca8e6",
|
||||
"attachments/8ba5a522-a4b8-40a8-b1f3-274401976db6",
|
||||
"attachments/de3cc053-2a20-44ad-b223-e06818b039e7"
|
||||
],
|
||||
"orphan_fresh": [
|
||||
"attachments/7b96d477-2dc4-4a8c-8703-e6176a7e46a6",
|
||||
"attachments/d69d9843-ceab-4101-a278-7e5974071ac6"
|
||||
],
|
||||
"pending_fresh": [
|
||||
"dfb03912-2304-4280-bfb7-7a7b9cb28597",
|
||||
"f1cf4216-9e57-4217-866a-440aac9435f3"
|
||||
]
|
||||
},
|
||||
"cost": {
|
||||
"seconds": 0.04,
|
||||
"requests": {
|
||||
"s3_list": 1,
|
||||
"s3_head": 0,
|
||||
"s3_get": 13,
|
||||
"s3_delete": 0,
|
||||
"sql": 1
|
||||
},
|
||||
"waited_seconds": {
|
||||
"s3_list": 0.016,
|
||||
"sql": 0.006
|
||||
},
|
||||
"hashed_bytes": 1453621,
|
||||
"cpu_seconds": 0.594,
|
||||
"max_rss_mib": 107.4
|
||||
},
|
||||
"exit_code": 0,
|
||||
"wall_seconds": 1.013,
|
||||
"audit": []
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"date": "2026-11-06T09:20:59Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"mode": "apply",
|
||||
"skipped": false,
|
||||
"grace_seconds": 60,
|
||||
"skew_seconds": 0,
|
||||
"deep": false,
|
||||
"page_size": 1000,
|
||||
"scanned": {
|
||||
"objects": 20,
|
||||
"rows": 21
|
||||
},
|
||||
"found": {
|
||||
"orphan_stale": 0,
|
||||
"orphan_fresh": 2,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"pending_fresh": 2,
|
||||
"quarantined": 8,
|
||||
"healed": 1
|
||||
},
|
||||
"fixed": {
|
||||
"orphan_stale": 0,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"healed": 1
|
||||
},
|
||||
"rechecked": {},
|
||||
"errors": 0,
|
||||
"samples": {
|
||||
"quarantined": [
|
||||
"01a1b028-22ba-778b-99d5-eef1d99349f1",
|
||||
"01a1b028-2306-74ed-9bff-7c2894a33621",
|
||||
"01a1b028-2316-7510-b41e-754b39583de9",
|
||||
"01a1b028-231e-70ba-8a9e-1de6d00c2e0d",
|
||||
"01a1b028-22ad-77fa-9b2e-d01e032a2c10",
|
||||
"01a1b028-2330-7662-8f98-6b45a5c165a2",
|
||||
"01a1b028-22c2-7713-adf4-93a25c06e07e",
|
||||
"01a1b028-2327-7105-838f-3f0df5b10dc2"
|
||||
],
|
||||
"orphan_fresh": [
|
||||
"attachments/7b96d477-2dc4-4a8c-8703-e6176a7e46a6",
|
||||
"attachments/d69d9843-ceab-4101-a278-7e5974071ac6"
|
||||
],
|
||||
"pending_fresh": [
|
||||
"dfb03912-2304-4280-bfb7-7a7b9cb28597",
|
||||
"f1cf4216-9e57-4217-866a-440aac9435f3"
|
||||
],
|
||||
"healed": [
|
||||
"01a1b028-2293-743d-a00c-f7fec1a50808"
|
||||
]
|
||||
},
|
||||
"cost": {
|
||||
"seconds": 0.04,
|
||||
"requests": {
|
||||
"s3_list": 1,
|
||||
"s3_head": 0,
|
||||
"s3_get": 5,
|
||||
"s3_delete": 0,
|
||||
"sql": 2
|
||||
},
|
||||
"waited_seconds": {
|
||||
"s3_list": 0.019,
|
||||
"sql": 0.006
|
||||
},
|
||||
"hashed_bytes": 559085,
|
||||
"cpu_seconds": 0.607,
|
||||
"max_rss_mib": 107.5
|
||||
},
|
||||
"exit_code": 0,
|
||||
"wall_seconds": 1.074,
|
||||
"audit": []
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"date": "2026-11-06T09:21:14Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"mode": "apply",
|
||||
"skipped": true,
|
||||
"grace_seconds": 60,
|
||||
"skew_seconds": 0,
|
||||
"deep": false,
|
||||
"page_size": 1000,
|
||||
"scanned": {
|
||||
"objects": 0,
|
||||
"rows": 0
|
||||
},
|
||||
"found": {
|
||||
"orphan_stale": 0,
|
||||
"orphan_fresh": 0,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"pending_fresh": 0,
|
||||
"quarantined": 0,
|
||||
"healed": 0
|
||||
},
|
||||
"fixed": {
|
||||
"orphan_stale": 0,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 0,
|
||||
"healed": 0
|
||||
},
|
||||
"rechecked": {},
|
||||
"errors": 0,
|
||||
"samples": {},
|
||||
"cost": {
|
||||
"seconds": 0.008,
|
||||
"requests": {
|
||||
"s3_list": 0,
|
||||
"s3_head": 0,
|
||||
"s3_get": 0,
|
||||
"s3_delete": 0,
|
||||
"sql": 0
|
||||
},
|
||||
"waited_seconds": {},
|
||||
"hashed_bytes": 0,
|
||||
"cpu_seconds": 0.549,
|
||||
"max_rss_mib": 106.5
|
||||
},
|
||||
"exit_code": 0,
|
||||
"wall_seconds": 0.917,
|
||||
"audit": []
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"01a1b028-1dde-7345-971e-c4c24622ef5d": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2293-743d-a00c-f7fec1a50808": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-22ad-77fa-9b2e-d01e032a2c10": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-22ba-778b-99d5-eef1d99349f1": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-22c2-7713-adf4-93a25c06e07e": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-22cb-73b4-92c8-0db140de50a1": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-22d2-7761-8bdd-8b9987dcd70f": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2306-74ed-9bff-7c2894a33621": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2316-7510-b41e-754b39583de9": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-231e-70ba-8a9e-1de6d00c2e0d": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2327-7105-838f-3f0df5b10dc2": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2330-7662-8f98-6b45a5c165a2": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2339-7091-b944-16c65cfce6f9": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2341-737d-b71f-ed06fdf083e5": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2349-7776-b1f8-5d8380dec796": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2351-7605-96d5-b39a1ad9df0f": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2359-72bc-add8-a22020ccf80a": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2361-71b8-b4bd-4227e8de54bc": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "01a1b028-2369-7670-9824-9c1871789b60": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"01a1b028-1dde-7345-971e-c4c24622ef5d": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-22cb-73b4-92c8-0db140de50a1": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-22d2-7761-8bdd-8b9987dcd70f": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-2339-7091-b944-16c65cfce6f9": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-2341-737d-b71f-ed06fdf083e5": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-2349-7776-b1f8-5d8380dec796": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-2351-7605-96d5-b39a1ad9df0f": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-2359-72bc-add8-a22020ccf80a": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-2361-71b8-b4bd-4227e8de54bc": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"01a1b028-2369-7670-9824-9c1871789b60": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"date": "2026-11-06T09:21:32Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"exit_code": 1,
|
||||
"wall_seconds": 2.32,
|
||||
"stdout": "",
|
||||
"log": [
|
||||
"{\"error\":\"EndpointConnectionError\",\"event\":\"reconcile.failed\",\"level\":\"error\",\"ts\":\"2026-11-06T09:21:25.233096Z\"}"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"date": "2026-11-06T09:21:22Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"s3": "paused",
|
||||
"state_before_stop": "running",
|
||||
"init": "true",
|
||||
"stop_seconds": 0.1,
|
||||
"exit_code": 143,
|
||||
"next_pass_skipped": false
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"date": "2026-11-06T09:23:59Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"seconds": 75,
|
||||
"upload_threads": 3,
|
||||
"uploads": {
|
||||
"201": 3364
|
||||
},
|
||||
"created": 3364,
|
||||
"linked_every": 10,
|
||||
"reconciler_runs": 59,
|
||||
"run_seconds": [
|
||||
0.055,
|
||||
0.048,
|
||||
0.056,
|
||||
0.057,
|
||||
0.063,
|
||||
0.067,
|
||||
0.078,
|
||||
0.082,
|
||||
0.094,
|
||||
0.093,
|
||||
0.097,
|
||||
0.102,
|
||||
0.116,
|
||||
0.144,
|
||||
0.125,
|
||||
0.131,
|
||||
0.127,
|
||||
0.15,
|
||||
0.137,
|
||||
0.155,
|
||||
0.163,
|
||||
0.161,
|
||||
0.168,
|
||||
0.183,
|
||||
0.171,
|
||||
0.177,
|
||||
0.176,
|
||||
0.195,
|
||||
0.208,
|
||||
0.197,
|
||||
0.212,
|
||||
0.217,
|
||||
0.221,
|
||||
0.222,
|
||||
0.246,
|
||||
0.236,
|
||||
0.248,
|
||||
0.247,
|
||||
0.257,
|
||||
0.277,
|
||||
0.262,
|
||||
0.3,
|
||||
0.305,
|
||||
0.289,
|
||||
0.299,
|
||||
0.297,
|
||||
0.302,
|
||||
0.358,
|
||||
0.325,
|
||||
0.325,
|
||||
0.333,
|
||||
0.352,
|
||||
0.334,
|
||||
0.346,
|
||||
0.344,
|
||||
0.346,
|
||||
0.384,
|
||||
0.38,
|
||||
0.406
|
||||
],
|
||||
"fixed_total": {
|
||||
"orphan_stale": 5,
|
||||
"missing": 0,
|
||||
"size_mismatch": 0,
|
||||
"sha_mismatch": 0,
|
||||
"pending_stale": 5
|
||||
},
|
||||
"fresh_seen_total": {
|
||||
"orphan_fresh": 175,
|
||||
"pending_fresh": 42
|
||||
},
|
||||
"rechecked_total": {
|
||||
"missing": 55
|
||||
},
|
||||
"errors": 0,
|
||||
"skipped": 0,
|
||||
"injected_before_load": {
|
||||
"orphan": 3,
|
||||
"pending_stale": 3
|
||||
},
|
||||
"left_from_faults": {
|
||||
"orphan_stale": 2,
|
||||
"pending_stale": 2
|
||||
},
|
||||
"check_after": {
|
||||
"objects": 3382,
|
||||
"rows": 3383,
|
||||
"ready_healthy": 3375,
|
||||
"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": 8,
|
||||
"incomplete_stale": 0,
|
||||
"incomplete_fresh": 0,
|
||||
"lost_ready": 0
|
||||
},
|
||||
"ok": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
date: 2026-11-06T09:23:59Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-forward-final-20261106"}
|
||||
$ make down
|
||||
docker compose --profile bench --profile tools --profile reconcile down
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Removed
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Removed
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Removed
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Removed
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Removed
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Stopping
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Removed
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Stopped
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Removing
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Removed
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Removed
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_edge Removing
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_backend Removing
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_edge Removed
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_backend Removed
|
||||
exit_code: 0 elapsed_seconds: 3.396
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-06T09:19:41Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-forward-final-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.460
|
||||
@@ -0,0 +1,149 @@
|
||||
date: 2026-11-06T09:19:28Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-reconcile-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-forward-final-20261106"}
|
||||
$ make up
|
||||
sh scripts/secrets.sh
|
||||
docker compose up -d --build --wait
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 453B 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 1.4s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 453B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#6 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#7 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 18.81kB 0.0s done
|
||||
#8 DONE 0.1s
|
||||
|
||||
#9 [runtime 5/6] COPY --chown=root:root alembic.ini ./
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#11 CACHED
|
||||
|
||||
#12 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 3/7] WORKDIR /build
|
||||
#13 CACHED
|
||||
|
||||
#14 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#14 CACHED
|
||||
|
||||
#15 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#15 CACHED
|
||||
|
||||
#16 [builder 6/7] COPY src ./src
|
||||
#16 CACHED
|
||||
|
||||
#17 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#17 CACHED
|
||||
|
||||
#18 [runtime 4/6] WORKDIR /app
|
||||
#18 CACHED
|
||||
|
||||
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
|
||||
#19 CACHED
|
||||
|
||||
#20 exporting to image
|
||||
#20 exporting layers done
|
||||
#20 exporting manifest sha256:3eab4c0213dac6c3abf99f1aae3241f7f05473144ea0af93cbd54f2493ead5a9 done
|
||||
#20 exporting config sha256:69a1b793a45421608110feaeff33be9ffc032aef2a7543216961693aaea7a897 done
|
||||
#20 exporting attestation manifest sha256:3a5615e55b30f4fcea966479882ce9f7b5226b07b170e3c3b9c58831718ace92 done
|
||||
#20 exporting manifest list sha256:0a338d6793692cb6388d9855a4ea5fa5f4a7fce70c493d6ffdb8e1330147011d done
|
||||
#20 naming to docker.io/library/mtusi-messenger:hlpipe-lab4-forward-final-20261106 done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:hlpipe-lab4-forward-final-20261106 done
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_backend Creating
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_backend Created
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_edge Creating
|
||||
Network hlpipe-lab4-forward-reconcile-20261106_edge Created
|
||||
Volume "hlpipe-lab4-forward-reconcile-20261106_pgdata" Creating
|
||||
Volume "hlpipe-lab4-forward-reconcile-20261106_pgdata" Created
|
||||
Volume "hlpipe-lab4-forward-reconcile-20261106_s3data" Creating
|
||||
Volume "hlpipe-lab4-forward-reconcile-20261106_s3data" Created
|
||||
Volume "hlpipe-lab4-forward-reconcile-20261106_valkeydata" Creating
|
||||
Volume "hlpipe-lab4-forward-reconcile-20261106_valkeydata" Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Creating
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Created
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Healthy
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Healthy
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Exited
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Exited
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Starting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Started
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Waiting
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-1 Healthy
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-migrate-1 Exited
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-valkey-1 Healthy
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-postgres-1 Healthy
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-s3-init-1 Exited
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-1 Healthy
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-api-2 Healthy
|
||||
Container hlpipe-lab4-forward-reconcile-20261106-lb-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
exit_code: 0 elapsed_seconds: 12.779
|
||||
@@ -0,0 +1,12 @@
|
||||
date: 2026-11-06T09:14:46Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:hlpipe-lab4-forward-final-20261106"}
|
||||
$ make restore
|
||||
scripts/restore.sh
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Running
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Healthy
|
||||
exit_code: 0 elapsed_seconds: 2.582
|
||||
@@ -0,0 +1,13 @@
|
||||
date: 2026-11-06T09:10:56Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ python3 -c 'import subprocess
|
||||
from pathlib import Path
|
||||
paths=["src/messenger/attachments", "src/messenger/shared", "scripts/reconcile_track.py", "student-tests/tools/seed_storage.py", "alembic", "compose.yaml", "Dockerfile", "pyproject.toml", "uv.lock"]
|
||||
subprocess.run(["git", "diff", "--exit-code", "d7478726a85791c21e065d58f610735a9e687433", "--", *paths],check=True)
|
||||
print("PASS: reconciler algorithm, entrypoint, attachment SQL/S3, platform, schema, dependencies and cost driver unchanged")
|
||||
print("Retained 27 measurements: evidence/sqlalchemy-2026-11-06/track5/measurements/cost, source runtime 3402fd69d4922e500035a204d957be2cccaeb85a")
|
||||
print("Cache miss/logout, NUL validation and LB JSON are outside the measured cost path; API/LB/Valkey were stopped during that series")'
|
||||
PASS: reconciler algorithm, entrypoint, attachment SQL/S3, platform, schema, dependencies and cost driver unchanged
|
||||
Retained 27 measurements: evidence/sqlalchemy-2026-11-06/track5/measurements/cost, source runtime 3402fd69d4922e500035a204d957be2cccaeb85a
|
||||
Cache miss/logout, NUL validation and LB JSON are outside the measured cost path; API/LB/Valkey were stopped during that series
|
||||
exit_code: 0 elapsed_seconds: 0.036
|
||||
@@ -0,0 +1,54 @@
|
||||
date: 2026-11-06T09:13:32Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ python3 scripts/lab4_scenarios.py s3-outage --base-url http://127.0.0.1:18084 --output evidence/forward-final-2026-11-06/s3-outage.json
|
||||
{
|
||||
"ok": true,
|
||||
"date": "2026-11-06T09:13:32Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"scenario": "s3-outage",
|
||||
"s3_container_during_outage": [
|
||||
{
|
||||
"hostname": "5921e788f03d",
|
||||
"status": "exited",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T09:12:21.141692594Z",
|
||||
"finished_at": "2026-11-06T09:13:33.012881918Z"
|
||||
}
|
||||
],
|
||||
"during_outage": {
|
||||
"upload": {
|
||||
"status": 503,
|
||||
"seconds": 4.99,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"metadata": {
|
||||
"status": 200,
|
||||
"seconds": 0.026,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"download": {
|
||||
"status": 503,
|
||||
"seconds": 5.329,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"text_message": {
|
||||
"status": 201,
|
||||
"seconds": 0.033,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"health_ready": {
|
||||
"status": 200,
|
||||
"seconds": 0.003,
|
||||
"instance": "da922ab2ea09"
|
||||
}
|
||||
},
|
||||
"expected": {
|
||||
"upload": 503,
|
||||
"download": 503,
|
||||
"text_message": 201
|
||||
},
|
||||
"as_expected": true,
|
||||
"s3_back_healthy_seconds": 5.76,
|
||||
"download_after_recovery": "sha256 equal"
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 16.753
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"ok": true,
|
||||
"date": "2026-11-06T09:13:32Z",
|
||||
"commit": "75b93bbba5f29575d3fca1d013cc7e0770d88082",
|
||||
"scenario": "s3-outage",
|
||||
"s3_container_during_outage": [
|
||||
{
|
||||
"hostname": "5921e788f03d",
|
||||
"status": "exited",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T09:12:21.141692594Z",
|
||||
"finished_at": "2026-11-06T09:13:33.012881918Z"
|
||||
}
|
||||
],
|
||||
"during_outage": {
|
||||
"upload": {
|
||||
"status": 503,
|
||||
"seconds": 4.99,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"metadata": {
|
||||
"status": 200,
|
||||
"seconds": 0.026,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"download": {
|
||||
"status": 503,
|
||||
"seconds": 5.329,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"text_message": {
|
||||
"status": 201,
|
||||
"seconds": 0.033,
|
||||
"instance": "da922ab2ea09"
|
||||
},
|
||||
"health_ready": {
|
||||
"status": 200,
|
||||
"seconds": 0.003,
|
||||
"instance": "da922ab2ea09"
|
||||
}
|
||||
},
|
||||
"expected": {
|
||||
"upload": 503,
|
||||
"download": 503,
|
||||
"text_message": 201
|
||||
},
|
||||
"as_expected": true,
|
||||
"s3_back_healthy_seconds": 5.76,
|
||||
"download_after_recovery": "sha256 equal"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
date: 2026-11-06T09:26:56Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {}
|
||||
$ python3 -
|
||||
{"project": "hlpipe-lab4-forward-final-20261106", "containers": [], "persistent_volumes": ["hlpipe-lab4-forward-final-20261106_pgdata", "hlpipe-lab4-forward-final-20261106_s3data", "hlpipe-lab4-forward-final-20261106_valkeydata"]}
|
||||
{"project": "hlpipe-lab4-forward-reconcile-20261106", "containers": [], "persistent_volumes": ["hlpipe-lab4-forward-reconcile-20261106_pgdata", "hlpipe-lab4-forward-reconcile-20261106_s3data", "hlpipe-lab4-forward-reconcile-20261106_valkeydata"]}
|
||||
{"project": "hlpipe-lab4-forward-lb-20261106", "containers": [], "persistent_volumes": []}
|
||||
PASS: all owned containers stopped; six persistent volumes retained
|
||||
exit_code: 0 elapsed_seconds: 0.152
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-06T09:09:22Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-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.534
|
||||
@@ -0,0 +1,114 @@
|
||||
date: 2026-11-06T09:10:42Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-final-2026-11-06", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make test-faults
|
||||
BASE_URL="http://127.0.0.1:18084" .venv/bin/pytest -m stack -v -s student-tests/stack
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- <repo>/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
plugins: asyncio-1.4.0, anyio-4.15.1
|
||||
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
|
||||
collecting ... collected 19 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: 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); ответов в журнале реплик: 112, из них 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 реплика da922ab2ea09 убита между PUT и COMMIT, клиент получил 502
|
||||
реплика d4c8d53d7433 убита между PUT и COMMIT, клиент получил 502
|
||||
остаток после падения: строка pending, объект HEAD 200
|
||||
остаток после падения: строка pending, объект HEAD 200
|
||||
старше grace: строка убрана через 26.1 с, объект HEAD 404
|
||||
моложе grace: строка pending, объект HEAD 200
|
||||
тот же после сдвига: убран через 1.5 с, объект 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.061776)
|
||||
скачивание 3 MiB ≈ 192 KiB/s из сети edge: клиент 16.1 с, реплика (200, 10.474701)
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_registration_race_yields_exactly_one_user гонка 50 регистраций: 201×1, 409×49
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_chat_creation_rolls_back_on_unknown_member чат с несуществующим участником: 400 invalid_request
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_wrong_password_and_unknown_user_get_same_basic_challenge неверный пароль: 401 за 0.014 с
|
||||
неизвестный пользователь: 401 за 0.013 с
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_logout_then_token_is_dead logout: 204, затем 401, повтор 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_serves_repeated_checks 5 проверок токена: keyspace_hits 294 → 299
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_stopped_is_bypassed_but_logout_waits valkey остановлен, действующий токен: 200 за 0.005 с
|
||||
valkey остановлен, неизвестный токен: 401 за 0.003 с
|
||||
valkey остановлен: ready 200, вход 201, выход 503
|
||||
valkey снова запущен: повторный выход 204
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_restart_keeps_cache_and_revocations рестарт valkey: ключей 31 → 31
|
||||
рестарт valkey: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_valkey_flushall_loses_nothing FLUSHALL: живой 200, отозванный 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_postgres_stopped_gives_bounded_503_and_recovers postgres остановлен, ready: 503 за 0.004 с
|
||||
postgres остановлен, me: 503 за 0.003 с
|
||||
postgres остановлен, stranger: 503 за 0.003 с
|
||||
postgres остановлен, login: 503 за 0.002 с
|
||||
postgres остановлен, register: 503 за 0.015 с
|
||||
live внутри реплики 200; LB исключил все реплики ещё через 0.68 с
|
||||
live через LB без реплик: 503 за 0.000 с
|
||||
postgres запущен: готовность через 2.1 с, прежний токен 200
|
||||
postgres запущен: 40 регистраций 201 через 2 реплики без рестарта API
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_api_restart_keeps_session_without_extending_it рестарт api: готовность через 1.8 с, токен 200
|
||||
expires_at при входе 2026-11-06T10:12:13.154076Z, в БД после рестарта 2026-11-06T10:12:13.154076Z
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_full_restart_keeps_session_until_logout restart.sh: готовность через 0.0 с, прежний токен 200, выход 204, затем 401
|
||||
PASSED
|
||||
student-tests/stack/test_faults.py::test_session_expires_after_restart_at_original_time срок сессии сокращён до 20 с, рестарт api: готовность через 2.8 с, до срока 200, после срока 401
|
||||
PASSED
|
||||
|
||||
======================== 19 passed in 128.23s (0:02:08) ========================
|
||||
exit_code: 0 elapsed_seconds: 128.882
|
||||
@@ -0,0 +1,159 @@
|
||||
date: 2026-11-06T09:09:05Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082
|
||||
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-forward-final-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/forward-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 453B 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 docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#4 DONE 0.0s
|
||||
|
||||
#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: 88.06kB 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 3/7] WORKDIR /build
|
||||
#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.197 Resolved 78 packages in 10ms
|
||||
#14 0.217 Building mtusi-messenger @ file:///build
|
||||
#14 1.666 Built mtusi-messenger @ file:///build
|
||||
#14 1.670 Prepared 1 package in 1.45s
|
||||
#14 1.673 Installed 1 package in 2ms
|
||||
#14 1.842 Bytecode compiled 1701 files in 169ms
|
||||
#14 1.842 + mtusi-messenger==1.4.0 (from file:///build)
|
||||
#14 DONE 1.9s
|
||||
|
||||
#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.3s
|
||||
|
||||
#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 2.8s done
|
||||
#20 exporting manifest sha256:3eab4c0213dac6c3abf99f1aae3241f7f05473144ea0af93cbd54f2493ead5a9
|
||||
#20 exporting manifest sha256:3eab4c0213dac6c3abf99f1aae3241f7f05473144ea0af93cbd54f2493ead5a9 done
|
||||
#20 exporting config sha256:69a1b793a45421608110feaeff33be9ffc032aef2a7543216961693aaea7a897 done
|
||||
#20 exporting attestation manifest sha256:e1e89c5d35d917ea80fcbc1233c1a97c191fa11007c9414c3a1d5cc89429fc08 done
|
||||
#20 exporting manifest list sha256:085f71679218b524f710c1da526f25cbe81073ef1fc01430e842d8b59369bd28 done
|
||||
#20 naming to docker.io/library/mtusi-messenger:hlpipe-lab4-forward-final-20261106 done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:hlpipe-lab4-forward-final-20261106
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:hlpipe-lab4-forward-final-20261106 0.6s done
|
||||
#20 DONE 3.4s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
Network hlpipe-lab4-forward-final-20261106_backend Creating
|
||||
Network hlpipe-lab4-forward-final-20261106_backend Created
|
||||
Network hlpipe-lab4-forward-final-20261106_edge Creating
|
||||
Network hlpipe-lab4-forward-final-20261106_edge Created
|
||||
Volume "hlpipe-lab4-forward-final-20261106_s3data" Creating
|
||||
Volume "hlpipe-lab4-forward-final-20261106_s3data" Created
|
||||
Volume "hlpipe-lab4-forward-final-20261106_pgdata" Creating
|
||||
Volume "hlpipe-lab4-forward-final-20261106_pgdata" Created
|
||||
Volume "hlpipe-lab4-forward-final-20261106_valkeydata" Creating
|
||||
Volume "hlpipe-lab4-forward-final-20261106_valkeydata" Created
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Creating
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Created
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Exited
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Exited
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Starting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Started
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Waiting
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-migrate-1 Exited
|
||||
Container hlpipe-lab4-forward-final-20261106-postgres-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-s3-init-1 Exited
|
||||
Container hlpipe-lab4-forward-final-20261106-valkey-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-api-1 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-api-2 Healthy
|
||||
Container hlpipe-lab4-forward-final-20261106-lb-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
exit_code: 0 elapsed_seconds: 17.380
|
||||
+145
-11
@@ -1,14 +1,23 @@
|
||||
# Поздний перенос ЛР3 → ЛР4
|
||||
|
||||
Это протокол **до двух PNG-фиксов**. «Новый/текущий» ниже означает состояние переноса
|
||||
`75b93bb…`, а не итоговый HEAD. Память и upload во время reconciler требуют финального
|
||||
подтверждения нового инспектора; неизменённая стоимость reconciler сохраняется.
|
||||
Актуальная область доказательств — [индекс](README.md) и [REPORT](../REPORT.md).
|
||||
|
||||
Исходный source SHA: `f591fa64e525679a31c9db7f942d36c789e1a12f`.
|
||||
Финальный source SHA: `ba78cf6da439a4ec60fd59389583b38285b0b2b1`.
|
||||
Источник только immutable snapshot `lab3-ba78cf6da439a4ec60fd59389583b38285b0b2b1`
|
||||
в `.pipeline/.runs/labs/snapshots/`; изменяемый каталог ЛР3 не использован.
|
||||
База ЛР4: `d7478726a85791c21e065d58f610735a9e687433`, чистое дерево до начала.
|
||||
План зафиксирован в `f0fc084`; change `forward-lab3-final-review-fixes`.
|
||||
Код и инструменты проверок зафиксированы в `75b93bbba5f29575d3fca1d013cc7e0770d88082`.
|
||||
Все успешные новые runtime-проверки ниже выполнены на этом SHA 6 ноября 2026 года (UTC).
|
||||
|
||||
Полный список всех 214 изменённых файлов, их source blob и решение для каждого:
|
||||
[manifest](forward-final-2026-11-06/source-manifest.json). Неучтённых путей нет.
|
||||
[Проверка диапазона и source blob](forward-final-2026-11-06/forward-audit.txt) подтверждает
|
||||
214 путей и побайтное совпадение 31 перенесённого файла; два файла объединены вручную.
|
||||
|
||||
## Применимые исправления
|
||||
|
||||
@@ -23,9 +32,11 @@
|
||||
| OpenSpec | 6 исходных capabilities; 3 source archives (19 файлов) | Дельты применяются к прежним префиксам. В history сохранены все сценарии attachment_ids. Архивы ЛР3 сохранены побайтно с lab:3, это история источника, не проверки ЛР4. |
|
||||
| Контекст | AGENTS.md, openspec/config.yaml | Переносимые правила provenance/Context7/сохранения evidence адаптированы к ЛР4 и текущему правилу major/minor. |
|
||||
|
||||
Пять файлов Identity и семь тестовых файлов совпали с базой f591fa6 до переноса,
|
||||
поэтому взяты из final snapshot целиком. Два файла с механизмами ЛР4 объединены вручную.
|
||||
Пять файлов Identity и существовавшие тестовые файлы совпали с базой f591fa6 до переноса;
|
||||
они и новые тесты взяты из final snapshot целиком. Два файла с механизмами ЛР4 объединены вручную.
|
||||
SQLAlchemy/Alembic остаются обязательными; новых миграций или зависимостей в диапазоне нет.
|
||||
Учтены 14 файлов кода/тестов, 19 файлов архивов, 6 capabilities, 2 файла контекста,
|
||||
4 инструмента из evidence и 169 непереносимых файлов отчёта/результатов: всего 214.
|
||||
|
||||
## Неприменимые изменения
|
||||
|
||||
@@ -40,13 +51,136 @@ Source REPORT содержит minor про суррогаты; он сохра
|
||||
|
||||
## Проверки и применимость измерений
|
||||
|
||||
Новые команды, UTC и полные SHA сохраняются в `forward-final-2026-11-06/`.
|
||||
API-сессии/валидация/LB затронуты: повторяются smoke, persistence, failover,
|
||||
stack faults и сетевые регрессии, три прогона записи и граничные точки памяти.
|
||||
Reconciler demo повторяется для интеграции с API. Его стоимость 1k–100k сохраняется:
|
||||
алгоритм, SQL-адаптер вложений, CLI, S3, зависимости и драйвер cost неизменны;
|
||||
в cost API/LB/Valkey остановлены. Прежняя матрица памяти остаётся историческим
|
||||
сравнением, новые контрольные точки не выдаются за повтор всех 36 точек.
|
||||
Фон Docker фиксируется, чужие контейнеры не останавливаются.
|
||||
Новые команды, UTC и полные SHA сохранены в `forward-final-2026-11-06/`.
|
||||
Основной project — `hlpipe-lab4-forward-final-20261106`, HTTP `18084`, статистика
|
||||
`24844`, образ `mtusi-messenger:hlpipe-lab4-forward-final-20261106`.
|
||||
Demo использует тот же образ в отдельном `hlpipe-lab4-forward-reconcile-20261106`;
|
||||
fixture HAProxy — `hlpipe-lab4-forward-lb-20261106`, без host-портов.
|
||||
Каждый project создан в текущем репозитории со своими volumes, старые данные не удалены.
|
||||
|
||||
Результаты этого этапа будут добавлены после завершения команд.
|
||||
| Критерий / команда | Наблюдение | Сырьё |
|
||||
| --- | --- | --- |
|
||||
| `make check`, `make validate`, `make lint`, `make student-test` | PASS; 492 собственных теста, 19 stack deselected. Регрессии гонок используют реальные PostgreSQL/Valkey; прежние тесты вложений и миграций сохранены. | [offline-checks-rerun.txt](forward-final-2026-11-06/offline-checks-rerun.txt) |
|
||||
| Уровень 3: `make up`, `make test` | Обе реплики healthy; checksum, авторизация, сообщения с вложениями — PASS. | [up.txt](forward-final-2026-11-06/up.txt), [smoke.txt](forward-final-2026-11-06/smoke.txt) |
|
||||
| Уровень 3: `scripts/persistence-evidence.sh http://127.0.0.1:18084` | PASS после рестарта API/LB/PostgreSQL/Valkey/S3 с volumes, 13,179 с. | [persistence-rerun.txt](forward-final-2026-11-06/persistence-rerun.txt) |
|
||||
| Уровень 3: `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` | Остановлена `d4c8d53d7433`; 130 записей, 0 ошибок, первое восстановление 2,883 с. Реплики возвращены в ротацию. | [failover-command.txt](forward-final-2026-11-06/failover-command.txt), [failover-d4c8d53d7433.txt](forward-final-2026-11-06/failover-d4c8d53d7433.txt), [restore.txt](forward-final-2026-11-06/restore.txt) |
|
||||
| Сетевая регрессия: `student-tests/tools/forward_network.py` | NUL: display/title/text → 400, Basic → 401; non-ASCII Basic → 401. Исправленный повтор с прежним ключом → 201, одна запись; logout → 401 на обеих репликах. | [network-regressions.txt](forward-final-2026-11-06/network-regressions.txt) |
|
||||
| Уровни 3/4: `make test-faults` | 19 PASS за 128,23 с: PostgreSQL/Valkey, откат logout/TTL, 112 ответов негативного файлового suite без 5xx, компенсация между PUT/COMMIT, pending и grace, обрыв/зависание/медленное тело. | [stack-faults.txt](forward-final-2026-11-06/stack-faults.txt) |
|
||||
| Уровень 3: `make scenario SCENARIO=failover-upload` | Обслужившая upload реплика остановлена, download через другую; исходный SHA-256 совпал. | [failover-upload-command.txt](forward-final-2026-11-06/failover-upload-command.txt), [JSON](forward-final-2026-11-06/failover-upload.json) |
|
||||
| Уровень 3: `make scenario SCENARIO=s3-outage` | S3 остановлен: upload 503 за 4,990 с, download 503 за 5,329 с, текст 201, метаданные и ready 200. После старта байты совпали. | [s3-outage-command.txt](forward-final-2026-11-06/s3-outage-command.txt), [JSON](forward-final-2026-11-06/s3-outage.json) |
|
||||
| Минимум ЛР3: HAProxy fixture с текущей конфигурацией | 12 проверок: 502/503/504 × кавычка/backslash/tab/200 символов. Валидный JSON, request_id совпадает с заголовком. | [haproxy-errors.txt](forward-final-2026-11-06/haproxy-errors.txt) |
|
||||
| Уровень 4: `make limits` | Политика ресурсов, портов, credentials, volumes и сетей — PASS. | [limits.txt](forward-final-2026-11-06/limits.txt) |
|
||||
| После нагрузок: `make test` | PASS. | [final-smoke.txt](forward-final-2026-11-06/final-smoke.txt) |
|
||||
| Трек 2: `make reconcile-demo ARGS="--out evidence/forward-final-2026-11-06/reconcile-demo"` | 13 PASS; подробности ниже. | [reconcile-demo.txt](forward-final-2026-11-06/reconcile-demo.txt), [demo.json](forward-final-2026-11-06/reconcile-demo/demo.json) |
|
||||
|
||||
Ошибочные попытки сохранены: `offline-checks.txt` содержит две ошибки ty в адаптированном
|
||||
инструменте (проверки Optional/None исправлены до коммита кода); `persistence-command.txt`
|
||||
не передал URL обёртке и обратился к несуществующему localhost:8080 до запуска hook.
|
||||
Это не успешные проверки. Исправленные команды и результаты — в файлах с `-rerun` выше.
|
||||
|
||||
## Повтор затронутых измерений
|
||||
|
||||
Проверяемая гипотеза: после усиления проверки сессии сохраняются запись через обе реплики,
|
||||
ограниченная память крупных загрузок и отсутствие потери ready при параллельной сверке.
|
||||
API ×2, на реплику 1 CPU / 512 MiB / 2 worker, 3 upload-слота на worker,
|
||||
`MALLOC_MMAP_THRESHOLD_=131072`. Последовательные серии; одновременных нагрузочных серий нет.
|
||||
Docker VM: 16 CPU, 8 217 190 400 байт RAM. До/после видны только контейнеры текущего project;
|
||||
host load average 1m 3,42 → 4,69. Это наблюдение фона, не эксклюзивность физического хоста:
|
||||
[performance-before.txt](forward-final-2026-11-06/performance-before.txt),
|
||||
[performance-after.txt](forward-final-2026-11-06/performance-after.txt).
|
||||
Чужие контейнеры не останавливались, выброшенных прогонов нет.
|
||||
|
||||
`make load-evidence`: 3 × 8 с, 64 клиента, новый чат на прогон, пауза 15 с;
|
||||
клиент в сети edge с 2 CPU / 512 MiB. Это закрытый контур all-write, не SLO и не точка насыщения.
|
||||
Прогон с повторно используемым токеном не измеряет профиль постоянных cache miss;
|
||||
стоимость nonce/блокировки при массовом входе новых пользователей отдельно не измерена.
|
||||
|
||||
| Прогон | RPS | p95, мс | Ошибок |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| 1 | 1428,577 | 100,062 | 0 |
|
||||
| 2 | 1456,338 | 98,948 | 0 |
|
||||
| 3 | 1529,320 | 98,475 | 0 |
|
||||
|
||||
Медиана 1456,338 RPS, диапазон 1428,577–1529,320. Историческая SQLAlchemy-серия дала
|
||||
медиану 1529,186 RPS: наблюдаемая разница −4,8%, причинный эффект исправления по этим
|
||||
непарным сериям не установлен. Сырьё: [load-command.txt](forward-final-2026-11-06/load-command.txt),
|
||||
[load.txt](forward-final-2026-11-06/load.txt), [3 JSON](forward-final-2026-11-06/load/).
|
||||
|
||||
`python3 scripts/upload_memory.py --base-url http://127.0.0.1:18084 --slots 3
|
||||
--sizes 10485760 --levels 40 --out ...`: 40 клиентов, по 2 upload;
|
||||
размер созданного PNG 10 485 256 байт (параметр генератора 10 MiB).
|
||||
|
||||
| Прогон | HTTP | Пик API, MiB | Пик LB, MiB | Upload p95, мс | OOM |
|
||||
| --- | --- | ---: | ---: | ---: | ---: |
|
||||
| 1 | 80 × 201 | 456,2 | 31,8 | 3641,3 | 0 |
|
||||
| 2 | 80 × 201 | 438,1 | 28,5 | 4755,0 | 0 |
|
||||
| 3 | 78 × 201, 2 × 503 | 450,4 | 29,1 | 8091,8 | 0 |
|
||||
|
||||
238/240 успешны. Максимум API 456,2 < 512 MiB, медиана 450,4; LB медиана 29,1 MiB.
|
||||
Предел RAM соблюдён, но 100% успешности при 40 крупных параллельных upload не показано.
|
||||
Причина двух 503 отдельно не локализована; точка сохранена, повтор ради улучшения результата
|
||||
не делался. Отдельная уборка возможных остатков этих двух запросов в этой серии не измерялась.
|
||||
Сырьё: [memory-1.txt](forward-final-2026-11-06/memory-1.txt),
|
||||
[memory-2.txt](forward-final-2026-11-06/memory-2.txt),
|
||||
[memory-3.txt](forward-final-2026-11-06/memory-3.txt),
|
||||
[3 JSON](forward-final-2026-11-06/memory/).
|
||||
[Сводка из сырья](forward-final-2026-11-06/measurement-summary.json) и
|
||||
[команда агрегации](forward-final-2026-11-06/measurement-summary.txt).
|
||||
|
||||
## Reconciler и сохранённые доказательства
|
||||
|
||||
На новом стенде dry-run нашёл ровно внедрённые расхождения и не изменил 24 объекта / 27 строк.
|
||||
Apply исправил 3 старых orphan, 9 ready перевёл в карантин и удалил 6 старых pending
|
||||
с 6 audit-событиями; повтор дал 0 действий. Ссылки сообщений сохранены, свежие записи не удалены,
|
||||
снятие карантина возможно только после совпадения SHA-256, и без `--deep`.
|
||||
Одновременный запуск пропущен, SIGTERM завершил процесс за 0,1 с (exit 143, init=true),
|
||||
после него lock доступен. При остановленном S3 выход 1 за 2,32 с, без изменения состояния.
|
||||
|
||||
Нагрузка 75 с: 3364 upload с 201, 59 проходов сверки, ошибок и потерянных ready 0.
|
||||
Удалены только 5 внедрённых/состарившихся orphan и 5 pending; 55 возможных missing
|
||||
повторно проверены. Независимый deep-аудит всех готовых вложений проверил байты:
|
||||
[under-load.json](forward-final-2026-11-06/reconcile-demo/under-load.json),
|
||||
[check-under-load.json](forward-final-2026-11-06/reconcile-demo/check-under-load.json).
|
||||
|
||||
Стоимость 1k/10k/30k/100k повторно не снималась: алгоритм, SQL/S3-адаптеры вложений,
|
||||
CLI, shared, схема, зависимости, compose и драйвер cost побайтно не изменились от базы ЛР4.
|
||||
В сохранённой cost-серии API/LB/Valkey были остановлены, поздние изменения Identity/валидации/LB
|
||||
не входят в измеряемый путь. Проверка: [retained-cost-audit.txt](forward-final-2026-11-06/retained-cost-audit.txt).
|
||||
27 точек остаются результатами SHA `3402fd69d4922e500035a204d957be2cccaeb85a`,
|
||||
[исходное сырьё](sqlalchemy-2026-11-06/track5/measurements/cost/).
|
||||
Медианы 100k: shallow 20,215 с, deep 110,910 с (58,661–147,215 с).
|
||||
Страничность и ограниченная память подтверждены; линейность времени не подтвердилась,
|
||||
разброс deep и ограничения одного хоста сохраняются. Это не новые замеры на SHA 75b93bb.
|
||||
Прежняя полная матрица памяти (36 точек) также остаётся исторической; новые 3 точки её не заменяют.
|
||||
IAM/bootstrap не менялись; прежние 31 проверка private bucket, прав и повторного bootstrap
|
||||
сохраняют исходный SHA и находятся в `sqlalchemy-2026-11-06/grade3/`.
|
||||
|
||||
## Ограничения и завершение
|
||||
|
||||
Сохранён minor источника: `src/messenger/messaging/entrypoints/schemas.py:35`
|
||||
сериализует text до доменной проверки. Для непарного surrogate U+D800/U+DFFF
|
||||
получен `PydanticSerializationError`, реальный HTTP вернул 500 internal_error.
|
||||
[Локальная проверка](forward-final-2026-11-06/known-minor.txt),
|
||||
[HTTP-проверка](forward-final-2026-11-06/known-minor-http.txt).
|
||||
Это известный крайний случай некорректного Unicode, не успешно пройденный тест;
|
||||
по актуальному правилу minor сохранён в findings и ограничениях REPORT без исправления.
|
||||
[Машиночитаемый finding](forward-final-2026-11-06/findings.json).
|
||||
|
||||
При реализации проверены через Context7 `redis-py /redis/redis-py/v8.1.0`
|
||||
(`eval`, async close) и `SQLAlchemy /sqlalchemy/sqlalchemy/rel_2_0_45`
|
||||
(`with_for_update(read=True, key_share=True)` → `FOR KEY SHARE`).
|
||||
|
||||
Основной стенд и demo остановлены `make down`, fixture — `docker compose ... down`;
|
||||
volumes не удалялись. [main-down.txt](forward-final-2026-11-06/main-down.txt),
|
||||
[reconcile-down.txt](forward-final-2026-11-06/reconcile-down.txt),
|
||||
[shutdown-state.txt](forward-final-2026-11-06/shutdown-state.txt): у всех трёх project
|
||||
0 контейнеров, сохранено 6 постоянных volumes. Для проверки использованы `docker ps -aq
|
||||
--filter label=com.docker.compose.project=<project>` и `docker volume ls -q` с тем же фильтром.
|
||||
В логах только нормализованы конечные пробелы и завершающая пустая строка; числа/исходы сохранены.
|
||||
Шесть main specs синхронизированы с сохранением прежних сценариев, change закрыт в
|
||||
`openspec/changes/archive/2026-11-06-forward-lab3-final-review-fixes/` (`lab: 4`):
|
||||
[archive log](forward-final-2026-11-06/openspec-archive.txt). `--skip-specs` использован
|
||||
после ручной синхронизации и проверки полного совпадения дельт с main specs.
|
||||
Завершающие проверки: [final-checks.txt](forward-final-2026-11-06/final-checks.txt),
|
||||
[precommit-checks.txt](forward-final-2026-11-06/precommit-checks.txt).
|
||||
Изменения нормативных файлов, публикация, push и Telegram не выполнялись.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user