forked from mtusi2026/mtusi2026lab2
ЛР 2: завершить трек 2 на оценку 5
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# Отчёт — лабораторная 2. PostgreSQL, сессии и Redis
|
||||
|
||||
- Автор: Ремез Олег Романович, БПИ2304.
|
||||
- Целевая оценка этой контрольной точки: **4** — весь уровень 3 и все технические пункты уровня 4.
|
||||
- Целевая оценка: **5**, трек 2 «План запроса и восстановление». Завершённая исходная контрольная точка уровня 4 — commit `834876c`; исследовательский этап описан отдельно ниже.
|
||||
- Дата итоговой проверки: **28.10.2026**.
|
||||
- Результат: **43 Go-теста PASS, 0 FAIL, 0 SKIP**, сборка, vet, публичные проверки и полный сценарий из чистого clone — PASS.
|
||||
- Версия приложения определена [SHA-256 manifest проверенного снимка](evidence/grade4-recheck-2026-10-28/clean-clone/snapshot-manifest.json). Этот отчёт и оформление Git подготовлены после прогона; новые результаты выполнения приложения при этом не заявляются.
|
||||
- Ветка: `solution/BPI2304-remez`. Публикация: локальная контрольная точка уровня 4; PR не открывается до завершения последующего исследовательского этапа на 5. Успешный удалённый CI не подтверждён.
|
||||
- Итоговая обязательная регрессия: **43 Go-теста PASS, 0 FAIL, 0 SKIP**, сборка, vet, публичные проверки, 174 JSON/UTF-8 случая, пагинация, рестарты и отказы — PASS из чистого clone. **Исследование трека 2 на 100k и backup/restore — PASS.** Дополнительный HTTP-профиль нагрузки сохранён отдельно со статусом FAIL: 768 измеренных запросов успешны, один из 128 прогревочных login получил 503 при 10 клиентах; этот результат не скрывается.
|
||||
- Исходная версия уровня 4 определена [SHA-256 manifest снимка](evidence/grade4-recheck-2026-10-28/clean-clone/snapshot-manifest.json). При подготовке трека 2 исходники приложения и миграции не менялись; обновлялись собственные тестовые инструменты и отчёт. Последующие результаты имеют отдельные артефакты и не приписываются исходному прогону.
|
||||
- Ветка публикации: [`solution/BPI2304-remez`](https://gitea.privcloud.tech/OlegRood/mtusi2026lab2/src/branch/solution/BPI2304-remez). Контрольная точка уровня 4 — `834876c`; материалы уровня 5 включены в последующие коммиты этой ветки. Результаты ниже относятся к локальным проверкам; успешный удалённый CI не подтверждён.
|
||||
- Использование ИИ: обсуждение архитектуры и ошибок, ревью и отдельные согласованные изменения, подготовка собственных тестов и диагностики, анализ измерений, оформление отчёта и Git. Публичный контракт и проверки преподавателя не ослаблялись.
|
||||
|
||||
## Запуск из чистого clone
|
||||
@@ -254,8 +254,12 @@ python3 student-tests/check_clone.py --measure-budgets \
|
||||
| Автоматические expiry, logout, неверный пароль | TTL=2, auth-expiry/auth-normal, Go sessions | PASS; истёкшая/неизвестная/отозванная сессия — 401 | [expiry](evidence/grade4-recheck-2026-10-28/clean-clone/acceptance/auth-expiry.log), [auth](evidence/grade4-recheck-2026-10-28/clean-clone/acceptance/auth-normal.log) |
|
||||
| Реальный отказ Redis/БД, ограниченная ошибка и восстановление | postgres-outage, redis-outage | 503 вместо ложного 401/500, ready=503/live=200, после старта обслуживание восстановлено | [PostgreSQL](evidence/grade4-recheck-2026-10-28/clean-clone/acceptance/postgres-outage.log), [Redis](evidence/grade4-recheck-2026-10-28/clean-clone/acceptance/redis-outage.log) |
|
||||
| Согласованная диагностика сверх обязательной рубрики | `TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe` | Одна подробная запись, безопасный JSON, без токена и `!BADKEY` | [Go -race](evidence/grade4-recheck-2026-10-28/clean-clone/acceptance/go-race.log) |
|
||||
| Трек 2: ≥100k и неравномерные чаты | `research.py`, research/seed | 100k, распределение 70/20/6/3/1% | [dataset](evidence/grade5-sql-2026-10-28-verified/dataset.json), [индексы](evidence/grade5-sql-2026-10-28-verified/indexes.json) |
|
||||
| Трек 2: ≥2 индекса/запроса и цена записи | 4 серии AB/BA, чтение/INSERT+COMMIT, размер/WAL | 8 trials; 2880 чтений, 160 транзакций по 200 вставок; результаты и ограничения ниже | [сравнение](evidence/grade5-sql-2026-10-28-verified/comparison-summary.json) |
|
||||
| Трек 2: backup → новое хранилище → сверка | pg_dump/pg_restore, snapshots, 15 сообщений, restart цели | Counts/digests совпали, отдельные containers/volumes, повторная проверка после restart PASS | [восстановление](evidence/grade5-sql-2026-10-28-verified/backup-restore.json) |
|
||||
| Трек 2: время восстановления и границы потерь | Измерение backup/restore и описание snapshot/RPO | Restore 1,198 с; post-snapshot записи и Redis не входят; полный RTO/HA не заявлены | [исследовательский отчёт](evidence/grade5-sql-2026-10-28-verified/REPORT.md) |
|
||||
|
||||
Полная сводка — [отчёт повторной проверки](evidence/grade4-recheck-2026-10-28/REPORT.md). Сведения в нём о незаполненном авторском отчёте и untracked-файлах описывают момент тестирования, до подготовки настоящего документа и коммита. Исследовательский трек на 5 в этой контрольной точке не заявлен.
|
||||
Полная сводка исходной контрольной точки — [отчёт повторной проверки](evidence/grade4-recheck-2026-10-28/REPORT.md). Сведения в нём о незаполненном авторском отчёте и untracked-файлах описывают момент тестирования, до подготовки настоящего документа и коммита. Трек 2 выполнен позднее и описан в отдельном разделе ниже; результаты разных прогонов не объединяются в фиктивный единый PASS.
|
||||
|
||||
## Эксперименты и отказы
|
||||
|
||||
@@ -324,7 +328,7 @@ RSS PID 1 не равен суммарной памяти всех процес
|
||||
|
||||
## Ограничения и следующие шаги
|
||||
|
||||
- Один Docker host и один экземпляр каждого хранилища: нет репликации, HA и защиты от потери volume/диска. Backup/restore и исследование на 100k сообщений в этой контрольной точке не выполнены.
|
||||
- Один Docker host и один экземпляр каждого хранилища: нет репликации, HA и защиты от потери всего host. В треке 2 проверено логическое восстановление PostgreSQL в новый volume; Redis backup, PITR и автоматический failover не реализованы.
|
||||
- AOF everysec и локальный WAITAOF имеют описанные выше границы. TTL обеспечивает expiry, но сам по себе не сохраняет данные.
|
||||
- Таймаут записи/COMMIT не доказывает отсутствия эффекта операции. Идемпотентность и восстановление неопределённого исхода требуют отдельной разработки; контракт последующих лабораторных здесь не заявляется выполненным.
|
||||
- Число параллельных KDF отдельно не ограничено, API подошёл к 1 GiB в тестовом профиле. Устойчивость при большей нагрузке не доказана; изменение KDF и admission control не выполнялись ради формального прохождения тестов.
|
||||
@@ -332,9 +336,105 @@ RSS PID 1 не равен суммарной памяти всех процес
|
||||
- Сессии обязательны: при недоступном Redis нельзя продолжать бизнес-запрос как анонимный. PostgreSQL и Redis не заменяют друг друга.
|
||||
- Роль `messenger` создаётся через `POSTGRES_USER` и имеет расширенные права; разделение ролей мигратора/API и Redis ACL остаётся задачей усиления инфраструктуры. HTTP без TLS допустим только для локального изолированного стенда с синтетическими данными.
|
||||
- Чистый clone проверен на macOS/Docker Desktop arm64. Отдельный Linux runner, скачивание всех образов с нуля и удалённый Gitea Actions не проверены. Для изменения порта API потребуется согласовать Docker healthcheck и публикацию порта.
|
||||
- `.gitea/workflows/application.yml` описывает запуск собственных проверок на изолированном runner `lab2-isolated-docker`. Наличие runner и успешный серверный запуск не подтверждены. PR отложен до завершения этапа на 5.
|
||||
- `.gitea/workflows/application.yml` описывает запуск собственных проверок на изолированном runner `lab2-isolated-docker`. Наличие runner и успешный серверный запуск не подтверждены. Оформление PR остаётся отдельным шагом после локальной проверки.
|
||||
- При отдельной сверке контракта отмечены незапрещённый схемой U+0000 в текстовых полях и отсутствие 415 в operation responses OpenAPI при наличии этого статуса в нормативном тексте. В рамках исследовательского этапа политика этих границ не менялась; наличие схемы и зелёных тестов не выдаётся за исчерпывающее покрытие всех строк Unicode.
|
||||
|
||||
Следующий этап — выбрать и закончить один исследовательский трек уровня 5 с отдельной гипотезой, повторяемой методикой, сравнением и ограничениями. Результаты уровня 4 сохраняются как исходная контрольная точка.
|
||||
Исследовательский трек 2 выполнен по методике ниже. Дальнейшие улучшения должны сохранять обязательный контракт; опубликованная версия и удалённый CI требуют отдельной проверки после push.
|
||||
|
||||
## Трек 2: план запроса и восстановление — исследование на 5
|
||||
|
||||
**Исследование PASS, 28.10.2026:** 100 000 сообщений, восемь trials, 2880 измеренных чтений и 160 транзакций по 200 вставок, восстановление в отдельный PostgreSQL и повторная сверка после его рестарта. [Полный исследовательский отчёт](evidence/grade5-sql-2026-10-28-verified/REPORT.md), [summary и cleanup](evidence/grade5-sql-2026-10-28-verified/summary.json). Предыдущая HTTP-матрица относится к исходному уровню 4 и не заменяет SQL-эксперимент на 100k.
|
||||
|
||||
Гипотеза: индекс `(chat_id,created_at,id)` уменьшает стоимость чтения ограниченной страницы по сравнению с `(chat_id)`, поскольку соответствует фильтру, keyset-диапазону и ORDER BY. Обратная сторона — размер индекса, WAL и обслуживание при вставке. Победитель и величина эффекта заранее не задаются.
|
||||
|
||||
Методика сравнения:
|
||||
|
||||
- Изолированный PostgreSQL: 1 CPU, 512 MiB RAM, без дополнительного swap. Образ разрешается в immutable локальный image ID и записывается в environment.json. Исходный Compose и рабочие volumes не используются.
|
||||
- 100 000 сообщений по 256 ASCII-байт; распределение по пяти чатам 70/20/6/3/1%. Одни и те же логические строки используются во всех вариантах, SHA-256 полного набора проверяется после каждой серии вставок и очистки.
|
||||
- Вариант A — B-tree `(chat_id)`, B — B-tree `(chat_id,created_at,id)`. Четыре серии с порядком A/B, B/A, A/B, B/A; восемь отдельных trials. На время сравнения существует только один исследуемый вторичный индекс истории, неизменный PK сообщений остаётся в обоих вариантах.
|
||||
- Для чатов 70k, 6k и 1k читаются первая страница и страница после 80% истории. OFFSET применяется только при выборе исходного cursor, вне измеряемого запроса. Чтение использует тот же generated sqlc GetMessagesByChatID и преобразование результатов, размер страницы — 51 строка, 5 прогревочных и 60 измеренных запросов на случай/trial, один последовательный клиент. Для каждого случая сохраняется EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON). В offline-эксперименте обеим конфигурациям выделен одинаковый бюджет запроса 10 с, чтобы не обрывать медленный baseline; рабочий repository-бюджет приложения остаётся 1 с. HTTP и KDF сюда не входят.
|
||||
- Перед trial выполняются VACUUM FULL, создание индекса и ANALYZE вне времени чтения/записи; autovacuum отключён только для временной исследовательской таблицы. Это устраняет накопление dead tuples между вариантами, но не моделирует холодный диск. Prepared-поведение pgx не отключается.
|
||||
- Цена записи: 20 транзакций по 200 сообщений с COMMIT на trial, без удаления между этими 20 транзакциями. После измерения добавленные 4000 строк удаляются, проверяется исходный digest. Сохраняются сырые времена и разность WAL LSN до/после каждой транзакции; WAL — счётчик всего отдельного PostgreSQL instance, а не точный счётчик одного индекса.
|
||||
- Размеры индекса/таблицы записываются до измеренных вставок, время построения индекса — отдельно. CPU и память снимаются существующим cgroup sampler; его расходы и административные операции входят в окно ресурсоизмерения. Малые SQL-серии не объявляются исследованием максимальной HTTP-пропускной способности.
|
||||
|
||||
Восстановление: отдельная сохраняемая fixture на 100k создаётся через embedded-миграции, затем `pg_dump -Fc --no-owner --no-acl` экспортирует её схему. `pg_restore --exit-on-error` восстанавливает архив в пустой второй PostgreSQL с другим именованным volume. Сверяются количества и SHA-256 упорядоченного полного содержимого users/chats/chat_members/messages и 15 выбранных сообщений (первое/среднее/последнее каждого чата). Источник повторно сверяется на неизменность; восстановленная цель дополнительно перезапускается с сохранённым volume и проверяется снова. Archive и credentials остаются только во временном каталоге и удаляются; они не входят в Git.
|
||||
|
||||
Повторение обоих этапов одной командой из корня репозитория:
|
||||
|
||||
```sh
|
||||
.venv/bin/python student-tests/lab2/research.py \
|
||||
--output evidence/grade5-sql-NEW --rows 100000 \
|
||||
--repetitions 60 --series 4 --write-batches 20
|
||||
```
|
||||
|
||||
Нужны запущенный Docker, локальный `postgres:18`, Go из go.mod и окружение Python из setup-tests.sh. Выходной каталог должен быть новым. Используются только два созданных данным запуском контейнера и два volumes с уникальным префиксом `lab2-research-*`; cleanup выполняется и при ошибке. Восстановление не содержит Redis-сессии и не включает записи после snapshot backup. Это перенос логической резервной копии в новое хранилище, а не PITR, репликация или доказательство HA.
|
||||
|
||||
### Результаты сравнения
|
||||
|
||||
По каждому случаю и варианту объединены 240 наблюдений из четырёх trials. Все измеренные чтения успешны. Это связанные повторные наблюдения warm SQL workload, не независимая большая выборка для production SLO.
|
||||
|
||||
| Чат / страница | A p50 / p95 / p99, мс | B p50 / p95 / p99, мс | A/B p50 |
|
||||
| --- | --- | --- | ---: |
|
||||
| 70k, первая | 8,327 / 12,838 / 18,942 | 0,488 / 2,015 / 3,771 | 17,06 |
|
||||
| 70k, глубокая | 8,844 / 13,124 / 17,739 | 6,831 / 12,144 / 28,253 | 1,29 |
|
||||
| 6k, первая | 1,357 / 1,722 / 4,184 | 0,395 / 1,216 / 4,171 | 3,44 |
|
||||
| 6k, глубокая | 1,219 / 2,207 / 5,095 | 0,885 / 1,639 / 4,168 | 1,38 |
|
||||
| 1k, первая | 0,803 / 1,623 / 2,564 | 0,394 / 0,851 / 1,215 | 2,04 |
|
||||
| 1k, глубокая | 0,787 / 2,220 / 4,234 | 0,550 / 1,188 / 4,850 | 1,43 |
|
||||
|
||||
EXPLAIN B использует Index Scan и диапазон cursor, возвращая 51 строку без отдельной сортировки. A для большого чата выбирает Seq Scan с сортировкой, для малого — Bitmap Scan и сортировку. Отдельный EXPLAIN не является трассировкой каждого prepared execution; его время нельзя отождествлять с полной измеренной latency. Default prepared-поведение pgx сохранено. [Все планы и raw timings](evidence/grade5-sql-2026-10-28-verified/indexes.json), [CSV с RPS и разбросом trials](evidence/grade5-sql-2026-10-28-verified/READS.csv).
|
||||
|
||||
| Цена индекса | A | B |
|
||||
| --- | ---: | ---: |
|
||||
| Размер до вставок, байт | 720 896 | 5 914 624 |
|
||||
| Медиана build, мс | 37,134 | 107,887 |
|
||||
| INSERT 200 + COMMIT p50, мс | 3,378 | 2,918 |
|
||||
| INSERT 200 + COMMIT p95, мс | 7,838 | 5,661 |
|
||||
| INSERT 200 + COMMIT p99, мс | 10,859 | 30,227 |
|
||||
| Медиана WAL на транзакцию, байт | 104 520 | 117 144 |
|
||||
|
||||
Индекс B больше в 8,20 раза, build медианно дольше в 2,91 раза; медиана WAL выше на 12,08%. Стабильного штрафа INSERT latency серия не доказывает: p50 B ниже, p99 выше. WAL включает таблицу/PK/full-page images/checkpoints, а UUID вставок случайны. Выигрыш чтения тоже не универсален: p99 глубоких страниц 70k/1k у B хуже A. Решение — сохранить B ради существенно лучшей медианы и соответствующего запросу доступа, с указанной ценой и ограничениями, без заявления «любой запрос ускорен».
|
||||
|
||||
Средний CPU источника за окно sampler 23,648 с — 0,773 ядра, 77,34% лимита; максимум cgroup memory 511,74 MiB, OOM kill 0. PID 1 RSS 29,67 MiB не является суммой PostgreSQL backends. Ресурсы включают административные операции и sampler, по A/B не разделены.
|
||||
|
||||
### Результат восстановления
|
||||
|
||||
Backup fixture создана реальными миграциями отдельно от benchmark: 1 user, 5 chats, 5 memberships, 100k messages с короткими текстами seed-генератора (13–18 ASCII bytes). На время backup/restore источник не получает посторонних записей.
|
||||
|
||||
| Операция / проверка | Результат |
|
||||
| --- | --- |
|
||||
| `pg_dump -Fc`, длительность / размер архива | 0,536 с / 2 987 310 байт |
|
||||
| `pg_restore --exit-on-error` в пустой второй instance | 1,198 с, PASS |
|
||||
| Четыре counts и full ordered SHA-256 | Совпали |
|
||||
| 15 выбранных сообщений: first/middle/last каждого чата | Совпали по ID и content fingerprint |
|
||||
| Источник после restore | Не изменён |
|
||||
| Restart цели с сохранением нового volume + ready + snapshot | 0,907 с, PASS |
|
||||
| Удаление собственных контейнеров/volumes и временного архива | PASS, cleanup errors 0 |
|
||||
|
||||
[Результат backup/restore](evidence/grade5-sql-2026-10-28-verified/backup-restore.json), [source snapshot](evidence/grade5-sql-2026-10-28-verified/source-snapshot.json), [restored snapshot](evidence/grade5-sql-2026-10-28-verified/restored-snapshot.json), [контейнеры и volumes до restore](evidence/grade5-sql-2026-10-28-verified/storage-before-restore.json), [после restart](evidence/grade5-sql-2026-10-28-verified/storage-after-restart.json).
|
||||
|
||||
Эти времена не равны production RTO: provisioning, передача удалённого backup и переключение клиентов не включены. Восстанавливается snapshot backup, записи после него отсутствуют; RPO зависит от момента и частоты копий. Нет гарантий для Redis, потери host или PITR. Ранее неудачные попытки не переписаны: их summary сохранены рядом, а итоговый каталог содержит новый полный успешный прогон. [Хеши исследовательских источников](evidence/grade5-sql-2026-10-28-verified/research-source-manifest.json).
|
||||
|
||||
### Итоговая регрессия и отдельное наблюдение нагрузки
|
||||
|
||||
После обновления собственных тестов и инструмента исследования выполнена новая проверка из настоящего временного Git clone:
|
||||
|
||||
```sh
|
||||
GOCACHE=/tmp/highload-grade5-regression-cache .venv/bin/python \
|
||||
student-tests/check_clone.py \
|
||||
--output evidence/grade5-sql-2026-10-28-verified/acceptance-complete \
|
||||
--pull never
|
||||
```
|
||||
|
||||
Это фактический путь итогового прогона; для повтора выбирают новый output. Snapshot содержит 137 исходных файлов, без secrets/.env/volumes/бинарников, bootstrap и чистота clone после тестов PASS. Весь актуальный функциональный набор уровней 3/4 пройден: 43 Go-теста, без FAIL/SKIP, Go -race — 127,742 с. Дополнительно PASS 174 JSON/UTF-8 случая; список 7 чатов полностью пройден страницами по 2, три чужих cursor отклонены; 100 сообщений от 10 участников проверены при concurrency 4. Публичные smoke/persistence, собственная сохранность сессий/отзыва, expiry, реальные outages PostgreSQL/Redis, SQL-план 10k и cleanup — PASS.
|
||||
|
||||
[Clone summary](evidence/grade5-sql-2026-10-28-verified/acceptance-complete/clone-summary.json), [все этапы](evidence/grade5-sql-2026-10-28-verified/acceptance-complete/acceptance/summary.json), [Go events](evidence/grade5-sql-2026-10-28-verified/acceptance-complete/acceptance/go-race.jsonl), [business](evidence/grade5-sql-2026-10-28-verified/acceptance-complete/acceptance/business.json), [manifest](evidence/grade5-sql-2026-10-28-verified/acceptance-complete/snapshot-manifest.json), [итоговая сверка](evidence/grade5-sql-2026-10-28-verified/final-verification.json).
|
||||
|
||||
Исправления собственных запускателей: race-сборка выделена в отдельный этап (300 с), исполнение Go-набора имеет guard 600 с, каждый вложенный Python acceptance под race — собственные 300 с вместо общего на оба сценария. Guard clone — 1200 с. При timeout сохраняется частичный sanitized log. Это суммарные бюджеты инструментов, **не изменение** SQL 1 с, Redis/WAITAOF, HTTP timeout 15 с или assertions. Первые прерванные попытки сохранены с FAIL и не приписаны успешному прогону. Время последнего Go-набора не доказывает, что только изменение обёртки объясняет различия между попытками: загрузка host тоже менялась.
|
||||
|
||||
Отдельная матрица `--measure-budgets` выполнена ранее в этом же этапе. Итог **FAIL**, хотя все **768 измеренных** запросов успешны: при прогреве C=10 один login получил **503 за 1041,195 мс**. Наблюдаемый cgroup memory API достиг ровно 1 GiB, OOM kill не было. Это совпадение с давлением памяти, а не доказанное профилированием объяснение каждого deadline. Ни неудачный прогрев, ни статус FAIL не исключались ради зелёного результата. [Raw](evidence/grade5-sql-2026-10-28-verified/regression-final/acceptance/latency/results.json), [таблица](evidence/grade5-sql-2026-10-28-verified/regression-final/acceptance/latency/TABLE.md), [статусы полного прогона с этой матрицей](evidence/grade5-sql-2026-10-28-verified/regression-final/acceptance/summary.json).
|
||||
|
||||
Следовательно, обязательная функциональная регрессия и выбранный SQL/restore-трек подтверждены, а безошибочная работа auth при любом профиле C=10/1 GiB не заявляется. Численного проходного RPS контракт не задаёт; найденная граница остаётся ограничением, без ослабления теста, увеличения ресурсов или изменения KDF. Актуализация старых тестов выполнена отдельной работой и сохранена: [отчёт очистки](evidence/lab2-tests-cleanup-2026-10-28/REPORT.md).
|
||||
|
||||
## Использованные источники и инструменты
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
|
||||
"hardware": {
|
||||
"hw.model": "Mac14,2",
|
||||
"hw.ncpu": "8",
|
||||
"hw.memsize": "8589934592",
|
||||
"machdep.cpu.brand_string": "Apple M2"
|
||||
},
|
||||
"go": "go version go1.27.1 darwin/arm64",
|
||||
"docker": "28.4.0",
|
||||
"image": {
|
||||
"id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"digests": [
|
||||
"postgres@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722"
|
||||
],
|
||||
"architecture": "arm64"
|
||||
},
|
||||
"limits_per_postgres": {
|
||||
"cpus": 1,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"other_running_containers_at_start": [
|
||||
"lab2-test-751bd2d1ccd1-api-1",
|
||||
"lab2-test-751bd2d1ccd1-postgres-1",
|
||||
"lab2-test-751bd2d1ccd1-redis-1"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"run_id": "lab2-research-5f241c363030",
|
||||
"rows": 100000,
|
||||
"started_at": "2026-10-28T11:01:03.072201+00:00",
|
||||
"stages": [],
|
||||
"failure": "Command failed: sqlprobe (exit 1); research: failed at warmup-A-large_first",
|
||||
"cleanup_errors": [],
|
||||
"finished_at": "2026-10-28T11:01:51.827007+00:00"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
|
||||
"hardware": {
|
||||
"hw.model": "Mac14,2",
|
||||
"hw.ncpu": "8",
|
||||
"hw.memsize": "8589934592",
|
||||
"machdep.cpu.brand_string": "Apple M2"
|
||||
},
|
||||
"go": "go version go1.27.1 darwin/arm64",
|
||||
"docker": "28.4.0",
|
||||
"image": {
|
||||
"id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"digests": [
|
||||
"postgres@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722"
|
||||
],
|
||||
"architecture": "arm64"
|
||||
},
|
||||
"limits_per_postgres": {
|
||||
"cpus": 1,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"other_running_containers_at_start": [
|
||||
"lab2-test-751bd2d1ccd1-api-1",
|
||||
"lab2-test-751bd2d1ccd1-postgres-1",
|
||||
"lab2-test-751bd2d1ccd1-redis-1"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"run_id": "lab2-research-fd136625ea02",
|
||||
"rows": 100000,
|
||||
"started_at": "2026-10-28T11:03:10.670391+00:00",
|
||||
"stages": [],
|
||||
"failure": "Command failed: sqlprobe (exit 1); research: failed at read-A-large_deep; research: repository unavailable; research: timeout; research: context deadline exceeded",
|
||||
"cleanup_errors": [],
|
||||
"finished_at": "2026-10-28T11:03:48.756297+00:00"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"actual_rows": 100000,
|
||||
"chat_distribution_percent": [
|
||||
70,
|
||||
20,
|
||||
6,
|
||||
3,
|
||||
1
|
||||
],
|
||||
"chat_message_counts": [
|
||||
70000,
|
||||
20000,
|
||||
6000,
|
||||
3000,
|
||||
1000
|
||||
],
|
||||
"go_version": "go1.27.1",
|
||||
"kept_fixture": true,
|
||||
"mode": "seed",
|
||||
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"rows": 100000,
|
||||
"schema": "lab2_test_backup_df775367f2"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
|
||||
"hardware": {
|
||||
"hw.model": "Mac14,2",
|
||||
"hw.ncpu": "8",
|
||||
"hw.memsize": "8589934592",
|
||||
"machdep.cpu.brand_string": "Apple M2"
|
||||
},
|
||||
"go": "go version go1.27.1 darwin/arm64",
|
||||
"docker": "28.4.0",
|
||||
"image": {
|
||||
"id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"digests": [
|
||||
"postgres@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722"
|
||||
],
|
||||
"architecture": "arm64"
|
||||
},
|
||||
"limits_per_postgres": {
|
||||
"cpus": 1,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"other_running_containers_at_start": []
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,107 @@
|
||||
[
|
||||
{
|
||||
"id": "26630c09-c7b8-4344-a458-ad895c0a1927",
|
||||
"chat_id": "022cf16f-e409-45f2-b9bf-885dbad525c3",
|
||||
"position": 1,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "dcf043a7b3de90ab282e82c02c94ebee70fc0a667f4136f31a3111be0db42b89"
|
||||
},
|
||||
{
|
||||
"id": "2b6c1f9c-9bf9-4090-b2fe-b7824d339524",
|
||||
"chat_id": "022cf16f-e409-45f2-b9bf-885dbad525c3",
|
||||
"position": 3000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "a9e6a1c41958fdff7c454a9d7aeb35729141f741cd4f22dd0be4398ffda52ebd"
|
||||
},
|
||||
{
|
||||
"id": "697f6dc0-b7aa-405d-aafc-8586fbcd4a7f",
|
||||
"chat_id": "022cf16f-e409-45f2-b9bf-885dbad525c3",
|
||||
"position": 6000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "81cbdd545fda45f248942dad6f93330f4f1abed8a3bbee8dc7bf93aa8ab7939d"
|
||||
},
|
||||
{
|
||||
"id": "c3a3429a-c5df-4379-9d71-7fb713e4de2b",
|
||||
"chat_id": "08f502f5-8db9-4880-9b29-5230a5e4474f",
|
||||
"position": 1,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "09e3a0bd81813feb05b0e9287e2629f8e9b13ffa1fbce47404f1bd1272f79319"
|
||||
},
|
||||
{
|
||||
"id": "16344871-3b56-475e-8bef-6bfa395606e5",
|
||||
"chat_id": "08f502f5-8db9-4880-9b29-5230a5e4474f",
|
||||
"position": 500,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "93576a97827f0a5b0ee03f93e126ca60c1ed137d3327bd342ebd782b141783cd"
|
||||
},
|
||||
{
|
||||
"id": "d87f9e4d-623a-406e-94de-9588439490d7",
|
||||
"chat_id": "08f502f5-8db9-4880-9b29-5230a5e4474f",
|
||||
"position": 1000,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "5437eef807587b68dd0ec8211b27a49558bcb3bc6e6651de8281d6cebfd8d76f"
|
||||
},
|
||||
{
|
||||
"id": "0d0bc912-4361-46f0-92b6-3f162644e2f1",
|
||||
"chat_id": "0f237f42-7d91-43ad-8296-3e2da83db4a6",
|
||||
"position": 1,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "32e4a1308aa3ebef30842e46e3a7842f5d921e14c6398738081b17095ffcac7a"
|
||||
},
|
||||
{
|
||||
"id": "9b3cb5a1-e909-41e9-99af-85ad27e5446e",
|
||||
"chat_id": "0f237f42-7d91-43ad-8296-3e2da83db4a6",
|
||||
"position": 10000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "7d2dfa3c91e1e9bdee96731f010ac132f8f7266ed5ef96bb0194880e2e739b35"
|
||||
},
|
||||
{
|
||||
"id": "385159fa-0904-4186-aedd-d6c8339da267",
|
||||
"chat_id": "0f237f42-7d91-43ad-8296-3e2da83db4a6",
|
||||
"position": 20000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "88ffc147b7c1d5a96def06cb8a3e12f6ed49fa32831e1a5d32063fefb904f71a"
|
||||
},
|
||||
{
|
||||
"id": "2454e6b4-608b-4e37-bcb7-6fb2379e0b68",
|
||||
"chat_id": "5c12406d-d39b-4a3e-b8a5-e9054a97ac19",
|
||||
"position": 1,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "a42b40f87697a2d68a508dee8c0f57f58a3422cd692b6599dbd02ed6a95748ad"
|
||||
},
|
||||
{
|
||||
"id": "90cd421f-aeed-483a-b297-ceb3d20037cc",
|
||||
"chat_id": "5c12406d-d39b-4a3e-b8a5-e9054a97ac19",
|
||||
"position": 1500,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "57dda11aea2d1fa6bd9ffd3d4d3fb559cb1bbd8b4f30ce2ab6245413e600f1c9"
|
||||
},
|
||||
{
|
||||
"id": "d8acd9bc-3ca5-4396-a36c-c455a2773273",
|
||||
"chat_id": "5c12406d-d39b-4a3e-b8a5-e9054a97ac19",
|
||||
"position": 3000,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "853c27fbf3bcd45694647e1142cb8ebc4c95d2a21f1417d234766be68b5d4196"
|
||||
},
|
||||
{
|
||||
"id": "b8807301-ae95-4d03-aeb3-147f526ddd2f",
|
||||
"chat_id": "90a8d5ac-e3fe-47e3-ac94-c44c81c5d062",
|
||||
"position": 1,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "e3f48131ce35ff1cf37c93a421f294d8044b82ea1ee5d660a61f26c1b3f85e91"
|
||||
},
|
||||
{
|
||||
"id": "8105fead-bd5c-41c8-9fa2-42dc76ebc368",
|
||||
"chat_id": "90a8d5ac-e3fe-47e3-ac94-c44c81c5d062",
|
||||
"position": 35000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "856297d96ebb7606f6ff7914c56bdd16fe3b2dcca0e29d9061ab52ee8a9b009c"
|
||||
},
|
||||
{
|
||||
"id": "66b5148d-ec16-40f9-a13e-cfdd8bf14723",
|
||||
"chat_id": "90a8d5ac-e3fe-47e3-ac94-c44c81c5d062",
|
||||
"position": 70000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "6e9cf63f1a4c404e24b97da1c965d3c675039fa4189df05a4ecd211cf11870e2"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"empty": false,
|
||||
"identity_sha256": "8d6ad47368e3394d56138fc5e68e01cfa1fb98415a81febe50802f0ddc026797",
|
||||
"tables": {
|
||||
"chat_members": {
|
||||
"rows": 5,
|
||||
"sha256": "e66b93fccce239d050f526d12ccddd46c8e06a2b0a05dc559b29ba4486a0a2a3"
|
||||
},
|
||||
"chats": {
|
||||
"rows": 5,
|
||||
"sha256": "0781e537ed82b6c5cf280d9355b26f25753e6f525a66b730e7f1cf0aed7770da"
|
||||
},
|
||||
"messages": {
|
||||
"rows": 100000,
|
||||
"sha256": "e0f3bb45a9bfbff3722c4b57bb19eb4eb9cc7fa214c2d45e4cac8dc7241ff406"
|
||||
},
|
||||
"users": {
|
||||
"rows": 1,
|
||||
"sha256": "278a0725471a1741d5241d7f09a4cfe47d84399bf6a559aeffd3f8bfba166b83"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
[
|
||||
{
|
||||
"id": "26630c09-c7b8-4344-a458-ad895c0a1927",
|
||||
"chat_id": "022cf16f-e409-45f2-b9bf-885dbad525c3",
|
||||
"position": 1,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "dcf043a7b3de90ab282e82c02c94ebee70fc0a667f4136f31a3111be0db42b89"
|
||||
},
|
||||
{
|
||||
"id": "2b6c1f9c-9bf9-4090-b2fe-b7824d339524",
|
||||
"chat_id": "022cf16f-e409-45f2-b9bf-885dbad525c3",
|
||||
"position": 3000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "a9e6a1c41958fdff7c454a9d7aeb35729141f741cd4f22dd0be4398ffda52ebd"
|
||||
},
|
||||
{
|
||||
"id": "697f6dc0-b7aa-405d-aafc-8586fbcd4a7f",
|
||||
"chat_id": "022cf16f-e409-45f2-b9bf-885dbad525c3",
|
||||
"position": 6000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "81cbdd545fda45f248942dad6f93330f4f1abed8a3bbee8dc7bf93aa8ab7939d"
|
||||
},
|
||||
{
|
||||
"id": "c3a3429a-c5df-4379-9d71-7fb713e4de2b",
|
||||
"chat_id": "08f502f5-8db9-4880-9b29-5230a5e4474f",
|
||||
"position": 1,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "09e3a0bd81813feb05b0e9287e2629f8e9b13ffa1fbce47404f1bd1272f79319"
|
||||
},
|
||||
{
|
||||
"id": "16344871-3b56-475e-8bef-6bfa395606e5",
|
||||
"chat_id": "08f502f5-8db9-4880-9b29-5230a5e4474f",
|
||||
"position": 500,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "93576a97827f0a5b0ee03f93e126ca60c1ed137d3327bd342ebd782b141783cd"
|
||||
},
|
||||
{
|
||||
"id": "d87f9e4d-623a-406e-94de-9588439490d7",
|
||||
"chat_id": "08f502f5-8db9-4880-9b29-5230a5e4474f",
|
||||
"position": 1000,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "5437eef807587b68dd0ec8211b27a49558bcb3bc6e6651de8281d6cebfd8d76f"
|
||||
},
|
||||
{
|
||||
"id": "0d0bc912-4361-46f0-92b6-3f162644e2f1",
|
||||
"chat_id": "0f237f42-7d91-43ad-8296-3e2da83db4a6",
|
||||
"position": 1,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "32e4a1308aa3ebef30842e46e3a7842f5d921e14c6398738081b17095ffcac7a"
|
||||
},
|
||||
{
|
||||
"id": "9b3cb5a1-e909-41e9-99af-85ad27e5446e",
|
||||
"chat_id": "0f237f42-7d91-43ad-8296-3e2da83db4a6",
|
||||
"position": 10000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "7d2dfa3c91e1e9bdee96731f010ac132f8f7266ed5ef96bb0194880e2e739b35"
|
||||
},
|
||||
{
|
||||
"id": "385159fa-0904-4186-aedd-d6c8339da267",
|
||||
"chat_id": "0f237f42-7d91-43ad-8296-3e2da83db4a6",
|
||||
"position": 20000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "88ffc147b7c1d5a96def06cb8a3e12f6ed49fa32831e1a5d32063fefb904f71a"
|
||||
},
|
||||
{
|
||||
"id": "2454e6b4-608b-4e37-bcb7-6fb2379e0b68",
|
||||
"chat_id": "5c12406d-d39b-4a3e-b8a5-e9054a97ac19",
|
||||
"position": 1,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "a42b40f87697a2d68a508dee8c0f57f58a3422cd692b6599dbd02ed6a95748ad"
|
||||
},
|
||||
{
|
||||
"id": "90cd421f-aeed-483a-b297-ceb3d20037cc",
|
||||
"chat_id": "5c12406d-d39b-4a3e-b8a5-e9054a97ac19",
|
||||
"position": 1500,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "57dda11aea2d1fa6bd9ffd3d4d3fb559cb1bbd8b4f30ce2ab6245413e600f1c9"
|
||||
},
|
||||
{
|
||||
"id": "d8acd9bc-3ca5-4396-a36c-c455a2773273",
|
||||
"chat_id": "5c12406d-d39b-4a3e-b8a5-e9054a97ac19",
|
||||
"position": 3000,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "853c27fbf3bcd45694647e1142cb8ebc4c95d2a21f1417d234766be68b5d4196"
|
||||
},
|
||||
{
|
||||
"id": "b8807301-ae95-4d03-aeb3-147f526ddd2f",
|
||||
"chat_id": "90a8d5ac-e3fe-47e3-ac94-c44c81c5d062",
|
||||
"position": 1,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "e3f48131ce35ff1cf37c93a421f294d8044b82ea1ee5d660a61f26c1b3f85e91"
|
||||
},
|
||||
{
|
||||
"id": "8105fead-bd5c-41c8-9fa2-42dc76ebc368",
|
||||
"chat_id": "90a8d5ac-e3fe-47e3-ac94-c44c81c5d062",
|
||||
"position": 35000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "856297d96ebb7606f6ff7914c56bdd16fe3b2dcca0e29d9061ab52ee8a9b009c"
|
||||
},
|
||||
{
|
||||
"id": "66b5148d-ec16-40f9-a13e-cfdd8bf14723",
|
||||
"chat_id": "90a8d5ac-e3fe-47e3-ac94-c44c81c5d062",
|
||||
"position": 70000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "6e9cf63f1a4c404e24b97da1c965d3c675039fa4189df05a4ecd211cf11870e2"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"empty": false,
|
||||
"identity_sha256": "7296a485c450fef1bde65bed143ab118fb7a26a36cc2dbb999390a8afd8a2d05",
|
||||
"tables": {
|
||||
"chat_members": {
|
||||
"rows": 5,
|
||||
"sha256": "e66b93fccce239d050f526d12ccddd46c8e06a2b0a05dc559b29ba4486a0a2a3"
|
||||
},
|
||||
"chats": {
|
||||
"rows": 5,
|
||||
"sha256": "0781e537ed82b6c5cf280d9355b26f25753e6f525a66b730e7f1cf0aed7770da"
|
||||
},
|
||||
"messages": {
|
||||
"rows": 100000,
|
||||
"sha256": "e0f3bb45a9bfbff3722c4b57bb19eb4eb9cc7fa214c2d45e4cac8dc7241ff406"
|
||||
},
|
||||
"users": {
|
||||
"rows": 1,
|
||||
"sha256": "278a0725471a1741d5241d7f09a4cfe47d84399bf6a559aeffd3f8bfba166b83"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"lab2-research-e71d273caa02-source": {
|
||||
"id": "2103e5df07d0d67fad0c79fc1c0c91e78ecf4ea77fa365ac7272e68947c05427",
|
||||
"started_at": "2026-10-28T11:06:46.373557179Z",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"volumes": [
|
||||
"lab2-research-e71d273caa02-source-data"
|
||||
]
|
||||
},
|
||||
"lab2-research-e71d273caa02-target": {
|
||||
"id": "ada1ba28816d8bfaed85af721d1ad0d816645be2d2cdde1f195399927f891d51",
|
||||
"started_at": "2026-10-28T11:07:20.547501084Z",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"volumes": [
|
||||
"lab2-research-e71d273caa02-target-data"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"run_id": "lab2-research-e71d273caa02",
|
||||
"rows": 100000,
|
||||
"started_at": "2026-10-28T11:06:44.448075+00:00",
|
||||
"stages": [
|
||||
{
|
||||
"stage": "research",
|
||||
"status": "PASS",
|
||||
"seconds": 30.94368279199989
|
||||
},
|
||||
{
|
||||
"stage": "seed",
|
||||
"status": "PASS",
|
||||
"seconds": 0.8349209999978484
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.24162070799866342
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.05649641700074426
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.3250455420020444
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.3774658750007802
|
||||
}
|
||||
],
|
||||
"failure": "Command failed: sqlprobe (exit 1)",
|
||||
"cleanup_errors": [],
|
||||
"finished_at": "2026-10-28T11:07:26.172287+00:00"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
case,variant,n,p50_ms,p95_ms,p99_ms,successful_rps,trial_p50_min,trial_p50_max
|
||||
large_deep,A,240,8.844,13.124,17.739,106.19498197276464,8.177,9.676
|
||||
large_deep,B,240,6.831,12.144,28.253,128.4468637618176,6.264,7.205
|
||||
large_first,A,240,8.327,12.838,18.942,107.9328024349338,8.156,8.57
|
||||
large_first,B,240,0.488,2.015,3.771,1298.4337145585214,0.412,0.952
|
||||
medium_deep,A,240,1.219,2.207,5.095,730.0578270895878,1.152,1.267
|
||||
medium_deep,B,240,0.885,1.639,4.168,965.3889594956943,0.837,0.974
|
||||
medium_first,A,240,1.357,1.722,4.184,683.1591903152871,1.332,1.46
|
||||
medium_first,B,240,0.395,1.216,4.171,1646.710784747366,0.36,0.502
|
||||
small_deep,A,240,0.787,2.22,4.234,946.516710444905,0.75,1.179
|
||||
small_deep,B,240,0.55,1.188,4.85,1442.7524138029373,0.525,0.588
|
||||
small_first,A,240,0.803,1.623,2.564,1074.175545204959,0.757,0.899
|
||||
small_first,B,240,0.394,0.851,1.215,2174.6525435306994,0.346,0.419
|
||||
|
@@ -0,0 +1,81 @@
|
||||
# ЛР2, трек 2: индекс истории и восстановление — 28.10.2026
|
||||
|
||||
**Исследование PASS; обязательная регрессия из чистого clone PASS.** 100 000 сообщений, 8 trials A/B, 2880 измеренных чтений и 160 транзакций по 200 вставок. Backup/restore в другой PostgreSQL и последующий рестарт цели прошли. [Обязательная регрессия](acceptance-complete/acceptance/summary.json): 43 Go-теста без FAIL/SKIP, build/vet, публичные проверки, 174 JSON/UTF-8 случая, пагинация, TTL, отказы и рестарты. Дополнительная HTTP-матрица имеет отдельный FAIL из-за одного прогревочного 503; общий безошибочный stress не заявляется.
|
||||
|
||||
## Повторение и среда
|
||||
|
||||
```sh
|
||||
.venv/bin/python student-tests/lab2/research.py \
|
||||
--output evidence/grade5-sql-NEW --rows 100000 \
|
||||
--repetitions 60 --series 4 --write-batches 20
|
||||
```
|
||||
|
||||
Нужны Docker, локальный postgres:18, Go из go.mod и окружение setup-tests.sh. Создаются и удаляются только собственные уникальные контейнеры/volumes lab2-research-*. Credentials и dump находятся в private temporary directory, затем удаляются.
|
||||
|
||||
Проверенный PostgreSQL 18.6 arm64: `postgres@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722`. Запуск по immutable image ID; каждый PostgreSQL ограничен 1 CPU, 512 MiB, без дополнительного swap. Host: Apple M2, 8 CPU, 8 GiB, macOS/Docker Desktop. Других работающих контейнеров в начале итогового прогона не было. [Среда](environment.json), [хеши источников](research-source-manifest.json), [общий статус и cleanup](summary.json).
|
||||
|
||||
## Методика
|
||||
|
||||
Гипотеза: составной B-tree уменьшает стоимость ограниченной страницы по сравнению с индексом только chat_id, ценой размера и обслуживания записи.
|
||||
|
||||
- A: `(chat_id)`; B: `(chat_id,created_at,id)`. Четыре серии AB, BA, AB, BA. Во всех вариантах одинаковые логические строки и неизменный PK; после trial полный dataset SHA-256 подтверждён.
|
||||
- 100k сообщений по 256 ASCII bytes; пять чатов 70k/20k/6k/3k/1k. Чтение: чаты 70k/6k/1k, первая и глубокая после 80% истории страницы, LIMIT 51. OFFSET только при подготовке cursor, вне измеренного запроса.
|
||||
- 5 прогревов и 60 measured reads на case/trial: 240 наблюдений на case/variant. Один последовательный клиент; тот же generated sqlc GetMessagesByChatID и преобразование результатов. HTTP/auth/KDF не входят.
|
||||
- Offline SQL budget 10 с одинаков для A/B; рабочий repository budget остаётся 1 с. Предварительные попытки через repository останавливались на рабочем deadline при параллельной нагрузке и не использованы как итоговые измерения.
|
||||
- Перед trial: VACUUM FULL, создание индекса и ANALYZE вне timing; autovacuum отключён только для disposable таблицы. Это warm-cache профиль, не холодный диск. Default prepared-поведение pgx сохранено.
|
||||
- После чтения: 20 транзакций по 200 вставок с COMMIT; очистка только после всей серии, вне timing. Разность WAL LSN — кластерный счётчик отдельного instance, не точный счётчик одного индекса. Размеры фиксируются до вставок, build time — отдельно.
|
||||
- EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON) снят отдельно для каждого case/trial. Его планирование не является трассировкой всех уже закэшированных prepared executions; полную клиентскую latency нельзя приравнивать к времени узла Index Scan.
|
||||
|
||||
## Чтение
|
||||
|
||||
Все 2880 measured reads успешны. RPS и raw samples доступны в [READS.csv](READS.csv), [indexes.json](indexes.json), [comparison-summary.json](comparison-summary.json). Closed-loop SQL RPS не является пределом API; p99 на связанных повторных наблюдениях не объявляется production SLO.
|
||||
|
||||
| Чат / страница | A p50 / p95 / p99, мс | B p50 / p95 / p99, мс | A/B p50 |
|
||||
| --- | --- | --- | ---: |
|
||||
| 70k, первая | 8,327 / 12,838 / 18,942 | 0,488 / 2,015 / 3,771 | 17,06 |
|
||||
| 70k, глубокая | 8,844 / 13,124 / 17,739 | 6,831 / 12,144 / 28,253 | 1,29 |
|
||||
| 6k, первая | 1,357 / 1,722 / 4,184 | 0,395 / 1,216 / 4,171 | 3,44 |
|
||||
| 6k, глубокая | 1,219 / 2,207 / 5,095 | 0,885 / 1,639 / 4,168 | 1,38 |
|
||||
| 1k, первая | 0,803 / 1,623 / 2,564 | 0,394 / 0,851 / 1,215 | 2,04 |
|
||||
| 1k, глубокая | 0,787 / 2,220 / 4,234 | 0,550 / 1,188 / 4,850 | 1,43 |
|
||||
|
||||
Для B EXPLAIN фиксирует Index Scan с диапазоном cursor глубокой страницы и 51 строкой; A обрабатывает больше строк и сортирует. Для большого чата planner выбирает Seq Scan вместо слабоселективного A: наличие индекса не обязывает его использовать.
|
||||
|
||||
Выигрыш не универсален: p99 B для глубокой страницы 70k и 1k хуже A. Ускорение первой страницы нельзя переносить на все страницы. Кэш/планирование, loopback и последовательность trials влияют на разброс.
|
||||
|
||||
## Цена записи
|
||||
|
||||
| Вариант | Индекс, байт | Медиана build, мс | INSERT 200 + COMMIT p50 / p95 / p99, мс | Медиана WAL/транзакцию, байт |
|
||||
| --- | ---: | ---: | --- | ---: |
|
||||
| A | 720 896 | 37,134 | 3,378 / 7,838 / 10,859 | 104 520 |
|
||||
| B | 5 914 624 | 107,887 | 2,918 / 5,661 / 30,227 | 117 144 |
|
||||
|
||||
B занимает в 8,20 раза больше места, build медианно в 2,91 раза дольше, медиана WAL выше на 12,08%. Стабильный штраф INSERT latency не доказан: p50 B ниже, p99 выше. WAL включает таблицу, PK, full-page images и checkpoints; UUID вставок случайны. Цена не сводится к одному timing.
|
||||
|
||||
За окно sampler 23,648 с: средний CPU 0,773 ядра (77,34% лимита), пик cgroup memory 511,74 MiB, OOM kill 0. PID 1 RSS 29,67 MiB не равен сумме backend-процессов. Ресурсы включают подготовку/vacuum/build, чтение/запись и sampler; по A/B не разделяются. Пики отсчётные, шаг 0,5 с.
|
||||
|
||||
## Backup и восстановление
|
||||
|
||||
Независимая backup fixture создана настоящими миграциями: 1 user, 5 chats, 5 memberships, 100k messages. Text seed-генератора короткий, 13–18 ASCII bytes: это другой профиль текста, чем benchmark 256 bytes. На время backup/restore источник без посторонних записей.
|
||||
|
||||
- `pg_dump -Fc --no-owner --no-acl`: **0,536 с**, архив **2 987 310 байт**.
|
||||
- `pg_restore --exit-on-error --no-owner --no-acl` в пустой второй PostgreSQL: **1,198 с**.
|
||||
- Разные container IDs и volumes; пустота цели подтверждена до restore. Совпали counts и полные ordered SHA-256 четырёх таблиц, а также 15 выбранных сообщений: first/middle/last каждого чата. Источник повторно проверен на неизменность.
|
||||
- Цель перезапущена с прежним volume; snapshot-проверка снова PASS. Restart + ready + snapshot: **0,907 с**. Динамический host port после restart разрешается заново.
|
||||
- Dump и credentials удалены; source/target контейнеры и volumes удалены, cleanup errors 0.
|
||||
|
||||
[Backup/restore](backup-restore.json), [source](source-snapshot.json), [restored](restored-snapshot.json), [выбранные source](source-selected.json), [выбранные restored](restored-selected.json), [до restore](storage-before-restore.json), [после restart](storage-after-restart.json).
|
||||
|
||||
Это не полный production RTO: provisioning, удалённая загрузка dump и переключение клиентов не включены. Восстановление возвращает snapshot; записи после backup в него не попадут. RPO зависит от момента/частоты копий, а не равен нулю из-за совпавших counts. Redis-сессии, PITR и потеря всего host не исследовались.
|
||||
|
||||
## Вывод
|
||||
|
||||
Индекс B сохраняется в приложении: он соответствует ключевой выборке и уменьшает p50 во всех шести профилях. Размер и WAL выросли; глубокие страницы и хвосты ускорились существенно слабее первой страницы. Универсальная скорость и отсутствие штрафа записи не доказаны. Backup действительно восстановлен в новое хранилище и пережил restart.
|
||||
|
||||
Предварительные FAIL сохранены отдельно: ../grade5-sql-2026-10-28/, ../grade5-sql-2026-10-28-debug/, ../grade5-sql-2026-10-28-diagnostic/ (рабочий deadline), ../grade5-sql-2026-10-28-final/ (A/B прошёл, переподключение после restart цели не прошло). Их статусы не переписаны. Текущий каталог — новый полный успешный прогон. Отдельный Linux runner и удалённый CI не проверены.
|
||||
|
||||
## Регрессия и прозрачность исправлений runner
|
||||
|
||||
[acceptance-complete](acceptance-complete/clone-summary.json) — последний обязательный прогон, без дополнительной latency-матрицы. Go -race — 43 PASS, 0 FAIL, 0 SKIP, 127,742 с. Исходники приложения и миграции не менялись. В тестовой обёртке race-сборка отделена от исполнения; nested acceptance-процессы имеют независимые суммарные guards 300 с, весь Go-набор — 600 с, clone — 1200 с. SQL/Redis бюджеты приложения, HTTP timeout 15 с и assertions не ослаблены. Более ранние 42/43 из-за общего/недостаточного execution budget сохранены с FAIL, а не объявлены успешными.
|
||||
|
||||
В [regression-final](regression-final/acceptance/summary.json) все 768 measured HTTP-запросов прошли, но один из 128 warmup запросов login C=10 получил 503 за 1041,195 мс; cgroup memory API достиг 1 GiB без OOM kill. Этап latency-matrix остаётся FAIL. Это зафиксированная граница профиля, а не доказанная универсальная устойчивость или автоматически проваленный SQL-трек. Перезапусков до зелёной нагрузочной таблицы не делалось. [Raw stress](regression-final/acceptance/latency/results.json), [итоговая сверка](final-verification.json).
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "business-boundaries",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"json_cases": 174
|
||||
},
|
||||
"duration_seconds": 1.3047
|
||||
},
|
||||
{
|
||||
"suite": "business-cursors",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"message_items": 7,
|
||||
"chat_list": {
|
||||
"items": 7,
|
||||
"page_limit": 2,
|
||||
"foreign_cursors_rejected": 3,
|
||||
"changed_limit": [
|
||||
1,
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"duration_seconds": 0.7328
|
||||
},
|
||||
{
|
||||
"suite": "read-after-write",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"writers": 10,
|
||||
"messages": 100,
|
||||
"concurrency": 4
|
||||
},
|
||||
"duration_seconds": 2.4529
|
||||
}
|
||||
]
|
||||
}
|
||||
+10992
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,806 @@
|
||||
{"Time":"2026-10-28T15:04:27.550238+03:00","Action":"start","Package":"highload/cmd/api"}
|
||||
{"Time":"2026-10-28T15:04:27.550404+03:00","Action":"output","Package":"highload/cmd/api","Output":"? \thighload/cmd/api\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.550437+03:00","Action":"skip","Package":"highload/cmd/api","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806225+03:00","Action":"start","Package":"highload/cmd/migrate"}
|
||||
{"Time":"2026-10-28T15:04:27.806297+03:00","Action":"start","Package":"highload/db/migrations"}
|
||||
{"Time":"2026-10-28T15:04:27.80632+03:00","Action":"output","Package":"highload/db/migrations","Output":"? \thighload/db/migrations\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806337+03:00","Action":"skip","Package":"highload/db/migrations","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806371+03:00","Action":"start","Package":"highload/internal/config"}
|
||||
{"Time":"2026-10-28T15:04:27.806386+03:00","Action":"output","Package":"highload/internal/config","Output":"? \thighload/internal/config\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806389+03:00","Action":"skip","Package":"highload/internal/config","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806392+03:00","Action":"start","Package":"highload/internal/database"}
|
||||
{"Time":"2026-10-28T15:04:27.806394+03:00","Action":"output","Package":"highload/internal/database","Output":"? \thighload/internal/database\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.8064+03:00","Action":"skip","Package":"highload/internal/database","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806403+03:00","Action":"start","Package":"highload/internal/database/sqlc"}
|
||||
{"Time":"2026-10-28T15:04:27.806405+03:00","Action":"output","Package":"highload/internal/database/sqlc","Output":"? \thighload/internal/database/sqlc\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806408+03:00","Action":"skip","Package":"highload/internal/database/sqlc","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806411+03:00","Action":"start","Package":"highload/internal/model"}
|
||||
{"Time":"2026-10-28T15:04:27.806416+03:00","Action":"output","Package":"highload/internal/model","Output":"? \thighload/internal/model\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806417+03:00","Action":"skip","Package":"highload/internal/model","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806423+03:00","Action":"start","Package":"highload/internal/repository"}
|
||||
{"Time":"2026-10-28T15:04:27.806425+03:00","Action":"output","Package":"highload/internal/repository","Output":"? \thighload/internal/repository\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806427+03:00","Action":"skip","Package":"highload/internal/repository","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.80645+03:00","Action":"start","Package":"highload/internal/repository/postgres"}
|
||||
{"Time":"2026-10-28T15:04:27.80647+03:00","Action":"output","Package":"highload/internal/repository/postgres","Output":"? \thighload/internal/repository/postgres\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806488+03:00","Action":"skip","Package":"highload/internal/repository/postgres","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806491+03:00","Action":"start","Package":"highload/internal/repository/redis"}
|
||||
{"Time":"2026-10-28T15:04:27.806494+03:00","Action":"output","Package":"highload/internal/repository/redis","Output":"? \thighload/internal/repository/redis\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806498+03:00","Action":"skip","Package":"highload/internal/repository/redis","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806506+03:00","Action":"start","Package":"highload/internal/security"}
|
||||
{"Time":"2026-10-28T15:04:27.806526+03:00","Action":"output","Package":"highload/internal/security","Output":"? \thighload/internal/security\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806528+03:00","Action":"skip","Package":"highload/internal/security","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806532+03:00","Action":"start","Package":"highload/internal/service"}
|
||||
{"Time":"2026-10-28T15:04:27.806533+03:00","Action":"output","Package":"highload/internal/service","Output":"? \thighload/internal/service\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806535+03:00","Action":"skip","Package":"highload/internal/service","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806537+03:00","Action":"start","Package":"highload/internal/transport/http"}
|
||||
{"Time":"2026-10-28T15:04:27.806539+03:00","Action":"output","Package":"highload/internal/transport/http","Output":"? \thighload/internal/transport/http\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.80654+03:00","Action":"skip","Package":"highload/internal/transport/http","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806546+03:00","Action":"start","Package":"highload/internal/transport/http/handler"}
|
||||
{"Time":"2026-10-28T15:04:27.80655+03:00","Action":"output","Package":"highload/internal/transport/http/handler","Output":"? \thighload/internal/transport/http/handler\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806555+03:00","Action":"skip","Package":"highload/internal/transport/http/handler","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806557+03:00","Action":"start","Package":"highload/internal/transport/http/httputils"}
|
||||
{"Time":"2026-10-28T15:04:27.806559+03:00","Action":"output","Package":"highload/internal/transport/http/httputils","Output":"? \thighload/internal/transport/http/httputils\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.806565+03:00","Action":"skip","Package":"highload/internal/transport/http/httputils","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.806567+03:00","Action":"start","Package":"highload/internal/transport/http/middleware"}
|
||||
{"Time":"2026-10-28T15:04:27.806569+03:00","Action":"output","Package":"highload/internal/transport/http/middleware","Output":"? \thighload/internal/transport/http/middleware\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.80657+03:00","Action":"skip","Package":"highload/internal/transport/http/middleware","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.917222+03:00","Action":"start","Package":"highload/student-tests/auth_tests"}
|
||||
{"Time":"2026-10-28T15:04:27.917269+03:00","Action":"start","Package":"highload/student-tests/diagnostics/waitaof"}
|
||||
{"Time":"2026-10-28T15:04:27.917284+03:00","Action":"output","Package":"highload/student-tests/diagnostics/waitaof","Output":"? \thighload/student-tests/diagnostics/waitaof\t[no test files]\n"}
|
||||
{"Time":"2026-10-28T15:04:27.917293+03:00","Action":"skip","Package":"highload/student-tests/diagnostics/waitaof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:27.917298+03:00","Action":"start","Package":"highload/student-tests/lab2/sqlprobe"}
|
||||
{"Time":"2026-10-28T15:04:28.023386+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe"}
|
||||
{"Time":"2026-10-28T15:04:28.023858+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe","Output":"=== RUN TestConnectionSecretErrorsAreSafe\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.023876+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/missing"}
|
||||
{"Time":"2026-10-28T15:04:28.023878+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/missing","Output":"=== RUN TestConnectionSecretErrorsAreSafe/missing\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.024527+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/missing","Output":"--- PASS: TestConnectionSecretErrorsAreSafe/missing (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.024537+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/missing","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.024542+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/empty"}
|
||||
{"Time":"2026-10-28T15:04:28.024543+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/empty","Output":"=== RUN TestConnectionSecretErrorsAreSafe/empty\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.02539+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/empty","Output":"--- PASS: TestConnectionSecretErrorsAreSafe/empty (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.0254+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/empty","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.025405+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/malformed"}
|
||||
{"Time":"2026-10-28T15:04:28.025417+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/malformed","Output":"=== RUN TestConnectionSecretErrorsAreSafe/malformed\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.02656+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/malformed","Output":"--- PASS: TestConnectionSecretErrorsAreSafe/malformed (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.026565+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe/malformed","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.02659+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe","Output":"--- PASS: TestConnectionSecretErrorsAreSafe (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.026598+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestConnectionSecretErrorsAreSafe","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.02662+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestEmbeddedMigrationsAreVersionedAndCollectable"}
|
||||
{"Time":"2026-10-28T15:04:28.026623+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestEmbeddedMigrationsAreVersionedAndCollectable","Output":"=== RUN TestEmbeddedMigrationsAreVersionedAndCollectable\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.026794+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestEmbeddedMigrationsAreVersionedAndCollectable","Output":"--- PASS: TestEmbeddedMigrationsAreVersionedAndCollectable (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.026809+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestEmbeddedMigrationsAreVersionedAndCollectable","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.026816+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestUnlockHasBudgetEvenWithDetachedContext"}
|
||||
{"Time":"2026-10-28T15:04:28.026817+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestUnlockHasBudgetEvenWithDetachedContext","Output":"=== RUN TestUnlockHasBudgetEvenWithDetachedContext\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.026848+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestUnlockHasBudgetEvenWithDetachedContext","Output":"--- PASS: TestUnlockHasBudgetEvenWithDetachedContext (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.026877+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestUnlockHasBudgetEvenWithDetachedContext","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.02688+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL"}
|
||||
{"Time":"2026-10-28T15:04:28.026881+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL","Output":"=== RUN TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.038379+03:00","Action":"run","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetIncludesFilteredRowsAndLoops"}
|
||||
{"Time":"2026-10-28T15:04:28.038402+03:00","Action":"output","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetIncludesFilteredRowsAndLoops","Output":"=== RUN TestPlanBudgetIncludesFilteredRowsAndLoops\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.038477+03:00","Action":"output","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetIncludesFilteredRowsAndLoops","Output":"--- PASS: TestPlanBudgetIncludesFilteredRowsAndLoops (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.038484+03:00","Action":"pass","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetIncludesFilteredRowsAndLoops","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.038488+03:00","Action":"run","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetDoesNotDoubleCountParentAndChild"}
|
||||
{"Time":"2026-10-28T15:04:28.038489+03:00","Action":"output","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetDoesNotDoubleCountParentAndChild","Output":"=== RUN TestPlanBudgetDoesNotDoubleCountParentAndChild\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.038528+03:00","Action":"output","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetDoesNotDoubleCountParentAndChild","Output":"--- PASS: TestPlanBudgetDoesNotDoubleCountParentAndChild (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.038531+03:00","Action":"pass","Package":"highload/student-tests/lab2/sqlprobe","Test":"TestPlanBudgetDoesNotDoubleCountParentAndChild","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:28.038534+03:00","Action":"output","Package":"highload/student-tests/lab2/sqlprobe","Output":"PASS\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.127866+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody"}
|
||||
{"Time":"2026-10-28T15:04:28.127919+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Output":"=== RUN TestStorageAuthHandlerRejectsJSONBody\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.171883+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL","Output":"--- PASS: TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL (0.14s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.171954+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL","Elapsed":0.14}
|
||||
{"Time":"2026-10-28T15:04:28.171968+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestPostgresConcurrentMigratorsApplyEachVersionOnce"}
|
||||
{"Time":"2026-10-28T15:04:28.17197+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresConcurrentMigratorsApplyEachVersionOnce","Output":"=== RUN TestPostgresConcurrentMigratorsApplyEachVersionOnce\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.918172+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Output":"--- PASS: TestStorageAuthHandlerRejectsJSONBody (0.79s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.918196+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageAuthHandlerRejectsJSONBody","Elapsed":0.79}
|
||||
{"Time":"2026-10-28T15:04:28.918247+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits"}
|
||||
{"Time":"2026-10-28T15:04:28.918252+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits","Output":"=== RUN TestPostgresOperationsHaveBoundedWaits\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:28.918328+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits","Output":" budgets_test.go:96: budget_policy=provisional_3000ms; teacher has no numeric threshold; approval remains pending\n"}
|
||||
{"Time":"2026-10-28T15:04:28.918372+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget"}
|
||||
{"Time":"2026-10-28T15:04:28.918375+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget","Output":"=== RUN TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:29.043068+03:00","Action":"output","Package":"highload/student-tests/lab2/sqlprobe","Output":"ok \thighload/student-tests/lab2/sqlprobe\t1.126s\n"}
|
||||
{"Time":"2026-10-28T15:04:29.043266+03:00","Action":"pass","Package":"highload/student-tests/lab2/sqlprobe","Elapsed":1.126}
|
||||
{"Time":"2026-10-28T15:04:29.2598+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresConcurrentMigratorsApplyEachVersionOnce","Output":"--- PASS: TestPostgresConcurrentMigratorsApplyEachVersionOnce (1.09s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:29.259953+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestPostgresConcurrentMigratorsApplyEachVersionOnce","Elapsed":1.09}
|
||||
{"Time":"2026-10-28T15:04:29.25999+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationFailureRollsBackAndPreservesCause"}
|
||||
{"Time":"2026-10-28T15:04:29.259998+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationFailureRollsBackAndPreservesCause","Output":"=== RUN TestPostgresMigrationFailureRollsBackAndPreservesCause\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:29.352979+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationFailureRollsBackAndPreservesCause","Output":"--- PASS: TestPostgresMigrationFailureRollsBackAndPreservesCause (0.09s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:29.353012+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationFailureRollsBackAndPreservesCause","Elapsed":0.09}
|
||||
{"Time":"2026-10-28T15:04:29.353027+03:00","Action":"run","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationThreeDownTwoDownOneAndReapply"}
|
||||
{"Time":"2026-10-28T15:04:29.353031+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationThreeDownTwoDownOneAndReapply","Output":"=== RUN TestPostgresMigrationThreeDownTwoDownOneAndReapply\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:29.476532+03:00","Action":"output","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationThreeDownTwoDownOneAndReapply","Output":"--- PASS: TestPostgresMigrationThreeDownTwoDownOneAndReapply (0.12s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:29.476633+03:00","Action":"pass","Package":"highload/cmd/migrate","Test":"TestPostgresMigrationThreeDownTwoDownOneAndReapply","Elapsed":0.12}
|
||||
{"Time":"2026-10-28T15:04:29.476649+03:00","Action":"output","Package":"highload/cmd/migrate","Output":"PASS\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:30.481331+03:00","Action":"output","Package":"highload/cmd/migrate","Output":"ok \thighload/cmd/migrate\t2.675s\n"}
|
||||
{"Time":"2026-10-28T15:04:30.481383+03:00","Action":"pass","Package":"highload/cmd/migrate","Elapsed":2.675}
|
||||
{"Time":"2026-10-28T15:04:32.11536+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget","Output":"2026/10/28 15:04:32 ERROR request failed error=\"service unavailable: database unavailable: timeout: context deadline exceeded\" request_id=5fa6c695-4d65-49b6-8420-8192bc44c6ce status=503 code=unavailable\n"}
|
||||
{"Time":"2026-10-28T15:04:32.115749+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget","Output":"2026/10/28 15:04:32 INFO http request method=GET path=/api/v1/users/me status=503 duration=1.004113583s request_id=5fa6c695-4d65-49b6-8420-8192bc44c6ce\n"}
|
||||
{"Time":"2026-10-28T15:04:32.115797+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget","Output":" budgets_test.go:130: mode=blocked_query scenario=application_budget elapsed_ms=1004.568 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false\n"}
|
||||
{"Time":"2026-10-28T15:04:32.158134+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget","Output":"2026/10/28 15:04:32 INFO http request method=GET path=/api/v1/users/me status=200 duration=36.661792ms request_id=6132ebda-a201-4941-ac36-6407301db7ea\n"}
|
||||
{"Time":"2026-10-28T15:04:32.170278+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget","Output":"--- PASS: TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget (3.25s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:32.170318+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget","Elapsed":3.25}
|
||||
{"Time":"2026-10-28T15:04:32.170331+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline"}
|
||||
{"Time":"2026-10-28T15:04:32.170342+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline","Output":"=== RUN TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:33.911798+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline","Output":"2026/10/28 15:04:33 ERROR request failed error=\"service unavailable: database unavailable: timeout: context deadline exceeded\" request_id=96c5b591-219d-4259-b88f-dcef7400b6ee status=503 code=unavailable\n"}
|
||||
{"Time":"2026-10-28T15:04:33.912019+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline","Output":"2026/10/28 15:04:33 INFO http request method=GET path=/api/v1/users/me status=503 duration=151.092334ms request_id=96c5b591-219d-4259-b88f-dcef7400b6ee\n"}
|
||||
{"Time":"2026-10-28T15:04:33.912034+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline","Output":" budgets_test.go:130: mode=blocked_query scenario=shorter_caller_deadline elapsed_ms=151.472 caller_deadline_ms=150 budget_ms=3000 caller_canceled=true\n"}
|
||||
{"Time":"2026-10-28T15:04:33.941925+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline","Output":"2026/10/28 15:04:33 INFO http request method=GET path=/api/v1/users/me status=200 duration=26.426125ms request_id=113605a4-84b0-40a9-93ac-f53e1fe45d26\n"}
|
||||
{"Time":"2026-10-28T15:04:33.949811+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline","Output":"--- PASS: TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline (1.78s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:33.949847+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline","Elapsed":1.78}
|
||||
{"Time":"2026-10-28T15:04:33.949872+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget"}
|
||||
{"Time":"2026-10-28T15:04:33.949882+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget","Output":"=== RUN TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:36.395947+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget","Output":"2026/10/28 15:04:36 INFO http request method=GET path=/api/v1/users/me status=200 duration=105.641542ms request_id=6e43282f-6dbc-407d-aa20-6ab69f2a2fca\n"}
|
||||
{"Time":"2026-10-28T15:04:36.396124+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget","Output":" budgets_test.go:130: mode=blocked_query scenario=released_before_budget elapsed_ms=105.923 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false\n"}
|
||||
{"Time":"2026-10-28T15:04:36.39898+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget","Output":"2026/10/28 15:04:36 INFO http request method=GET path=/api/v1/users/me status=200 duration=2.857583ms request_id=0b55ebc4-ccd2-4703-bcf1-f1a20390511b\n"}
|
||||
{"Time":"2026-10-28T15:04:36.413232+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget","Output":"--- PASS: TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget (2.46s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:36.41332+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget","Elapsed":2.46}
|
||||
{"Time":"2026-10-28T15:04:36.413336+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget"}
|
||||
{"Time":"2026-10-28T15:04:36.413351+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget","Output":"=== RUN TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:39.058817+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget","Output":"2026/10/28 15:04:39 ERROR request failed error=\"service unavailable: database unavailable: context deadline exceeded\" request_id=efe68b2c-dba8-44bb-aa6c-7f4d5d6bf1d6 status=503 code=unavailable\n"}
|
||||
{"Time":"2026-10-28T15:04:39.059582+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget","Output":"2026/10/28 15:04:39 INFO http request method=GET path=/api/v1/users/me status=503 duration=1.003850875s request_id=efe68b2c-dba8-44bb-aa6c-7f4d5d6bf1d6\n"}
|
||||
{"Time":"2026-10-28T15:04:39.059829+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget","Output":" budgets_test.go:130: mode=exhausted_pool scenario=application_budget elapsed_ms=1004.120 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false\n"}
|
||||
{"Time":"2026-10-28T15:04:39.07267+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget","Output":"2026/10/28 15:04:39 INFO http request method=GET path=/api/v1/users/me status=200 duration=11.695584ms request_id=1b531e53-7f10-438f-89da-ed35897f98ca\n"}
|
||||
{"Time":"2026-10-28T15:04:39.099686+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget","Output":"--- PASS: TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget (2.69s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:39.099756+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget","Elapsed":2.69}
|
||||
{"Time":"2026-10-28T15:04:39.099781+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline"}
|
||||
{"Time":"2026-10-28T15:04:39.099797+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline","Output":"=== RUN TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:41.227931+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline","Output":"2026/10/28 15:04:41 ERROR request failed error=\"service unavailable: database unavailable: context deadline exceeded\" request_id=a41d11a9-3078-4c54-98d5-9287555a660b status=503 code=unavailable\n"}
|
||||
{"Time":"2026-10-28T15:04:41.228023+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline","Output":"2026/10/28 15:04:41 INFO http request method=GET path=/api/v1/users/me status=503 duration=151.240541ms request_id=a41d11a9-3078-4c54-98d5-9287555a660b\n"}
|
||||
{"Time":"2026-10-28T15:04:41.228155+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline","Output":" budgets_test.go:130: mode=exhausted_pool scenario=shorter_caller_deadline elapsed_ms=151.497 caller_deadline_ms=150 budget_ms=3000 caller_canceled=true\n"}
|
||||
{"Time":"2026-10-28T15:04:41.235836+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline","Output":"2026/10/28 15:04:41 INFO http request method=GET path=/api/v1/users/me status=200 duration=7.084667ms request_id=bfc1922d-9a13-4467-a426-b22bce407a5e\n"}
|
||||
{"Time":"2026-10-28T15:04:41.255783+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline","Output":"--- PASS: TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline (2.16s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:41.255841+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline","Elapsed":2.16}
|
||||
{"Time":"2026-10-28T15:04:41.255861+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget"}
|
||||
{"Time":"2026-10-28T15:04:41.255877+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget","Output":"=== RUN TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:43.013615+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget","Output":"2026/10/28 15:04:43 INFO http request method=GET path=/api/v1/users/me status=200 duration=106.004208ms request_id=9856955c-2ca6-4302-8b64-0094d6b5c0d5\n"}
|
||||
{"Time":"2026-10-28T15:04:43.013767+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget","Output":" budgets_test.go:130: mode=exhausted_pool scenario=released_before_budget elapsed_ms=106.327 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false\n"}
|
||||
{"Time":"2026-10-28T15:04:43.0178+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget","Output":"2026/10/28 15:04:43 INFO http request method=GET path=/api/v1/users/me status=200 duration=3.991792ms request_id=0d7cad1e-2735-41ed-aa3d-872efb44a3d8\n"}
|
||||
{"Time":"2026-10-28T15:04:43.041185+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget","Output":"--- PASS: TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget (1.79s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:43.041256+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget","Elapsed":1.79}
|
||||
{"Time":"2026-10-28T15:04:43.04129+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits","Output":"--- PASS: TestPostgresOperationsHaveBoundedWaits (14.12s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:43.041302+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresOperationsHaveBoundedWaits","Elapsed":14.12}
|
||||
{"Time":"2026-10-28T15:04:43.041457+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPostgresChatCancellationBeforeCommitIsAtomic"}
|
||||
{"Time":"2026-10-28T15:04:43.04165+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresChatCancellationBeforeCommitIsAtomic","Output":"=== RUN TestPostgresChatCancellationBeforeCommitIsAtomic\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.112018+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPostgresChatCancellationBeforeCommitIsAtomic","Output":"--- PASS: TestPostgresChatCancellationBeforeCommitIsAtomic (1.07s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.112153+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPostgresChatCancellationBeforeCommitIsAtomic","Elapsed":1.07}
|
||||
{"Time":"2026-10-28T15:04:44.112226+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe"}
|
||||
{"Time":"2026-10-28T15:04:44.112242+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe","Output":"=== RUN TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.112995+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe","Output":"--- PASS: TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.113008+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.113016+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP"}
|
||||
{"Time":"2026-10-28T15:04:44.113441+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.113812+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/no_rows"}
|
||||
{"Time":"2026-10-28T15:04:44.113827+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/no_rows","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/no_rows\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.113836+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/no_rows","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/no_rows (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11384+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/no_rows","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.113845+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/duplicate"}
|
||||
{"Time":"2026-10-28T15:04:44.113858+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/duplicate","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/duplicate\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.113912+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/duplicate","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/duplicate (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.113962+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/duplicate","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.113968+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/eof"}
|
||||
{"Time":"2026-10-28T15:04:44.113971+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/eof","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.114431+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/eof","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.114445+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.114449+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/deadline"}
|
||||
{"Time":"2026-10-28T15:04:44.114452+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/deadline","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.115294+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/deadline","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/deadline (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11531+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/deadline","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.11534+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.115344+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected_eof","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/unexpected_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.115647+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected_eof","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/unexpected_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.115669+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.115713+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/closed_connection"}
|
||||
{"Time":"2026-10-28T15:04:44.115719+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/closed_connection","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/closed_connection\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.115989+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/closed_connection","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/closed_connection (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.116008+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/closed_connection","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.116031+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/connection_refused"}
|
||||
{"Time":"2026-10-28T15:04:44.116038+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/connection_refused","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/connection_refused\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.116319+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/connection_refused","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/connection_refused (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.116337+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/connection_refused","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.116362+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/database_dns_missing"}
|
||||
{"Time":"2026-10-28T15:04:44.116367+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/database_dns_missing","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/database_dns_missing\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11666+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/database_dns_missing","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/database_dns_missing (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.116668+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/database_dns_missing","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.116701+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sql_syntax"}
|
||||
{"Time":"2026-10-28T15:04:44.116705+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sql_syntax","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/sql_syntax\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.117009+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sql_syntax","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/sql_syntax (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.117023+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sql_syntax","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.117043+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected"}
|
||||
{"Time":"2026-10-28T15:04:44.117048+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/unexpected\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.117329+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/unexpected (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.117349+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/unexpected","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.117366+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300"}
|
||||
{"Time":"2026-10-28T15:04:44.11737+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11766+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.117684+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.117692+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03"}
|
||||
{"Time":"2026-10-28T15:04:44.117695+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11796+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.117978+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.117996+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006"}
|
||||
{"Time":"2026-10-28T15:04:44.118+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.118254+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.118291+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.118298+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001"}
|
||||
{"Time":"2026-10-28T15:04:44.118302+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.118553+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.118564+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.118587+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01"}
|
||||
{"Time":"2026-10-28T15:04:44.118593+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11884+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.118885+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.118889+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02"}
|
||||
{"Time":"2026-10-28T15:04:44.118892+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.119131+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.119446+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.11945+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows"}
|
||||
{"Time":"2026-10-28T15:04:44.119453+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.119457+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11946+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.119463+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate"}
|
||||
{"Time":"2026-10-28T15:04:44.119466+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.119658+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.11967+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.119703+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.119707+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_eof","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.120039+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_eof","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.12006+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.120157+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline"}
|
||||
{"Time":"2026-10-28T15:04:44.120165+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.120627+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.120662+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.120709+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.120715+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.120992+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.121011+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.121044+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection"}
|
||||
{"Time":"2026-10-28T15:04:44.121057+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.121414+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.121426+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.121471+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused"}
|
||||
{"Time":"2026-10-28T15:04:44.121476+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.121773+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.121791+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.121819+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing"}
|
||||
{"Time":"2026-10-28T15:04:44.121853+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.122107+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.122122+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.122145+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax"}
|
||||
{"Time":"2026-10-28T15:04:44.122148+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.122437+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.122457+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.122488+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected"}
|
||||
{"Time":"2026-10-28T15:04:44.122492+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.122798+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.122818+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.122858+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300"}
|
||||
{"Time":"2026-10-28T15:04:44.122867+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.123105+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.123119+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.123144+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03"}
|
||||
{"Time":"2026-10-28T15:04:44.123155+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.123399+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.123413+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.123437+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006"}
|
||||
{"Time":"2026-10-28T15:04:44.123439+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.123696+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.123751+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.123759+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001"}
|
||||
{"Time":"2026-10-28T15:04:44.123763+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.12405+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.124168+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.124201+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01"}
|
||||
{"Time":"2026-10-28T15:04:44.124206+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.124703+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.124712+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.124718+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02"}
|
||||
{"Time":"2026-10-28T15:04:44.124721+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02","Output":"=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.125133+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.125172+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.125225+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP","Output":"--- PASS: TestErrorDatabaseCategoryReachesHTTP (0.01s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.125232+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorDatabaseCategoryReachesHTTP","Elapsed":0.01}
|
||||
{"Time":"2026-10-28T15:04:44.125303+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory"}
|
||||
{"Time":"2026-10-28T15:04:44.125312+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.125444+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/eof"}
|
||||
{"Time":"2026-10-28T15:04:44.125453+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/eof","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.126265+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/eof","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.126273+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.126286+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/deadline"}
|
||||
{"Time":"2026-10-28T15:04:44.126309+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/deadline","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.126564+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/deadline","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/deadline (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.126577+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/deadline","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.12716+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.127167+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.127173+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.127176+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.12718+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/closed_connection"}
|
||||
{"Time":"2026-10-28T15:04:44.127182+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/closed_connection","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/closed_connection\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.127185+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/closed_connection","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/closed_connection (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.127439+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/closed_connection","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.127828+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/connection_refused"}
|
||||
{"Time":"2026-10-28T15:04:44.127834+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/connection_refused","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/connection_refused\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.127839+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/connection_refused","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/connection_refused (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.127843+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/connection_refused","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.127845+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing"}
|
||||
{"Time":"2026-10-28T15:04:44.127848+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.128128+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.128137+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.128158+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300"}
|
||||
{"Time":"2026-10-28T15:04:44.128164+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.128411+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.128422+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.128444+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03"}
|
||||
{"Time":"2026-10-28T15:04:44.128449+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.128803+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.12882+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.128852+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006"}
|
||||
{"Time":"2026-10-28T15:04:44.128857+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.129146+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.129164+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.129187+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001"}
|
||||
{"Time":"2026-10-28T15:04:44.129192+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.129465+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.129479+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.129499+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01"}
|
||||
{"Time":"2026-10-28T15:04:44.129503+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.12978+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.129793+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.129811+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02"}
|
||||
{"Time":"2026-10-28T15:04:44.129815+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.13007+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.130085+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.130101+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.130105+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.130368+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.130383+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.130405+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline"}
|
||||
{"Time":"2026-10-28T15:04:44.130409+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.130999+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.13102+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.131036+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.13104+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.131306+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.131348+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.131366+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection"}
|
||||
{"Time":"2026-10-28T15:04:44.131369+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.131639+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.131651+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.131674+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused"}
|
||||
{"Time":"2026-10-28T15:04:44.131678+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.131938+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.131945+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.131967+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing"}
|
||||
{"Time":"2026-10-28T15:04:44.131972+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.132237+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.132261+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.132303+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300"}
|
||||
{"Time":"2026-10-28T15:04:44.132312+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.132589+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.132597+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.132953+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03"}
|
||||
{"Time":"2026-10-28T15:04:44.132958+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.132963+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.132966+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.132968+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006"}
|
||||
{"Time":"2026-10-28T15:04:44.13297+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.133154+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.133164+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.133185+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001"}
|
||||
{"Time":"2026-10-28T15:04:44.13319+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.133434+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.133442+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.133461+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01"}
|
||||
{"Time":"2026-10-28T15:04:44.133465+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.133697+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.133711+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.134681+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02"}
|
||||
{"Time":"2026-10-28T15:04:44.134686+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02","Output":"=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134691+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134693+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.134697+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory","Output":"--- PASS: TestErrorUnavailableSQLLoginKeepsCategory (0.01s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.1347+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorUnavailableSQLLoginKeepsCategory","Elapsed":0.01}
|
||||
{"Time":"2026-10-28T15:04:44.134703+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning"}
|
||||
{"Time":"2026-10-28T15:04:44.134705+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134707+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/no_rows"}
|
||||
{"Time":"2026-10-28T15:04:44.134709+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/no_rows","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/no_rows\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134712+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/no_rows","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/no_rows (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134714+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/no_rows","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.134716+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/eof"}
|
||||
{"Time":"2026-10-28T15:04:44.134718+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/eof","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134983+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/eof","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134987+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.134989+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/deadline"}
|
||||
{"Time":"2026-10-28T15:04:44.134991+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/deadline","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134994+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/deadline","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/deadline (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.134996+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/deadline","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.134998+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.135+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135003+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135012+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135014+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection"}
|
||||
{"Time":"2026-10-28T15:04:44.135016+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135019+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135021+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135023+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused"}
|
||||
{"Time":"2026-10-28T15:04:44.135025+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135028+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135031+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135036+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing"}
|
||||
{"Time":"2026-10-28T15:04:44.135039+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135042+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135044+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135047+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax"}
|
||||
{"Time":"2026-10-28T15:04:44.135049+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135062+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135152+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135159+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected"}
|
||||
{"Time":"2026-10-28T15:04:44.135161+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/unexpected\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135166+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/unexpected (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135168+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/unexpected","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.13517+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300"}
|
||||
{"Time":"2026-10-28T15:04:44.135172+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135175+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135178+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135182+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03"}
|
||||
{"Time":"2026-10-28T15:04:44.135184+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135246+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.13526+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.13527+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006"}
|
||||
{"Time":"2026-10-28T15:04:44.135274+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135332+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135338+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135354+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001"}
|
||||
{"Time":"2026-10-28T15:04:44.135358+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.13542+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135427+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135444+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01"}
|
||||
{"Time":"2026-10-28T15:04:44.135448+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135504+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135514+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135533+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02"}
|
||||
{"Time":"2026-10-28T15:04:44.135536+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135617+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135625+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.13565+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows"}
|
||||
{"Time":"2026-10-28T15:04:44.135654+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135711+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.13572+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135736+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.135741+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135814+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135819+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135836+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline"}
|
||||
{"Time":"2026-10-28T15:04:44.135841+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135905+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135917+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.135932+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof"}
|
||||
{"Time":"2026-10-28T15:04:44.135939+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.135995+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136006+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136019+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection"}
|
||||
{"Time":"2026-10-28T15:04:44.136024+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136083+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136092+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136114+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused"}
|
||||
{"Time":"2026-10-28T15:04:44.136119+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136193+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136198+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136201+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing"}
|
||||
{"Time":"2026-10-28T15:04:44.136202+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.13627+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136279+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136297+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax"}
|
||||
{"Time":"2026-10-28T15:04:44.1363+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.13636+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136371+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136386+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected"}
|
||||
{"Time":"2026-10-28T15:04:44.13639+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136482+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136487+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136507+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300"}
|
||||
{"Time":"2026-10-28T15:04:44.13651+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136546+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136553+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136571+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03"}
|
||||
{"Time":"2026-10-28T15:04:44.136576+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136642+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136648+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136665+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006"}
|
||||
{"Time":"2026-10-28T15:04:44.13667+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136727+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136737+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136751+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001"}
|
||||
{"Time":"2026-10-28T15:04:44.136755+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136814+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136822+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.13684+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01"}
|
||||
{"Time":"2026-10-28T15:04:44.136844+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136903+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136914+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.136927+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02"}
|
||||
{"Time":"2026-10-28T15:04:44.136931+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02","Output":"=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.136986+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.137269+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.137273+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning","Output":"--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.137276+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorChatMemberLookupKeepsOperationMeaning","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.137278+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestErrorMissingBasicPrecedesForbiddenBody"}
|
||||
{"Time":"2026-10-28T15:04:44.137281+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorMissingBasicPrecedesForbiddenBody","Output":"=== RUN TestErrorMissingBasicPrecedesForbiddenBody\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.137284+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestErrorMissingBasicPrecedesForbiddenBody","Output":"--- PASS: TestErrorMissingBasicPrecedesForbiddenBody (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:44.137286+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestErrorMissingBasicPrecedesForbiddenBody","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:04:44.137289+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutPersistenceDiagnostic"}
|
||||
{"Time":"2026-10-28T15:04:44.137292+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutPersistenceDiagnostic","Output":"=== RUN TestRedisLogoutPersistenceDiagnostic\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:57.742527+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutPersistenceDiagnostic","Output":" logout_diagnostic_test.go:133: logout samples=51 pool_wait_count=0 wait_ns=0 pool_timeouts=0 final_busy=0\n"}
|
||||
{"Time":"2026-10-28T15:04:57.746197+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutPersistenceDiagnostic","Output":"--- PASS: TestRedisLogoutPersistenceDiagnostic (13.61s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:04:57.746217+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutPersistenceDiagnostic","Elapsed":13.61}
|
||||
{"Time":"2026-10-28T15:04:57.746492+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPasswordRoundTripAndRandomSalt"}
|
||||
{"Time":"2026-10-28T15:04:57.746506+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPasswordRoundTripAndRandomSalt","Output":"=== RUN TestPasswordRoundTripAndRandomSalt\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:02.429289+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPasswordRoundTripAndRandomSalt","Output":"--- PASS: TestPasswordRoundTripAndRandomSalt (4.68s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:02.43292+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPasswordRoundTripAndRandomSalt","Elapsed":4.68}
|
||||
{"Time":"2026-10-28T15:05:02.433262+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPasswordDoesNotTruncateLongUTF8"}
|
||||
{"Time":"2026-10-28T15:05:02.433276+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPasswordDoesNotTruncateLongUTF8","Output":"=== RUN TestPasswordDoesNotTruncateLongUTF8\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:04.600554+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPasswordDoesNotTruncateLongUTF8","Output":"--- PASS: TestPasswordDoesNotTruncateLongUTF8 (2.17s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:04.601582+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPasswordDoesNotTruncateLongUTF8","Elapsed":2.17}
|
||||
{"Time":"2026-10-28T15:05:04.601627+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestPasswordWhitespaceIsSignificant"}
|
||||
{"Time":"2026-10-28T15:05:04.601646+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPasswordWhitespaceIsSignificant","Output":"=== RUN TestPasswordWhitespaceIsSignificant\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:06.308791+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestPasswordWhitespaceIsSignificant","Output":"--- PASS: TestPasswordWhitespaceIsSignificant (1.71s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:06.308915+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestPasswordWhitespaceIsSignificant","Elapsed":1.71}
|
||||
{"Time":"2026-10-28T15:05:06.30893+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic"}
|
||||
{"Time":"2026-10-28T15:05:06.308941+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.021681+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/plaintext"}
|
||||
{"Time":"2026-10-28T15:05:07.021718+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/plaintext","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/plaintext\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022625+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/plaintext","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/plaintext (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022638+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/plaintext","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022645+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm"}
|
||||
{"Time":"2026-10-28T15:05:07.022647+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022732+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022738+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022739+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_version"}
|
||||
{"Time":"2026-10-28T15:05:07.022741+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_version","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/missing_version\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022745+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_version","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/missing_version (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022747+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_version","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022763+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/non_numeric"}
|
||||
{"Time":"2026-10-28T15:05:07.022769+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/non_numeric","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/non_numeric\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022789+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/non_numeric","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/non_numeric (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022794+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/non_numeric","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022803+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_memory"}
|
||||
{"Time":"2026-10-28T15:05:07.022819+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_memory","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/huge_memory\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022835+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_memory","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/huge_memory (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022847+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_memory","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022855+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations"}
|
||||
{"Time":"2026-10-28T15:05:07.022857+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022873+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022882+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022887+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_param"}
|
||||
{"Time":"2026-10-28T15:05:07.022888+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_param","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/missing_param\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022923+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_param","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/missing_param (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022929+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/missing_param","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022938+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_empty"}
|
||||
{"Time":"2026-10-28T15:05:07.022943+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_empty","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/salt_empty\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.022964+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_empty","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/salt_empty (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.02297+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_empty","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.022977+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/empty"}
|
||||
{"Time":"2026-10-28T15:05:07.022979+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/empty","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/empty\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023298+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/empty","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/empty (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023305+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/empty","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023307+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64"}
|
||||
{"Time":"2026-10-28T15:05:07.023308+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.02331+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023321+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023323+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_empty"}
|
||||
{"Time":"2026-10-28T15:05:07.023324+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_empty","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/hash_empty\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023326+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_empty","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/hash_empty (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023328+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_empty","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023329+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64"}
|
||||
{"Time":"2026-10-28T15:05:07.02333+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023333+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023334+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023336+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size"}
|
||||
{"Time":"2026-10-28T15:05:07.023337+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023364+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.02337+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.02338+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations"}
|
||||
{"Time":"2026-10-28T15:05:07.023383+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023401+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023409+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023413+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/negative"}
|
||||
{"Time":"2026-10-28T15:05:07.023415+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/negative","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/negative\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023438+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/negative","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/negative (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023445+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/negative","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023455+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_threads"}
|
||||
{"Time":"2026-10-28T15:05:07.023457+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_threads","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/huge_threads\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023482+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_threads","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/huge_threads (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023488+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/huge_threads","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023495+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_version"}
|
||||
{"Time":"2026-10-28T15:05:07.023497+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_version","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/wrong_version\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023516+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_version","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/wrong_version (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023533+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/wrong_version","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023542+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/extra_field"}
|
||||
{"Time":"2026-10-28T15:05:07.023544+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/extra_field","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/extra_field\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.02357+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/extra_field","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/extra_field (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023577+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/extra_field","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.02359+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_threads"}
|
||||
{"Time":"2026-10-28T15:05:07.023592+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_threads","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/zero_threads\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023608+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_threads","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/zero_threads (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023619+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/zero_threads","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023626+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory"}
|
||||
{"Time":"2026-10-28T15:05:07.023628+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023661+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.02367+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023699+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size"}
|
||||
{"Time":"2026-10-28T15:05:07.023701+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size","Output":"=== RUN TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023721+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023729+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.023752+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic","Output":"--- PASS: TestMalformedPasswordHashRejectedWithoutPanic (0.71s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.023755+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMalformedPasswordHashRejectedWithoutPanic","Elapsed":0.71}
|
||||
{"Time":"2026-10-28T15:05:07.023777+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisAddressIsAnAddressNotAFile"}
|
||||
{"Time":"2026-10-28T15:05:07.023781+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisAddressIsAnAddressNotAFile","Output":"=== RUN TestRedisAddressIsAnAddressNotAFile\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.025505+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisAddressIsAnAddressNotAFile","Output":"--- PASS: TestRedisAddressIsAnAddressNotAFile (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.02551+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisAddressIsAnAddressNotAFile","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:07.02567+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout"}
|
||||
{"Time":"2026-10-28T15:05:07.025672+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout","Output":"=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:07.025687+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced"}
|
||||
{"Time":"2026-10-28T15:05:07.02569+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced","Output":"=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:08.557049+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced","Output":"--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced (1.53s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:08.560904+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced","Elapsed":1.53}
|
||||
{"Time":"2026-10-28T15:05:08.560969+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced"}
|
||||
{"Time":"2026-10-28T15:05:08.560985+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced","Output":"=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:10.45122+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced","Output":"--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced (1.89s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:10.452105+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced","Elapsed":1.89}
|
||||
{"Time":"2026-10-28T15:05:10.45218+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply"}
|
||||
{"Time":"2026-10-28T15:05:10.452193+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply","Output":"=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:11.955371+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply","Output":"--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply (1.50s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:11.955479+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply","Elapsed":1.5}
|
||||
{"Time":"2026-10-28T15:05:11.955502+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure"}
|
||||
{"Time":"2026-10-28T15:05:11.955952+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure","Output":"=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:13.40911+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure","Output":"--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure (1.45s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:13.409181+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure","Elapsed":1.45}
|
||||
{"Time":"2026-10-28T15:05:13.409194+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout","Output":"--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout (6.38s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:13.409196+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout","Elapsed":6.38}
|
||||
{"Time":"2026-10-28T15:05:13.409199+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionHasTTLAndReadsDoNotExtendIt"}
|
||||
{"Time":"2026-10-28T15:05:13.409213+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionHasTTLAndReadsDoNotExtendIt","Output":"=== RUN TestRedisSessionHasTTLAndReadsDoNotExtendIt\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:13.538433+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionHasTTLAndReadsDoNotExtendIt","Output":"--- PASS: TestRedisSessionHasTTLAndReadsDoNotExtendIt (0.13s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:13.53847+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionHasTTLAndReadsDoNotExtendIt","Elapsed":0.13}
|
||||
{"Time":"2026-10-28T15:05:13.538505+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisExpiredAndUnknownSessionsAreNotFound"}
|
||||
{"Time":"2026-10-28T15:05:13.538509+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisExpiredAndUnknownSessionsAreNotFound","Output":"=== RUN TestRedisExpiredAndUnknownSessionsAreNotFound\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:13.89871+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisExpiredAndUnknownSessionsAreNotFound","Output":"--- PASS: TestRedisExpiredAndUnknownSessionsAreNotFound (0.36s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:13.898769+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisExpiredAndUnknownSessionsAreNotFound","Elapsed":0.36}
|
||||
{"Time":"2026-10-28T15:05:13.899662+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutOnlyRemovesSelectedSession"}
|
||||
{"Time":"2026-10-28T15:05:13.899763+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutOnlyRemovesSelectedSession","Output":"=== RUN TestRedisLogoutOnlyRemovesSelectedSession\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:14.111512+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutOnlyRemovesSelectedSession","Output":"--- PASS: TestRedisLogoutOnlyRemovesSelectedSession (0.21s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:14.11158+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisLogoutOnlyRemovesSelectedSession","Elapsed":0.21}
|
||||
{"Time":"2026-10-28T15:05:14.111605+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionsSurviveActualRestartWithoutExtendingTTL"}
|
||||
{"Time":"2026-10-28T15:05:14.11161+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionsSurviveActualRestartWithoutExtendingTTL","Output":"=== RUN TestRedisSessionsSurviveActualRestartWithoutExtendingTTL\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:16.446906+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionsSurviveActualRestartWithoutExtendingTTL","Output":"--- PASS: TestRedisSessionsSurviveActualRestartWithoutExtendingTTL (2.33s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:16.446953+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisSessionsSurviveActualRestartWithoutExtendingTTL","Elapsed":2.33}
|
||||
{"Time":"2026-10-28T15:05:16.446962+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout"}
|
||||
{"Time":"2026-10-28T15:05:16.446964+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout","Output":"=== RUN TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:17.299404+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout","Output":"--- PASS: TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout (0.85s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:17.299508+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout","Elapsed":0.85}
|
||||
{"Time":"2026-10-28T15:05:17.299534+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory"}
|
||||
{"Time":"2026-10-28T15:05:17.299542+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory","Output":"=== RUN TestRedisUnavailableKeepsUnavailableCategory\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:18.742901+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/create"}
|
||||
{"Time":"2026-10-28T15:05:18.742944+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/create","Output":"=== RUN TestRedisUnavailableKeepsUnavailableCategory/create\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:19.149144+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/create","Output":"redis: 2026/10/28 15:05:19 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused\n"}
|
||||
{"Time":"2026-10-28T15:05:19.14945+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/create","Output":"--- PASS: TestRedisUnavailableKeepsUnavailableCategory/create (0.41s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:19.149497+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/create","Elapsed":0.41}
|
||||
{"Time":"2026-10-28T15:05:19.149881+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/read"}
|
||||
{"Time":"2026-10-28T15:05:19.149894+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/read","Output":"=== RUN TestRedisUnavailableKeepsUnavailableCategory/read\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:19.556086+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/read","Output":"redis: 2026/10/28 15:05:19 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused\n"}
|
||||
{"Time":"2026-10-28T15:05:19.556405+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/read","Output":"--- PASS: TestRedisUnavailableKeepsUnavailableCategory/read (0.41s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:19.556531+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/read","Elapsed":0.41}
|
||||
{"Time":"2026-10-28T15:05:19.556686+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/logout"}
|
||||
{"Time":"2026-10-28T15:05:19.556737+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/logout","Output":"=== RUN TestRedisUnavailableKeepsUnavailableCategory/logout\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:19.962662+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/logout","Output":"redis: 2026/10/28 15:05:19 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused\n"}
|
||||
{"Time":"2026-10-28T15:05:19.962978+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/logout","Output":"--- PASS: TestRedisUnavailableKeepsUnavailableCategory/logout (0.41s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:19.963019+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory/logout","Elapsed":0.41}
|
||||
{"Time":"2026-10-28T15:05:20.367007+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory","Output":"redis: 2026/10/28 15:05:20 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused\n"}
|
||||
{"Time":"2026-10-28T15:05:20.36762+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory","Output":"--- PASS: TestRedisUnavailableKeepsUnavailableCategory (3.07s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:20.367688+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisUnavailableKeepsUnavailableCategory","Elapsed":3.07}
|
||||
{"Time":"2026-10-28T15:05:20.367766+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness"}
|
||||
{"Time":"2026-10-28T15:05:20.36778+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness","Output":"=== RUN TestRedisCriticalOutageHTTPAndReadiness\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:20.499536+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/liveness"}
|
||||
{"Time":"2026-10-28T15:05:20.499558+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/liveness","Output":"=== RUN TestRedisCriticalOutageHTTPAndReadiness/liveness\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:20.503635+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/liveness","Output":"--- PASS: TestRedisCriticalOutageHTTPAndReadiness/liveness (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:20.503655+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/liveness","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:05:20.50366+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/readiness"}
|
||||
{"Time":"2026-10-28T15:05:20.503661+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/readiness","Output":"=== RUN TestRedisCriticalOutageHTTPAndReadiness/readiness\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:20.908673+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/readiness","Output":"redis: 2026/10/28 15:05:20 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused\n"}
|
||||
{"Time":"2026-10-28T15:05:20.909861+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/readiness","Output":"--- PASS: TestRedisCriticalOutageHTTPAndReadiness/readiness (0.41s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:20.909886+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/readiness","Elapsed":0.41}
|
||||
{"Time":"2026-10-28T15:05:20.90999+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/protected_request"}
|
||||
{"Time":"2026-10-28T15:05:20.91+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/protected_request","Output":"=== RUN TestRedisCriticalOutageHTTPAndReadiness/protected_request\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:21.314751+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/protected_request","Output":"redis: 2026/10/28 15:05:21 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused\n"}
|
||||
{"Time":"2026-10-28T15:05:21.316247+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/protected_request","Output":"--- PASS: TestRedisCriticalOutageHTTPAndReadiness/protected_request (0.41s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:21.31631+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness/protected_request","Elapsed":0.41}
|
||||
{"Time":"2026-10-28T15:05:21.333738+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness","Output":"--- PASS: TestRedisCriticalOutageHTTPAndReadiness (0.97s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:21.333778+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisCriticalOutageHTTPAndReadiness","Elapsed":0.97}
|
||||
{"Time":"2026-10-28T15:05:21.333881+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged"}
|
||||
{"Time":"2026-10-28T15:05:21.333924+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged","Output":"=== RUN TestRedisPublicHTTPContractIsUnchanged\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:21.397882+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/teacher_smoke"}
|
||||
{"Time":"2026-10-28T15:05:21.397941+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/teacher_smoke","Output":"=== RUN TestRedisPublicHTTPContractIsUnchanged/teacher_smoke\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:27.439022+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/teacher_smoke","Output":"--- PASS: TestRedisPublicHTTPContractIsUnchanged/teacher_smoke (6.04s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:05:27.43912+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/teacher_smoke","Elapsed":6.04}
|
||||
{"Time":"2026-10-28T15:05:27.439201+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/auth_normal"}
|
||||
{"Time":"2026-10-28T15:05:27.439206+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/auth_normal","Output":"=== RUN TestRedisPublicHTTPContractIsUnchanged/auth_normal\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:09.541697+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/auth_normal","Output":"--- PASS: TestRedisPublicHTTPContractIsUnchanged/auth_normal (42.10s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:09.543526+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged/auth_normal","Elapsed":42.1}
|
||||
{"Time":"2026-10-28T15:06:09.56154+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged","Output":"--- PASS: TestRedisPublicHTTPContractIsUnchanged (48.23s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:09.561579+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisPublicHTTPContractIsUnchanged","Elapsed":48.23}
|
||||
{"Time":"2026-10-28T15:06:09.561777+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation"}
|
||||
{"Time":"2026-10-28T15:06:09.561796+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation","Output":"=== RUN TestRedisHTTPFullRestartKeepsDeadlineAndRevocation\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:09.561946+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only"}
|
||||
{"Time":"2026-10-28T15:06:09.561961+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only","Output":"=== RUN TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:12.577348+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only","Output":"--- PASS: TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only (3.01s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:12.577574+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only","Elapsed":3.01}
|
||||
{"Time":"2026-10-28T15:06:12.577605+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked"}
|
||||
{"Time":"2026-10-28T15:06:12.577607+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked","Output":"=== RUN TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:15.494774+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked","Output":"--- PASS: TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked (2.92s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:15.495505+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked","Elapsed":2.92}
|
||||
{"Time":"2026-10-28T15:06:15.495534+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation","Output":"--- PASS: TestRedisHTTPFullRestartKeepsDeadlineAndRevocation (5.93s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:15.495539+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestRedisHTTPFullRestartKeepsDeadlineAndRevocation","Elapsed":5.93}
|
||||
{"Time":"2026-10-28T15:06:15.495543+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite"}
|
||||
{"Time":"2026-10-28T15:06:15.495546+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite","Output":"=== RUN TestStoragePasswordIsKDFAndDuplicateCannotOverwrite\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:17.699183+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite","Output":"--- PASS: TestStoragePasswordIsKDFAndDuplicateCannotOverwrite (2.20s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:17.699687+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStoragePasswordIsKDFAndDuplicateCannotOverwrite","Elapsed":2.2}
|
||||
{"Time":"2026-10-28T15:06:17.699708+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline"}
|
||||
{"Time":"2026-10-28T15:06:17.699718+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline","Output":"=== RUN TestStorageSessionHashAndReconnectPreserveDeadline\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:19.197009+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline","Output":"--- PASS: TestStorageSessionHashAndReconnectPreserveDeadline (1.50s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:19.197103+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageSessionHashAndReconnectPreserveDeadline","Elapsed":1.5}
|
||||
{"Time":"2026-10-28T15:06:19.197168+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession"}
|
||||
{"Time":"2026-10-28T15:06:19.197179+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession","Output":"=== RUN TestStorageWrongCredentialsNeverCreateSession\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:21.343029+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession","Output":"--- PASS: TestStorageWrongCredentialsNeverCreateSession (2.15s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:21.34321+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageWrongCredentialsNeverCreateSession","Elapsed":2.15}
|
||||
{"Time":"2026-10-28T15:06:21.343233+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific"}
|
||||
{"Time":"2026-10-28T15:06:21.343235+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific","Output":"=== RUN TestStorageRevocationIsPersistentAndSessionSpecific\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:24.192277+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific","Output":"--- PASS: TestStorageRevocationIsPersistentAndSessionSpecific (2.85s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:24.192712+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageRevocationIsPersistentAndSessionSpecific","Elapsed":2.85}
|
||||
{"Time":"2026-10-28T15:06:24.192761+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive"}
|
||||
{"Time":"2026-10-28T15:06:24.192776+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive","Output":"=== RUN TestStorageExpiredSessionCannotRevive\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:25.789271+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive","Output":"--- PASS: TestStorageExpiredSessionCannotRevive (1.60s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:25.789383+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageExpiredSessionCannotRevive","Elapsed":1.6}
|
||||
{"Time":"2026-10-28T15:06:25.789404+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks"}
|
||||
{"Time":"2026-10-28T15:06:25.789411+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks","Output":"=== RUN TestStorageShortTTLExpiresAndReLoginWorks\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:30.484869+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks","Output":"--- PASS: TestStorageShortTTLExpiresAndReLoginWorks (4.70s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:30.485125+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageShortTTLExpiresAndReLoginWorks","Elapsed":4.7}
|
||||
{"Time":"2026-10-28T15:06:30.48516+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure"}
|
||||
{"Time":"2026-10-28T15:06:30.485186+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure","Output":"=== RUN TestStorageChatRollbackAfterMemberInsertFailure\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.294365+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure","Output":"--- PASS: TestStorageChatRollbackAfterMemberInsertFailure (0.81s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.294783+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageChatRollbackAfterMemberInsertFailure","Elapsed":0.81}
|
||||
{"Time":"2026-10-28T15:06:31.29479+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestSQLUnavailableLoginStopsBeforeSessionCreation"}
|
||||
{"Time":"2026-10-28T15:06:31.294796+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestSQLUnavailableLoginStopsBeforeSessionCreation","Output":"=== RUN TestSQLUnavailableLoginStopsBeforeSessionCreation\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.298308+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestSQLUnavailableLoginStopsBeforeSessionCreation","Output":"--- PASS: TestSQLUnavailableLoginStopsBeforeSessionCreation (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.298316+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestSQLUnavailableLoginStopsBeforeSessionCreation","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.298324+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError"}
|
||||
{"Time":"2026-10-28T15:06:31.298325+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError","Output":"=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.298349+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed"}
|
||||
{"Time":"2026-10-28T15:06:31.298351+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed","Output":"=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.299902+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed","Output":"--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.299914+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.29993+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01"}
|
||||
{"Time":"2026-10-28T15:06:31.299937+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01","Output":"=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300025+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01","Output":"--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300032+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.300044+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02"}
|
||||
{"Time":"2026-10-28T15:06:31.300046+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02","Output":"=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300127+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02","Output":"--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300135+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.300147+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03"}
|
||||
{"Time":"2026-10-28T15:06:31.300149+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03","Output":"=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300237+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03","Output":"--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300254+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.300265+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04"}
|
||||
{"Time":"2026-10-28T15:06:31.300266+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04","Output":"=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300344+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04","Output":"--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.30035+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.300365+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05"}
|
||||
{"Time":"2026-10-28T15:06:31.300368+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05","Output":"=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300454+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05","Output":"--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05 (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300461+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.300613+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError","Output":"--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError (0.00s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:31.300618+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestMiddlewareMalformedAuthWritesExactlyOneError","Elapsed":0}
|
||||
{"Time":"2026-10-28T15:06:31.300629+03:00","Action":"run","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout"}
|
||||
{"Time":"2026-10-28T15:06:31.300641+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout","Output":"=== RUN TestStorageHTTPAuthRoutingAndLogout\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:33.882902+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout","Output":"--- PASS: TestStorageHTTPAuthRoutingAndLogout (2.58s)\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:33.88308+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Test":"TestStorageHTTPAuthRoutingAndLogout","Elapsed":2.58}
|
||||
{"Time":"2026-10-28T15:06:33.883225+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Output":"PASS\n","OutputType":"frame"}
|
||||
{"Time":"2026-10-28T15:06:34.970282+03:00","Action":"output","Package":"highload/student-tests/auth_tests","Output":"ok \thighload/student-tests/auth_tests\t127.048s\n"}
|
||||
{"Time":"2026-10-28T15:06:34.970468+03:00","Action":"pass","Package":"highload/student-tests/auth_tests","Elapsed":127.048}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{"action": "restart-cache", "project": "lab2-test-5ee15e895e2d", "before": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:04:09.184939176Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:05:16.164229804Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
{"action": "restart-cache", "project": "lab2-test-5ee15e895e2d", "before": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:05:16.164229804Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:05:17.059805888Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-5ee15e895e2d", "before": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:04:15.642176971Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:04:09.196722217Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:05:17.059805888Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:06:11.905692052Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:11.290491135Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:11.251946677Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-5ee15e895e2d", "before": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:06:11.905692052Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:11.290491135Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:11.251946677Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:06:14.850416345Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:14.656747762Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:14.700584303Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-5ee15e895e2d", "before": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:06:14.850416345Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:14.656747762Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:14.700584303Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:06:55.473433794Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:55.288466752Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:55.229643877Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-5ee15e895e2d", "before": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:06:55.473433794Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:55.288466752Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:55.229643877Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"api": {"id": "e7f179e6c1127319d067f4248de7eb4e24f662aca842ccab87e926bbaa51f304", "started_at": "2026-10-28T12:06:58.731380837Z", "running": true, "volumes": []}, "postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:58.506665754Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}, "redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:58.558733212Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
{"action": "stop-db", "project": "lab2-test-5ee15e895e2d", "before": {"postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:58.506665754Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}}, "after": {"postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:58.506665754Z", "running": false, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}}}
|
||||
{"action": "start-db", "project": "lab2-test-5ee15e895e2d", "before": {"postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:06:58.506665754Z", "running": false, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}}, "after": {"postgres": {"id": "5e7a9cf7267d9e4a42294b3eede102350507e20bcaa03f3c8fbb305efb118ba6", "started_at": "2026-10-28T12:07:03.44444334Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_postgres_data"]}}}
|
||||
{"action": "stop-cache", "project": "lab2-test-5ee15e895e2d", "before": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:58.558733212Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:58.558733212Z", "running": false, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
{"action": "start-cache", "project": "lab2-test-5ee15e895e2d", "before": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:06:58.558733212Z", "running": false, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}, "after": {"redis": {"id": "9f9d09934d7ecd993904e28e78ae541e3f209e34f33b17de72afcd016a88de56", "started_at": "2026-10-28T12:07:11.323278843Z", "running": true, "volumes": ["lab2-test-5ee15e895e2d_redis_data"]}}}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "sql-plan",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"actual_rows": 10000,
|
||||
"chat_distribution_percent": [
|
||||
70,
|
||||
20,
|
||||
6,
|
||||
3,
|
||||
1
|
||||
],
|
||||
"chat_message_counts": [
|
||||
7000,
|
||||
2000,
|
||||
600,
|
||||
300,
|
||||
100
|
||||
],
|
||||
"deep_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.017,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.004,
|
||||
"Actual Total Time": 0.01,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.004,
|
||||
"Actual Total Time": 0.007,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "((chat_id = 'bde1e6fa-b10d-4711-aa0f-a5931047155d'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, '53e6b6e8-ec82-4d7e-ba9d-95fcf2a11686'::uuid)))",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 1399,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 545.97
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 20.18
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.029,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"first_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.014,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.003,
|
||||
"Actual Total Time": 0.009,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.002,
|
||||
"Actual Total Time": 0.006,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "(chat_id = 'bde1e6fa-b10d-4711-aa0f-a5931047155d'::uuid)",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 7000,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 3,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 916.59
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 3,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 6.96
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.014,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"go_version": "go1.27.1",
|
||||
"mode": "plan",
|
||||
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"rows": 10000,
|
||||
"scan_budget_rows": 1000,
|
||||
"schema": "lab2_test_efe28d873a5743279428083b8c0f8693"
|
||||
},
|
||||
"duration_seconds": 2.0227
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"project": "lab2-test-5ee15e895e2d",
|
||||
"status": "PASS",
|
||||
"results": [
|
||||
{
|
||||
"check": "contracts",
|
||||
"status": "PASS",
|
||||
"seconds": 2.234
|
||||
},
|
||||
{
|
||||
"check": "harness",
|
||||
"status": "PASS",
|
||||
"seconds": 0.092
|
||||
},
|
||||
{
|
||||
"check": "lab2-harness",
|
||||
"status": "PASS",
|
||||
"seconds": 0.324
|
||||
},
|
||||
{
|
||||
"check": "compose-up",
|
||||
"status": "PASS",
|
||||
"seconds": 34.707
|
||||
},
|
||||
{
|
||||
"check": "go-race-build",
|
||||
"status": "PASS",
|
||||
"seconds": 5.927
|
||||
},
|
||||
{
|
||||
"check": "go-race",
|
||||
"status": "PASS",
|
||||
"seconds": 127.742,
|
||||
"tests": {
|
||||
"pass": 43
|
||||
}
|
||||
},
|
||||
{
|
||||
"check": "go-build",
|
||||
"status": "PASS",
|
||||
"seconds": 3.208
|
||||
},
|
||||
{
|
||||
"check": "go-vet",
|
||||
"status": "PASS",
|
||||
"seconds": 0.592
|
||||
},
|
||||
{
|
||||
"check": "teacher-smoke",
|
||||
"status": "PASS",
|
||||
"seconds": 1.683
|
||||
},
|
||||
{
|
||||
"check": "auth-normal",
|
||||
"status": "PASS",
|
||||
"seconds": 5.974
|
||||
},
|
||||
{
|
||||
"check": "business",
|
||||
"status": "PASS",
|
||||
"seconds": 4.636
|
||||
},
|
||||
{
|
||||
"check": "sql-plan-10000",
|
||||
"status": "PASS",
|
||||
"seconds": 2.136
|
||||
},
|
||||
{
|
||||
"check": "teacher-persistence",
|
||||
"status": "PASS",
|
||||
"seconds": 2.807
|
||||
},
|
||||
{
|
||||
"check": "auth-persistence",
|
||||
"status": "PASS",
|
||||
"seconds": 3.902
|
||||
},
|
||||
{
|
||||
"check": "postgres-outage",
|
||||
"status": "PASS",
|
||||
"seconds": 4.144
|
||||
},
|
||||
{
|
||||
"check": "redis-outage",
|
||||
"status": "PASS",
|
||||
"seconds": 8.626
|
||||
},
|
||||
{
|
||||
"check": "short-ttl-api",
|
||||
"status": "PASS",
|
||||
"seconds": 0.628
|
||||
},
|
||||
{
|
||||
"check": "auth-expiry",
|
||||
"status": "PASS",
|
||||
"seconds": 2.705
|
||||
},
|
||||
{
|
||||
"check": "cleanup",
|
||||
"status": "PASS",
|
||||
"seconds": 0.877
|
||||
}
|
||||
],
|
||||
"redis_fixture": "critical session store; explicit REDIS_ADDR=redis:6379 in test override"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"scope": "temporary Git snapshot of current working tree; not remote HEAD",
|
||||
"acceptance_exit": 0,
|
||||
"bootstrap": "PASS",
|
||||
"source_clean_after_tests": true,
|
||||
"source_files": 137
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
".dockerignore": "62c0534ad74d9f0e2982e97d1fbadb66d80c493ed237df5bcb9fbb797062eb38",
|
||||
".env.example": "cde057274dd6b60a2ab0b9fab4c6f267479263263c6a204ab664739e75a12650",
|
||||
".gitea/workflows/application.yml": "27cbd50f8cbcabfaa5a77a2c014e2f8878ed23ab744c5a54e2422101807ed3e5",
|
||||
".github/pull_request_template.md": "857bbb4686e50fec35f1eaf539c23395dd6359392228fa65a9eb2a537f53ec92",
|
||||
".github/workflows/contracts.yml": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8",
|
||||
".gitignore": "07f63dcce41b3cf5d46d8cb96a70d0c34abcf10b72b4a78e85a9d13f765b5d56",
|
||||
"CONTRIBUTING.md": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e",
|
||||
"COURSE.md": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971",
|
||||
"Dockerfile": "eddd3924e99335ce0253792e85bcabb19b50d684c34073dd3b6ff958d0f7c652",
|
||||
"Dockerfile.example": "fd7ac9491c0c3c663b083c41a762fb38bc2d212fa4a2ed3e6a0702af72108709",
|
||||
"Dockerfile.migrate": "0ab04cba4c2bb033c4d7c7d3a5984d8a27e8f355ff90e6023c3b7912d2211dec",
|
||||
"MAINTAINERS.md": "59a70ede89ba308a782f0695f8441dfa4b75479d155966303ab86addc36f8d1f",
|
||||
"Makefile": "668b2449e19b364092611561a28ca2cc83b6c8b35fde1c52ecfd2072795e6ca0",
|
||||
"README.md": "4f14a97911bd3ea335868d37fec187d1738b42f91a7d4780d33b721edf25b6dc",
|
||||
"REPORT.md": "0e9690df50d18f1bb0cbcca3af9c7d88bfae782c90df55997b737afe3b3b8208",
|
||||
"cmd/api/main.go": "c5d22be9734c94771ac5e8abf79288fbf961a5d178adac56e25c6fb2964ea8f9",
|
||||
"cmd/migrate/main.go": "6e9d413a86f53cf5f2e83d5ed0308af9b2c33e69fcb3d061b19bf480e352f257",
|
||||
"cmd/migrate/main_test.go": "a88f2252d70caf644904331182dc3afd4df48b825a0329a82482798ec90b5d46",
|
||||
"cmd/migrate/postgres_test.go": "7a3cc1dea289b85b6aed835bb152aab7e5eb3124e54a490a7177b6e184b876d8",
|
||||
"cmd/migrate/roundtrip_test.go": "713f6ab6a874b52ca5d559042b4de50f48e6d1535934fd4982206d1832f0a92e",
|
||||
"compose.example.yaml": "bce35d0c70a825914ad0ff3a0bcdf6e7fbf520b399c576f0d75361068efd2e25",
|
||||
"compose.yaml": "eba95e1b3184314dab822603776d701fc0aa04528f4094ee3e7ab8bc1f396d10",
|
||||
"contracts/README.md": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f",
|
||||
"contracts/examples.json": "0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45",
|
||||
"contracts/infrastructure.json": "7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8",
|
||||
"contracts/openapi.json": "cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4",
|
||||
"db/migrations/00001_init_schema.sql": "32223afbc24f8250de055690c9e86299ebf2cd7a0d3ef2c59d3b2a5aaa41e84e",
|
||||
"db/migrations/00002_add_created_at_defaults.sql": "e0680838294b93f916d727a3a20d83aca7c3f74077202c9696b1fc73cda14649",
|
||||
"db/migrations/00003_drop_session_table.sql": "1b666cee95b9eb1210b0a303de95994bd3c24628e9d9fdb1e1f3318edb756c3d",
|
||||
"db/migrations/embed.go": "a42e52ab05bc89b557a5bc6b3f0215883d99c4a039a8b32d6c19e66b2f769508",
|
||||
"db/queries/chat_members.sql": "e70940e35f325550041c290a571901ead4a6f93dece857ffa229f2f1c83eddf8",
|
||||
"db/queries/chats.sql": "8c52c762da78eb3a3eb7402b17ec87bd7fc2e1387f6ddb8e297b4f2d75beca7b",
|
||||
"db/queries/messages.sql": "022c9f7aade55345f6cebd31f38084e73cb9a1419d56fa5316eaa36c9da52860",
|
||||
"db/queries/users.sql": "0d73a6d46f4d4a1b0af37b750a208c07a38249f76974b41748f32c1949f990df",
|
||||
"examples/requests.http": "633c7b0f881173920b61a67c029e9bb4b59a385e5e34ab1b3d3254556602d554",
|
||||
"go.mod": "73616cf36b558a229850da12bc47134a6a0e136594a1e411ca4f08db1bf57950",
|
||||
"go.sum": "3aa6dbd823977e4bf7a87a60c2718780e8bbeab8667b5f838e15cd7e3bbba77d",
|
||||
"infra/MIGRATIONS.md": "6c892bff25dfce17eadc1c263890e0cd97b77df5fb8923473a97ff0626f4c99c",
|
||||
"infra/README.md": "6ff8d430a1fc9a6588d635744ab1e9bd3a53a52beb85d9fd59bbf65b026fc837",
|
||||
"internal/config/config.go": "07097163d3e67de19db47d1183faa2a9e6ef7d407b94b93ff6f5c5f111b44db3",
|
||||
"internal/database/postgres.go": "3925c0bc9ae01bff9a37138a0dd19b38074bc2a70536b3a148f568b952516a21",
|
||||
"internal/database/redis.go": "5b85a60bb0d1cb156c61bcd3c518c41c955f53c1d12da265b5e3a5dd7a397602",
|
||||
"internal/database/sqlc/chat_members.sql.go": "9e8cd177f6f888c72d19857fd4748fbb2020770c1af772a463fe3d1b813b37ee",
|
||||
"internal/database/sqlc/chats.sql.go": "3dccf4b0ffa918ec5a3b66026b3dab4027456b499486359881000d184944802c",
|
||||
"internal/database/sqlc/db.go": "3ca71a7f007a39987cae838da64303419dd804d2d1b6227676f47177971d76cf",
|
||||
"internal/database/sqlc/messages.sql.go": "224d6d8bd21426759ca6500e0eb3563564d51e639f1b6c64db4b3a43a5241c2a",
|
||||
"internal/database/sqlc/models.go": "86f3abe4eb3e47e6b90051139e862377a61999108761b7eb3fcd7d4277b66505",
|
||||
"internal/database/sqlc/users.sql.go": "b954abd5b5964df39c20d857a60105513af84c8df68ce1ac9421da541a7800f4",
|
||||
"internal/model/chat.go": "e0213f8360ea106b3627aa50cc87710153ff8e353475b42c2becdb9a32592660",
|
||||
"internal/model/message.go": "b9ce1bdc5fd8ccf20d18033f56ac47c8a64352584ee29ab27915535557003a72",
|
||||
"internal/model/session.go": "b455d730e4e3efc95c6d1fe74ab43d86153e4bf863c09efd36bfe57efc669bc2",
|
||||
"internal/model/user.go": "4bfd2d78e72f1c80b12541f2abc8500613e8f4d101575bd5d74fac22b52e3617",
|
||||
"internal/repository/chat.go": "7ef8dca39ff371f16d351b073199c25f719db22c7a525ab76ea7aca948efa157",
|
||||
"internal/repository/errors.go": "b6f43f5c0de35024d2d217dfccc857a777dc112bc7a458d99a5fcc5828ce1bb2",
|
||||
"internal/repository/message.go": "fda4e57eb02f3fc927ee14f6a39deb689676487a8d0fb8030a7ce629f55eac1c",
|
||||
"internal/repository/postgres/chat.go": "d757c579e5b6599ab9366aef46fd59f9652247f3d947615aa46c919746b65ea5",
|
||||
"internal/repository/postgres/errors.go": "580e5e599f7af8a403404c6850986e88efceda6393d21e772ac108be34004ba9",
|
||||
"internal/repository/postgres/message.go": "fdb48e51279be725aa6036ad45d2ca2641a57671f8c385f372f378b20b363643",
|
||||
"internal/repository/postgres/user.go": "eb6770e5cdd96b16a6e9d2116af89a6dd466dfbca4f4c179fe06c30c487e53c4",
|
||||
"internal/repository/postgres/utils.go": "6c5c83a8ad8ecf611812fbf8c90735e2590a09dec88cd914a10f6b36a9f041b7",
|
||||
"internal/repository/redis/errors.go": "ab56571d1d0b7d13b7d7ff868916f7e506c5a54c29e6bb211b3021ad4bf601ab",
|
||||
"internal/repository/redis/session.go": "c1654fea2ba47734a5403d6f6cbb2fe70fbe7e6e37166ae75f338d3490981de1",
|
||||
"internal/repository/session.go": "071285ff4d8033a6512a7256583a1cb32de782d6fd9f1696fac109927f7db699",
|
||||
"internal/repository/user.go": "bee65136137d97bea2240411c96a93cd945b1b9145452416f7a83733a1fd28e7",
|
||||
"internal/security/password.go": "8f74bef9216a2d12aa734e04fa786eac6b31f1378fe42f729fe1b97495c10487",
|
||||
"internal/service/auth.go": "71b8960640866e515e9060159af750c418d97a6373d2616c3b59b764172aa54c",
|
||||
"internal/service/chat.go": "3a6433e288f9ad02a20f9cf6fde911e3f1fcce90de79080dd12fcdf2635f2450",
|
||||
"internal/service/errors.go": "33df533d658fed44dded592ee31b4ea04ccf3deb6d6c7a2161ea4cfb40719688",
|
||||
"internal/service/helper.go": "390320fa296d9637630e6ac0d90c1229002b578a29186cad414896d5f4d1b8a6",
|
||||
"internal/service/message.go": "9b5523c35bc667fadcb8ad0c7352dde4d455a1b4cec47386b72e2685c2e72b91",
|
||||
"internal/service/user.go": "542051ef3eeff15d340979a615a7e0da3d21ed7ed93bea2547ab52d8e303b5e2",
|
||||
"internal/transport/http/handler/auth.go": "f175a570d47ca38ce627d0bc88b6f6a2adbf648345229fa961ea0144717744f1",
|
||||
"internal/transport/http/handler/auth_types.go": "5ffcd182606a77d538efb5f1a51df23b8a324a605b5d226026048d34c409ebdb",
|
||||
"internal/transport/http/handler/chat.go": "e5214ebf94ac9b8f37537e1a3fc844a2e8ae4e9b5aa159fe2b6e4da9ab2342f0",
|
||||
"internal/transport/http/handler/chat_types.go": "d181bce0f003749d813c1254df4c8ebcc1b99ff506b61efa6899da4a499e95f4",
|
||||
"internal/transport/http/handler/health.go": "6a6b8aacba661b1eff7c2413009b223efd7f32f4cc04fcd41116396065560b91",
|
||||
"internal/transport/http/handler/health_types.go": "02ee3031e10fbb279e020f409fbd905ae2640aa306b2c558c3f8e6dcfe9efa80",
|
||||
"internal/transport/http/handler/message.go": "43dfcabbd24fe809e407958fed34bf567bdc6dd45c61f06c2e6d6bdd3d68b3ed",
|
||||
"internal/transport/http/handler/message_types.go": "b7649808c889cc9518bf5710415550abf4bed9ad5052a327c88181ed3b45aafc",
|
||||
"internal/transport/http/handler/user.go": "86fd65ed176e9a83dc27c1112ff8384bc5aa32a92410290fb505d715ca167775",
|
||||
"internal/transport/http/handler/user_types.go": "0c4450be649afe5edf4e8d3ac9baada79deb9e1423ace56b87aa227ebd0eb998",
|
||||
"internal/transport/http/httputils/helper.go": "23e744b36e2972315d5ad4735eda3cb992c4aae824922fcacfa8ea280411cdff",
|
||||
"internal/transport/http/middleware/auth.go": "28c1d54da2c371289a3ad2aaeb8365135a38b0afe555a7cffcec0128ee7491b8",
|
||||
"internal/transport/http/middleware/context.go": "f6db0e807659f30b05cae91f73c70d87f359760c57110e0d25b49a65bd0394a5",
|
||||
"internal/transport/http/middleware/logging.go": "a477fda512953eb9f46266537c12ace9cc992ba8f036a5b041f9f8295bfd2097",
|
||||
"internal/transport/http/router.go": "c452f3d9e9781cdfd45212f901ce286b285f566ade65048a985ea0cdae7c67e4",
|
||||
"lab.json": "d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4",
|
||||
"requirements-dev.txt": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525",
|
||||
"scripts/check_contract.py": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671",
|
||||
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
|
||||
"scripts/restart.sh": "6e36116c0058f4e9641a0f3ff1a2cbe4baabd53f82f9b2f784f5e37410dc3791",
|
||||
"scripts/setup-tests.sh": "10d13634c0f893d339dbe1551e75aa404c975a9c56627857daba9471afbeb945",
|
||||
"scripts/start-postgres.sh": "fd71356ee089f5e8128e29a5cfddaf72ede54dbf40cc10aa145b46b8130d4363",
|
||||
"scripts/start-redis.sh": "7054226bfbdce91e5519120384f9897c67c825421e2c7b940b9b501738931094",
|
||||
"scripts/stop-postgres.sh": "d967fcb6530f765c82b96b80951e6306cb282d53288a63e1384e29dc8b708baf",
|
||||
"scripts/stop-redis.sh": "b8824c1270a95490696c9770de3cf75bda8add8732e4ee6ea32e9f68e79e8fd7",
|
||||
"scripts/validate_openapi.py": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54",
|
||||
"sqlc.yaml": "4e72de8f0b44d6d2b6a44da89f86dd5326e85077a5e7a8ae71816a5dff1fbaa3",
|
||||
"student-tests/AUTH_TESTS.md": "56cebd1a5c360a9ea4ae094aa18e11e629867bc1bc5f3e32d68726a086767b40",
|
||||
"student-tests/README.md": "00e945355d7b60270896e7731ac1e6dcfaa12f8e8a2490cfddd2ef6b3ff0300d",
|
||||
"student-tests/RUNNING.md": "f031821e8a215e2a86f831b53827e3dab73ccca52853e1834f23f4635c77b985",
|
||||
"student-tests/auth_contract.py": "1717a79c1d28d74803ffd8621f57863c8f8384c38d5876b7ccf73c6da4c8af0d",
|
||||
"student-tests/auth_tests/auth_handler_test.go": "a7055f5a1c99bec93b05da772a7d5020e21054704383bcc6f257c1e599bfb654",
|
||||
"student-tests/auth_tests/budgets_test.go": "e931ded5f0cbf66207c8b9ae014ab0fcc02ddc3e5ddfe201aa18cb339f894206",
|
||||
"student-tests/auth_tests/errors_test.go": "5c0bf416526404ab5fce4b2943ac5eb54280948cf1992ef56dc39c0e5ae074ed",
|
||||
"student-tests/auth_tests/logout_diagnostic_test.go": "cd5032f553de3704c5514d5b4bf395fc3088f8e30963060f5e1374020ac0e8a6",
|
||||
"student-tests/auth_tests/password_test.go": "c83d4db74513787fec789759f10735e2ee6614fb9e04b2ac7d78c710e39047da",
|
||||
"student-tests/auth_tests/redis_test.go": "a3bf5b48b1a1192866046af61dd79d5381169824fcc3f9af7239932d57a5d4ea",
|
||||
"student-tests/auth_tests/restart_http_test.go": "26df36f9a3446abfc0e62d6f256f676e259c1b65359de72a1a28c4748a1611a2",
|
||||
"student-tests/auth_tests/storage_test.go": "96dfe8c4d98663b272fb46a3f25607d796ec232953829624272d1be159974fae",
|
||||
"student-tests/auth_tests/transport_test.go": "ffa252b6047a2f04d7dc14c12e721f52c600b9ce199a0805e4717b817672ff92",
|
||||
"student-tests/check_clone.py": "f84b7c7b5d6b85d5979d14d28c40529e1f0c3684ff7189ef5a5af78eaa267ff6",
|
||||
"student-tests/diagnostics/run_waitaof.py": "02425bc72c5c43cc99f3d442ba9476b4a476b04aa36236272701a304442d709b",
|
||||
"student-tests/diagnostics/waitaof/main.go": "5f6607fc11d8f5988823b8560af1545cc47c165f2d12fdb46e80c408add261e5",
|
||||
"student-tests/lab2/.gitignore": "20f5cabd213a016b080941d193994e9a1c48d1e1df16b3bf758fd348c325808d",
|
||||
"student-tests/lab2/README.md": "e7e8182873ce460cea1559df138014694ea7f176adea16e9d196dd2e31d31e78",
|
||||
"student-tests/lab2/adapters/compose_action.py": "d35a530d2d506cd0e66583ba4d9b3ef8b240e18956d069401ea750fc9b74b62b",
|
||||
"student-tests/lab2/adapters/custom.example.py": "ff1e83d2be9dc50a2bfba1314c4fb183294ed8c1d79a80258e021c13a863eacf",
|
||||
"student-tests/lab2/budgets.py": "8125332dd6e859023aaf9a35c74231b16d7509fa3e08ec65ba8b900b453aba72",
|
||||
"student-tests/lab2/business.py": "f41c32ab37806c0061dbbcf5b19c727252631a7e6d57245789a7ed6d83369184",
|
||||
"student-tests/lab2/ci.application.example.yml": "85febc118b77d188b92ea3512f7bdb30ab4b83d9e82b9548478fa621fb579f58",
|
||||
"student-tests/lab2/config.example.json": "70ab6c60bbf88c41151c193b84ecf170b6d2179c2dbdb479224e33c074bddbab",
|
||||
"student-tests/lab2/research.py": "777300bc746d5e18e8b49ce7ae7e077dd7fce6fe53e4d7158e4864eb579fecac",
|
||||
"student-tests/lab2/resources.py": "47aa2f4563e03d69a08054de492cea155f250f0bf2205a7c399fe7cab996d1ab",
|
||||
"student-tests/lab2/run.py": "237022ee909889859948fb67bf38b96efc9310abb8782223b67d9d4957df6edf",
|
||||
"student-tests/lab2/sqlprobe/main.go": "1935ffc0cba087ef85fb2d5cb7bcec22fe1acfb35ecc57c44d54e2d559284dab",
|
||||
"student-tests/lab2/sqlprobe/main_test.go": "1831982849afc4b1537d76f783c423c38fe6a506ccc75b105a4314a1dcee6261",
|
||||
"student-tests/lab2/sqlprobe/research.go": "fd8f5584d027661d1b0e2de52b0e564a93d82f5d1c2b4b8a3cf0400d3ed91a28",
|
||||
"student-tests/lab2/test_harness.py": "4d009d6090436bd9a78acf944b2b6375ade38b0f6b5661d24baa046c4e965b60",
|
||||
"student-tests/stack.py": "61ec22e97082727fa8a377d80360f5a7232bd88d43ca6be754b264d204b1b59c",
|
||||
"student-tests/test_stack.py": "9032d4ecc089c168ee4ac3039571204c3739040f43c8d5a3bc571fa4c16b5827",
|
||||
"student-tests/validation_edges.py": "c232f9be4c394515025c8ac0fbd8444579407966e18b198faed5279147764739",
|
||||
"tests/README.md": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5",
|
||||
"tests/client.py": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d",
|
||||
"tests/load.py": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933",
|
||||
"tests/resilience.py": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b",
|
||||
"tests/smoke.py": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "business-boundaries",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"json_cases": 174
|
||||
},
|
||||
"duration_seconds": 2.4384
|
||||
},
|
||||
{
|
||||
"suite": "business-cursors",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"message_items": 7,
|
||||
"chat_list": {
|
||||
"items": 7,
|
||||
"page_limit": 2,
|
||||
"foreign_cursors_rejected": 3,
|
||||
"changed_limit": [
|
||||
1,
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"duration_seconds": 0.9962
|
||||
},
|
||||
{
|
||||
"suite": "read-after-write",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"writers": 10,
|
||||
"messages": 100,
|
||||
"concurrency": 4
|
||||
},
|
||||
"duration_seconds": 3.7186
|
||||
}
|
||||
]
|
||||
}
|
||||
+11144
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
{"action": "restart-cache", "project": "lab2-test-b91b3f14a772", "before": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:33:51.567742584Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:35:00.491108338Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
{"action": "restart-cache", "project": "lab2-test-b91b3f14a772", "before": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:35:00.491108338Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:35:01.439461838Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-b91b3f14a772", "before": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:33:57.972815462Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:33:51.5685885Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:35:01.439461838Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:37:17.702649013Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:37:16.509937512Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:37:16.464080637Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-b91b3f14a772", "before": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:37:17.702649013Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:37:16.509937512Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:37:16.464080637Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:37:20.88599625Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:37:20.645221666Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:37:20.533764541Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-b91b3f14a772", "before": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:37:20.88599625Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:37:20.645221666Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:37:20.533764541Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:38:29.757476504Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:38:29.511583962Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:38:29.552607087Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-b91b3f14a772", "before": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:38:29.757476504Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:38:29.511583962Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:38:29.552607087Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"api": {"id": "c745b0ce2d9a081fabf01936f9efcff519c176ba8defed705865fe462ecbbb7d", "started_at": "2026-10-28T11:38:34.306277881Z", "running": true, "volumes": []}, "postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:38:34.004332215Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}, "redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:38:34.075323923Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
{"action": "stop-db", "project": "lab2-test-b91b3f14a772", "before": {"postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:38:34.004332215Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}}, "after": {"postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:38:34.004332215Z", "running": false, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}}}
|
||||
{"action": "start-db", "project": "lab2-test-b91b3f14a772", "before": {"postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:38:34.004332215Z", "running": false, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}}, "after": {"postgres": {"id": "8a695eb128e5c3fd8f8ddd079a315f941a88bad5b162fd0a034229af179b0ce5", "started_at": "2026-10-28T11:38:38.816445592Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_postgres_data"]}}}
|
||||
{"action": "stop-cache", "project": "lab2-test-b91b3f14a772", "before": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:38:34.075323923Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:38:34.075323923Z", "running": false, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
{"action": "start-cache", "project": "lab2-test-b91b3f14a772", "before": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:38:34.075323923Z", "running": false, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}, "after": {"redis": {"id": "8a902da645bfc890a566e40c63d8ba5cf25a881cdd1f75b4da4afc12cf396446", "started_at": "2026-10-28T11:38:47.714085221Z", "running": true, "volumes": ["lab2-test-b91b3f14a772_redis_data"]}}}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "sql-plan",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"actual_rows": 10000,
|
||||
"chat_distribution_percent": [
|
||||
70,
|
||||
20,
|
||||
6,
|
||||
3,
|
||||
1
|
||||
],
|
||||
"chat_message_counts": [
|
||||
7000,
|
||||
2000,
|
||||
600,
|
||||
300,
|
||||
100
|
||||
],
|
||||
"deep_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.026,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.006,
|
||||
"Actual Total Time": 0.016,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.005,
|
||||
"Actual Total Time": 0.011,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "((chat_id = '282a3976-9e06-4a00-b563-80b1e0004aa3'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, 'd97cb26a-974c-4aa0-b33b-5ca2311fdb9d'::uuid)))",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 1399,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 551.1
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 20.36
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.033,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"first_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.025,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.005,
|
||||
"Actual Total Time": 0.016,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.004,
|
||||
"Actual Total Time": 0.011,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "(chat_id = '282a3976-9e06-4a00-b563-80b1e0004aa3'::uuid)",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 7000,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 945.56
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 7.17
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.055,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"go_version": "go1.27.1",
|
||||
"mode": "plan",
|
||||
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"rows": 10000,
|
||||
"scan_budget_rows": 1000,
|
||||
"schema": "lab2_test_8c66be42948940f095cad46889467d2c"
|
||||
},
|
||||
"duration_seconds": 2.9659
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"project": "lab2-test-b91b3f14a772",
|
||||
"status": "FAIL",
|
||||
"results": [
|
||||
{
|
||||
"check": "contracts",
|
||||
"status": "PASS",
|
||||
"seconds": 1.177
|
||||
},
|
||||
{
|
||||
"check": "harness",
|
||||
"status": "PASS",
|
||||
"seconds": 0.08
|
||||
},
|
||||
{
|
||||
"check": "lab2-harness",
|
||||
"status": "PASS",
|
||||
"seconds": 0.22
|
||||
},
|
||||
{
|
||||
"check": "compose-up",
|
||||
"status": "PASS",
|
||||
"seconds": 35.61
|
||||
},
|
||||
{
|
||||
"check": "go-race-build",
|
||||
"status": "PASS",
|
||||
"seconds": 6.148
|
||||
},
|
||||
{
|
||||
"check": "go-race",
|
||||
"status": "FAIL",
|
||||
"detail": "CheckFailure"
|
||||
},
|
||||
{
|
||||
"check": "go-build",
|
||||
"status": "PASS",
|
||||
"seconds": 4.9
|
||||
},
|
||||
{
|
||||
"check": "go-vet",
|
||||
"status": "PASS",
|
||||
"seconds": 0.631
|
||||
},
|
||||
{
|
||||
"check": "teacher-smoke",
|
||||
"status": "PASS",
|
||||
"seconds": 1.874
|
||||
},
|
||||
{
|
||||
"check": "auth-normal",
|
||||
"status": "PASS",
|
||||
"seconds": 14.96
|
||||
},
|
||||
{
|
||||
"check": "business",
|
||||
"status": "PASS",
|
||||
"seconds": 7.433
|
||||
},
|
||||
{
|
||||
"check": "sql-plan-10000",
|
||||
"status": "PASS",
|
||||
"seconds": 3.171
|
||||
},
|
||||
{
|
||||
"check": "teacher-persistence",
|
||||
"status": "PASS",
|
||||
"seconds": 3.914
|
||||
},
|
||||
{
|
||||
"check": "auth-persistence",
|
||||
"status": "PASS",
|
||||
"seconds": 4.713
|
||||
},
|
||||
{
|
||||
"check": "postgres-outage",
|
||||
"status": "PASS",
|
||||
"seconds": 4.103
|
||||
},
|
||||
{
|
||||
"check": "redis-outage",
|
||||
"status": "PASS",
|
||||
"seconds": 9.637
|
||||
},
|
||||
{
|
||||
"check": "short-ttl-api",
|
||||
"status": "PASS",
|
||||
"seconds": 0.613
|
||||
},
|
||||
{
|
||||
"check": "auth-expiry",
|
||||
"status": "PASS",
|
||||
"seconds": 2.872
|
||||
},
|
||||
{
|
||||
"check": "cleanup",
|
||||
"status": "PASS",
|
||||
"seconds": 0.829
|
||||
}
|
||||
],
|
||||
"redis_fixture": "critical session store; explicit REDIS_ADDR=redis:6379 in test override"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"scope": "temporary Git snapshot of current working tree; not remote HEAD",
|
||||
"acceptance_exit": 1,
|
||||
"bootstrap": "PASS",
|
||||
"source_clean_after_tests": true,
|
||||
"detail": "Clone/bootstrap completed; acceptance tests failed, see acceptance summary",
|
||||
"source_files": 137
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
".dockerignore": "62c0534ad74d9f0e2982e97d1fbadb66d80c493ed237df5bcb9fbb797062eb38",
|
||||
".env.example": "cde057274dd6b60a2ab0b9fab4c6f267479263263c6a204ab664739e75a12650",
|
||||
".gitea/workflows/application.yml": "27cbd50f8cbcabfaa5a77a2c014e2f8878ed23ab744c5a54e2422101807ed3e5",
|
||||
".github/pull_request_template.md": "857bbb4686e50fec35f1eaf539c23395dd6359392228fa65a9eb2a537f53ec92",
|
||||
".github/workflows/contracts.yml": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8",
|
||||
".gitignore": "07f63dcce41b3cf5d46d8cb96a70d0c34abcf10b72b4a78e85a9d13f765b5d56",
|
||||
"CONTRIBUTING.md": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e",
|
||||
"COURSE.md": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971",
|
||||
"Dockerfile": "eddd3924e99335ce0253792e85bcabb19b50d684c34073dd3b6ff958d0f7c652",
|
||||
"Dockerfile.example": "fd7ac9491c0c3c663b083c41a762fb38bc2d212fa4a2ed3e6a0702af72108709",
|
||||
"Dockerfile.migrate": "0ab04cba4c2bb033c4d7c7d3a5984d8a27e8f355ff90e6023c3b7912d2211dec",
|
||||
"MAINTAINERS.md": "59a70ede89ba308a782f0695f8441dfa4b75479d155966303ab86addc36f8d1f",
|
||||
"Makefile": "668b2449e19b364092611561a28ca2cc83b6c8b35fde1c52ecfd2072795e6ca0",
|
||||
"README.md": "4f14a97911bd3ea335868d37fec187d1738b42f91a7d4780d33b721edf25b6dc",
|
||||
"REPORT.md": "2c98706ae0bff4fbc981f7d5aae15faf3ff077ea7fe7ea3b259cfefe47d1118a",
|
||||
"cmd/api/main.go": "c5d22be9734c94771ac5e8abf79288fbf961a5d178adac56e25c6fb2964ea8f9",
|
||||
"cmd/migrate/main.go": "6e9d413a86f53cf5f2e83d5ed0308af9b2c33e69fcb3d061b19bf480e352f257",
|
||||
"cmd/migrate/main_test.go": "a88f2252d70caf644904331182dc3afd4df48b825a0329a82482798ec90b5d46",
|
||||
"cmd/migrate/postgres_test.go": "7a3cc1dea289b85b6aed835bb152aab7e5eb3124e54a490a7177b6e184b876d8",
|
||||
"cmd/migrate/roundtrip_test.go": "713f6ab6a874b52ca5d559042b4de50f48e6d1535934fd4982206d1832f0a92e",
|
||||
"compose.example.yaml": "bce35d0c70a825914ad0ff3a0bcdf6e7fbf520b399c576f0d75361068efd2e25",
|
||||
"compose.yaml": "eba95e1b3184314dab822603776d701fc0aa04528f4094ee3e7ab8bc1f396d10",
|
||||
"contracts/README.md": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f",
|
||||
"contracts/examples.json": "0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45",
|
||||
"contracts/infrastructure.json": "7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8",
|
||||
"contracts/openapi.json": "cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4",
|
||||
"db/migrations/00001_init_schema.sql": "32223afbc24f8250de055690c9e86299ebf2cd7a0d3ef2c59d3b2a5aaa41e84e",
|
||||
"db/migrations/00002_add_created_at_defaults.sql": "e0680838294b93f916d727a3a20d83aca7c3f74077202c9696b1fc73cda14649",
|
||||
"db/migrations/00003_drop_session_table.sql": "1b666cee95b9eb1210b0a303de95994bd3c24628e9d9fdb1e1f3318edb756c3d",
|
||||
"db/migrations/embed.go": "a42e52ab05bc89b557a5bc6b3f0215883d99c4a039a8b32d6c19e66b2f769508",
|
||||
"db/queries/chat_members.sql": "e70940e35f325550041c290a571901ead4a6f93dece857ffa229f2f1c83eddf8",
|
||||
"db/queries/chats.sql": "8c52c762da78eb3a3eb7402b17ec87bd7fc2e1387f6ddb8e297b4f2d75beca7b",
|
||||
"db/queries/messages.sql": "022c9f7aade55345f6cebd31f38084e73cb9a1419d56fa5316eaa36c9da52860",
|
||||
"db/queries/users.sql": "0d73a6d46f4d4a1b0af37b750a208c07a38249f76974b41748f32c1949f990df",
|
||||
"examples/requests.http": "633c7b0f881173920b61a67c029e9bb4b59a385e5e34ab1b3d3254556602d554",
|
||||
"go.mod": "73616cf36b558a229850da12bc47134a6a0e136594a1e411ca4f08db1bf57950",
|
||||
"go.sum": "3aa6dbd823977e4bf7a87a60c2718780e8bbeab8667b5f838e15cd7e3bbba77d",
|
||||
"infra/MIGRATIONS.md": "6c892bff25dfce17eadc1c263890e0cd97b77df5fb8923473a97ff0626f4c99c",
|
||||
"infra/README.md": "6ff8d430a1fc9a6588d635744ab1e9bd3a53a52beb85d9fd59bbf65b026fc837",
|
||||
"internal/config/config.go": "07097163d3e67de19db47d1183faa2a9e6ef7d407b94b93ff6f5c5f111b44db3",
|
||||
"internal/database/postgres.go": "3925c0bc9ae01bff9a37138a0dd19b38074bc2a70536b3a148f568b952516a21",
|
||||
"internal/database/redis.go": "5b85a60bb0d1cb156c61bcd3c518c41c955f53c1d12da265b5e3a5dd7a397602",
|
||||
"internal/database/sqlc/chat_members.sql.go": "9e8cd177f6f888c72d19857fd4748fbb2020770c1af772a463fe3d1b813b37ee",
|
||||
"internal/database/sqlc/chats.sql.go": "3dccf4b0ffa918ec5a3b66026b3dab4027456b499486359881000d184944802c",
|
||||
"internal/database/sqlc/db.go": "3ca71a7f007a39987cae838da64303419dd804d2d1b6227676f47177971d76cf",
|
||||
"internal/database/sqlc/messages.sql.go": "224d6d8bd21426759ca6500e0eb3563564d51e639f1b6c64db4b3a43a5241c2a",
|
||||
"internal/database/sqlc/models.go": "86f3abe4eb3e47e6b90051139e862377a61999108761b7eb3fcd7d4277b66505",
|
||||
"internal/database/sqlc/users.sql.go": "b954abd5b5964df39c20d857a60105513af84c8df68ce1ac9421da541a7800f4",
|
||||
"internal/model/chat.go": "e0213f8360ea106b3627aa50cc87710153ff8e353475b42c2becdb9a32592660",
|
||||
"internal/model/message.go": "b9ce1bdc5fd8ccf20d18033f56ac47c8a64352584ee29ab27915535557003a72",
|
||||
"internal/model/session.go": "b455d730e4e3efc95c6d1fe74ab43d86153e4bf863c09efd36bfe57efc669bc2",
|
||||
"internal/model/user.go": "4bfd2d78e72f1c80b12541f2abc8500613e8f4d101575bd5d74fac22b52e3617",
|
||||
"internal/repository/chat.go": "7ef8dca39ff371f16d351b073199c25f719db22c7a525ab76ea7aca948efa157",
|
||||
"internal/repository/errors.go": "b6f43f5c0de35024d2d217dfccc857a777dc112bc7a458d99a5fcc5828ce1bb2",
|
||||
"internal/repository/message.go": "fda4e57eb02f3fc927ee14f6a39deb689676487a8d0fb8030a7ce629f55eac1c",
|
||||
"internal/repository/postgres/chat.go": "d757c579e5b6599ab9366aef46fd59f9652247f3d947615aa46c919746b65ea5",
|
||||
"internal/repository/postgres/errors.go": "580e5e599f7af8a403404c6850986e88efceda6393d21e772ac108be34004ba9",
|
||||
"internal/repository/postgres/message.go": "fdb48e51279be725aa6036ad45d2ca2641a57671f8c385f372f378b20b363643",
|
||||
"internal/repository/postgres/user.go": "eb6770e5cdd96b16a6e9d2116af89a6dd466dfbca4f4c179fe06c30c487e53c4",
|
||||
"internal/repository/postgres/utils.go": "6c5c83a8ad8ecf611812fbf8c90735e2590a09dec88cd914a10f6b36a9f041b7",
|
||||
"internal/repository/redis/errors.go": "ab56571d1d0b7d13b7d7ff868916f7e506c5a54c29e6bb211b3021ad4bf601ab",
|
||||
"internal/repository/redis/session.go": "c1654fea2ba47734a5403d6f6cbb2fe70fbe7e6e37166ae75f338d3490981de1",
|
||||
"internal/repository/session.go": "071285ff4d8033a6512a7256583a1cb32de782d6fd9f1696fac109927f7db699",
|
||||
"internal/repository/user.go": "bee65136137d97bea2240411c96a93cd945b1b9145452416f7a83733a1fd28e7",
|
||||
"internal/security/password.go": "8f74bef9216a2d12aa734e04fa786eac6b31f1378fe42f729fe1b97495c10487",
|
||||
"internal/service/auth.go": "71b8960640866e515e9060159af750c418d97a6373d2616c3b59b764172aa54c",
|
||||
"internal/service/chat.go": "3a6433e288f9ad02a20f9cf6fde911e3f1fcce90de79080dd12fcdf2635f2450",
|
||||
"internal/service/errors.go": "33df533d658fed44dded592ee31b4ea04ccf3deb6d6c7a2161ea4cfb40719688",
|
||||
"internal/service/helper.go": "390320fa296d9637630e6ac0d90c1229002b578a29186cad414896d5f4d1b8a6",
|
||||
"internal/service/message.go": "9b5523c35bc667fadcb8ad0c7352dde4d455a1b4cec47386b72e2685c2e72b91",
|
||||
"internal/service/user.go": "542051ef3eeff15d340979a615a7e0da3d21ed7ed93bea2547ab52d8e303b5e2",
|
||||
"internal/transport/http/handler/auth.go": "f175a570d47ca38ce627d0bc88b6f6a2adbf648345229fa961ea0144717744f1",
|
||||
"internal/transport/http/handler/auth_types.go": "5ffcd182606a77d538efb5f1a51df23b8a324a605b5d226026048d34c409ebdb",
|
||||
"internal/transport/http/handler/chat.go": "e5214ebf94ac9b8f37537e1a3fc844a2e8ae4e9b5aa159fe2b6e4da9ab2342f0",
|
||||
"internal/transport/http/handler/chat_types.go": "d181bce0f003749d813c1254df4c8ebcc1b99ff506b61efa6899da4a499e95f4",
|
||||
"internal/transport/http/handler/health.go": "6a6b8aacba661b1eff7c2413009b223efd7f32f4cc04fcd41116396065560b91",
|
||||
"internal/transport/http/handler/health_types.go": "02ee3031e10fbb279e020f409fbd905ae2640aa306b2c558c3f8e6dcfe9efa80",
|
||||
"internal/transport/http/handler/message.go": "43dfcabbd24fe809e407958fed34bf567bdc6dd45c61f06c2e6d6bdd3d68b3ed",
|
||||
"internal/transport/http/handler/message_types.go": "b7649808c889cc9518bf5710415550abf4bed9ad5052a327c88181ed3b45aafc",
|
||||
"internal/transport/http/handler/user.go": "86fd65ed176e9a83dc27c1112ff8384bc5aa32a92410290fb505d715ca167775",
|
||||
"internal/transport/http/handler/user_types.go": "0c4450be649afe5edf4e8d3ac9baada79deb9e1423ace56b87aa227ebd0eb998",
|
||||
"internal/transport/http/httputils/helper.go": "23e744b36e2972315d5ad4735eda3cb992c4aae824922fcacfa8ea280411cdff",
|
||||
"internal/transport/http/middleware/auth.go": "28c1d54da2c371289a3ad2aaeb8365135a38b0afe555a7cffcec0128ee7491b8",
|
||||
"internal/transport/http/middleware/context.go": "f6db0e807659f30b05cae91f73c70d87f359760c57110e0d25b49a65bd0394a5",
|
||||
"internal/transport/http/middleware/logging.go": "a477fda512953eb9f46266537c12ace9cc992ba8f036a5b041f9f8295bfd2097",
|
||||
"internal/transport/http/router.go": "c452f3d9e9781cdfd45212f901ce286b285f566ade65048a985ea0cdae7c67e4",
|
||||
"lab.json": "d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4",
|
||||
"requirements-dev.txt": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525",
|
||||
"scripts/check_contract.py": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671",
|
||||
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
|
||||
"scripts/restart.sh": "6e36116c0058f4e9641a0f3ff1a2cbe4baabd53f82f9b2f784f5e37410dc3791",
|
||||
"scripts/setup-tests.sh": "10d13634c0f893d339dbe1551e75aa404c975a9c56627857daba9471afbeb945",
|
||||
"scripts/start-postgres.sh": "fd71356ee089f5e8128e29a5cfddaf72ede54dbf40cc10aa145b46b8130d4363",
|
||||
"scripts/start-redis.sh": "7054226bfbdce91e5519120384f9897c67c825421e2c7b940b9b501738931094",
|
||||
"scripts/stop-postgres.sh": "d967fcb6530f765c82b96b80951e6306cb282d53288a63e1384e29dc8b708baf",
|
||||
"scripts/stop-redis.sh": "b8824c1270a95490696c9770de3cf75bda8add8732e4ee6ea32e9f68e79e8fd7",
|
||||
"scripts/validate_openapi.py": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54",
|
||||
"sqlc.yaml": "4e72de8f0b44d6d2b6a44da89f86dd5326e85077a5e7a8ae71816a5dff1fbaa3",
|
||||
"student-tests/AUTH_TESTS.md": "56cebd1a5c360a9ea4ae094aa18e11e629867bc1bc5f3e32d68726a086767b40",
|
||||
"student-tests/README.md": "00e945355d7b60270896e7731ac1e6dcfaa12f8e8a2490cfddd2ef6b3ff0300d",
|
||||
"student-tests/RUNNING.md": "fab28be84df902d89b0813cb92ea1dd962dd813224eadbf4cc98e439570aaeca",
|
||||
"student-tests/auth_contract.py": "1717a79c1d28d74803ffd8621f57863c8f8384c38d5876b7ccf73c6da4c8af0d",
|
||||
"student-tests/auth_tests/auth_handler_test.go": "a7055f5a1c99bec93b05da772a7d5020e21054704383bcc6f257c1e599bfb654",
|
||||
"student-tests/auth_tests/budgets_test.go": "e931ded5f0cbf66207c8b9ae014ab0fcc02ddc3e5ddfe201aa18cb339f894206",
|
||||
"student-tests/auth_tests/errors_test.go": "5c0bf416526404ab5fce4b2943ac5eb54280948cf1992ef56dc39c0e5ae074ed",
|
||||
"student-tests/auth_tests/logout_diagnostic_test.go": "cd5032f553de3704c5514d5b4bf395fc3088f8e30963060f5e1374020ac0e8a6",
|
||||
"student-tests/auth_tests/password_test.go": "c83d4db74513787fec789759f10735e2ee6614fb9e04b2ac7d78c710e39047da",
|
||||
"student-tests/auth_tests/redis_test.go": "c5cf2d41065347361f24f8ca6dae576a87a35ab22711648e25dc4bafee07983a",
|
||||
"student-tests/auth_tests/restart_http_test.go": "26df36f9a3446abfc0e62d6f256f676e259c1b65359de72a1a28c4748a1611a2",
|
||||
"student-tests/auth_tests/storage_test.go": "96dfe8c4d98663b272fb46a3f25607d796ec232953829624272d1be159974fae",
|
||||
"student-tests/auth_tests/transport_test.go": "ffa252b6047a2f04d7dc14c12e721f52c600b9ce199a0805e4717b817672ff92",
|
||||
"student-tests/check_clone.py": "f84b7c7b5d6b85d5979d14d28c40529e1f0c3684ff7189ef5a5af78eaa267ff6",
|
||||
"student-tests/diagnostics/run_waitaof.py": "02425bc72c5c43cc99f3d442ba9476b4a476b04aa36236272701a304442d709b",
|
||||
"student-tests/diagnostics/waitaof/main.go": "5f6607fc11d8f5988823b8560af1545cc47c165f2d12fdb46e80c408add261e5",
|
||||
"student-tests/lab2/.gitignore": "20f5cabd213a016b080941d193994e9a1c48d1e1df16b3bf758fd348c325808d",
|
||||
"student-tests/lab2/README.md": "e7e8182873ce460cea1559df138014694ea7f176adea16e9d196dd2e31d31e78",
|
||||
"student-tests/lab2/adapters/compose_action.py": "d35a530d2d506cd0e66583ba4d9b3ef8b240e18956d069401ea750fc9b74b62b",
|
||||
"student-tests/lab2/adapters/custom.example.py": "ff1e83d2be9dc50a2bfba1314c4fb183294ed8c1d79a80258e021c13a863eacf",
|
||||
"student-tests/lab2/budgets.py": "8125332dd6e859023aaf9a35c74231b16d7509fa3e08ec65ba8b900b453aba72",
|
||||
"student-tests/lab2/business.py": "f41c32ab37806c0061dbbcf5b19c727252631a7e6d57245789a7ed6d83369184",
|
||||
"student-tests/lab2/ci.application.example.yml": "85febc118b77d188b92ea3512f7bdb30ab4b83d9e82b9548478fa621fb579f58",
|
||||
"student-tests/lab2/config.example.json": "70ab6c60bbf88c41151c193b84ecf170b6d2179c2dbdb479224e33c074bddbab",
|
||||
"student-tests/lab2/research.py": "777300bc746d5e18e8b49ce7ae7e077dd7fce6fe53e4d7158e4864eb579fecac",
|
||||
"student-tests/lab2/resources.py": "47aa2f4563e03d69a08054de492cea155f250f0bf2205a7c399fe7cab996d1ab",
|
||||
"student-tests/lab2/run.py": "237022ee909889859948fb67bf38b96efc9310abb8782223b67d9d4957df6edf",
|
||||
"student-tests/lab2/sqlprobe/main.go": "1935ffc0cba087ef85fb2d5cb7bcec22fe1acfb35ecc57c44d54e2d559284dab",
|
||||
"student-tests/lab2/sqlprobe/main_test.go": "1831982849afc4b1537d76f783c423c38fe6a506ccc75b105a4314a1dcee6261",
|
||||
"student-tests/lab2/sqlprobe/research.go": "fd8f5584d027661d1b0e2de52b0e564a93d82f5d1c2b4b8a3cf0400d3ed91a28",
|
||||
"student-tests/lab2/test_harness.py": "4d009d6090436bd9a78acf944b2b6375ade38b0f6b5661d24baa046c4e965b60",
|
||||
"student-tests/stack.py": "b1e48399796117846d1a6c133b8c674e155225e87d8d6c6390db83147991cad8",
|
||||
"student-tests/test_stack.py": "9032d4ecc089c168ee4ac3039571204c3739040f43c8d5a3bc571fa4c16b5827",
|
||||
"student-tests/validation_edges.py": "c232f9be4c394515025c8ac0fbd8444579407966e18b198faed5279147764739",
|
||||
"tests/README.md": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5",
|
||||
"tests/client.py": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d",
|
||||
"tests/load.py": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933",
|
||||
"tests/resilience.py": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b",
|
||||
"tests/smoke.py": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"backup_seconds": 0.5361655000015162,
|
||||
"restore_seconds": 1.1982429589988897,
|
||||
"target_restart_and_verification_seconds": 0.9068635000003269,
|
||||
"archive_bytes": 2987310,
|
||||
"archive_sha256": "3054000da396e5c9c064398684209b5a73d0b97eb0896ec1713c2afe93d81979",
|
||||
"source_unchanged": true,
|
||||
"selected_messages_equal": 15,
|
||||
"all_four_table_counts_and_digests_equal": true,
|
||||
"target_restart_pass": true,
|
||||
"archive_retained": false,
|
||||
"scope": "quiescent synthetic PostgreSQL schema; Redis sessions and post-snapshot writes not included"
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"scope": "index observations only; full run status is summary.json",
|
||||
"read_requests": 2880,
|
||||
"read_errors": 0,
|
||||
"read_cases": [
|
||||
{
|
||||
"case": "large_deep",
|
||||
"variant": "A",
|
||||
"n": 240,
|
||||
"p50_ms": 8.844,
|
||||
"p95_ms": 13.124,
|
||||
"p99_ms": 17.739,
|
||||
"successful_rps": 106.19498197276464,
|
||||
"trial_p50_min": 8.177,
|
||||
"trial_p50_max": 9.676
|
||||
},
|
||||
{
|
||||
"case": "large_deep",
|
||||
"variant": "B",
|
||||
"n": 240,
|
||||
"p50_ms": 6.831,
|
||||
"p95_ms": 12.144,
|
||||
"p99_ms": 28.253,
|
||||
"successful_rps": 128.4468637618176,
|
||||
"trial_p50_min": 6.264,
|
||||
"trial_p50_max": 7.205
|
||||
},
|
||||
{
|
||||
"case": "large_first",
|
||||
"variant": "A",
|
||||
"n": 240,
|
||||
"p50_ms": 8.327,
|
||||
"p95_ms": 12.838,
|
||||
"p99_ms": 18.942,
|
||||
"successful_rps": 107.9328024349338,
|
||||
"trial_p50_min": 8.156,
|
||||
"trial_p50_max": 8.57
|
||||
},
|
||||
{
|
||||
"case": "large_first",
|
||||
"variant": "B",
|
||||
"n": 240,
|
||||
"p50_ms": 0.488,
|
||||
"p95_ms": 2.015,
|
||||
"p99_ms": 3.771,
|
||||
"successful_rps": 1298.4337145585214,
|
||||
"trial_p50_min": 0.412,
|
||||
"trial_p50_max": 0.952
|
||||
},
|
||||
{
|
||||
"case": "medium_deep",
|
||||
"variant": "A",
|
||||
"n": 240,
|
||||
"p50_ms": 1.219,
|
||||
"p95_ms": 2.207,
|
||||
"p99_ms": 5.095,
|
||||
"successful_rps": 730.0578270895878,
|
||||
"trial_p50_min": 1.152,
|
||||
"trial_p50_max": 1.267
|
||||
},
|
||||
{
|
||||
"case": "medium_deep",
|
||||
"variant": "B",
|
||||
"n": 240,
|
||||
"p50_ms": 0.885,
|
||||
"p95_ms": 1.639,
|
||||
"p99_ms": 4.168,
|
||||
"successful_rps": 965.3889594956943,
|
||||
"trial_p50_min": 0.837,
|
||||
"trial_p50_max": 0.974
|
||||
},
|
||||
{
|
||||
"case": "medium_first",
|
||||
"variant": "A",
|
||||
"n": 240,
|
||||
"p50_ms": 1.357,
|
||||
"p95_ms": 1.722,
|
||||
"p99_ms": 4.184,
|
||||
"successful_rps": 683.1591903152871,
|
||||
"trial_p50_min": 1.332,
|
||||
"trial_p50_max": 1.46
|
||||
},
|
||||
{
|
||||
"case": "medium_first",
|
||||
"variant": "B",
|
||||
"n": 240,
|
||||
"p50_ms": 0.395,
|
||||
"p95_ms": 1.216,
|
||||
"p99_ms": 4.171,
|
||||
"successful_rps": 1646.710784747366,
|
||||
"trial_p50_min": 0.36,
|
||||
"trial_p50_max": 0.502
|
||||
},
|
||||
{
|
||||
"case": "small_deep",
|
||||
"variant": "A",
|
||||
"n": 240,
|
||||
"p50_ms": 0.787,
|
||||
"p95_ms": 2.22,
|
||||
"p99_ms": 4.234,
|
||||
"successful_rps": 946.516710444905,
|
||||
"trial_p50_min": 0.75,
|
||||
"trial_p50_max": 1.179
|
||||
},
|
||||
{
|
||||
"case": "small_deep",
|
||||
"variant": "B",
|
||||
"n": 240,
|
||||
"p50_ms": 0.55,
|
||||
"p95_ms": 1.188,
|
||||
"p99_ms": 4.85,
|
||||
"successful_rps": 1442.7524138029373,
|
||||
"trial_p50_min": 0.525,
|
||||
"trial_p50_max": 0.588
|
||||
},
|
||||
{
|
||||
"case": "small_first",
|
||||
"variant": "A",
|
||||
"n": 240,
|
||||
"p50_ms": 0.803,
|
||||
"p95_ms": 1.623,
|
||||
"p99_ms": 2.564,
|
||||
"successful_rps": 1074.175545204959,
|
||||
"trial_p50_min": 0.757,
|
||||
"trial_p50_max": 0.899
|
||||
},
|
||||
{
|
||||
"case": "small_first",
|
||||
"variant": "B",
|
||||
"n": 240,
|
||||
"p50_ms": 0.394,
|
||||
"p95_ms": 0.851,
|
||||
"p99_ms": 1.215,
|
||||
"successful_rps": 2174.6525435306994,
|
||||
"trial_p50_min": 0.346,
|
||||
"trial_p50_max": 0.419
|
||||
}
|
||||
],
|
||||
"write_variants": [
|
||||
{
|
||||
"variant": "A",
|
||||
"batches": 80,
|
||||
"rows_per_batch": 200,
|
||||
"p50_ms": 3.378,
|
||||
"p95_ms": 7.838,
|
||||
"p99_ms": 10.859,
|
||||
"median_wal_bytes": 104520.0,
|
||||
"index_bytes": 720896,
|
||||
"median_build_ms": 37.134
|
||||
},
|
||||
{
|
||||
"variant": "B",
|
||||
"batches": 80,
|
||||
"rows_per_batch": 200,
|
||||
"p50_ms": 2.918,
|
||||
"p95_ms": 5.661,
|
||||
"p99_ms": 30.227,
|
||||
"median_wal_bytes": 117144.0,
|
||||
"index_bytes": 5914624,
|
||||
"median_build_ms": 107.887
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"actual_rows": 100000,
|
||||
"chat_distribution_percent": [
|
||||
70,
|
||||
20,
|
||||
6,
|
||||
3,
|
||||
1
|
||||
],
|
||||
"chat_message_counts": [
|
||||
70000,
|
||||
20000,
|
||||
6000,
|
||||
3000,
|
||||
1000
|
||||
],
|
||||
"go_version": "go1.27.1",
|
||||
"kept_fixture": true,
|
||||
"mode": "seed",
|
||||
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"rows": 100000,
|
||||
"schema": "lab2_test_backup_511fdfc039"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
|
||||
"hardware": {
|
||||
"hw.model": "Mac14,2",
|
||||
"hw.ncpu": "8",
|
||||
"hw.memsize": "8589934592",
|
||||
"machdep.cpu.brand_string": "Apple M2"
|
||||
},
|
||||
"go": "go version go1.27.1 darwin/arm64",
|
||||
"docker": "28.4.0",
|
||||
"image": {
|
||||
"id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"digests": [
|
||||
"postgres@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722"
|
||||
],
|
||||
"architecture": "arm64"
|
||||
},
|
||||
"limits_per_postgres": {
|
||||
"cpus": 1,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"other_running_containers_at_start": []
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"scope": "mandatory level 3/4 acceptance plus completed SQL track 2; separate HTTP stress observation retained as FAIL",
|
||||
"mandatory_acceptance": "acceptance-complete/acceptance/summary.json",
|
||||
"research": "summary.json",
|
||||
"go_tests": {
|
||||
"pass": 43
|
||||
},
|
||||
"source_changes_after_clone": [
|
||||
"REPORT.md",
|
||||
"student-tests/lab2/README.md"
|
||||
],
|
||||
"application_and_migrations_changed": [],
|
||||
"http_measurement": {
|
||||
"measured": 768,
|
||||
"measured_errors": 0,
|
||||
"warmup": 128,
|
||||
"warmup_errors": 1,
|
||||
"status": "FAIL",
|
||||
"path": "regression-final/acceptance/latency/results.json"
|
||||
},
|
||||
"test_runner_budgets": {
|
||||
"race_build_seconds": 300,
|
||||
"go_suite_seconds": 600,
|
||||
"each_nested_python_acceptance_seconds": 300,
|
||||
"clone_total_seconds": 1200
|
||||
},
|
||||
"application_budgets_changed": false,
|
||||
"pr_created": false,
|
||||
"new_commit_created": false,
|
||||
"disposable_scopes_checked": 9,
|
||||
"remaining_disposable_resources": [],
|
||||
"missing_local_links": [],
|
||||
"explicit_credential_pattern_findings": []
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "business-boundaries",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"json_cases": 174
|
||||
},
|
||||
"duration_seconds": 4.4283
|
||||
},
|
||||
{
|
||||
"suite": "business-cursors",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"message_items": 7,
|
||||
"chat_list": {
|
||||
"items": 7,
|
||||
"page_limit": 2,
|
||||
"foreign_cursors_rejected": 3,
|
||||
"changed_limit": [
|
||||
1,
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"duration_seconds": 3.1466
|
||||
},
|
||||
{
|
||||
"suite": "read-after-write",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"writers": 10,
|
||||
"messages": 100,
|
||||
"concurrency": 4
|
||||
},
|
||||
"duration_seconds": 7.5526
|
||||
}
|
||||
]
|
||||
}
|
||||
+11030
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
# HTTP latency matrix
|
||||
|
||||
Preliminary closed-loop measurements, not selected application budgets.
|
||||
|
||||
| Operation | Clients | n | Errors | Successful RPS | p50 ms | p95 ms | p99 ms |
|
||||
|---|---:|---:|---:|---:|---:|---:|---:|
|
||||
| registration | 1 | 6 | 0 | 2.74 | 301.80 | 725.21 | 725.21 |
|
||||
| login | 1 | 6 | 0 | 7.10 | 125.81 | 173.51 | 173.51 |
|
||||
| me | 1 | 6 | 0 | 478.51 | 1.98 | 2.43 | 2.43 |
|
||||
| create_chat | 1 | 6 | 0 | 397.04 | 2.24 | 3.41 | 3.41 |
|
||||
| send_message | 1 | 6 | 0 | 326.10 | 2.64 | 3.80 | 3.80 |
|
||||
| history_first | 1 | 6 | 0 | 258.42 | 3.76 | 4.46 | 4.46 |
|
||||
| history_deep | 1 | 6 | 0 | 231.49 | 3.95 | 5.33 | 5.33 |
|
||||
| logout | 1 | 6 | 0 | 0.96 | 1033.60 | 1141.33 | 1141.33 |
|
||||
| registration | 5 | 30 | 0 | 7.21 | 593.69 | 1124.32 | 1248.61 |
|
||||
| login | 5 | 30 | 0 | 6.13 | 706.27 | 1385.43 | 1463.05 |
|
||||
| me | 5 | 30 | 0 | 1279.44 | 3.15 | 5.46 | 5.60 |
|
||||
| create_chat | 5 | 30 | 0 | 441.97 | 5.85 | 37.76 | 37.84 |
|
||||
| send_message | 5 | 30 | 0 | 863.69 | 4.37 | 8.71 | 8.87 |
|
||||
| history_first | 5 | 30 | 0 | 476.83 | 7.07 | 26.16 | 26.22 |
|
||||
| history_deep | 5 | 30 | 0 | 543.70 | 8.09 | 11.84 | 12.25 |
|
||||
| logout | 5 | 30 | 0 | 4.90 | 1029.49 | 1049.40 | 1050.12 |
|
||||
| registration | 10 | 60 | 0 | 3.02 | 2272.89 | 5556.08 | 7157.90 |
|
||||
| login | 10 | 60 | 0 | 2.25 | 3563.76 | 7404.62 | 8596.96 |
|
||||
| me | 10 | 60 | 0 | 290.00 | 12.22 | 80.18 | 85.43 |
|
||||
| create_chat | 10 | 60 | 0 | 881.58 | 9.53 | 16.01 | 20.79 |
|
||||
| send_message | 10 | 60 | 0 | 788.48 | 7.53 | 29.59 | 31.52 |
|
||||
| history_first | 10 | 60 | 0 | 367.22 | 20.62 | 45.96 | 51.02 |
|
||||
| history_deep | 10 | 60 | 0 | 307.29 | 22.29 | 63.99 | 77.49 |
|
||||
| logout | 10 | 60 | 0 | 10.00 | 976.81 | 1039.06 | 1039.21 |
|
||||
|
||||
Full conditions, warmup/error timings and CPU/RAM samples: results.json. HTTP times are not SQL times. Small n does not support stable tail estimates.
|
||||
+14210
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
{"action": "restart-cache", "project": "lab2-test-71174ad0fefa", "before": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:24:07.119127258Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:25:33.445825923Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
{"action": "restart-cache", "project": "lab2-test-71174ad0fefa", "before": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:25:33.445825923Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:25:36.804924299Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-71174ad0fefa", "before": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:24:13.545071261Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:24:07.129252466Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:25:36.804924299Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:27:45.094507512Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:27:44.80633772Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:27:44.748977136Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-71174ad0fefa", "before": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:27:45.094507512Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:27:44.80633772Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:27:44.748977136Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:27:52.241914792Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:27:51.521980959Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:27:51.35071525Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-71174ad0fefa", "before": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:27:52.241914792Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:27:51.521980959Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:27:51.35071525Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:31:38.416207425Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:31:37.796610633Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:31:37.146262716Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-71174ad0fefa", "before": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:31:38.416207425Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:31:37.796610633Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:31:37.146262716Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"api": {"id": "bc8a4b116b9d05292a3127e6d55bae47685fc10c24e05cf7609c5e6fc7d24920", "started_at": "2026-10-28T11:31:43.204912927Z", "running": true, "volumes": []}, "postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:31:42.795308052Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}, "redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:31:42.877580844Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
{"action": "stop-db", "project": "lab2-test-71174ad0fefa", "before": {"postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:31:42.795308052Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}}, "after": {"postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:31:42.795308052Z", "running": false, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}}}
|
||||
{"action": "start-db", "project": "lab2-test-71174ad0fefa", "before": {"postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:31:42.795308052Z", "running": false, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}}, "after": {"postgres": {"id": "c615907f2834982a0695c0d9a61f35b923b6470041d4124bbeafb9a8e26e070e", "started_at": "2026-10-28T11:31:51.499678584Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_postgres_data"]}}}
|
||||
{"action": "stop-cache", "project": "lab2-test-71174ad0fefa", "before": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:31:42.877580844Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:31:42.877580844Z", "running": false, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
{"action": "start-cache", "project": "lab2-test-71174ad0fefa", "before": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:31:42.877580844Z", "running": false, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}, "after": {"redis": {"id": "f7b07e02d8680ad9cac6d80fd2177e58726c35b48268e0c5ff71b37164ba0b2c", "started_at": "2026-10-28T11:32:01.581486713Z", "running": true, "volumes": ["lab2-test-71174ad0fefa_redis_data"]}}}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "sql-plan",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"actual_rows": 10000,
|
||||
"chat_distribution_percent": [
|
||||
70,
|
||||
20,
|
||||
6,
|
||||
3,
|
||||
1
|
||||
],
|
||||
"chat_message_counts": [
|
||||
7000,
|
||||
2000,
|
||||
600,
|
||||
300,
|
||||
100
|
||||
],
|
||||
"deep_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.033,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.009,
|
||||
"Actual Total Time": 0.021,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.009,
|
||||
"Actual Total Time": 0.015,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "((chat_id = 'de389991-85b0-489c-abd0-b03c8f4a2844'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, 'a44b6c42-f6cb-400b-9c1f-c2fb94124a88'::uuid)))",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 1399,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 532.15
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 19.67
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.042,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"first_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.029,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.006,
|
||||
"Actual Total Time": 0.018,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.005,
|
||||
"Actual Total Time": 0.013,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "(chat_id = 'de389991-85b0-489c-abd0-b03c8f4a2844'::uuid)",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 7000,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 838.45
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 6.39
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.047,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"go_version": "go1.27.1",
|
||||
"mode": "plan",
|
||||
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"rows": 10000,
|
||||
"scan_budget_rows": 1000,
|
||||
"schema": "lab2_test_8baa4931a28b47619d54a056535e7deb"
|
||||
},
|
||||
"duration_seconds": 4.3681
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"project": "lab2-test-71174ad0fefa",
|
||||
"status": "FAIL",
|
||||
"results": [
|
||||
{
|
||||
"check": "contracts",
|
||||
"status": "PASS",
|
||||
"seconds": 1.362
|
||||
},
|
||||
{
|
||||
"check": "harness",
|
||||
"status": "PASS",
|
||||
"seconds": 0.096
|
||||
},
|
||||
{
|
||||
"check": "lab2-harness",
|
||||
"status": "PASS",
|
||||
"seconds": 0.244
|
||||
},
|
||||
{
|
||||
"check": "compose-up",
|
||||
"status": "PASS",
|
||||
"seconds": 32.491
|
||||
},
|
||||
{
|
||||
"check": "go-race-build",
|
||||
"status": "PASS",
|
||||
"seconds": 6.385
|
||||
},
|
||||
{
|
||||
"check": "go-race",
|
||||
"status": "FAIL",
|
||||
"detail": "CheckFailure"
|
||||
},
|
||||
{
|
||||
"check": "go-build",
|
||||
"status": "PASS",
|
||||
"seconds": 6.621
|
||||
},
|
||||
{
|
||||
"check": "go-vet",
|
||||
"status": "PASS",
|
||||
"seconds": 1.178
|
||||
},
|
||||
{
|
||||
"check": "teacher-smoke",
|
||||
"status": "PASS",
|
||||
"seconds": 3.734
|
||||
},
|
||||
{
|
||||
"check": "auth-normal",
|
||||
"status": "PASS",
|
||||
"seconds": 19.218
|
||||
},
|
||||
{
|
||||
"check": "business",
|
||||
"status": "PASS",
|
||||
"seconds": 15.602
|
||||
},
|
||||
{
|
||||
"check": "sql-plan-10000",
|
||||
"status": "PASS",
|
||||
"seconds": 4.698
|
||||
},
|
||||
{
|
||||
"check": "latency-matrix",
|
||||
"status": "FAIL",
|
||||
"detail": "CheckFailure"
|
||||
},
|
||||
{
|
||||
"check": "teacher-persistence",
|
||||
"status": "PASS",
|
||||
"seconds": 12.174
|
||||
},
|
||||
{
|
||||
"check": "auth-persistence",
|
||||
"status": "PASS",
|
||||
"seconds": 4.738
|
||||
},
|
||||
{
|
||||
"check": "postgres-outage",
|
||||
"status": "PASS",
|
||||
"seconds": 8.233
|
||||
},
|
||||
{
|
||||
"check": "redis-outage",
|
||||
"status": "PASS",
|
||||
"seconds": 10.43
|
||||
},
|
||||
{
|
||||
"check": "short-ttl-api",
|
||||
"status": "PASS",
|
||||
"seconds": 1.097
|
||||
},
|
||||
{
|
||||
"check": "auth-expiry",
|
||||
"status": "PASS",
|
||||
"seconds": 3.162
|
||||
},
|
||||
{
|
||||
"check": "cleanup",
|
||||
"status": "PASS",
|
||||
"seconds": 1.729
|
||||
}
|
||||
],
|
||||
"redis_fixture": "critical session store; explicit REDIS_ADDR=redis:6379 in test override"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"scope": "temporary Git snapshot of current working tree; not remote HEAD",
|
||||
"acceptance_exit": 1,
|
||||
"bootstrap": "PASS",
|
||||
"source_clean_after_tests": true,
|
||||
"detail": "Clone/bootstrap completed; acceptance tests failed, see acceptance summary",
|
||||
"source_files": 137
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
".dockerignore": "62c0534ad74d9f0e2982e97d1fbadb66d80c493ed237df5bcb9fbb797062eb38",
|
||||
".env.example": "cde057274dd6b60a2ab0b9fab4c6f267479263263c6a204ab664739e75a12650",
|
||||
".gitea/workflows/application.yml": "27cbd50f8cbcabfaa5a77a2c014e2f8878ed23ab744c5a54e2422101807ed3e5",
|
||||
".github/pull_request_template.md": "857bbb4686e50fec35f1eaf539c23395dd6359392228fa65a9eb2a537f53ec92",
|
||||
".github/workflows/contracts.yml": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8",
|
||||
".gitignore": "07f63dcce41b3cf5d46d8cb96a70d0c34abcf10b72b4a78e85a9d13f765b5d56",
|
||||
"CONTRIBUTING.md": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e",
|
||||
"COURSE.md": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971",
|
||||
"Dockerfile": "eddd3924e99335ce0253792e85bcabb19b50d684c34073dd3b6ff958d0f7c652",
|
||||
"Dockerfile.example": "fd7ac9491c0c3c663b083c41a762fb38bc2d212fa4a2ed3e6a0702af72108709",
|
||||
"Dockerfile.migrate": "0ab04cba4c2bb033c4d7c7d3a5984d8a27e8f355ff90e6023c3b7912d2211dec",
|
||||
"MAINTAINERS.md": "59a70ede89ba308a782f0695f8441dfa4b75479d155966303ab86addc36f8d1f",
|
||||
"Makefile": "668b2449e19b364092611561a28ca2cc83b6c8b35fde1c52ecfd2072795e6ca0",
|
||||
"README.md": "4f14a97911bd3ea335868d37fec187d1738b42f91a7d4780d33b721edf25b6dc",
|
||||
"REPORT.md": "af458fd74b144e0f2547e34ae41686b78a400968e8ba177211117aaf5afac463",
|
||||
"cmd/api/main.go": "c5d22be9734c94771ac5e8abf79288fbf961a5d178adac56e25c6fb2964ea8f9",
|
||||
"cmd/migrate/main.go": "6e9d413a86f53cf5f2e83d5ed0308af9b2c33e69fcb3d061b19bf480e352f257",
|
||||
"cmd/migrate/main_test.go": "a88f2252d70caf644904331182dc3afd4df48b825a0329a82482798ec90b5d46",
|
||||
"cmd/migrate/postgres_test.go": "7a3cc1dea289b85b6aed835bb152aab7e5eb3124e54a490a7177b6e184b876d8",
|
||||
"cmd/migrate/roundtrip_test.go": "713f6ab6a874b52ca5d559042b4de50f48e6d1535934fd4982206d1832f0a92e",
|
||||
"compose.example.yaml": "bce35d0c70a825914ad0ff3a0bcdf6e7fbf520b399c576f0d75361068efd2e25",
|
||||
"compose.yaml": "eba95e1b3184314dab822603776d701fc0aa04528f4094ee3e7ab8bc1f396d10",
|
||||
"contracts/README.md": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f",
|
||||
"contracts/examples.json": "0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45",
|
||||
"contracts/infrastructure.json": "7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8",
|
||||
"contracts/openapi.json": "cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4",
|
||||
"db/migrations/00001_init_schema.sql": "32223afbc24f8250de055690c9e86299ebf2cd7a0d3ef2c59d3b2a5aaa41e84e",
|
||||
"db/migrations/00002_add_created_at_defaults.sql": "e0680838294b93f916d727a3a20d83aca7c3f74077202c9696b1fc73cda14649",
|
||||
"db/migrations/00003_drop_session_table.sql": "1b666cee95b9eb1210b0a303de95994bd3c24628e9d9fdb1e1f3318edb756c3d",
|
||||
"db/migrations/embed.go": "a42e52ab05bc89b557a5bc6b3f0215883d99c4a039a8b32d6c19e66b2f769508",
|
||||
"db/queries/chat_members.sql": "e70940e35f325550041c290a571901ead4a6f93dece857ffa229f2f1c83eddf8",
|
||||
"db/queries/chats.sql": "8c52c762da78eb3a3eb7402b17ec87bd7fc2e1387f6ddb8e297b4f2d75beca7b",
|
||||
"db/queries/messages.sql": "022c9f7aade55345f6cebd31f38084e73cb9a1419d56fa5316eaa36c9da52860",
|
||||
"db/queries/users.sql": "0d73a6d46f4d4a1b0af37b750a208c07a38249f76974b41748f32c1949f990df",
|
||||
"examples/requests.http": "633c7b0f881173920b61a67c029e9bb4b59a385e5e34ab1b3d3254556602d554",
|
||||
"go.mod": "73616cf36b558a229850da12bc47134a6a0e136594a1e411ca4f08db1bf57950",
|
||||
"go.sum": "3aa6dbd823977e4bf7a87a60c2718780e8bbeab8667b5f838e15cd7e3bbba77d",
|
||||
"infra/MIGRATIONS.md": "6c892bff25dfce17eadc1c263890e0cd97b77df5fb8923473a97ff0626f4c99c",
|
||||
"infra/README.md": "6ff8d430a1fc9a6588d635744ab1e9bd3a53a52beb85d9fd59bbf65b026fc837",
|
||||
"internal/config/config.go": "07097163d3e67de19db47d1183faa2a9e6ef7d407b94b93ff6f5c5f111b44db3",
|
||||
"internal/database/postgres.go": "3925c0bc9ae01bff9a37138a0dd19b38074bc2a70536b3a148f568b952516a21",
|
||||
"internal/database/redis.go": "5b85a60bb0d1cb156c61bcd3c518c41c955f53c1d12da265b5e3a5dd7a397602",
|
||||
"internal/database/sqlc/chat_members.sql.go": "9e8cd177f6f888c72d19857fd4748fbb2020770c1af772a463fe3d1b813b37ee",
|
||||
"internal/database/sqlc/chats.sql.go": "3dccf4b0ffa918ec5a3b66026b3dab4027456b499486359881000d184944802c",
|
||||
"internal/database/sqlc/db.go": "3ca71a7f007a39987cae838da64303419dd804d2d1b6227676f47177971d76cf",
|
||||
"internal/database/sqlc/messages.sql.go": "224d6d8bd21426759ca6500e0eb3563564d51e639f1b6c64db4b3a43a5241c2a",
|
||||
"internal/database/sqlc/models.go": "86f3abe4eb3e47e6b90051139e862377a61999108761b7eb3fcd7d4277b66505",
|
||||
"internal/database/sqlc/users.sql.go": "b954abd5b5964df39c20d857a60105513af84c8df68ce1ac9421da541a7800f4",
|
||||
"internal/model/chat.go": "e0213f8360ea106b3627aa50cc87710153ff8e353475b42c2becdb9a32592660",
|
||||
"internal/model/message.go": "b9ce1bdc5fd8ccf20d18033f56ac47c8a64352584ee29ab27915535557003a72",
|
||||
"internal/model/session.go": "b455d730e4e3efc95c6d1fe74ab43d86153e4bf863c09efd36bfe57efc669bc2",
|
||||
"internal/model/user.go": "4bfd2d78e72f1c80b12541f2abc8500613e8f4d101575bd5d74fac22b52e3617",
|
||||
"internal/repository/chat.go": "7ef8dca39ff371f16d351b073199c25f719db22c7a525ab76ea7aca948efa157",
|
||||
"internal/repository/errors.go": "b6f43f5c0de35024d2d217dfccc857a777dc112bc7a458d99a5fcc5828ce1bb2",
|
||||
"internal/repository/message.go": "fda4e57eb02f3fc927ee14f6a39deb689676487a8d0fb8030a7ce629f55eac1c",
|
||||
"internal/repository/postgres/chat.go": "d757c579e5b6599ab9366aef46fd59f9652247f3d947615aa46c919746b65ea5",
|
||||
"internal/repository/postgres/errors.go": "580e5e599f7af8a403404c6850986e88efceda6393d21e772ac108be34004ba9",
|
||||
"internal/repository/postgres/message.go": "fdb48e51279be725aa6036ad45d2ca2641a57671f8c385f372f378b20b363643",
|
||||
"internal/repository/postgres/user.go": "eb6770e5cdd96b16a6e9d2116af89a6dd466dfbca4f4c179fe06c30c487e53c4",
|
||||
"internal/repository/postgres/utils.go": "6c5c83a8ad8ecf611812fbf8c90735e2590a09dec88cd914a10f6b36a9f041b7",
|
||||
"internal/repository/redis/errors.go": "ab56571d1d0b7d13b7d7ff868916f7e506c5a54c29e6bb211b3021ad4bf601ab",
|
||||
"internal/repository/redis/session.go": "c1654fea2ba47734a5403d6f6cbb2fe70fbe7e6e37166ae75f338d3490981de1",
|
||||
"internal/repository/session.go": "071285ff4d8033a6512a7256583a1cb32de782d6fd9f1696fac109927f7db699",
|
||||
"internal/repository/user.go": "bee65136137d97bea2240411c96a93cd945b1b9145452416f7a83733a1fd28e7",
|
||||
"internal/security/password.go": "8f74bef9216a2d12aa734e04fa786eac6b31f1378fe42f729fe1b97495c10487",
|
||||
"internal/service/auth.go": "71b8960640866e515e9060159af750c418d97a6373d2616c3b59b764172aa54c",
|
||||
"internal/service/chat.go": "3a6433e288f9ad02a20f9cf6fde911e3f1fcce90de79080dd12fcdf2635f2450",
|
||||
"internal/service/errors.go": "33df533d658fed44dded592ee31b4ea04ccf3deb6d6c7a2161ea4cfb40719688",
|
||||
"internal/service/helper.go": "390320fa296d9637630e6ac0d90c1229002b578a29186cad414896d5f4d1b8a6",
|
||||
"internal/service/message.go": "9b5523c35bc667fadcb8ad0c7352dde4d455a1b4cec47386b72e2685c2e72b91",
|
||||
"internal/service/user.go": "542051ef3eeff15d340979a615a7e0da3d21ed7ed93bea2547ab52d8e303b5e2",
|
||||
"internal/transport/http/handler/auth.go": "f175a570d47ca38ce627d0bc88b6f6a2adbf648345229fa961ea0144717744f1",
|
||||
"internal/transport/http/handler/auth_types.go": "5ffcd182606a77d538efb5f1a51df23b8a324a605b5d226026048d34c409ebdb",
|
||||
"internal/transport/http/handler/chat.go": "e5214ebf94ac9b8f37537e1a3fc844a2e8ae4e9b5aa159fe2b6e4da9ab2342f0",
|
||||
"internal/transport/http/handler/chat_types.go": "d181bce0f003749d813c1254df4c8ebcc1b99ff506b61efa6899da4a499e95f4",
|
||||
"internal/transport/http/handler/health.go": "6a6b8aacba661b1eff7c2413009b223efd7f32f4cc04fcd41116396065560b91",
|
||||
"internal/transport/http/handler/health_types.go": "02ee3031e10fbb279e020f409fbd905ae2640aa306b2c558c3f8e6dcfe9efa80",
|
||||
"internal/transport/http/handler/message.go": "43dfcabbd24fe809e407958fed34bf567bdc6dd45c61f06c2e6d6bdd3d68b3ed",
|
||||
"internal/transport/http/handler/message_types.go": "b7649808c889cc9518bf5710415550abf4bed9ad5052a327c88181ed3b45aafc",
|
||||
"internal/transport/http/handler/user.go": "86fd65ed176e9a83dc27c1112ff8384bc5aa32a92410290fb505d715ca167775",
|
||||
"internal/transport/http/handler/user_types.go": "0c4450be649afe5edf4e8d3ac9baada79deb9e1423ace56b87aa227ebd0eb998",
|
||||
"internal/transport/http/httputils/helper.go": "23e744b36e2972315d5ad4735eda3cb992c4aae824922fcacfa8ea280411cdff",
|
||||
"internal/transport/http/middleware/auth.go": "28c1d54da2c371289a3ad2aaeb8365135a38b0afe555a7cffcec0128ee7491b8",
|
||||
"internal/transport/http/middleware/context.go": "f6db0e807659f30b05cae91f73c70d87f359760c57110e0d25b49a65bd0394a5",
|
||||
"internal/transport/http/middleware/logging.go": "a477fda512953eb9f46266537c12ace9cc992ba8f036a5b041f9f8295bfd2097",
|
||||
"internal/transport/http/router.go": "c452f3d9e9781cdfd45212f901ce286b285f566ade65048a985ea0cdae7c67e4",
|
||||
"lab.json": "d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4",
|
||||
"requirements-dev.txt": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525",
|
||||
"scripts/check_contract.py": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671",
|
||||
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
|
||||
"scripts/restart.sh": "6e36116c0058f4e9641a0f3ff1a2cbe4baabd53f82f9b2f784f5e37410dc3791",
|
||||
"scripts/setup-tests.sh": "10d13634c0f893d339dbe1551e75aa404c975a9c56627857daba9471afbeb945",
|
||||
"scripts/start-postgres.sh": "fd71356ee089f5e8128e29a5cfddaf72ede54dbf40cc10aa145b46b8130d4363",
|
||||
"scripts/start-redis.sh": "7054226bfbdce91e5519120384f9897c67c825421e2c7b940b9b501738931094",
|
||||
"scripts/stop-postgres.sh": "d967fcb6530f765c82b96b80951e6306cb282d53288a63e1384e29dc8b708baf",
|
||||
"scripts/stop-redis.sh": "b8824c1270a95490696c9770de3cf75bda8add8732e4ee6ea32e9f68e79e8fd7",
|
||||
"scripts/validate_openapi.py": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54",
|
||||
"sqlc.yaml": "4e72de8f0b44d6d2b6a44da89f86dd5326e85077a5e7a8ae71816a5dff1fbaa3",
|
||||
"student-tests/AUTH_TESTS.md": "56cebd1a5c360a9ea4ae094aa18e11e629867bc1bc5f3e32d68726a086767b40",
|
||||
"student-tests/README.md": "00e945355d7b60270896e7731ac1e6dcfaa12f8e8a2490cfddd2ef6b3ff0300d",
|
||||
"student-tests/RUNNING.md": "fab28be84df902d89b0813cb92ea1dd962dd813224eadbf4cc98e439570aaeca",
|
||||
"student-tests/auth_contract.py": "1717a79c1d28d74803ffd8621f57863c8f8384c38d5876b7ccf73c6da4c8af0d",
|
||||
"student-tests/auth_tests/auth_handler_test.go": "a7055f5a1c99bec93b05da772a7d5020e21054704383bcc6f257c1e599bfb654",
|
||||
"student-tests/auth_tests/budgets_test.go": "e931ded5f0cbf66207c8b9ae014ab0fcc02ddc3e5ddfe201aa18cb339f894206",
|
||||
"student-tests/auth_tests/errors_test.go": "5c0bf416526404ab5fce4b2943ac5eb54280948cf1992ef56dc39c0e5ae074ed",
|
||||
"student-tests/auth_tests/logout_diagnostic_test.go": "cd5032f553de3704c5514d5b4bf395fc3088f8e30963060f5e1374020ac0e8a6",
|
||||
"student-tests/auth_tests/password_test.go": "c83d4db74513787fec789759f10735e2ee6614fb9e04b2ac7d78c710e39047da",
|
||||
"student-tests/auth_tests/redis_test.go": "1815f5c4925442696f4a7ba4022525c53b31b6668c0ce575dc56a078209cb4c4",
|
||||
"student-tests/auth_tests/restart_http_test.go": "26df36f9a3446abfc0e62d6f256f676e259c1b65359de72a1a28c4748a1611a2",
|
||||
"student-tests/auth_tests/storage_test.go": "96dfe8c4d98663b272fb46a3f25607d796ec232953829624272d1be159974fae",
|
||||
"student-tests/auth_tests/transport_test.go": "ffa252b6047a2f04d7dc14c12e721f52c600b9ce199a0805e4717b817672ff92",
|
||||
"student-tests/check_clone.py": "f84b7c7b5d6b85d5979d14d28c40529e1f0c3684ff7189ef5a5af78eaa267ff6",
|
||||
"student-tests/diagnostics/run_waitaof.py": "02425bc72c5c43cc99f3d442ba9476b4a476b04aa36236272701a304442d709b",
|
||||
"student-tests/diagnostics/waitaof/main.go": "5f6607fc11d8f5988823b8560af1545cc47c165f2d12fdb46e80c408add261e5",
|
||||
"student-tests/lab2/.gitignore": "20f5cabd213a016b080941d193994e9a1c48d1e1df16b3bf758fd348c325808d",
|
||||
"student-tests/lab2/README.md": "e7e8182873ce460cea1559df138014694ea7f176adea16e9d196dd2e31d31e78",
|
||||
"student-tests/lab2/adapters/compose_action.py": "d35a530d2d506cd0e66583ba4d9b3ef8b240e18956d069401ea750fc9b74b62b",
|
||||
"student-tests/lab2/adapters/custom.example.py": "ff1e83d2be9dc50a2bfba1314c4fb183294ed8c1d79a80258e021c13a863eacf",
|
||||
"student-tests/lab2/budgets.py": "8125332dd6e859023aaf9a35c74231b16d7509fa3e08ec65ba8b900b453aba72",
|
||||
"student-tests/lab2/business.py": "f41c32ab37806c0061dbbcf5b19c727252631a7e6d57245789a7ed6d83369184",
|
||||
"student-tests/lab2/ci.application.example.yml": "85febc118b77d188b92ea3512f7bdb30ab4b83d9e82b9548478fa621fb579f58",
|
||||
"student-tests/lab2/config.example.json": "70ab6c60bbf88c41151c193b84ecf170b6d2179c2dbdb479224e33c074bddbab",
|
||||
"student-tests/lab2/research.py": "777300bc746d5e18e8b49ce7ae7e077dd7fce6fe53e4d7158e4864eb579fecac",
|
||||
"student-tests/lab2/resources.py": "47aa2f4563e03d69a08054de492cea155f250f0bf2205a7c399fe7cab996d1ab",
|
||||
"student-tests/lab2/run.py": "237022ee909889859948fb67bf38b96efc9310abb8782223b67d9d4957df6edf",
|
||||
"student-tests/lab2/sqlprobe/main.go": "1935ffc0cba087ef85fb2d5cb7bcec22fe1acfb35ecc57c44d54e2d559284dab",
|
||||
"student-tests/lab2/sqlprobe/main_test.go": "1831982849afc4b1537d76f783c423c38fe6a506ccc75b105a4314a1dcee6261",
|
||||
"student-tests/lab2/sqlprobe/research.go": "fd8f5584d027661d1b0e2de52b0e564a93d82f5d1c2b4b8a3cf0400d3ed91a28",
|
||||
"student-tests/lab2/test_harness.py": "4d009d6090436bd9a78acf944b2b6375ade38b0f6b5661d24baa046c4e965b60",
|
||||
"student-tests/stack.py": "b1e48399796117846d1a6c133b8c674e155225e87d8d6c6390db83147991cad8",
|
||||
"student-tests/test_stack.py": "9032d4ecc089c168ee4ac3039571204c3739040f43c8d5a3bc571fa4c16b5827",
|
||||
"student-tests/validation_edges.py": "c232f9be4c394515025c8ac0fbd8444579407966e18b198faed5279147764739",
|
||||
"tests/README.md": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5",
|
||||
"tests/client.py": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d",
|
||||
"tests/load.py": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933",
|
||||
"tests/resilience.py": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b",
|
||||
"tests/smoke.py": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "business-boundaries",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"json_cases": 174
|
||||
},
|
||||
"duration_seconds": 9.0
|
||||
},
|
||||
{
|
||||
"suite": "business-cursors",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"message_items": 7,
|
||||
"chat_list": {
|
||||
"items": 7,
|
||||
"page_limit": 2,
|
||||
"foreign_cursors_rejected": 3,
|
||||
"changed_limit": [
|
||||
1,
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"duration_seconds": 14.5278
|
||||
},
|
||||
{
|
||||
"suite": "read-after-write",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"writers": 10,
|
||||
"messages": 100,
|
||||
"concurrency": 4
|
||||
},
|
||||
"duration_seconds": 12.9649
|
||||
}
|
||||
]
|
||||
}
|
||||
+11106
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
# HTTP latency matrix
|
||||
|
||||
Preliminary closed-loop measurements, not selected application budgets.
|
||||
|
||||
| Operation | Clients | n | Errors | Successful RPS | p50 ms | p95 ms | p99 ms |
|
||||
|---|---:|---:|---:|---:|---:|---:|---:|
|
||||
| registration | 1 | 6 | 0 | 1.56 | 465.43 | 1480.26 | 1480.26 |
|
||||
| login | 1 | 6 | 0 | 3.52 | 189.16 | 517.90 | 517.90 |
|
||||
| me | 1 | 6 | 0 | 459.89 | 1.97 | 2.46 | 2.46 |
|
||||
| create_chat | 1 | 6 | 0 | 338.96 | 2.72 | 3.42 | 3.42 |
|
||||
| send_message | 1 | 6 | 0 | 306.50 | 2.73 | 4.40 | 4.40 |
|
||||
| history_first | 1 | 6 | 0 | 230.83 | 4.10 | 5.38 | 5.38 |
|
||||
| history_deep | 1 | 6 | 0 | 114.01 | 6.81 | 14.28 | 14.28 |
|
||||
| logout | 1 | 6 | 0 | 0.97 | 1035.21 | 1042.37 | 1042.37 |
|
||||
| registration | 5 | 30 | 0 | 6.29 | 674.84 | 1294.04 | 1312.91 |
|
||||
| login | 5 | 30 | 0 | 5.76 | 754.13 | 1578.86 | 1581.61 |
|
||||
| me | 5 | 30 | 0 | 668.00 | 4.93 | 15.86 | 18.64 |
|
||||
| create_chat | 5 | 30 | 0 | 451.19 | 5.43 | 37.89 | 38.43 |
|
||||
| send_message | 5 | 30 | 0 | 642.23 | 6.26 | 13.30 | 13.97 |
|
||||
| history_first | 5 | 30 | 0 | 247.00 | 10.62 | 52.00 | 58.58 |
|
||||
| history_deep | 5 | 30 | 0 | 60.81 | 57.40 | 184.34 | 201.57 |
|
||||
| logout | 5 | 30 | 0 | 5.01 | 1031.75 | 1138.25 | 1138.96 |
|
||||
| registration | 10 | 60 | 0 | 2.90 | 2238.33 | 6173.01 | 7078.47 |
|
||||
| login | 10 | 60 | 1 | 1.61 | 5194.77 | 12024.36 | 13739.67 |
|
||||
| me | 10 | 60 | 0 | 652.04 | 8.51 | 15.03 | 42.07 |
|
||||
| create_chat | 10 | 60 | 0 | 614.28 | 13.15 | 25.35 | 31.06 |
|
||||
| send_message | 10 | 60 | 0 | 882.14 | 8.06 | 22.72 | 25.11 |
|
||||
| history_first | 10 | 60 | 0 | 76.07 | 50.15 | 469.75 | 564.19 |
|
||||
| history_deep | 10 | 60 | 0 | 313.15 | 23.78 | 54.59 | 68.14 |
|
||||
| logout | 10 | 60 | 0 | 9.91 | 1032.30 | 1052.74 | 1054.88 |
|
||||
|
||||
Full conditions, warmup/error timings and CPU/RAM samples: results.json. HTTP times are not SQL times. Small n does not support stable tail estimates.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
{"action": "restart-cache", "project": "lab2-test-0667191d2e51", "before": {"redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:12:11.001047552Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}, "after": {"redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:15:33.80511534Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}}
|
||||
{"action": "restart-cache", "project": "lab2-test-0667191d2e51", "before": {"redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:15:33.80511534Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}, "after": {"redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:15:38.042055925Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-0667191d2e51", "before": {"api": {"id": "aa20d28ade9b0339ef5972248bdcb63a3e150ac44c1abc2091921404d9f91002", "started_at": "2026-10-28T11:12:17.49688668Z", "running": true, "volumes": []}, "postgres": {"id": "301d36f0d9d7b5661b748215cadd9f73c7e0a22a521c40cd6889d6d2d55400e5", "started_at": "2026-10-28T11:12:11.004086093Z", "running": true, "volumes": ["lab2-test-0667191d2e51_postgres_data"]}, "redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:15:38.042055925Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}, "after": {"api": {"id": "aa20d28ade9b0339ef5972248bdcb63a3e150ac44c1abc2091921404d9f91002", "started_at": "2026-10-28T11:21:37.582669383Z", "running": true, "volumes": []}, "postgres": {"id": "301d36f0d9d7b5661b748215cadd9f73c7e0a22a521c40cd6889d6d2d55400e5", "started_at": "2026-10-28T11:21:37.080171508Z", "running": true, "volumes": ["lab2-test-0667191d2e51_postgres_data"]}, "redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:21:36.705246216Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-0667191d2e51", "before": {"api": {"id": "aa20d28ade9b0339ef5972248bdcb63a3e150ac44c1abc2091921404d9f91002", "started_at": "2026-10-28T11:21:37.582669383Z", "running": true, "volumes": []}, "postgres": {"id": "301d36f0d9d7b5661b748215cadd9f73c7e0a22a521c40cd6889d6d2d55400e5", "started_at": "2026-10-28T11:21:37.080171508Z", "running": true, "volumes": ["lab2-test-0667191d2e51_postgres_data"]}, "redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:21:36.705246216Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}, "after": {"api": {"id": "aa20d28ade9b0339ef5972248bdcb63a3e150ac44c1abc2091921404d9f91002", "started_at": "2026-10-28T11:21:42.146469552Z", "running": true, "volumes": []}, "postgres": {"id": "301d36f0d9d7b5661b748215cadd9f73c7e0a22a521c40cd6889d6d2d55400e5", "started_at": "2026-10-28T11:21:41.792025219Z", "running": true, "volumes": ["lab2-test-0667191d2e51_postgres_data"]}, "redis": {"id": "f325b306a2c6f40e272153ce331056cd037df07df831b01e977fb3f32bda3b74", "started_at": "2026-10-28T11:21:41.610827302Z", "running": true, "volumes": ["lab2-test-0667191d2e51_redis_data"]}}}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "sql-plan",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"actual_rows": 10000,
|
||||
"chat_distribution_percent": [
|
||||
70,
|
||||
20,
|
||||
6,
|
||||
3,
|
||||
1
|
||||
],
|
||||
"chat_message_counts": [
|
||||
7000,
|
||||
2000,
|
||||
600,
|
||||
300,
|
||||
100
|
||||
],
|
||||
"deep_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.033,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.009,
|
||||
"Actual Total Time": 0.021,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.008,
|
||||
"Actual Total Time": 0.015,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "((chat_id = '896477a6-4a67-4884-9a7a-041bc50dd692'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, '9c66a614-3b0c-44c7-a008-38f6ecf9e118'::uuid)))",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 1399,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 532.2
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 19.68
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.042,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"first_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.036,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.006,
|
||||
"Actual Total Time": 0.02,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.006,
|
||||
"Actual Total Time": 0.015,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "(chat_id = '896477a6-4a67-4884-9a7a-041bc50dd692'::uuid)",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 7000,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 838.49
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 4,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 6.39
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.053,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"go_version": "go1.27.1",
|
||||
"mode": "plan",
|
||||
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"rows": 10000,
|
||||
"scan_budget_rows": 1000,
|
||||
"schema": "lab2_test_235fbb832f4b4e71a28d8af9157467ef"
|
||||
},
|
||||
"duration_seconds": 5.0465
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"project": "lab2-test-0667191d2e51",
|
||||
"scope": "cleanup of this chat timed-out disposable regression only",
|
||||
"removed": {
|
||||
"containers": [
|
||||
"aa20d28ade9b",
|
||||
"530f5929f3b9",
|
||||
"301d36f0d9d7",
|
||||
"f325b306a2c6"
|
||||
],
|
||||
"volumes": [
|
||||
"lab2-test-0667191d2e51_postgres_data",
|
||||
"lab2-test-0667191d2e51_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"555eb32c20c7"
|
||||
]
|
||||
},
|
||||
"remaining_containers": [],
|
||||
"remaining_volumes": [],
|
||||
"remaining_networks": []
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"scope": "temporary Git snapshot of current working tree; not remote HEAD",
|
||||
"detail": "TimeoutExpired"
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
".dockerignore": "62c0534ad74d9f0e2982e97d1fbadb66d80c493ed237df5bcb9fbb797062eb38",
|
||||
".env.example": "cde057274dd6b60a2ab0b9fab4c6f267479263263c6a204ab664739e75a12650",
|
||||
".gitea/workflows/application.yml": "27cbd50f8cbcabfaa5a77a2c014e2f8878ed23ab744c5a54e2422101807ed3e5",
|
||||
".github/pull_request_template.md": "857bbb4686e50fec35f1eaf539c23395dd6359392228fa65a9eb2a537f53ec92",
|
||||
".github/workflows/contracts.yml": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8",
|
||||
".gitignore": "07f63dcce41b3cf5d46d8cb96a70d0c34abcf10b72b4a78e85a9d13f765b5d56",
|
||||
"CONTRIBUTING.md": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e",
|
||||
"COURSE.md": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971",
|
||||
"Dockerfile": "eddd3924e99335ce0253792e85bcabb19b50d684c34073dd3b6ff958d0f7c652",
|
||||
"Dockerfile.example": "fd7ac9491c0c3c663b083c41a762fb38bc2d212fa4a2ed3e6a0702af72108709",
|
||||
"Dockerfile.migrate": "0ab04cba4c2bb033c4d7c7d3a5984d8a27e8f355ff90e6023c3b7912d2211dec",
|
||||
"MAINTAINERS.md": "59a70ede89ba308a782f0695f8441dfa4b75479d155966303ab86addc36f8d1f",
|
||||
"Makefile": "668b2449e19b364092611561a28ca2cc83b6c8b35fde1c52ecfd2072795e6ca0",
|
||||
"README.md": "4f14a97911bd3ea335868d37fec187d1738b42f91a7d4780d33b721edf25b6dc",
|
||||
"REPORT.md": "23886e42e84c977015e8f84fa65fcd44e13a5c220d753b4f48bd04b96c41ee39",
|
||||
"cmd/api/main.go": "c5d22be9734c94771ac5e8abf79288fbf961a5d178adac56e25c6fb2964ea8f9",
|
||||
"cmd/migrate/main.go": "6e9d413a86f53cf5f2e83d5ed0308af9b2c33e69fcb3d061b19bf480e352f257",
|
||||
"cmd/migrate/main_test.go": "a88f2252d70caf644904331182dc3afd4df48b825a0329a82482798ec90b5d46",
|
||||
"cmd/migrate/postgres_test.go": "7a3cc1dea289b85b6aed835bb152aab7e5eb3124e54a490a7177b6e184b876d8",
|
||||
"cmd/migrate/roundtrip_test.go": "713f6ab6a874b52ca5d559042b4de50f48e6d1535934fd4982206d1832f0a92e",
|
||||
"compose.example.yaml": "bce35d0c70a825914ad0ff3a0bcdf6e7fbf520b399c576f0d75361068efd2e25",
|
||||
"compose.yaml": "eba95e1b3184314dab822603776d701fc0aa04528f4094ee3e7ab8bc1f396d10",
|
||||
"contracts/README.md": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f",
|
||||
"contracts/examples.json": "0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45",
|
||||
"contracts/infrastructure.json": "7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8",
|
||||
"contracts/openapi.json": "cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4",
|
||||
"db/migrations/00001_init_schema.sql": "32223afbc24f8250de055690c9e86299ebf2cd7a0d3ef2c59d3b2a5aaa41e84e",
|
||||
"db/migrations/00002_add_created_at_defaults.sql": "e0680838294b93f916d727a3a20d83aca7c3f74077202c9696b1fc73cda14649",
|
||||
"db/migrations/00003_drop_session_table.sql": "1b666cee95b9eb1210b0a303de95994bd3c24628e9d9fdb1e1f3318edb756c3d",
|
||||
"db/migrations/embed.go": "a42e52ab05bc89b557a5bc6b3f0215883d99c4a039a8b32d6c19e66b2f769508",
|
||||
"db/queries/chat_members.sql": "e70940e35f325550041c290a571901ead4a6f93dece857ffa229f2f1c83eddf8",
|
||||
"db/queries/chats.sql": "8c52c762da78eb3a3eb7402b17ec87bd7fc2e1387f6ddb8e297b4f2d75beca7b",
|
||||
"db/queries/messages.sql": "022c9f7aade55345f6cebd31f38084e73cb9a1419d56fa5316eaa36c9da52860",
|
||||
"db/queries/users.sql": "0d73a6d46f4d4a1b0af37b750a208c07a38249f76974b41748f32c1949f990df",
|
||||
"examples/requests.http": "633c7b0f881173920b61a67c029e9bb4b59a385e5e34ab1b3d3254556602d554",
|
||||
"go.mod": "73616cf36b558a229850da12bc47134a6a0e136594a1e411ca4f08db1bf57950",
|
||||
"go.sum": "3aa6dbd823977e4bf7a87a60c2718780e8bbeab8667b5f838e15cd7e3bbba77d",
|
||||
"infra/MIGRATIONS.md": "6c892bff25dfce17eadc1c263890e0cd97b77df5fb8923473a97ff0626f4c99c",
|
||||
"infra/README.md": "6ff8d430a1fc9a6588d635744ab1e9bd3a53a52beb85d9fd59bbf65b026fc837",
|
||||
"internal/config/config.go": "07097163d3e67de19db47d1183faa2a9e6ef7d407b94b93ff6f5c5f111b44db3",
|
||||
"internal/database/postgres.go": "3925c0bc9ae01bff9a37138a0dd19b38074bc2a70536b3a148f568b952516a21",
|
||||
"internal/database/redis.go": "5b85a60bb0d1cb156c61bcd3c518c41c955f53c1d12da265b5e3a5dd7a397602",
|
||||
"internal/database/sqlc/chat_members.sql.go": "9e8cd177f6f888c72d19857fd4748fbb2020770c1af772a463fe3d1b813b37ee",
|
||||
"internal/database/sqlc/chats.sql.go": "3dccf4b0ffa918ec5a3b66026b3dab4027456b499486359881000d184944802c",
|
||||
"internal/database/sqlc/db.go": "3ca71a7f007a39987cae838da64303419dd804d2d1b6227676f47177971d76cf",
|
||||
"internal/database/sqlc/messages.sql.go": "224d6d8bd21426759ca6500e0eb3563564d51e639f1b6c64db4b3a43a5241c2a",
|
||||
"internal/database/sqlc/models.go": "86f3abe4eb3e47e6b90051139e862377a61999108761b7eb3fcd7d4277b66505",
|
||||
"internal/database/sqlc/users.sql.go": "b954abd5b5964df39c20d857a60105513af84c8df68ce1ac9421da541a7800f4",
|
||||
"internal/model/chat.go": "e0213f8360ea106b3627aa50cc87710153ff8e353475b42c2becdb9a32592660",
|
||||
"internal/model/message.go": "b9ce1bdc5fd8ccf20d18033f56ac47c8a64352584ee29ab27915535557003a72",
|
||||
"internal/model/session.go": "b455d730e4e3efc95c6d1fe74ab43d86153e4bf863c09efd36bfe57efc669bc2",
|
||||
"internal/model/user.go": "4bfd2d78e72f1c80b12541f2abc8500613e8f4d101575bd5d74fac22b52e3617",
|
||||
"internal/repository/chat.go": "7ef8dca39ff371f16d351b073199c25f719db22c7a525ab76ea7aca948efa157",
|
||||
"internal/repository/errors.go": "b6f43f5c0de35024d2d217dfccc857a777dc112bc7a458d99a5fcc5828ce1bb2",
|
||||
"internal/repository/message.go": "fda4e57eb02f3fc927ee14f6a39deb689676487a8d0fb8030a7ce629f55eac1c",
|
||||
"internal/repository/postgres/chat.go": "d757c579e5b6599ab9366aef46fd59f9652247f3d947615aa46c919746b65ea5",
|
||||
"internal/repository/postgres/errors.go": "580e5e599f7af8a403404c6850986e88efceda6393d21e772ac108be34004ba9",
|
||||
"internal/repository/postgres/message.go": "fdb48e51279be725aa6036ad45d2ca2641a57671f8c385f372f378b20b363643",
|
||||
"internal/repository/postgres/user.go": "eb6770e5cdd96b16a6e9d2116af89a6dd466dfbca4f4c179fe06c30c487e53c4",
|
||||
"internal/repository/postgres/utils.go": "6c5c83a8ad8ecf611812fbf8c90735e2590a09dec88cd914a10f6b36a9f041b7",
|
||||
"internal/repository/redis/errors.go": "ab56571d1d0b7d13b7d7ff868916f7e506c5a54c29e6bb211b3021ad4bf601ab",
|
||||
"internal/repository/redis/session.go": "c1654fea2ba47734a5403d6f6cbb2fe70fbe7e6e37166ae75f338d3490981de1",
|
||||
"internal/repository/session.go": "071285ff4d8033a6512a7256583a1cb32de782d6fd9f1696fac109927f7db699",
|
||||
"internal/repository/user.go": "bee65136137d97bea2240411c96a93cd945b1b9145452416f7a83733a1fd28e7",
|
||||
"internal/security/password.go": "8f74bef9216a2d12aa734e04fa786eac6b31f1378fe42f729fe1b97495c10487",
|
||||
"internal/service/auth.go": "71b8960640866e515e9060159af750c418d97a6373d2616c3b59b764172aa54c",
|
||||
"internal/service/chat.go": "3a6433e288f9ad02a20f9cf6fde911e3f1fcce90de79080dd12fcdf2635f2450",
|
||||
"internal/service/errors.go": "33df533d658fed44dded592ee31b4ea04ccf3deb6d6c7a2161ea4cfb40719688",
|
||||
"internal/service/helper.go": "390320fa296d9637630e6ac0d90c1229002b578a29186cad414896d5f4d1b8a6",
|
||||
"internal/service/message.go": "9b5523c35bc667fadcb8ad0c7352dde4d455a1b4cec47386b72e2685c2e72b91",
|
||||
"internal/service/user.go": "542051ef3eeff15d340979a615a7e0da3d21ed7ed93bea2547ab52d8e303b5e2",
|
||||
"internal/transport/http/handler/auth.go": "f175a570d47ca38ce627d0bc88b6f6a2adbf648345229fa961ea0144717744f1",
|
||||
"internal/transport/http/handler/auth_types.go": "5ffcd182606a77d538efb5f1a51df23b8a324a605b5d226026048d34c409ebdb",
|
||||
"internal/transport/http/handler/chat.go": "e5214ebf94ac9b8f37537e1a3fc844a2e8ae4e9b5aa159fe2b6e4da9ab2342f0",
|
||||
"internal/transport/http/handler/chat_types.go": "d181bce0f003749d813c1254df4c8ebcc1b99ff506b61efa6899da4a499e95f4",
|
||||
"internal/transport/http/handler/health.go": "6a6b8aacba661b1eff7c2413009b223efd7f32f4cc04fcd41116396065560b91",
|
||||
"internal/transport/http/handler/health_types.go": "02ee3031e10fbb279e020f409fbd905ae2640aa306b2c558c3f8e6dcfe9efa80",
|
||||
"internal/transport/http/handler/message.go": "43dfcabbd24fe809e407958fed34bf567bdc6dd45c61f06c2e6d6bdd3d68b3ed",
|
||||
"internal/transport/http/handler/message_types.go": "b7649808c889cc9518bf5710415550abf4bed9ad5052a327c88181ed3b45aafc",
|
||||
"internal/transport/http/handler/user.go": "86fd65ed176e9a83dc27c1112ff8384bc5aa32a92410290fb505d715ca167775",
|
||||
"internal/transport/http/handler/user_types.go": "0c4450be649afe5edf4e8d3ac9baada79deb9e1423ace56b87aa227ebd0eb998",
|
||||
"internal/transport/http/httputils/helper.go": "23e744b36e2972315d5ad4735eda3cb992c4aae824922fcacfa8ea280411cdff",
|
||||
"internal/transport/http/middleware/auth.go": "28c1d54da2c371289a3ad2aaeb8365135a38b0afe555a7cffcec0128ee7491b8",
|
||||
"internal/transport/http/middleware/context.go": "f6db0e807659f30b05cae91f73c70d87f359760c57110e0d25b49a65bd0394a5",
|
||||
"internal/transport/http/middleware/logging.go": "a477fda512953eb9f46266537c12ace9cc992ba8f036a5b041f9f8295bfd2097",
|
||||
"internal/transport/http/router.go": "c452f3d9e9781cdfd45212f901ce286b285f566ade65048a985ea0cdae7c67e4",
|
||||
"lab.json": "d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4",
|
||||
"requirements-dev.txt": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525",
|
||||
"scripts/check_contract.py": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671",
|
||||
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
|
||||
"scripts/restart.sh": "6e36116c0058f4e9641a0f3ff1a2cbe4baabd53f82f9b2f784f5e37410dc3791",
|
||||
"scripts/setup-tests.sh": "10d13634c0f893d339dbe1551e75aa404c975a9c56627857daba9471afbeb945",
|
||||
"scripts/start-postgres.sh": "fd71356ee089f5e8128e29a5cfddaf72ede54dbf40cc10aa145b46b8130d4363",
|
||||
"scripts/start-redis.sh": "7054226bfbdce91e5519120384f9897c67c825421e2c7b940b9b501738931094",
|
||||
"scripts/stop-postgres.sh": "d967fcb6530f765c82b96b80951e6306cb282d53288a63e1384e29dc8b708baf",
|
||||
"scripts/stop-redis.sh": "b8824c1270a95490696c9770de3cf75bda8add8732e4ee6ea32e9f68e79e8fd7",
|
||||
"scripts/validate_openapi.py": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54",
|
||||
"sqlc.yaml": "4e72de8f0b44d6d2b6a44da89f86dd5326e85077a5e7a8ae71816a5dff1fbaa3",
|
||||
"student-tests/AUTH_TESTS.md": "56cebd1a5c360a9ea4ae094aa18e11e629867bc1bc5f3e32d68726a086767b40",
|
||||
"student-tests/README.md": "00e945355d7b60270896e7731ac1e6dcfaa12f8e8a2490cfddd2ef6b3ff0300d",
|
||||
"student-tests/RUNNING.md": "e039f0ca892e8d610f89f2dbe9e7b3f356924249dde4bf7564ce779542140bb0",
|
||||
"student-tests/auth_contract.py": "1717a79c1d28d74803ffd8621f57863c8f8384c38d5876b7ccf73c6da4c8af0d",
|
||||
"student-tests/auth_tests/auth_handler_test.go": "a7055f5a1c99bec93b05da772a7d5020e21054704383bcc6f257c1e599bfb654",
|
||||
"student-tests/auth_tests/budgets_test.go": "e931ded5f0cbf66207c8b9ae014ab0fcc02ddc3e5ddfe201aa18cb339f894206",
|
||||
"student-tests/auth_tests/errors_test.go": "5c0bf416526404ab5fce4b2943ac5eb54280948cf1992ef56dc39c0e5ae074ed",
|
||||
"student-tests/auth_tests/logout_diagnostic_test.go": "cd5032f553de3704c5514d5b4bf395fc3088f8e30963060f5e1374020ac0e8a6",
|
||||
"student-tests/auth_tests/password_test.go": "c83d4db74513787fec789759f10735e2ee6614fb9e04b2ac7d78c710e39047da",
|
||||
"student-tests/auth_tests/redis_test.go": "1815f5c4925442696f4a7ba4022525c53b31b6668c0ce575dc56a078209cb4c4",
|
||||
"student-tests/auth_tests/restart_http_test.go": "26df36f9a3446abfc0e62d6f256f676e259c1b65359de72a1a28c4748a1611a2",
|
||||
"student-tests/auth_tests/storage_test.go": "96dfe8c4d98663b272fb46a3f25607d796ec232953829624272d1be159974fae",
|
||||
"student-tests/auth_tests/transport_test.go": "ffa252b6047a2f04d7dc14c12e721f52c600b9ce199a0805e4717b817672ff92",
|
||||
"student-tests/check_clone.py": "4ed39fe0adfdd9e327adbf77cfd382978d47befd073effdd530ded15b4ff8f7c",
|
||||
"student-tests/diagnostics/run_waitaof.py": "02425bc72c5c43cc99f3d442ba9476b4a476b04aa36236272701a304442d709b",
|
||||
"student-tests/diagnostics/waitaof/main.go": "5f6607fc11d8f5988823b8560af1545cc47c165f2d12fdb46e80c408add261e5",
|
||||
"student-tests/lab2/.gitignore": "20f5cabd213a016b080941d193994e9a1c48d1e1df16b3bf758fd348c325808d",
|
||||
"student-tests/lab2/README.md": "3708693615688d1c2bddbe3b2d1538185aba7240fdff185cbb582a449adfb717",
|
||||
"student-tests/lab2/adapters/compose_action.py": "d35a530d2d506cd0e66583ba4d9b3ef8b240e18956d069401ea750fc9b74b62b",
|
||||
"student-tests/lab2/adapters/custom.example.py": "ff1e83d2be9dc50a2bfba1314c4fb183294ed8c1d79a80258e021c13a863eacf",
|
||||
"student-tests/lab2/budgets.py": "8125332dd6e859023aaf9a35c74231b16d7509fa3e08ec65ba8b900b453aba72",
|
||||
"student-tests/lab2/business.py": "f41c32ab37806c0061dbbcf5b19c727252631a7e6d57245789a7ed6d83369184",
|
||||
"student-tests/lab2/ci.application.example.yml": "85febc118b77d188b92ea3512f7bdb30ab4b83d9e82b9548478fa621fb579f58",
|
||||
"student-tests/lab2/config.example.json": "70ab6c60bbf88c41151c193b84ecf170b6d2179c2dbdb479224e33c074bddbab",
|
||||
"student-tests/lab2/research.py": "777300bc746d5e18e8b49ce7ae7e077dd7fce6fe53e4d7158e4864eb579fecac",
|
||||
"student-tests/lab2/resources.py": "47aa2f4563e03d69a08054de492cea155f250f0bf2205a7c399fe7cab996d1ab",
|
||||
"student-tests/lab2/run.py": "237022ee909889859948fb67bf38b96efc9310abb8782223b67d9d4957df6edf",
|
||||
"student-tests/lab2/sqlprobe/main.go": "1935ffc0cba087ef85fb2d5cb7bcec22fe1acfb35ecc57c44d54e2d559284dab",
|
||||
"student-tests/lab2/sqlprobe/main_test.go": "1831982849afc4b1537d76f783c423c38fe6a506ccc75b105a4314a1dcee6261",
|
||||
"student-tests/lab2/sqlprobe/research.go": "fd8f5584d027661d1b0e2de52b0e564a93d82f5d1c2b4b8a3cf0400d3ed91a28",
|
||||
"student-tests/lab2/test_harness.py": "4d009d6090436bd9a78acf944b2b6375ade38b0f6b5661d24baa046c4e965b60",
|
||||
"student-tests/stack.py": "90064156b963b2881da6c4fc02cc23d1979116ec3dc8e2f9644e77927083465c",
|
||||
"student-tests/test_stack.py": "9032d4ecc089c168ee4ac3039571204c3739040f43c8d5a3bc571fa4c16b5827",
|
||||
"student-tests/validation_edges.py": "c232f9be4c394515025c8ac0fbd8444579407966e18b198faed5279147764739",
|
||||
"tests/README.md": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5",
|
||||
"tests/client.py": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d",
|
||||
"tests/load.py": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933",
|
||||
"tests/resilience.py": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b",
|
||||
"tests/smoke.py": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"student-tests/lab2/research.py": "777300bc746d5e18e8b49ce7ae7e077dd7fce6fe53e4d7158e4864eb579fecac",
|
||||
"student-tests/lab2/sqlprobe/main.go": "1935ffc0cba087ef85fb2d5cb7bcec22fe1acfb35ecc57c44d54e2d559284dab",
|
||||
"student-tests/lab2/sqlprobe/research.go": "fd8f5584d027661d1b0e2de52b0e564a93d82f5d1c2b4b8a3cf0400d3ed91a28",
|
||||
"student-tests/lab2/resources.py": "47aa2f4563e03d69a08054de492cea155f250f0bf2205a7c399fe7cab996d1ab",
|
||||
"db/queries/messages.sql": "022c9f7aade55345f6cebd31f38084e73cb9a1419d56fa5316eaa36c9da52860",
|
||||
"internal/database/sqlc/messages.sql.go": "224d6d8bd21426759ca6500e0eb3563564d51e639f1b6c64db4b3a43a5241c2a",
|
||||
"internal/repository/postgres/message.go": "fdb48e51279be725aa6036ad45d2ca2641a57671f8c385f372f378b20b363643"
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
[
|
||||
{
|
||||
"id": "3fb83883-f5da-42f0-b708-fe42d3d97fed",
|
||||
"chat_id": "109ba154-2c3f-4a49-be0c-b62777074107",
|
||||
"position": 1,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "d21d36b7c522a228569452851455efee3a23f04ee37893e7ebcee1ec5f734788"
|
||||
},
|
||||
{
|
||||
"id": "93963e44-05fc-443c-8292-2fdae5cca5c5",
|
||||
"chat_id": "109ba154-2c3f-4a49-be0c-b62777074107",
|
||||
"position": 35000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "982cc567d4a28a5c202dc4f3474c2a1868ab543d28be7b66b8517471ee0adf25"
|
||||
},
|
||||
{
|
||||
"id": "ad1ad8aa-a6e1-49df-9f84-93e64cf9d3ef",
|
||||
"chat_id": "109ba154-2c3f-4a49-be0c-b62777074107",
|
||||
"position": 70000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "99fe358758f5525cf83cf5972bda5db82803ace1d0dbb3dceea4b5627da9b6db"
|
||||
},
|
||||
{
|
||||
"id": "b936e49e-23bb-4994-aa8d-761383b52fd7",
|
||||
"chat_id": "3d3293b3-f0f7-4e8c-a962-21ce7536e365",
|
||||
"position": 1,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "21f0fe44ffae9d3b31a0406679779ebdaf5e271acf5bc3c9d6eb0908584d7f18"
|
||||
},
|
||||
{
|
||||
"id": "092318af-4a9a-47c0-befa-890bb141b6a2",
|
||||
"chat_id": "3d3293b3-f0f7-4e8c-a962-21ce7536e365",
|
||||
"position": 500,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "a9a13f41f3b00d1d140458f34c6c0927490c0a8b029b3f70f54d8bddd587c075"
|
||||
},
|
||||
{
|
||||
"id": "3d0b514d-4794-4b84-a75d-4bb5813006a5",
|
||||
"chat_id": "3d3293b3-f0f7-4e8c-a962-21ce7536e365",
|
||||
"position": 1000,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "a2a2de9cc81db8d284771d52dffb16eec3865d888fd9226b5ad0c3f010e30f04"
|
||||
},
|
||||
{
|
||||
"id": "d7db35da-ed7a-405a-b58d-2e735bd1ac1e",
|
||||
"chat_id": "64900dd0-0b46-48e7-8b85-3d261acdf8d6",
|
||||
"position": 1,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "b377898c924478d198b5e69ab433ee975602c476be9aec386f71c866e46a2a04"
|
||||
},
|
||||
{
|
||||
"id": "094375e4-a8da-4a49-bc75-a1deed4910bb",
|
||||
"chat_id": "64900dd0-0b46-48e7-8b85-3d261acdf8d6",
|
||||
"position": 3000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "2aaeb7ed9807e299ff137dbc7da1ef6db51b7bcedd7686d20b13b53167f06c16"
|
||||
},
|
||||
{
|
||||
"id": "b465823c-f6d3-4e1e-b87f-62cbd7aac4d6",
|
||||
"chat_id": "64900dd0-0b46-48e7-8b85-3d261acdf8d6",
|
||||
"position": 6000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "35539ad734bd7e0aad166f1b7b92ed838634a634268a61ab8a35ab7fdf5379be"
|
||||
},
|
||||
{
|
||||
"id": "b940de78-53db-433d-a0ec-3c222c63d19f",
|
||||
"chat_id": "8dc3107f-1f23-417e-87e9-1bbb04044585",
|
||||
"position": 1,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "34fb5521c5a16b195b6b3be0c265106346d3eeb28633d44afa99104a035a49f0"
|
||||
},
|
||||
{
|
||||
"id": "7a8372b0-93c9-4e83-b014-33ade605c127",
|
||||
"chat_id": "8dc3107f-1f23-417e-87e9-1bbb04044585",
|
||||
"position": 1500,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "b62cabc37e1ca6c9aaa5f9aea6cdd5cc25a9f1172707c35c470c483ad8d4cc0c"
|
||||
},
|
||||
{
|
||||
"id": "92753195-7874-445c-92b0-791c87182e55",
|
||||
"chat_id": "8dc3107f-1f23-417e-87e9-1bbb04044585",
|
||||
"position": 3000,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "8425aa0055be3d18ebc23b45dd0db7c0f9152bb5c8a2a19dbb1d4694ef60f115"
|
||||
},
|
||||
{
|
||||
"id": "6b305dd7-ec75-4a62-8bbe-915bc0a48cf8",
|
||||
"chat_id": "91ae6043-ffc8-4461-a32e-102be1960fd2",
|
||||
"position": 1,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "1b73e1a8e26371e03ee51315d7c983d021b0d2da603e064e97827ac5588f2246"
|
||||
},
|
||||
{
|
||||
"id": "a5c7af40-e06e-4a6d-b3de-18c4042a6062",
|
||||
"chat_id": "91ae6043-ffc8-4461-a32e-102be1960fd2",
|
||||
"position": 10000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "d858ac0fbd1efce243ef3e8edf8c2520164f53c9ff22e806c7e38fa929bbe311"
|
||||
},
|
||||
{
|
||||
"id": "6d112621-ccfd-45e1-b2f1-197b84ee6cea",
|
||||
"chat_id": "91ae6043-ffc8-4461-a32e-102be1960fd2",
|
||||
"position": 20000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "5a9f7ee0624da11cb7faa830a4be43de8ba4de5d09b81d804a36676cd746461d"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"empty": false,
|
||||
"identity_sha256": "26da093dc36af8885e591fa3da407782bccdc347d3a645e9bd55ec8a352b4513",
|
||||
"tables": {
|
||||
"chat_members": {
|
||||
"rows": 5,
|
||||
"sha256": "ce37c536341ba72a64a7578af80d03b9c8ac3a490ae1214968de4d308c997d0a"
|
||||
},
|
||||
"chats": {
|
||||
"rows": 5,
|
||||
"sha256": "00e7024932de25e2ed6ef2c7e0e498d2126053bc92e3de3743140fea74a34de3"
|
||||
},
|
||||
"messages": {
|
||||
"rows": 100000,
|
||||
"sha256": "3e7f9d688a4c559d7aa053fdf4643c240100d4bee1c187f9976aab3675aa0d78"
|
||||
},
|
||||
"users": {
|
||||
"rows": 1,
|
||||
"sha256": "d58b0d15074b90117f84b203f45d9e06d47cec737e1d2d51e08c94d0276f3e6c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
[
|
||||
{
|
||||
"id": "3fb83883-f5da-42f0-b708-fe42d3d97fed",
|
||||
"chat_id": "109ba154-2c3f-4a49-be0c-b62777074107",
|
||||
"position": 1,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "d21d36b7c522a228569452851455efee3a23f04ee37893e7ebcee1ec5f734788"
|
||||
},
|
||||
{
|
||||
"id": "93963e44-05fc-443c-8292-2fdae5cca5c5",
|
||||
"chat_id": "109ba154-2c3f-4a49-be0c-b62777074107",
|
||||
"position": 35000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "982cc567d4a28a5c202dc4f3474c2a1868ab543d28be7b66b8517471ee0adf25"
|
||||
},
|
||||
{
|
||||
"id": "ad1ad8aa-a6e1-49df-9f84-93e64cf9d3ef",
|
||||
"chat_id": "109ba154-2c3f-4a49-be0c-b62777074107",
|
||||
"position": 70000,
|
||||
"chat_rows": 70000,
|
||||
"sha256": "99fe358758f5525cf83cf5972bda5db82803ace1d0dbb3dceea4b5627da9b6db"
|
||||
},
|
||||
{
|
||||
"id": "b936e49e-23bb-4994-aa8d-761383b52fd7",
|
||||
"chat_id": "3d3293b3-f0f7-4e8c-a962-21ce7536e365",
|
||||
"position": 1,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "21f0fe44ffae9d3b31a0406679779ebdaf5e271acf5bc3c9d6eb0908584d7f18"
|
||||
},
|
||||
{
|
||||
"id": "092318af-4a9a-47c0-befa-890bb141b6a2",
|
||||
"chat_id": "3d3293b3-f0f7-4e8c-a962-21ce7536e365",
|
||||
"position": 500,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "a9a13f41f3b00d1d140458f34c6c0927490c0a8b029b3f70f54d8bddd587c075"
|
||||
},
|
||||
{
|
||||
"id": "3d0b514d-4794-4b84-a75d-4bb5813006a5",
|
||||
"chat_id": "3d3293b3-f0f7-4e8c-a962-21ce7536e365",
|
||||
"position": 1000,
|
||||
"chat_rows": 1000,
|
||||
"sha256": "a2a2de9cc81db8d284771d52dffb16eec3865d888fd9226b5ad0c3f010e30f04"
|
||||
},
|
||||
{
|
||||
"id": "d7db35da-ed7a-405a-b58d-2e735bd1ac1e",
|
||||
"chat_id": "64900dd0-0b46-48e7-8b85-3d261acdf8d6",
|
||||
"position": 1,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "b377898c924478d198b5e69ab433ee975602c476be9aec386f71c866e46a2a04"
|
||||
},
|
||||
{
|
||||
"id": "094375e4-a8da-4a49-bc75-a1deed4910bb",
|
||||
"chat_id": "64900dd0-0b46-48e7-8b85-3d261acdf8d6",
|
||||
"position": 3000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "2aaeb7ed9807e299ff137dbc7da1ef6db51b7bcedd7686d20b13b53167f06c16"
|
||||
},
|
||||
{
|
||||
"id": "b465823c-f6d3-4e1e-b87f-62cbd7aac4d6",
|
||||
"chat_id": "64900dd0-0b46-48e7-8b85-3d261acdf8d6",
|
||||
"position": 6000,
|
||||
"chat_rows": 6000,
|
||||
"sha256": "35539ad734bd7e0aad166f1b7b92ed838634a634268a61ab8a35ab7fdf5379be"
|
||||
},
|
||||
{
|
||||
"id": "b940de78-53db-433d-a0ec-3c222c63d19f",
|
||||
"chat_id": "8dc3107f-1f23-417e-87e9-1bbb04044585",
|
||||
"position": 1,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "34fb5521c5a16b195b6b3be0c265106346d3eeb28633d44afa99104a035a49f0"
|
||||
},
|
||||
{
|
||||
"id": "7a8372b0-93c9-4e83-b014-33ade605c127",
|
||||
"chat_id": "8dc3107f-1f23-417e-87e9-1bbb04044585",
|
||||
"position": 1500,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "b62cabc37e1ca6c9aaa5f9aea6cdd5cc25a9f1172707c35c470c483ad8d4cc0c"
|
||||
},
|
||||
{
|
||||
"id": "92753195-7874-445c-92b0-791c87182e55",
|
||||
"chat_id": "8dc3107f-1f23-417e-87e9-1bbb04044585",
|
||||
"position": 3000,
|
||||
"chat_rows": 3000,
|
||||
"sha256": "8425aa0055be3d18ebc23b45dd0db7c0f9152bb5c8a2a19dbb1d4694ef60f115"
|
||||
},
|
||||
{
|
||||
"id": "6b305dd7-ec75-4a62-8bbe-915bc0a48cf8",
|
||||
"chat_id": "91ae6043-ffc8-4461-a32e-102be1960fd2",
|
||||
"position": 1,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "1b73e1a8e26371e03ee51315d7c983d021b0d2da603e064e97827ac5588f2246"
|
||||
},
|
||||
{
|
||||
"id": "a5c7af40-e06e-4a6d-b3de-18c4042a6062",
|
||||
"chat_id": "91ae6043-ffc8-4461-a32e-102be1960fd2",
|
||||
"position": 10000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "d858ac0fbd1efce243ef3e8edf8c2520164f53c9ff22e806c7e38fa929bbe311"
|
||||
},
|
||||
{
|
||||
"id": "6d112621-ccfd-45e1-b2f1-197b84ee6cea",
|
||||
"chat_id": "91ae6043-ffc8-4461-a32e-102be1960fd2",
|
||||
"position": 20000,
|
||||
"chat_rows": 20000,
|
||||
"sha256": "5a9f7ee0624da11cb7faa830a4be43de8ba4de5d09b81d804a36676cd746461d"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"empty": false,
|
||||
"identity_sha256": "b3339c718444c9ea31a66b1fb18aa8ee0ecd81b8ab23146b2746366f3ab48ae0",
|
||||
"tables": {
|
||||
"chat_members": {
|
||||
"rows": 5,
|
||||
"sha256": "ce37c536341ba72a64a7578af80d03b9c8ac3a490ae1214968de4d308c997d0a"
|
||||
},
|
||||
"chats": {
|
||||
"rows": 5,
|
||||
"sha256": "00e7024932de25e2ed6ef2c7e0e498d2126053bc92e3de3743140fea74a34de3"
|
||||
},
|
||||
"messages": {
|
||||
"rows": 100000,
|
||||
"sha256": "3e7f9d688a4c559d7aa053fdf4643c240100d4bee1c187f9976aab3675aa0d78"
|
||||
},
|
||||
"users": {
|
||||
"rows": 1,
|
||||
"sha256": "d58b0d15074b90117f84b203f45d9e06d47cec737e1d2d51e08c94d0276f3e6c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"lab2-research-12608a9f3ee9-source": {
|
||||
"id": "edff0f356f9eb101deb342960861f1b1ea6c9694bc5c56b73b48414f15f589c7",
|
||||
"started_at": "2026-10-28T11:09:47.034493055Z",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"volumes": [
|
||||
"lab2-research-12608a9f3ee9-source-data"
|
||||
]
|
||||
},
|
||||
"lab2-research-12608a9f3ee9-target": {
|
||||
"id": "f42e74a4e890df2164f168fca7780760e05a0208ac5318d9b6a3b37ff7ca6345",
|
||||
"started_at": "2026-10-28T11:10:18.105351222Z",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"volumes": [
|
||||
"lab2-research-12608a9f3ee9-target-data"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"lab2-research-12608a9f3ee9-source": {
|
||||
"id": "edff0f356f9eb101deb342960861f1b1ea6c9694bc5c56b73b48414f15f589c7",
|
||||
"started_at": "2026-10-28T11:09:47.034493055Z",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"volumes": [
|
||||
"lab2-research-12608a9f3ee9-source-data"
|
||||
]
|
||||
},
|
||||
"lab2-research-12608a9f3ee9-target": {
|
||||
"id": "f42e74a4e890df2164f168fca7780760e05a0208ac5318d9b6a3b37ff7ca6345",
|
||||
"started_at": "2026-10-28T11:10:13.500572636Z",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"volumes": [
|
||||
"lab2-research-12608a9f3ee9-target-data"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"run_id": "lab2-research-12608a9f3ee9",
|
||||
"rows": 100000,
|
||||
"started_at": "2026-10-28T11:09:45.158399+00:00",
|
||||
"stages": [
|
||||
{
|
||||
"stage": "research",
|
||||
"status": "PASS",
|
||||
"seconds": 23.756312125002296
|
||||
},
|
||||
{
|
||||
"stage": "seed",
|
||||
"status": "PASS",
|
||||
"seconds": 0.8473072919987317
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.24693762500101002
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.021750959000200965
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.30287912499989034
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.6374513329974434
|
||||
},
|
||||
{
|
||||
"stage": "snapshot",
|
||||
"status": "PASS",
|
||||
"seconds": 0.2941629170018132
|
||||
}
|
||||
],
|
||||
"cleanup_errors": [],
|
||||
"finished_at": "2026-10-28T11:10:19.420086+00:00"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
|
||||
"hardware": {
|
||||
"hw.model": "Mac14,2",
|
||||
"hw.ncpu": "8",
|
||||
"hw.memsize": "8589934592",
|
||||
"machdep.cpu.brand_string": "Apple M2"
|
||||
},
|
||||
"go": "go version go1.27.1 darwin/arm64",
|
||||
"docker": "28.4.0",
|
||||
"image": {
|
||||
"id": "sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"digests": [
|
||||
"postgres@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722"
|
||||
],
|
||||
"architecture": "arm64"
|
||||
},
|
||||
"limits_per_postgres": {
|
||||
"cpus": 1,
|
||||
"memory_mib": 512
|
||||
},
|
||||
"other_running_containers_at_start": [
|
||||
"lab2-test-751bd2d1ccd1-api-1",
|
||||
"lab2-test-751bd2d1ccd1-postgres-1",
|
||||
"lab2-test-751bd2d1ccd1-redis-1"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"run_id": "lab2-research-c29523dd2fd1",
|
||||
"rows": 100000,
|
||||
"started_at": "2026-10-28T10:59:24.968491+00:00",
|
||||
"stages": [],
|
||||
"failure": "Command failed: /var/folders/29/ynjlk2qn0w36p604jk6_2_180000gn/T/lab2-research-c29523dd2fd1-ftehd331/sqlprobe (exit 1)",
|
||||
"cleanup_errors": [],
|
||||
"finished_at": "2026-10-28T11:00:00.808840+00:00"
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
# Очистка собственных тестов lab2 — 28.10.2026
|
||||
|
||||
**Изменения выполнены; новые и перенесённые бизнес-сценарии PASS. Полный повторный прогон не прошёл по таймаутам и не объявляется зелёным.**
|
||||
|
||||
## Удалено
|
||||
|
||||
Пять прежних запускателей первой лабораторной: level4.py, container_level4.py,
|
||||
track1.py, track1_baseline.py и track1_load.go из student-tests/. Они содержали
|
||||
регистрацию без password, положительную идентификацию через X-User-Id,
|
||||
ожидание потери пользователя после рестарта in-memory сервера, запуск одного
|
||||
контейнера без обязательных хранилищ или подготовку baseline старого in-memory
|
||||
репозитория. Для второй лабы эти ожидания/стенд непригодны. Старые evidence
|
||||
не переписывались и остаются историей, не подтверждением текущей версии.
|
||||
|
||||
## Полезное покрытие сохранено и подключено
|
||||
|
||||
- business-cursors теперь реально вызывает chat_pagination: GET /chats с limit=2,
|
||||
7 чатов, точный порядок (created_at,id), отсутствие пропусков/дублей/чужих
|
||||
объектов, последняя неполная страница и завершение cursor. Три cursor
|
||||
владельца отвергаются у другого пользователя с 400 invalid_request.
|
||||
Отдельно проверяются смена limit 1 → 100, пустой список, неверные limit/cursor.
|
||||
Прежние проверки истории сообщений и ACL остаются в этой же suite.
|
||||
- validation_edges.py адаптирован к lab2: password при регистрации, Bearer
|
||||
через неизменённый публичный client; 174 обязательных JSON/UTF-8 случая
|
||||
включены в business-boundaries. Пароль не ожидается в User, проверяется
|
||||
отсутствие password/password_hash; request body с паролем не пишется в
|
||||
evidence, включая hex. Ненормативные observations остаются только opt-in.
|
||||
- read-after-write сверяет 100 сообщений от 10 аутентифицированных участников:
|
||||
видимость после подтверждения, полный состав/содержимое/порядок/отправители
|
||||
истории. Одновременно работают config.concurrency запросов (по умолчанию 4),
|
||||
число участников не выдаётся за число одновременно активных запросов.
|
||||
- Сборщик CPU/RAM выделен из track1.py в lab2/resources.py; budgets.py использует
|
||||
его напрямую. AST класса сверён с прежним: расчёты и формат samples сохранены,
|
||||
изменена только обёртка вызова subprocess. Сам полный нагрузочный повтор
|
||||
не завершился и не считается проверенным измерением.
|
||||
- Обновлены только собственные README/RUNNING/AUTH_TESTS и описание suites.
|
||||
Приложение, SQL-миграции, Compose, преподавательские contracts/tests не менялись.
|
||||
|
||||
## Проверка
|
||||
|
||||
Офлайн: 8 StackTests + 9 HarnessTests PASS; синтаксис всех собственных Python
|
||||
файлов и git diff --check PASS. Исполняемых импортов/запусков удалённых файлов
|
||||
в текущих скриптах, CI и документации вне исторических evidence не осталось.
|
||||
|
||||
Команда полного повторения:
|
||||
|
||||
```sh
|
||||
python3 student-tests/check_clone.py --measure-budgets --output student-tests/output/lab2-tests-cleanup-20261028 --pull never
|
||||
```
|
||||
|
||||
В настоящем временном clone прошли bootstrap, build, vet, публичный smoke,
|
||||
16 auth-методов, все обновлённые business-suites и SQL-планы на 10 000 строк.
|
||||
Подробности [business.json](verification/acceptance/business.json):
|
||||
|
||||
- business-boundaries: {"json_cases": 174}
|
||||
- business-cursors: {"message_items": 7, "chat_list": {"items": 7, "page_limit": 2, "foreign_cursors_rejected": 3, "changed_limit": [1, 100]}}
|
||||
- read-after-write: {"writers": 10, "messages": 100, "concurrency": 4}
|
||||
|
||||
| Наблюдаемый этап | Результат |
|
||||
|---|---|
|
||||
| contracts | PASS |
|
||||
| harness | PASS |
|
||||
| lab2-harness | PASS |
|
||||
| compose-up | PASS |
|
||||
| go-race | FAIL |
|
||||
| go-build | PASS |
|
||||
| go-vet | PASS |
|
||||
| teacher-smoke | PASS |
|
||||
| auth-normal | PASS |
|
||||
| business | PASS |
|
||||
| sql-plan-10000 | PASS |
|
||||
| latency-matrix | FAIL |
|
||||
| teacher-persistence | FAIL |
|
||||
| auth-persistence | FAIL |
|
||||
|
||||
Полный прогон **FAIL**: Go -race достиг 300-секундного лимита; завершённого
|
||||
Go JSON log нет, поэтому число PASS/FAIL/пропусков Go не выдумывается и прошлые
|
||||
43 PASS не приписываются этому запуску. В ходе ожидания наблюдался load average
|
||||
около 50, позднее 42 и 29; это наблюдение окружения, не доказанная причина
|
||||
каждого таймаута. Собственное затянувшееся измерение latency остановлено явно.
|
||||
Оба persistence-сценария затем получили клиентский TimeoutError при регистрации
|
||||
до начала своего restart-сценария; они не засчитаны. В итоге достигнут общий
|
||||
600-секундный предел clone. Отказы зависимостей/TTL в этом повторе не подтверждены.
|
||||
Таймауты и ожидания не повышались, тесты не ослаблялись. Для полного зелёного
|
||||
вердикта нужен новый полный прогон при свободных ресурсах; это не блокирует
|
||||
сам факт PASS новых проверок списка чатов и адаптированного JSON.
|
||||
|
||||
Во время прогона параллельно изменены файлы: REPORT.md, student-tests/lab2/sqlprobe/main.go.
|
||||
Они не редактировались мной. Для изменённых файлов результаты относятся к
|
||||
замороженному снимку; собственные файлы данной очистки совпадают с manifest.
|
||||
Новые параллельные исследовательские файлы и пользовательские изменения
|
||||
сохранены; исходники приложения совпадают с последним проверенным снимком.
|
||||
|
||||
## Артефакты и очистка
|
||||
|
||||
[Сводка изменений и ограничений](verification/cleanup-change-summary.json),
|
||||
[общий статус clone](verification/clone-summary.json),
|
||||
[лог этапов](verification/verify.log),
|
||||
[состояние окружения](verification/runtime-observation.json),
|
||||
[явная очистка](verification/cleanup.json).
|
||||
|
||||
После общего таймаута созданный проект lab2-test-751bd2d1ccd1 удалён явно по
|
||||
точной Docker-метке. Его контейнеров, volumes и сетей осталось 0; процессов
|
||||
группы этого прогона на момент cleanup уже не было. Другие пользовательские
|
||||
процессы/проекты не останавливались. Проверка артефактов на явные значения
|
||||
Authorization Bearer и JSON token не нашла совпадений. Git stage/commit/push
|
||||
не выполнялись.
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "business-boundaries",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"json_cases": 174
|
||||
},
|
||||
"duration_seconds": 7.627
|
||||
},
|
||||
{
|
||||
"suite": "business-cursors",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"message_items": 7,
|
||||
"chat_list": {
|
||||
"items": 7,
|
||||
"page_limit": 2,
|
||||
"foreign_cursors_rejected": 3,
|
||||
"changed_limit": [
|
||||
1,
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"duration_seconds": 6.4723
|
||||
},
|
||||
{
|
||||
"suite": "read-after-write",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"writers": 10,
|
||||
"messages": 100,
|
||||
"concurrency": 4
|
||||
},
|
||||
"duration_seconds": 11.703
|
||||
}
|
||||
]
|
||||
}
|
||||
+11030
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
{"action": "restart-cache", "project": "lab2-test-751bd2d1ccd1", "before": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:53:43.880644887Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:05.969730425Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
|
||||
{"action": "restart-cache", "project": "lab2-test-751bd2d1ccd1", "before": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:05.969730425Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:08.992159468Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-751bd2d1ccd1", "before": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:53:50.466761376Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:53:43.908696096Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:08.992159468Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:58:32.804413507Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:58:29.499867047Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:58:26.245911754Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
|
||||
{"action": "restart", "project": "lab2-test-751bd2d1ccd1", "before": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:58:32.804413507Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:58:29.499867047Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:58:26.245911754Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:58:49.387415792Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:58:48.667892042Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:58:48.522514625Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
|
||||
"results": [
|
||||
{
|
||||
"suite": "sql-plan",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"actual_rows": 10000,
|
||||
"chat_distribution_percent": [
|
||||
70,
|
||||
20,
|
||||
6,
|
||||
3,
|
||||
1
|
||||
],
|
||||
"chat_message_counts": [
|
||||
7000,
|
||||
2000,
|
||||
600,
|
||||
300,
|
||||
100
|
||||
],
|
||||
"deep_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.07,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.009,
|
||||
"Actual Total Time": 0.043,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.009,
|
||||
"Actual Total Time": 0.021,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "((chat_id = '42999db2-38ef-436a-bf5e-b1817797c678'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, '29ef7810-c0e6-4bc5-8b18-4a0efc2e2c4d'::uuid)))",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 1399,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 5,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 545.09
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 5,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 20.15
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.174,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"first_page": {
|
||||
"explain": {
|
||||
"Execution Time": 0.06,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.01,
|
||||
"Actual Total Time": 0.044,
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 72,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 51,
|
||||
"Actual Startup Time": 0.009,
|
||||
"Actual Total Time": 0.016,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Disabled": false,
|
||||
"Index Cond": "(chat_id = '42999db2-38ef-436a-bf5e-b1817797c678'::uuid)",
|
||||
"Index Name": "idx_messages_chat_created_id",
|
||||
"Index Searches": 1,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 7000,
|
||||
"Plan Width": 72,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 3,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 911.84
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 3,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.29,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 6.93
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 0,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.078,
|
||||
"Triggers": []
|
||||
},
|
||||
"max_visited_rows": 51
|
||||
},
|
||||
"go_version": "go1.27.1",
|
||||
"mode": "plan",
|
||||
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"rows": 10000,
|
||||
"scan_budget_rows": 1000,
|
||||
"schema": "lab2_test_81b0247831824785a367ab8fba0fdde6"
|
||||
},
|
||||
"duration_seconds": 4.7202
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
{
|
||||
"scope": "cleanup and integration of own lab2 tests; application unchanged",
|
||||
"status": "CHANGES_COMPLETE_FULL_RECHECK_NOT_PASS",
|
||||
"deleted_legacy_runners": [
|
||||
"student-tests/level4.py",
|
||||
"student-tests/container_level4.py",
|
||||
"student-tests/track1.py",
|
||||
"student-tests/track1_baseline.py",
|
||||
"student-tests/track1_load.go"
|
||||
],
|
||||
"adapted_or_updated_test_files": [
|
||||
"student-tests/README.md",
|
||||
"student-tests/AUTH_TESTS.md",
|
||||
"student-tests/RUNNING.md",
|
||||
"student-tests/validation_edges.py",
|
||||
"student-tests/lab2/README.md",
|
||||
"student-tests/lab2/budgets.py",
|
||||
"student-tests/lab2/business.py",
|
||||
"student-tests/lab2/run.py",
|
||||
"student-tests/lab2/resources.py"
|
||||
],
|
||||
"business": [
|
||||
{
|
||||
"suite": "business-boundaries",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"json_cases": 174
|
||||
},
|
||||
"duration_seconds": 7.627
|
||||
},
|
||||
{
|
||||
"suite": "business-cursors",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"message_items": 7,
|
||||
"chat_list": {
|
||||
"items": 7,
|
||||
"page_limit": 2,
|
||||
"foreign_cursors_rejected": 3,
|
||||
"changed_limit": [
|
||||
1,
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"duration_seconds": 6.4723
|
||||
},
|
||||
{
|
||||
"suite": "read-after-write",
|
||||
"status": "PASS",
|
||||
"observation": {
|
||||
"writers": 10,
|
||||
"messages": 100,
|
||||
"concurrency": 4
|
||||
},
|
||||
"duration_seconds": 11.703
|
||||
}
|
||||
],
|
||||
"observed_stages": [
|
||||
{
|
||||
"check": "contracts",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "harness",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "lab2-harness",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "compose-up",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "go-race",
|
||||
"status": "FAIL"
|
||||
},
|
||||
{
|
||||
"check": "go-build",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "go-vet",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "teacher-smoke",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "auth-normal",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "business",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "sql-plan-10000",
|
||||
"status": "PASS"
|
||||
},
|
||||
{
|
||||
"check": "latency-matrix",
|
||||
"status": "FAIL"
|
||||
},
|
||||
{
|
||||
"check": "teacher-persistence",
|
||||
"status": "FAIL"
|
||||
},
|
||||
{
|
||||
"check": "auth-persistence",
|
||||
"status": "FAIL"
|
||||
}
|
||||
],
|
||||
"snapshot_source_changes_during_run": [
|
||||
"REPORT.md",
|
||||
"student-tests/lab2/sqlprobe/main.go"
|
||||
],
|
||||
"application_or_teacher_test_changes": [],
|
||||
"cleanup": {
|
||||
"project": "lab2-test-751bd2d1ccd1",
|
||||
"reason": "outer clean-clone 600s timeout; explicit cleanup of owned resources",
|
||||
"terminated_process_group": 66246,
|
||||
"remaining_process_ids_at_cleanup": [],
|
||||
"remaining": {
|
||||
"container": [],
|
||||
"volume": [],
|
||||
"network": []
|
||||
}
|
||||
},
|
||||
"full_recheck_failures": {
|
||||
"go-race": "300-second stage timeout; no completed Go JSON log",
|
||||
"latency-matrix": "explicitly stopped owned measurement to allow final stages after a prolonged run",
|
||||
"teacher-persistence": "registration HTTP client timeout before restart scenario",
|
||||
"auth-persistence": "registration HTTP client timeout before restart scenario",
|
||||
"clean-clone": "outer 600-second timeout; remaining stages not confirmed"
|
||||
},
|
||||
"causality": "high host load observed, causal link to each timeout not proven"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"project": "lab2-test-751bd2d1ccd1",
|
||||
"reason": "outer clean-clone 600s timeout; explicit cleanup of owned resources",
|
||||
"terminated_process_group": 66246,
|
||||
"remaining_process_ids_at_cleanup": [],
|
||||
"remaining": {
|
||||
"container": [],
|
||||
"volume": [],
|
||||
"network": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"status": "FAIL",
|
||||
"scope": "temporary Git snapshot of current working tree; not remote HEAD",
|
||||
"detail": "TimeoutExpired"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"host_load_average": [
|
||||
29.28759765625,
|
||||
32.01513671875,
|
||||
21.583984375
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"role": "api",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"exit_code": 0,
|
||||
"started_at": "2026-10-28T10:58:49.387415792Z",
|
||||
"health": "healthy"
|
||||
},
|
||||
{
|
||||
"role": "postgres",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"exit_code": 0,
|
||||
"started_at": "2026-10-28T10:58:48.667892042Z",
|
||||
"health": "healthy"
|
||||
},
|
||||
{
|
||||
"role": "redis",
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"exit_code": 0,
|
||||
"started_at": "2026-10-28T10:58:48.522514625Z",
|
||||
"health": "healthy"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
{
|
||||
".dockerignore": "62c0534ad74d9f0e2982e97d1fbadb66d80c493ed237df5bcb9fbb797062eb38",
|
||||
".env.example": "cde057274dd6b60a2ab0b9fab4c6f267479263263c6a204ab664739e75a12650",
|
||||
".gitea/workflows/application.yml": "27cbd50f8cbcabfaa5a77a2c014e2f8878ed23ab744c5a54e2422101807ed3e5",
|
||||
".github/pull_request_template.md": "857bbb4686e50fec35f1eaf539c23395dd6359392228fa65a9eb2a537f53ec92",
|
||||
".github/workflows/contracts.yml": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8",
|
||||
".gitignore": "07f63dcce41b3cf5d46d8cb96a70d0c34abcf10b72b4a78e85a9d13f765b5d56",
|
||||
"CONTRIBUTING.md": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e",
|
||||
"COURSE.md": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971",
|
||||
"Dockerfile": "eddd3924e99335ce0253792e85bcabb19b50d684c34073dd3b6ff958d0f7c652",
|
||||
"Dockerfile.example": "fd7ac9491c0c3c663b083c41a762fb38bc2d212fa4a2ed3e6a0702af72108709",
|
||||
"Dockerfile.migrate": "0ab04cba4c2bb033c4d7c7d3a5984d8a27e8f355ff90e6023c3b7912d2211dec",
|
||||
"MAINTAINERS.md": "59a70ede89ba308a782f0695f8441dfa4b75479d155966303ab86addc36f8d1f",
|
||||
"Makefile": "668b2449e19b364092611561a28ca2cc83b6c8b35fde1c52ecfd2072795e6ca0",
|
||||
"README.md": "4f14a97911bd3ea335868d37fec187d1738b42f91a7d4780d33b721edf25b6dc",
|
||||
"REPORT.md": "94c80b983bd8653d6caeb013d8c87aab39bdf11c2f48841999a1faf6e1011057",
|
||||
"cmd/api/main.go": "c5d22be9734c94771ac5e8abf79288fbf961a5d178adac56e25c6fb2964ea8f9",
|
||||
"cmd/migrate/main.go": "6e9d413a86f53cf5f2e83d5ed0308af9b2c33e69fcb3d061b19bf480e352f257",
|
||||
"cmd/migrate/main_test.go": "a88f2252d70caf644904331182dc3afd4df48b825a0329a82482798ec90b5d46",
|
||||
"cmd/migrate/postgres_test.go": "7a3cc1dea289b85b6aed835bb152aab7e5eb3124e54a490a7177b6e184b876d8",
|
||||
"cmd/migrate/roundtrip_test.go": "713f6ab6a874b52ca5d559042b4de50f48e6d1535934fd4982206d1832f0a92e",
|
||||
"compose.example.yaml": "bce35d0c70a825914ad0ff3a0bcdf6e7fbf520b399c576f0d75361068efd2e25",
|
||||
"compose.yaml": "eba95e1b3184314dab822603776d701fc0aa04528f4094ee3e7ab8bc1f396d10",
|
||||
"contracts/README.md": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f",
|
||||
"contracts/examples.json": "0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45",
|
||||
"contracts/infrastructure.json": "7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8",
|
||||
"contracts/openapi.json": "cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4",
|
||||
"db/migrations/00001_init_schema.sql": "32223afbc24f8250de055690c9e86299ebf2cd7a0d3ef2c59d3b2a5aaa41e84e",
|
||||
"db/migrations/00002_add_created_at_defaults.sql": "e0680838294b93f916d727a3a20d83aca7c3f74077202c9696b1fc73cda14649",
|
||||
"db/migrations/00003_drop_session_table.sql": "1b666cee95b9eb1210b0a303de95994bd3c24628e9d9fdb1e1f3318edb756c3d",
|
||||
"db/migrations/embed.go": "a42e52ab05bc89b557a5bc6b3f0215883d99c4a039a8b32d6c19e66b2f769508",
|
||||
"db/queries/chat_members.sql": "e70940e35f325550041c290a571901ead4a6f93dece857ffa229f2f1c83eddf8",
|
||||
"db/queries/chats.sql": "8c52c762da78eb3a3eb7402b17ec87bd7fc2e1387f6ddb8e297b4f2d75beca7b",
|
||||
"db/queries/messages.sql": "022c9f7aade55345f6cebd31f38084e73cb9a1419d56fa5316eaa36c9da52860",
|
||||
"db/queries/users.sql": "0d73a6d46f4d4a1b0af37b750a208c07a38249f76974b41748f32c1949f990df",
|
||||
"examples/requests.http": "633c7b0f881173920b61a67c029e9bb4b59a385e5e34ab1b3d3254556602d554",
|
||||
"go.mod": "73616cf36b558a229850da12bc47134a6a0e136594a1e411ca4f08db1bf57950",
|
||||
"go.sum": "3aa6dbd823977e4bf7a87a60c2718780e8bbeab8667b5f838e15cd7e3bbba77d",
|
||||
"infra/MIGRATIONS.md": "6c892bff25dfce17eadc1c263890e0cd97b77df5fb8923473a97ff0626f4c99c",
|
||||
"infra/README.md": "6ff8d430a1fc9a6588d635744ab1e9bd3a53a52beb85d9fd59bbf65b026fc837",
|
||||
"internal/config/config.go": "07097163d3e67de19db47d1183faa2a9e6ef7d407b94b93ff6f5c5f111b44db3",
|
||||
"internal/database/postgres.go": "3925c0bc9ae01bff9a37138a0dd19b38074bc2a70536b3a148f568b952516a21",
|
||||
"internal/database/redis.go": "5b85a60bb0d1cb156c61bcd3c518c41c955f53c1d12da265b5e3a5dd7a397602",
|
||||
"internal/database/sqlc/chat_members.sql.go": "9e8cd177f6f888c72d19857fd4748fbb2020770c1af772a463fe3d1b813b37ee",
|
||||
"internal/database/sqlc/chats.sql.go": "3dccf4b0ffa918ec5a3b66026b3dab4027456b499486359881000d184944802c",
|
||||
"internal/database/sqlc/db.go": "3ca71a7f007a39987cae838da64303419dd804d2d1b6227676f47177971d76cf",
|
||||
"internal/database/sqlc/messages.sql.go": "224d6d8bd21426759ca6500e0eb3563564d51e639f1b6c64db4b3a43a5241c2a",
|
||||
"internal/database/sqlc/models.go": "86f3abe4eb3e47e6b90051139e862377a61999108761b7eb3fcd7d4277b66505",
|
||||
"internal/database/sqlc/users.sql.go": "b954abd5b5964df39c20d857a60105513af84c8df68ce1ac9421da541a7800f4",
|
||||
"internal/model/chat.go": "e0213f8360ea106b3627aa50cc87710153ff8e353475b42c2becdb9a32592660",
|
||||
"internal/model/message.go": "b9ce1bdc5fd8ccf20d18033f56ac47c8a64352584ee29ab27915535557003a72",
|
||||
"internal/model/session.go": "b455d730e4e3efc95c6d1fe74ab43d86153e4bf863c09efd36bfe57efc669bc2",
|
||||
"internal/model/user.go": "4bfd2d78e72f1c80b12541f2abc8500613e8f4d101575bd5d74fac22b52e3617",
|
||||
"internal/repository/chat.go": "7ef8dca39ff371f16d351b073199c25f719db22c7a525ab76ea7aca948efa157",
|
||||
"internal/repository/errors.go": "b6f43f5c0de35024d2d217dfccc857a777dc112bc7a458d99a5fcc5828ce1bb2",
|
||||
"internal/repository/message.go": "fda4e57eb02f3fc927ee14f6a39deb689676487a8d0fb8030a7ce629f55eac1c",
|
||||
"internal/repository/postgres/chat.go": "d757c579e5b6599ab9366aef46fd59f9652247f3d947615aa46c919746b65ea5",
|
||||
"internal/repository/postgres/errors.go": "580e5e599f7af8a403404c6850986e88efceda6393d21e772ac108be34004ba9",
|
||||
"internal/repository/postgres/message.go": "fdb48e51279be725aa6036ad45d2ca2641a57671f8c385f372f378b20b363643",
|
||||
"internal/repository/postgres/user.go": "eb6770e5cdd96b16a6e9d2116af89a6dd466dfbca4f4c179fe06c30c487e53c4",
|
||||
"internal/repository/postgres/utils.go": "6c5c83a8ad8ecf611812fbf8c90735e2590a09dec88cd914a10f6b36a9f041b7",
|
||||
"internal/repository/redis/errors.go": "ab56571d1d0b7d13b7d7ff868916f7e506c5a54c29e6bb211b3021ad4bf601ab",
|
||||
"internal/repository/redis/session.go": "c1654fea2ba47734a5403d6f6cbb2fe70fbe7e6e37166ae75f338d3490981de1",
|
||||
"internal/repository/session.go": "071285ff4d8033a6512a7256583a1cb32de782d6fd9f1696fac109927f7db699",
|
||||
"internal/repository/user.go": "bee65136137d97bea2240411c96a93cd945b1b9145452416f7a83733a1fd28e7",
|
||||
"internal/security/password.go": "8f74bef9216a2d12aa734e04fa786eac6b31f1378fe42f729fe1b97495c10487",
|
||||
"internal/service/auth.go": "71b8960640866e515e9060159af750c418d97a6373d2616c3b59b764172aa54c",
|
||||
"internal/service/chat.go": "3a6433e288f9ad02a20f9cf6fde911e3f1fcce90de79080dd12fcdf2635f2450",
|
||||
"internal/service/errors.go": "33df533d658fed44dded592ee31b4ea04ccf3deb6d6c7a2161ea4cfb40719688",
|
||||
"internal/service/helper.go": "390320fa296d9637630e6ac0d90c1229002b578a29186cad414896d5f4d1b8a6",
|
||||
"internal/service/message.go": "9b5523c35bc667fadcb8ad0c7352dde4d455a1b4cec47386b72e2685c2e72b91",
|
||||
"internal/service/user.go": "542051ef3eeff15d340979a615a7e0da3d21ed7ed93bea2547ab52d8e303b5e2",
|
||||
"internal/transport/http/handler/auth.go": "f175a570d47ca38ce627d0bc88b6f6a2adbf648345229fa961ea0144717744f1",
|
||||
"internal/transport/http/handler/auth_types.go": "5ffcd182606a77d538efb5f1a51df23b8a324a605b5d226026048d34c409ebdb",
|
||||
"internal/transport/http/handler/chat.go": "e5214ebf94ac9b8f37537e1a3fc844a2e8ae4e9b5aa159fe2b6e4da9ab2342f0",
|
||||
"internal/transport/http/handler/chat_types.go": "d181bce0f003749d813c1254df4c8ebcc1b99ff506b61efa6899da4a499e95f4",
|
||||
"internal/transport/http/handler/health.go": "6a6b8aacba661b1eff7c2413009b223efd7f32f4cc04fcd41116396065560b91",
|
||||
"internal/transport/http/handler/health_types.go": "02ee3031e10fbb279e020f409fbd905ae2640aa306b2c558c3f8e6dcfe9efa80",
|
||||
"internal/transport/http/handler/message.go": "43dfcabbd24fe809e407958fed34bf567bdc6dd45c61f06c2e6d6bdd3d68b3ed",
|
||||
"internal/transport/http/handler/message_types.go": "b7649808c889cc9518bf5710415550abf4bed9ad5052a327c88181ed3b45aafc",
|
||||
"internal/transport/http/handler/user.go": "86fd65ed176e9a83dc27c1112ff8384bc5aa32a92410290fb505d715ca167775",
|
||||
"internal/transport/http/handler/user_types.go": "0c4450be649afe5edf4e8d3ac9baada79deb9e1423ace56b87aa227ebd0eb998",
|
||||
"internal/transport/http/httputils/helper.go": "23e744b36e2972315d5ad4735eda3cb992c4aae824922fcacfa8ea280411cdff",
|
||||
"internal/transport/http/middleware/auth.go": "28c1d54da2c371289a3ad2aaeb8365135a38b0afe555a7cffcec0128ee7491b8",
|
||||
"internal/transport/http/middleware/context.go": "f6db0e807659f30b05cae91f73c70d87f359760c57110e0d25b49a65bd0394a5",
|
||||
"internal/transport/http/middleware/logging.go": "a477fda512953eb9f46266537c12ace9cc992ba8f036a5b041f9f8295bfd2097",
|
||||
"internal/transport/http/router.go": "c452f3d9e9781cdfd45212f901ce286b285f566ade65048a985ea0cdae7c67e4",
|
||||
"lab.json": "d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4",
|
||||
"requirements-dev.txt": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525",
|
||||
"scripts/check_contract.py": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671",
|
||||
"scripts/restart.example.sh": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b",
|
||||
"scripts/restart.sh": "6e36116c0058f4e9641a0f3ff1a2cbe4baabd53f82f9b2f784f5e37410dc3791",
|
||||
"scripts/setup-tests.sh": "10d13634c0f893d339dbe1551e75aa404c975a9c56627857daba9471afbeb945",
|
||||
"scripts/start-postgres.sh": "fd71356ee089f5e8128e29a5cfddaf72ede54dbf40cc10aa145b46b8130d4363",
|
||||
"scripts/start-redis.sh": "7054226bfbdce91e5519120384f9897c67c825421e2c7b940b9b501738931094",
|
||||
"scripts/stop-postgres.sh": "d967fcb6530f765c82b96b80951e6306cb282d53288a63e1384e29dc8b708baf",
|
||||
"scripts/stop-redis.sh": "b8824c1270a95490696c9770de3cf75bda8add8732e4ee6ea32e9f68e79e8fd7",
|
||||
"scripts/validate_openapi.py": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54",
|
||||
"sqlc.yaml": "4e72de8f0b44d6d2b6a44da89f86dd5326e85077a5e7a8ae71816a5dff1fbaa3",
|
||||
"student-tests/AUTH_TESTS.md": "56cebd1a5c360a9ea4ae094aa18e11e629867bc1bc5f3e32d68726a086767b40",
|
||||
"student-tests/README.md": "00e945355d7b60270896e7731ac1e6dcfaa12f8e8a2490cfddd2ef6b3ff0300d",
|
||||
"student-tests/RUNNING.md": "e039f0ca892e8d610f89f2dbe9e7b3f356924249dde4bf7564ce779542140bb0",
|
||||
"student-tests/auth_contract.py": "1717a79c1d28d74803ffd8621f57863c8f8384c38d5876b7ccf73c6da4c8af0d",
|
||||
"student-tests/auth_tests/auth_handler_test.go": "a7055f5a1c99bec93b05da772a7d5020e21054704383bcc6f257c1e599bfb654",
|
||||
"student-tests/auth_tests/budgets_test.go": "e931ded5f0cbf66207c8b9ae014ab0fcc02ddc3e5ddfe201aa18cb339f894206",
|
||||
"student-tests/auth_tests/errors_test.go": "5c0bf416526404ab5fce4b2943ac5eb54280948cf1992ef56dc39c0e5ae074ed",
|
||||
"student-tests/auth_tests/logout_diagnostic_test.go": "cd5032f553de3704c5514d5b4bf395fc3088f8e30963060f5e1374020ac0e8a6",
|
||||
"student-tests/auth_tests/password_test.go": "c83d4db74513787fec789759f10735e2ee6614fb9e04b2ac7d78c710e39047da",
|
||||
"student-tests/auth_tests/redis_test.go": "1815f5c4925442696f4a7ba4022525c53b31b6668c0ce575dc56a078209cb4c4",
|
||||
"student-tests/auth_tests/restart_http_test.go": "26df36f9a3446abfc0e62d6f256f676e259c1b65359de72a1a28c4748a1611a2",
|
||||
"student-tests/auth_tests/storage_test.go": "96dfe8c4d98663b272fb46a3f25607d796ec232953829624272d1be159974fae",
|
||||
"student-tests/auth_tests/transport_test.go": "ffa252b6047a2f04d7dc14c12e721f52c600b9ce199a0805e4717b817672ff92",
|
||||
"student-tests/check_clone.py": "4ed39fe0adfdd9e327adbf77cfd382978d47befd073effdd530ded15b4ff8f7c",
|
||||
"student-tests/diagnostics/run_waitaof.py": "02425bc72c5c43cc99f3d442ba9476b4a476b04aa36236272701a304442d709b",
|
||||
"student-tests/diagnostics/waitaof/main.go": "5f6607fc11d8f5988823b8560af1545cc47c165f2d12fdb46e80c408add261e5",
|
||||
"student-tests/lab2/.gitignore": "20f5cabd213a016b080941d193994e9a1c48d1e1df16b3bf758fd348c325808d",
|
||||
"student-tests/lab2/README.md": "3708693615688d1c2bddbe3b2d1538185aba7240fdff185cbb582a449adfb717",
|
||||
"student-tests/lab2/adapters/compose_action.py": "d35a530d2d506cd0e66583ba4d9b3ef8b240e18956d069401ea750fc9b74b62b",
|
||||
"student-tests/lab2/adapters/custom.example.py": "ff1e83d2be9dc50a2bfba1314c4fb183294ed8c1d79a80258e021c13a863eacf",
|
||||
"student-tests/lab2/budgets.py": "8125332dd6e859023aaf9a35c74231b16d7509fa3e08ec65ba8b900b453aba72",
|
||||
"student-tests/lab2/business.py": "f41c32ab37806c0061dbbcf5b19c727252631a7e6d57245789a7ed6d83369184",
|
||||
"student-tests/lab2/ci.application.example.yml": "85febc118b77d188b92ea3512f7bdb30ab4b83d9e82b9548478fa621fb579f58",
|
||||
"student-tests/lab2/config.example.json": "70ab6c60bbf88c41151c193b84ecf170b6d2179c2dbdb479224e33c074bddbab",
|
||||
"student-tests/lab2/resources.py": "47aa2f4563e03d69a08054de492cea155f250f0bf2205a7c399fe7cab996d1ab",
|
||||
"student-tests/lab2/run.py": "237022ee909889859948fb67bf38b96efc9310abb8782223b67d9d4957df6edf",
|
||||
"student-tests/lab2/sqlprobe/main.go": "2bcc94b2c208a3a8db12e25a82d993145a74cb87d5d1baffca779eb7bcca4256",
|
||||
"student-tests/lab2/sqlprobe/main_test.go": "1831982849afc4b1537d76f783c423c38fe6a506ccc75b105a4314a1dcee6261",
|
||||
"student-tests/lab2/test_harness.py": "4d009d6090436bd9a78acf944b2b6375ade38b0f6b5661d24baa046c4e965b60",
|
||||
"student-tests/stack.py": "90064156b963b2881da6c4fc02cc23d1979116ec3dc8e2f9644e77927083465c",
|
||||
"student-tests/test_stack.py": "9032d4ecc089c168ee4ac3039571204c3739040f43c8d5a3bc571fa4c16b5827",
|
||||
"student-tests/validation_edges.py": "c232f9be4c394515025c8ac0fbd8444579407966e18b198faed5279147764739",
|
||||
"tests/README.md": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5",
|
||||
"tests/client.py": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d",
|
||||
"tests/load.py": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933",
|
||||
"tests/resilience.py": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b",
|
||||
"tests/smoke.py": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
|
||||
}
|
||||
@@ -26,7 +26,9 @@
|
||||
| Ошибки SQL сохраняют категорию до HTTP | errors_test.go: EOF, DNS, SQLSTATE, wrappers; SQL login вместо удалённых SQL-сессий |
|
||||
| Ожидание заблокированного запроса/занятого пула ограничено | budgets_test.go; реальный NewPostgres; бюджет описан в RUNNING.md |
|
||||
| История без полного scan; 10 000 сообщений | lab2/sqlprobe, suite sql-plan: настоящий запрос репозитория, первая и глубокая страницы |
|
||||
| Границы бизнес-запросов, пагинация, ACL, read-after-write | lab2/business.py; публичный smoke отдельно |
|
||||
| Границы бизнес-запросов и строгие JSON/UTF-8 cases с password/Bearer | lab2/business.py → validation_edges.py; публичный smoke отдельно |
|
||||
| GET /chats и история: порядок, полный обход без потерь/дублей, чужой cursor, смена limit | lab2/business.py, business-cursors в полном verify |
|
||||
| 100 сообщений от 10 участников, read-after-write и полное совпадение истории | lab2/business.py, read-after-write; concurrency по умолчанию 4 |
|
||||
|
||||
Проверки, требующие серверов, без явных тестовых адресов получают SKIP;
|
||||
это не подтверждение работоспособности. Полный stack.py verify поднимает
|
||||
|
||||
+45
-165
@@ -1,184 +1,64 @@
|
||||
# Собственные проверки лабораторной 1
|
||||
# Собственные проверки лабораторной 2
|
||||
|
||||
Требования берутся из корневого README и `contracts/README.md`. Публичные assertions не ослабляются. Все пользователи, чаты и тексты синтетические.
|
||||
Актуальный стенд: API + PostgreSQL + Redis с AOF. Сессии хранятся в Redis,
|
||||
бизнес-данные — в PostgreSQL. Используется Basic → Bearer; проверки, которые
|
||||
ожидали in-memory состояние или доступ через X-User-Id, удалены. Негативные
|
||||
сценарии, подтверждающие отказ по одному X-User-Id, остаются обязательными.
|
||||
Контракт и публичные tests/ преподавателя не изменяются.
|
||||
|
||||
## Уже запущенный API
|
||||
## Полная проверка из чистого clone
|
||||
|
||||
```sh
|
||||
python3 student-tests/level4.py --base-url http://localhost:8080
|
||||
python3 student-tests/check_clone.py --measure-budgets --output student-tests/output/clean-clone
|
||||
```
|
||||
|
||||
Одна команда запускает 17 сценариев: пять обязательных негативных/пагинационных сценариев уровня 4, отправку 100 сообщений от 10 клиентов и дополнительные условия базового контракта: Content-Type, поля JSON, формат 404, limit/cursor, привязку cursor, список чатов и Unicode-границы. HTTP-клиент и проверка схем переиспользованы из публичного `tests/client.py`; сами сценарии отдельные. Exit 0 означает успех всех сценариев, exit 1 — хотя бы один FAIL.
|
||||
Каталог вывода выбирайте новым. Нужен работающий Docker Desktop/Engine;
|
||||
для уже загруженных базовых образов можно добавить --pull never. Проверяется
|
||||
текущий рабочий снимок, включая untracked исходники, без локальных secrets/.env.
|
||||
Это не подтверждение опубликованного remote commit.
|
||||
|
||||
Дополнительная проверка после замечаний от 03.10.2026 включена в ту же команду: точный регистр имён полей всех трёх POST endpoint, неизвестные поля, повреждённые UTF-8 bytes, обязательные поля, `null`, неверные типы, второй JSON/мусор после тела и границы строк/участников. Валидные Unicode, символ `�`, корректная surrogate-пара и экранированное каноническое имя поля должны сохраняться. В актуальной версии на Go 1.27.1 используется `encoding/json/v2` с `json.RejectUnknownMembers(true)`: ошибки декодирования возвращают 400. Выполнено 162/162 обязательных проверок. Подробный результат можно получить отдельно:
|
||||
Полный порядок, зависимости и Gitea CI: [RUNNING.md](RUNNING.md).
|
||||
Авторизация, Redis и миграции: [AUTH_TESTS.md](AUTH_TESTS.md).
|
||||
|
||||
## Бизнес-сценарии на уже запущенном учебном API
|
||||
|
||||
```sh
|
||||
python3 student-tests/validation_edges.py --base-url http://localhost:8080 \
|
||||
--output evidence/validation-edges.json
|
||||
export LAB2_BASE_URL=http://127.0.0.1:8080
|
||||
python3 student-tests/lab2/run.py \
|
||||
--suite business-boundaries --suite business-cursors --suite read-after-write
|
||||
```
|
||||
|
||||
`--include-observations` дополнительно фиксирует дубликаты JSON-ключей и непарные `\uD800`/`\uDC00`. Контракт не задаёт для них отдельную политику; эти наблюдения не входят в PASS/FAIL обязательных проверок. Текущая реализация отклоняет все девять наблюдений с 400. Исторические 13/13 PASS не подтверждают новые сценарии. Проверка создаёт только синтетические данные и требует запущенный API.
|
||||
- business-boundaries: поля, типы, кодировка UTF-8, точные имена JSON-ключей,
|
||||
границы Unicode, Content-Type и ошибки. Совместимые byte/JSON-проверки
|
||||
сохранены в validation_edges.py, регистрация требует password;
|
||||
положительный User-ответ не должен возвращать password/password_hash.
|
||||
- business-cursors: **и GET /chats, и история сообщений**. Полный обход чатов
|
||||
с limit=2, порядок (created_at,id), отсутствие потерь/повторов/чужих чатов,
|
||||
завершение next_cursor, смена limit 1 → 100, чужой cursor и плохие параметры.
|
||||
- read-after-write: 100 сообщений от 10 аутентифицированных участников;
|
||||
число параллельных запросов задаёт config.concurrency (по умолчанию 4).
|
||||
Следующее чтение видит подтверждённое сообщение; полный обход сверяет
|
||||
порядок, уникальность, содержимое и отправителей всех сообщений.
|
||||
|
||||
## Изолированный контейнер и результаты
|
||||
JSON-проверки также можно запустить отдельно:
|
||||
|
||||
```sh
|
||||
python3 student-tests/container_level4.py --build \
|
||||
--image highload-lab1-audit:local --output evidence/level4.json
|
||||
python3 student-tests/validation_edges.py --base-url http://127.0.0.1:8080
|
||||
```
|
||||
|
||||
Нужны Docker, make и Python 3.9+. Скрипт собирает образ из временной копии текущих отслеживаемых файлов, создаёт контейнер с 1 CPU / 128 MiB, публикует свободный порт только на 127.0.0.1, запускает `make check`, `make test` и собственные HTTP-тесты. Затем проверяет конфигурацию порта, UID, отсутствие Go в runtime, healthcheck, сброс памяти после рестарта, SIGTERM с завершением активного запроса и отказом новым запросам, логи без тестовых маркеров сообщений.
|
||||
Tokens не выводятся; тела регистрации, содержащие пароль, не сохраняются
|
||||
в evidence, включая hex-представление. Данные синтетические; API не имеет
|
||||
удаления, поэтому используйте отдельный тестовый стенд.
|
||||
|
||||
После завершения собственные контейнеры удаляются; другие контейнеры не изменяются. Образ остаётся для воспроизведения. `--build` можно опустить для проверки уже собранного образа. Полный JSON сохраняется по `--output`; рядом при сборке создаётся файл `*-build.txt`. В результатах записываются версия Docker, аппаратные сведения, лимиты, image ID, базовый HEAD и fingerprint исходников. Если рабочее дерево не закоммичено, это явно отмечается.
|
||||
## Измерения и дополнительные сценарии
|
||||
|
||||
Сборка копии текущих отслеживаемых файлов не подтверждает содержимое опубликованного commit. Новые исходники и тесты нужно включить в сдаваемую версию проекта самостоятельно. Команда создаёт данные только внутри своего контейнера; после удаления они теряются.
|
||||
В lab2/budgets.py остаётся ограниченная HTTP-матрица 1/5/10 клиентов;
|
||||
сборщик CPU/RAM находится в lab2/resources.py и не зависит от старых
|
||||
запускателей первой лабы. Методика измерений при выделении сборщика сохранена.
|
||||
SQL-планы проверяются на 10 000 сообщениях. Описания и отдельные заготовки
|
||||
исследований на 5: [lab2/README.md](lab2/README.md). Они не являются условием
|
||||
прохождения обычного stack.py verify на 4.
|
||||
|
||||
## Оценка 5, трек 1: корректность после изменения
|
||||
|
||||
Нужны Docker с Linux cgroup v2, Go 1.27.1+ и Python 3.9+; поддерживаются macOS/Linux. Дополнительные библиотеки не требуются. `track1_load.go` — отдельный HTTP-клиент без импортов приложения; `track1.py` собирает его во временном каталоге, управляет контейнерами и сохраняет результаты. Исходники приложения, обязательный контракт и публичные тесты не изменяются.
|
||||
|
||||
```sh
|
||||
python3 student-tests/track1.py check --build \
|
||||
--image highload-lab1-track1:check --output evidence/track1-check.json
|
||||
```
|
||||
|
||||
Команда запускает `make check`, `make test`, собственные HTTP-проверки уровня 4 и следующие проверки истории:
|
||||
|
||||
- 203 исходных сообщения от 10 клиентов; полный обход с `limit=1,7,50,100`.
|
||||
- Порядок `(created_at, id)` с сохранением наносекунд; уникальность ID и полное совпадение сообщений с ответами POST.
|
||||
- Изменение `limit` с 3 на 79 при продолжении, последняя неполная страница и завершение cursor.
|
||||
- Пустая история, 404 для постороннего пользователя, 400 для cursor другого чата.
|
||||
- Ещё 100 записей от 10 клиентов одновременно с тремя обходами истории. После завершения — ровно 303 уникальных сообщения без потерь и изменения содержимого.
|
||||
|
||||
Проверка не требует snapshot между страницами. Во время конкурентного обхода проверяются порядок, отсутствие повторов и сохранность исходной истории; после остановки записи проверяются все подтверждённые сообщения. Скачок системных часов назад в сценарий не включён.
|
||||
|
||||
## Оценка 5, трек 1: матрица нагрузки
|
||||
|
||||
До изменения реализации:
|
||||
|
||||
```sh
|
||||
python3 student-tests/track1.py run --build \
|
||||
--image highload-lab1-track1:before --label before \
|
||||
--output evidence/track1-before.json
|
||||
```
|
||||
|
||||
После одного изменения реализации:
|
||||
|
||||
```sh
|
||||
python3 student-tests/track1.py run --build \
|
||||
--image highload-lab1-track1:after --label after \
|
||||
--output evidence/track1-after.json
|
||||
|
||||
python3 student-tests/track1.py compare \
|
||||
--before evidence/track1-before.json --after evidence/track1-after.json \
|
||||
--output evidence/track1-comparison.json
|
||||
```
|
||||
|
||||
Параметры по умолчанию: истории 100 / 1 000 / 10 000 сообщений, конкуренция 1 / 5 / 10, три повтора каждого сочетания, прогрев 5 с и измерение 30 с. Каждый профиль получает отдельный свежий контейнер с 1 CPU, 128 MiB RAM, без дополнительного swap. Размер синтетического ASCII-текста — 128 байт, страница — 50 элементов. GET чередует первую, среднюю и последнюю полную страницу; cursor получается от сервера и не конструируется клиентом. Подготовка данных и полные проверки истории не входят в измеряемую фазу.
|
||||
|
||||
Сохраняются JSON и CSV: успешные RPS, число/доля ошибок, p50/p95/p99 успешных запросов, CPU клиента, CPU контейнера, RSS процесса и память cgroup, временные ресурсные отсчёты, размеры истории, image ID, fingerprint исходников/генератора, параметры и результаты предварительных проверок. RSS читается из `/proc/1/status`; CPU — по разности `usage_usec` cgroup v2. Память cgroup включает cache и не подменяет RSS. Отсчёты ресурсов берутся каждые 0,5 с; пик означает максимум наблюдённых отсчётов, а не точный максимум.
|
||||
|
||||
Для короткого исходного эксперимента используются параметры `--duration 10 --warmup 2 --repeats 1`. Они также должны быть указаны при сравнительном запуске. Для окончательного исследования рекомендуется стандартный профиль с тремя повторами. Сравнение проверяет совпадение методики, ресурсов, стенда и версии генератора; выводит медиану и min/max по повторам. Один и тот же image ID до/после отклоняется как отсутствие подтверждённого изменения приложения.
|
||||
|
||||
Дополнительный сценарий `--workloads read,mixed` добавляет нагрузку с записью каждого двадцатого запроса. Он позволяет проверить задержки POST при чтении истории; история растёт во время прогрева и измерения, начальный и конечный размеры фиксируются. Это отдельный профиль, его нельзя сравнивать с чистым чтением как с одинаковой нагрузкой.
|
||||
|
||||
Выход 0 означает корректность сценариев и сбор измерений; он **не подтверждает оценку 5 или улучшение**. Ошибки HTTP/таймауты учитываются в метриках отдельно; нарушения содержимого/порядка, OOM, остановка процесса и ошибки сбора ресурсов делают запуск неуспешным. Подтверждённые сообщения проверяются после нагрузки. В mixed-профиле отдельно учитываются записи, которые могли сохраниться без полученного подтверждения; retry отсутствует.
|
||||
|
||||
Генератор работает в closed loop с HTTP/1.1 keep-alive: каждый клиент ожидает завершения своего запроса. Есть coordinated omission; задержки включают чтение JSON и клиентскую проверку данных. Клиент и Docker работают на одном компьютере, сбор ресурсов расходует часть CPU контейнера. Поэтому результаты характеризуют указанный стенд и профиль, а не абсолютный предел сервера. Для сохранения исходных результатов уже существующий output не перезаписывается; используйте новые имена файлов и разные теги before/after. Созданные контейнеры удаляются; образы остаются. Коммитов, staging и push сценарий не выполняет.
|
||||
|
||||
## Повторное сравнение на Go 1.27.1 от 03.10.2026
|
||||
|
||||
Обе версии используют Go 1.27.1, JSON v2 и один генератор. Для «до» сценарий `track1_baseline.py` создаёт временный локальный clone, копирует текущие файлы и заменяет **только** `../internal/repository/message.go` версией из commit `9de1152204e649c733d442255467dd81e1f16c59`. Подготовка записана в `baseline_preparation` итогового JSON. Рабочая копия проекта не изменяется; commit, staging и push не выполняются.
|
||||
|
||||
Команды выполненного короткого эксперимента:
|
||||
|
||||
```sh
|
||||
python3 student-tests/track1_baseline.py \
|
||||
--image highload-lab1-go127:before \
|
||||
--output evidence/track1-before-go127-2026-10-03.json
|
||||
|
||||
python3 student-tests/track1.py run --build \
|
||||
--image highload-lab1-go127:after --label after-go127 \
|
||||
--histories 100,1000,10000 --concurrency 1,5,10 \
|
||||
--duration 10 --warmup 2 --repeats 1 \
|
||||
--output evidence/track1-after-go127-2026-10-03.json
|
||||
|
||||
python3 student-tests/track1.py compare \
|
||||
--before evidence/track1-before-go127-2026-10-03.json \
|
||||
--after evidence/track1-after-go127-2026-10-03.json \
|
||||
--output evidence/track1-comparison-go127-2026-10-03.json
|
||||
```
|
||||
|
||||
Для повторения выбирайте новые output-файлы. Параметры `track1_baseline.py` фиксированы: истории 100/1000/10000, конкуренция 1/5/10, прогрев 2 с, измерение 10 с, один повтор; вариант «после» должен использовать те же значения. Более длительный профиль выполняется отдельно на обеих версиях по методике выше.
|
||||
|
||||
[До](../evidence/track1-before-go127-2026-10-03.json), [после](../evidence/track1-after-go127-2026-10-03.json), [сравнение](../evidence/track1-comparison-go127-2026-10-03.json). Результаты и ограничения приведены в [REPORT.md](../REPORT.md).
|
||||
|
||||
Термин `no retries` в выводе Go означает отсутствие повторов в цикле генератора. Стандартный `net/http.Transport` может безопасно восстановить запрос после некоторых ошибок ранее использованного соединения, в частности GET. Такие сетевые попытки отдельно не считаются: измеряются HTTP-вызовы клиента и их полное время.
|
||||
|
||||
## Историческое сравнение от 01.10.2026
|
||||
|
||||
[До](../evidence/track1-before-2026-10-01.json), [после](../evidence/track1-after-2026-10-01.json), [сравнение](../evidence/track1-comparison-2026-10-01.json), [контейнерная проверка](../evidence/level4-after-track1-2026-10-01.json) относятся к прежней версии Go и прежнему набору HTTP-проверок. Они сохранены для истории и не подтверждают исправление замечаний к JSON. Не сравнивайте эти измерения с Go 1.27.1 как эксперимент с одним изменением.
|
||||
|
||||
Для воспроизведения прежней исходной версии нужны её сохранённый образ `highload-lab1-track1:before-20261001` без `--build` либо отдельная копия commit `9de1152`. Текущая рабочая копия включает миграцию на Go 1.27.1 и отличается от обоих образов от 01.10.2026.
|
||||
|
||||
## Проверка в CI
|
||||
|
||||
### GitFlic
|
||||
|
||||
Конфигурация для платформы сдачи — [gitflic-ci.yaml](../gitflic-ci.yaml). Конвейер допускает push, событие merge request и ручной запуск из веб-интерфейса. Для автоматического MR-конвейера нужно также включить «Запуск конвейера слияния» в настройках проекта. [Справочник YAML](https://docs.gitflic.ru/latest/cicd/gitflic-ci-yaml/), [запуск конвейеров](https://docs.gitflic.ru/latest/cicd/pipeline/).
|
||||
|
||||
Задачи выполняются последовательно; ошибка любой задачи завершает конвейер с ошибкой:
|
||||
|
||||
1. `contracts`: отдельное временное Python-окружение, установка `requirements-dev.txt`, `make check validate`. Окружение удаляется; вывод сохраняется в `build/gitflic-ci/contracts.txt`.
|
||||
2. `application`: сборка уникального Docker-образа, `container_level4.py --build` и `track1.py check` для этого же образа. Проверяются публичный API, собственные сценарии уровня 4, 100 сообщений от 10 клиентов, конфигурация порта, UID/runtime, healthcheck, перезапуск, SIGTERM, логи и целостность истории при конкурентных записях. Полная нагрузочная матрица до/после остаётся отдельным экспериментом на указанном в отчёте стенде.
|
||||
|
||||
JSON, CSV и лог сборки находятся в `build/gitflic-ci/application-<UUID>/`. Новое имя для каждого запуска предотвращает конфликт тегов и перезапись результатов трека 1. Задачи сохраняют уже созданные артефакты и при ошибке (`when: always`); срок хранения — 30 дней. Тестовые контейнеры удаляют сценарии, а образ задачи удаляет shell trap с сохранением исходного exit code. `build/` уже исключён из Git; итоговые материалы для сдачи сохраняются отдельно в `evidence/`. Пароли приложения и доступ к реестру для этих задач не требуются.
|
||||
|
||||
#### Требования к runner
|
||||
|
||||
Обе задачи используют тег **`lab1-shell`**. Нужен отдельный runner типа **Shell**, которому доступны Python 3.9+ с `venv`/`pip`, Git, make, Go 1.27.1+ и локальный Docker Engine с Linux cgroup v2. На Linux узел runner и опубликованные порты Docker должны находиться в одной сетевой среде: тесты используют `127.0.0.1`. Обычный Docker executor с сокетом внешнего Docker-host для этой конфигурации не подходит. Runner выделяется этому проекту; общий Docker-host других проектов не используется согласно CONTRIBUTING.md.
|
||||
|
||||
Пользователь подтвердил 02.10.2026, что runner пока не подключён. На публичном `gitflic.ru` регистрация собственного runner выполняется на уровне **компании**; регистрация непосредственно в настройках личного проекта доступна только в self-hosted версиях. Требуется runner, доступный проекту в соответствующем контуре компании/учебного CI. Если у личного fork такого доступа нет, сначала согласуется с преподавателем размещение fork в компании или предоставление подходящего runner. Настройка компании и перенос проекта автоматически не выполняются. [Регистрация Shell runner](https://docs.gitflic.ru/latest/setup/runner/installshell/), [область регистрации агентов](https://docs.gitflic.ru/latest/cicd/agent/).
|
||||
|
||||
#### Подключение и первый запуск
|
||||
|
||||
1. Установить на отдельном Linux-узле совместимую версию GitFlic Runner по официальной инструкции; для Shell нужны также `helper.jar` и исполняемый `helper.sh`. Установить инструменты из списка выше. Проверить их доступность от пользователя, запускающего агент:
|
||||
|
||||
```sh
|
||||
sudo -u gitflic-runner python3 --version
|
||||
sudo -u gitflic-runner go version
|
||||
sudo -u gitflic-runner git --version
|
||||
sudo -u gitflic-runner make --version
|
||||
sudo -u gitflic-runner docker info --format '{{.CgroupVersion}}'
|
||||
```
|
||||
|
||||
Последняя команда должна вернуть `2`. Пользователь runner должен иметь доступ к Docker Engine на этом же узле.
|
||||
|
||||
2. В настройках компании открыть «Агенты CI/CD», получить Registration URL и token. Следующие команды выполнить **в Bash на узле runner**, из каталога с установленным `runner.jar`. Token вводится локально и не записывается в репозиторий:
|
||||
|
||||
```bash
|
||||
cd /opt/gitflic-runner
|
||||
read -r -p "Registration URL: " lab1_runner_url
|
||||
read -r -s -p "Registration token: " lab1_runner_token
|
||||
printf '\n'
|
||||
sudo -u gitflic-runner java -jar runner.jar register \
|
||||
--url "$lab1_runner_url" --registration-token "$lab1_runner_token" \
|
||||
--name lab1-shell --tags lab1-shell
|
||||
unset lab1_runner_token
|
||||
```
|
||||
|
||||
3. В созданном файле `config/application.properties` указать `runner.executor=shell`, рабочий каталог и каталог helper согласно инструкции установки. Запустить агент через установленный service или, для первого запуска:
|
||||
|
||||
```sh
|
||||
sudo -u gitflic-runner java -jar runner.jar start --config=config/application.properties
|
||||
```
|
||||
|
||||
В интерфейсе GitFlic проверить, что агент активен, имеет тег `lab1-shell`, доступен проекту и принимает задачи ветки `solution/BPI2304-remez`.
|
||||
|
||||
4. В настройках CI/CD проекта указать путь **`gitflic-ci.yaml`**. Для MR включить «Запуск конвейера слияния». Опубликовать конфигурацию и документы в своей ветке. [Настройки CI/CD](https://docs.gitflic.ru/latest/cicd/cicd-settings/).
|
||||
5. Открыть «CI/CD → Конвейеры → Создать конвейер», выбрать `solution/BPI2304-remez`. Ожидаемый результат: обе задачи успешны; `level4.json` и `track1.json` содержат `status: PASS`. Скачать артефакты и сохранить ссылку на фактический конвейер для отчёта. Последующие push запускают тот же конвейер автоматически.
|
||||
|
||||
Точные scripts обеих задач GitFlic CI локально прошли 02.10.2026: [сводка](../evidence/gitflic-ci-local-2026-10-02.json). YAML и синтаксис shell проверены; это не подтверждает регистрацию runner или удалённый запуск GitFlic.
|
||||
|
||||
### GitHub
|
||||
|
||||
При размещении проекта на GitHub сохраняется альтернативный `.github/workflows/application.yml`: сборка и контейнерные проверки с JSON/логом как artifact `lab1-application-checks`. Точная команда локально прошла 02.10.2026: [результат](../evidence/level4-ci.json), [лог](../evidence/level4-ci-build.txt). Этот workflow автоматически не выполняется на GitFlic.
|
||||
Архивные evidence прежних запусков сохраняются как история; их PASS
|
||||
не подтверждает текущую версию. Авторский REPORT.md и объяснение на защите
|
||||
автоматические тесты не заменяют.
|
||||
|
||||
@@ -30,11 +30,24 @@ verify создаёт уникальный проект `lab2-test-*`, новы
|
||||
|
||||
1. `make check validate`, собственные проверки тестовых инструментов.
|
||||
2. Сборка и запуск PostgreSQL, Redis с AOF, migrate и API; ожидание готовности.
|
||||
3. Все Go-тесты с `-race` на настоящих PostgreSQL и Redis. SKIP считается ошибкой.
|
||||
3. Отдельная сборка race-instrumented пакетов (`go test -race -run '^$' ./...`),
|
||||
затем все Go-тесты с `-race` на настоящих PostgreSQL и Redis. Сборка не
|
||||
считается прохождением тестов. Runner budget сборки — 300 с, исполнения
|
||||
Go-набора — 600 с; каждый вложенный Python acceptance-процесс под race
|
||||
получает собственные 300 с. Это суммарные budgets инструментов, не
|
||||
разрешение отдельному запросу ждать пять минут. Вложенный auth сохраняет
|
||||
клиентский timeout 15 с, рабочий SQL budget приложения остаётся 1 с;
|
||||
общий guard clean-clone runner — 1200 с с учётом установки/сборки и всех
|
||||
независимых suites. Рабочие SQL/Redis, HTTP client и operation budgets
|
||||
не увеличиваются. При runner timeout сохраняется частичный очищенный лог.
|
||||
SKIP фактического Go-прогона считается ошибкой.
|
||||
Включены миграции до 3, откат 3 → 2 → 1 → 3, структура восстановленной
|
||||
sessions и сохранность четырёх бизнес-таблиц.
|
||||
4. Публичный `make test`, 16 HTTP auth-проверок, границы бизнес-запросов,
|
||||
пагинация и чтение после записи.
|
||||
4. Публичный `make test`, 16 HTTP auth-проверок, границы бизнес-запросов и
|
||||
строгие JSON/UTF-8 cases с password/Bearer. business-cursors обходит и
|
||||
GET /chats, и историю сообщений: порядок, отсутствие потерь/повторов,
|
||||
чужой cursor и смена limit. read-after-write сверяет 100 сообщений от
|
||||
10 участников; число одновременных запросов по умолчанию 4.
|
||||
5. Публичный test-persistence с настоящим scripts/restart.sh и собственная
|
||||
проверка сохранности токенов, logout, сообщений и срока сессий после рестарта.
|
||||
6. EXPLAIN (ANALYZE, BUFFERS) реального запроса истории на 10 000 сообщениях.
|
||||
@@ -85,6 +98,7 @@ GET /users/me использует тестовый бюджет из AUTH_TEST_
|
||||
800; SQL-план на 10 000 проверяется отдельным прежним этапом. API ограничен
|
||||
2 CPU/1 GiB, PostgreSQL 1 CPU/512 MiB, Redis 0.5 CPU/256 MiB только в этом
|
||||
тестовом override. CPU/RAM измеряет существующий cgroup sampler лабораторной 1.
|
||||
Сборщик ресурсов — lab2/resources.py; зависимости от запускателей lab1 нет.
|
||||
Время HTTP не выдаётся за время SQL. Малые выборки не обосновывают стабильный
|
||||
p99 или выбор production timeout.
|
||||
|
||||
|
||||
@@ -416,8 +416,6 @@ func TestRedisPublicHTTPContractIsUnchanged(t *testing.T) {
|
||||
root := filepath.Clean(filepath.Join(filepath.Dir(source), "..", ".."))
|
||||
// The full acceptance suite performs many Argon2id operations. Under -race
|
||||
// it needs its own budget rather than the 45-second SQL fixture budget.
|
||||
acceptanceCtx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
|
||||
defer cancel()
|
||||
for _, tc := range []struct {
|
||||
name string
|
||||
args []string
|
||||
@@ -426,10 +424,24 @@ func TestRedisPublicHTTPContractIsUnchanged(t *testing.T) {
|
||||
{"auth_normal", []string{filepath.Join(root, "student-tests/auth_contract.py"), "--base-url", server.URL, "--ttl", "3600"}},
|
||||
} {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
// Each independent subprocess gets the full acceptance budget. A smoke
|
||||
// run must not consume part of the following auth suite's allowance.
|
||||
acceptanceCtx, cancel := context.WithTimeout(context.Background(), 300*time.Second)
|
||||
defer cancel()
|
||||
cmd := exec.CommandContext(acceptanceCtx, "python3", tc.args...)
|
||||
cmd.Dir = root
|
||||
output, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
for _, line := range strings.Split(string(output), "\n") {
|
||||
if strings.HasPrefix(line, "test_") {
|
||||
// Only method names: never print credentials or subtest values.
|
||||
name, _, _ := strings.Cut(line, " ")
|
||||
t.Log("acceptance progress: " + name)
|
||||
}
|
||||
}
|
||||
if acceptanceCtx.Err() != nil {
|
||||
t.Fatal("HTTP acceptance subprocess exceeded its own execution budget; application operation budgets are unchanged")
|
||||
}
|
||||
// Public clients keep tokens in memory. Show only status diagnostics.
|
||||
for _, line := range strings.Split(string(output), "\n") {
|
||||
if strings.Contains(line, "expected [") && strings.Contains(line, "received") {
|
||||
|
||||
@@ -88,7 +88,7 @@ def main():
|
||||
if args.measure_budgets:
|
||||
verify_args.append("--measure-budgets")
|
||||
verification = subprocess.run(verify_args,
|
||||
cwd=clone, stdout=log, stderr=subprocess.STDOUT, text=True, timeout=600)
|
||||
cwd=clone, stdout=log, stderr=subprocess.STDOUT, text=True, timeout=1200)
|
||||
summary["acceptance_exit"] = verification.returncode
|
||||
acceptance_path = output / "acceptance/summary.json"
|
||||
if acceptance_path.exists():
|
||||
|
||||
@@ -1,293 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Build and verify an isolated lab1 container; save sanitized evidence.
|
||||
|
||||
python3 student-tests/container_level4.py --build --output evidence/level4.json
|
||||
Requires Docker, make and Python 3.9+. Removes only its own test container.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import datetime as dt
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import platform
|
||||
import shutil
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
import uuid
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT / "tests"))
|
||||
from client import Client, Failure, check # noqa: E402
|
||||
|
||||
|
||||
def command(args, timeout=60, required=True):
|
||||
result = subprocess.run(args, cwd=ROOT, capture_output=True, text=True, timeout=timeout)
|
||||
if required and result.returncode:
|
||||
raise Failure("command failed: " + args[0] + " (exit %d)" % result.returncode)
|
||||
return result
|
||||
|
||||
|
||||
def docker(*args, required=True):
|
||||
result = command(["docker", *args], required=required)
|
||||
return (result.stdout + result.stderr if args[0] == "logs" else result.stdout).strip()
|
||||
|
||||
|
||||
def inspect(name):
|
||||
return json.loads(docker("inspect", name))[0]
|
||||
|
||||
|
||||
def wait_for(predicate, seconds, message):
|
||||
deadline = time.monotonic() + seconds
|
||||
while time.monotonic() < deadline:
|
||||
if predicate():
|
||||
return
|
||||
time.sleep(0.1)
|
||||
raise Failure(message)
|
||||
|
||||
|
||||
def source_fingerprint():
|
||||
paths = [ROOT / name for name in ("Dockerfile", ".dockerignore", "go.mod", "go.sum")]
|
||||
paths += list((ROOT / "cmd").rglob("*.go")) + list((ROOT / "internal").rglob("*.go"))
|
||||
digest = hashlib.sha256()
|
||||
for path in sorted(paths):
|
||||
digest.update(str(path.relative_to(ROOT)).encode() + b"\0" + path.read_bytes() + b"\0")
|
||||
return digest.hexdigest()
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--image", default="highload-lab1-audit:local")
|
||||
parser.add_argument("--build", action="store_true")
|
||||
parser.add_argument("--output", default="evidence/level4.json")
|
||||
args = parser.parse_args()
|
||||
output = ROOT / args.output
|
||||
output.parent.mkdir(parents=True, exist_ok=True)
|
||||
evidence = {
|
||||
"checked_at_utc": dt.datetime.now(dt.timezone.utc).isoformat(),
|
||||
"git_head": command(["git", "rev-parse", "HEAD"]).stdout.strip(),
|
||||
"uncommitted_working_files": bool(command(["git", "status", "--porcelain"]).stdout),
|
||||
"source_sha256": source_fingerprint(),
|
||||
"host": {"system": platform.system(), "architecture": platform.machine()},
|
||||
"limits": {"cpu": 1, "memory_bytes": 128 * 1024 * 1024},
|
||||
"checks": [],
|
||||
}
|
||||
if platform.system() == "Darwin":
|
||||
hardware = command(["sysctl", "-n", "machdep.cpu.brand_string", "hw.memsize", "hw.ncpu"], required=False)
|
||||
if hardware.returncode == 0:
|
||||
cpu, memory, cores = hardware.stdout.splitlines()
|
||||
evidence["host"].update({"cpu": cpu, "memory_bytes": int(memory), "logical_cpus": int(cores)})
|
||||
name = "highload-lab1-check-" + uuid.uuid4().hex[:12]
|
||||
created = False
|
||||
markers = []
|
||||
|
||||
def record(label, scenario):
|
||||
try:
|
||||
details = scenario()
|
||||
status = "FAIL" if isinstance(details, dict) and details.get("exit_code", 0) else "PASS"
|
||||
evidence["checks"].append({"name": label, "status": status, "details": details})
|
||||
print(status + ":", label, flush=True)
|
||||
if status == "FAIL":
|
||||
print(details.get("output", ""), flush=True)
|
||||
except (Failure, OSError, ValueError, subprocess.SubprocessError) as exc:
|
||||
evidence["checks"].append({"name": label, "status": "FAIL", "details": str(exc)})
|
||||
print("FAIL: %s: %s" % (label, exc), flush=True)
|
||||
|
||||
try:
|
||||
info = json.loads(docker("info", "--format", "{{json .}}"))
|
||||
evidence["docker"] = {key: info.get(key) for key in
|
||||
("ServerVersion", "OperatingSystem", "Architecture", "NCPU", "MemTotal")}
|
||||
if args.build:
|
||||
started = time.monotonic()
|
||||
# Use current contents of tracked files; omit untracked IDE/runtime files.
|
||||
with tempfile.TemporaryDirectory(prefix="highload-clean-build-") as directory:
|
||||
tracked = command(["git", "ls-files", "-z"]).stdout.split("\0")
|
||||
for relative in filter(None, tracked):
|
||||
source = ROOT / relative
|
||||
if source.is_file():
|
||||
target = Path(directory) / relative
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(source, target)
|
||||
build = command(["docker", "build", "--progress=plain", "-t", args.image, directory],
|
||||
timeout=300, required=False)
|
||||
build_log = output.with_name(output.stem + "-build.txt")
|
||||
build_log.write_text(build.stdout + build.stderr)
|
||||
evidence["build"] = {
|
||||
"command": "docker build --progress=plain -t %s <copy-of-current-tracked-files>" % args.image,
|
||||
"context": "current tracked working files, not a committed clone",
|
||||
"exit_code": build.returncode,
|
||||
"seconds": round(time.monotonic() - started, 3),
|
||||
"log": str(build_log.relative_to(ROOT)),
|
||||
}
|
||||
check(build.returncode == 0, "Docker build failed; see saved build log")
|
||||
image = json.loads(docker("image", "inspect", args.image))[0]
|
||||
evidence["image"] = {"tag": args.image, "id": image["Id"],
|
||||
"configured_user": image["Config"].get("User"),
|
||||
"healthcheck": image["Config"].get("Healthcheck")}
|
||||
docker("run", "-d", "--name", name, "--cpus=1", "--memory=128m",
|
||||
"-p", "127.0.0.1::8080", "-e", "APP_HOST=0.0.0.0", "-e", "APP_PORT=8080", args.image)
|
||||
created = True
|
||||
binding = inspect(name)["NetworkSettings"]["Ports"]["8080/tcp"][0]
|
||||
base = "http://127.0.0.1:" + binding["HostPort"]
|
||||
client = Client(base, timeout=2)
|
||||
|
||||
def ready():
|
||||
try:
|
||||
client.call("GET", "/health/ready", schema="Health")
|
||||
return True
|
||||
except Failure:
|
||||
return False
|
||||
|
||||
wait_for(ready, 15, "container did not become ready")
|
||||
|
||||
def external(invocation, display=None):
|
||||
result = command(invocation, required=False)
|
||||
return {"command": display or " ".join(invocation),
|
||||
"exit_code": result.returncode, "output": (result.stdout + result.stderr).strip()}
|
||||
|
||||
record("offline structure", lambda: external(["make", "check"]))
|
||||
record("public smoke", lambda: external(["make", "test", "BASE_URL=" + base]))
|
||||
record("own contract and 100-message tests", lambda: external(
|
||||
[sys.executable, "student-tests/level4.py", "--base-url", base],
|
||||
"python3 student-tests/level4.py --base-url " + base))
|
||||
|
||||
def configuration():
|
||||
other = name + "-port"
|
||||
docker("run", "-d", "--name", other, "--cpus=1", "--memory=128m",
|
||||
"-p", "127.0.0.1::8091", "-e", "APP_HOST=0.0.0.0", "-e", "APP_PORT=8091", args.image)
|
||||
try:
|
||||
port = inspect(other)["NetworkSettings"]["Ports"]["8091/tcp"][0]["HostPort"]
|
||||
alternate = Client("http://127.0.0.1:" + port, timeout=2)
|
||||
def alternate_ready():
|
||||
try:
|
||||
alternate.call("GET", "/health/ready", schema="Health")
|
||||
return True
|
||||
except Failure:
|
||||
return False
|
||||
wait_for(alternate_ready, 10, "APP_PORT=8091 did not change listening port")
|
||||
return {"APP_HOST": "0.0.0.0", "APP_PORT": "8091", "ready_status": 200,
|
||||
"note": "image healthcheck remains fixed to 8080; this tests HTTP configuration only"}
|
||||
finally:
|
||||
command(["docker", "rm", "--force", other], required=False)
|
||||
|
||||
record("configuration from environment", configuration)
|
||||
|
||||
def runtime():
|
||||
uid = int(docker("exec", name, "id", "-u"))
|
||||
check(uid != 0, "runtime user is root")
|
||||
compiler = command(["docker", "exec", name, "which", "go"], required=False)
|
||||
check(compiler.returncode == 1, "Go compiler present in runtime")
|
||||
return {"uid": uid, "go_compiler_present": False, "app_files": docker("exec", name, "ls", "/app")}
|
||||
|
||||
record("non-root and separate runtime", runtime)
|
||||
|
||||
def health():
|
||||
check(image["Config"].get("Healthcheck"), "image has no healthcheck")
|
||||
wait_for(lambda: inspect(name)["State"].get("Health", {}).get("Status") == "healthy",
|
||||
35, "Docker healthcheck did not become healthy")
|
||||
return {"status": "healthy"}
|
||||
|
||||
record("Docker healthcheck", health)
|
||||
|
||||
def lifecycle():
|
||||
nonlocal binding, base
|
||||
actor = client.user("lifecycle")
|
||||
chat = client.call("POST", "/api/v1/chats", 201, actor=actor,
|
||||
body={"title": "Lifecycle", "member_ids": [actor["id"]]}, schema="Chat")["json"]
|
||||
text = "private-test-marker-" + uuid.uuid4().hex
|
||||
markers.append(text)
|
||||
message = client.message(actor, chat, text)["json"]
|
||||
history = client.call("GET", "/api/v1/chats/" + chat["id"] + "/messages",
|
||||
actor=actor, schema="MessagePage")["json"]
|
||||
check(history["items"] == [message], "message not visible before restart")
|
||||
docker("restart", "--time", "10", name)
|
||||
binding = inspect(name)["NetworkSettings"]["Ports"]["8080/tcp"][0]
|
||||
base = "http://127.0.0.1:" + binding["HostPort"]
|
||||
client.base = base
|
||||
wait_for(ready, 15, "container not ready after restart")
|
||||
response = client.call("GET", "/api/v1/users/me", 401, actor=actor)
|
||||
return {"message_visible_before_restart": True, "old_user_after_restart": response["status"]}
|
||||
|
||||
record("in-memory lifecycle", lifecycle)
|
||||
|
||||
def shutdown():
|
||||
actor = client.user("shutdown")
|
||||
chat = client.call("POST", "/api/v1/chats", 201, actor=actor,
|
||||
body={"title": "Shutdown", "member_ids": [actor["id"]]}, schema="Chat")["json"]
|
||||
text = "drain-test-marker-" + uuid.uuid4().hex
|
||||
markers.append(text)
|
||||
body = json.dumps({"text": text}).encode()
|
||||
headers = ("POST /api/v1/chats/%s/messages HTTP/1.1\r\nHost: localhost\r\n"
|
||||
"X-User-Id: %s\r\nContent-Type: application/json\r\nContent-Length: %d\r\n"
|
||||
"Connection: close\r\n\r\n" % (chat["id"], actor["id"], len(body))).encode()
|
||||
baseline = docker("logs", name).count("shutdown signal received")
|
||||
with socket.create_connection(("127.0.0.1", int(binding["HostPort"])), timeout=3) as active:
|
||||
active.sendall(headers + body[:-1])
|
||||
time.sleep(0.2)
|
||||
started = time.monotonic()
|
||||
docker("kill", "--signal=TERM", name)
|
||||
wait_for(lambda: docker("logs", name).count("shutdown signal received") > baseline,
|
||||
3, "SIGTERM not observed in logs")
|
||||
check(inspect(name)["State"]["Running"], "process exited before draining active request")
|
||||
rejected = 0
|
||||
for _ in range(5):
|
||||
request = urllib.request.Request(base + "/health/live", headers={"Connection": "close"})
|
||||
try:
|
||||
with urllib.request.urlopen(request, timeout=0.5):
|
||||
pass
|
||||
except (urllib.error.URLError, OSError):
|
||||
rejected += 1
|
||||
check(rejected == 5, "new requests were accepted after SIGTERM")
|
||||
active.sendall(body[-1:])
|
||||
response = b""
|
||||
while True:
|
||||
chunk = active.recv(65536)
|
||||
if not chunk:
|
||||
break
|
||||
response += chunk
|
||||
check(response.split(b"\r\n", 1)[0].startswith(b"HTTP/1.1 201"),
|
||||
"active valid request did not finish with 201")
|
||||
wait_for(lambda: not inspect(name)["State"]["Running"], 9, "process did not stop")
|
||||
elapsed = time.monotonic() - started
|
||||
state = inspect(name)["State"]
|
||||
check(elapsed <= 10 and state["ExitCode"] == 0, "SIGTERM exceeded 10 seconds or exited abnormally")
|
||||
return {"seconds": round(elapsed, 3), "exit_code": state["ExitCode"],
|
||||
"new_requests_rejected": rejected, "active_request_status": 201}
|
||||
|
||||
record("SIGTERM, new requests and active request drain", shutdown)
|
||||
|
||||
def logging():
|
||||
result = command(["docker", "logs", name])
|
||||
logs = result.stdout + result.stderr
|
||||
check(all(marker not in logs for marker in markers), "message body found in logs")
|
||||
lines = logs.splitlines()
|
||||
request_lines = [line for line in lines if "http request" in line]
|
||||
check(request_lines, "no useful request logs")
|
||||
check(all("method=" in line and "status=" in line and "duration=" in line
|
||||
and "request_id=" in line and 'request_id=""' not in line for line in request_lines),
|
||||
"request logs lack useful fields or request IDs")
|
||||
check("server started" in logs and "shutdown signal received" in logs, "missing lifecycle logs")
|
||||
return {"request_lines": len(request_lines), "message_markers_present": False,
|
||||
"fields": ["method", "path", "status", "duration", "request_id"]}
|
||||
|
||||
record("useful logs without message contents", logging)
|
||||
except (Failure, OSError, ValueError, subprocess.SubprocessError) as exc:
|
||||
evidence["checks"].append({"name": "setup", "status": "FAIL", "details": str(exc)})
|
||||
print("FAIL: setup:", exc, flush=True)
|
||||
finally:
|
||||
if created:
|
||||
command(["docker", "rm", "--force", name], required=False)
|
||||
evidence["status"] = "PASS" if evidence["checks"] and all(
|
||||
item["status"] == "PASS" for item in evidence["checks"]) else "FAIL"
|
||||
output.write_text(json.dumps(evidence, ensure_ascii=False, indent=2) + "\n")
|
||||
print("SUMMARY: %s; evidence: %s" % (evidence["status"], args.output), flush=True)
|
||||
return 0 if evidence["status"] == "PASS" else 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -1,9 +1,28 @@
|
||||
# Заготовки проверок lab2 на оценку 5
|
||||
# Проверки lab2 и заготовки исследований на 5
|
||||
|
||||
Для завершённого трека 2 используется отдельный воспроизводимый запуск:
|
||||
|
||||
```sh
|
||||
.venv/bin/python student-tests/lab2/research.py --output evidence/grade5-sql-NEW
|
||||
```
|
||||
|
||||
Из корня репозитория он сам собирает sqlprobe, создаёт два изолированных
|
||||
PostgreSQL/volumes с синтетическими credentials, выполняет сравнение AB/BA на
|
||||
100k сообщений, backup/restore и restart новой цели, затем удаляет свои ресурсы.
|
||||
Образ postgres:18 должен присутствовать локально. Требуются Docker, Go из
|
||||
go.mod и Python-окружение scripts/setup-tests.sh. Output должен быть новым.
|
||||
CSV и агрегаты таблиц из сохранённого indexes.json пересчитываются без нового
|
||||
измерения: `python3 student-tests/lab2/summarize_research.py <output-directory>`.
|
||||
Точный метод и проверенные результаты —
|
||||
[исследовательский отчёт](../../evidence/grade5-sql-2026-10-28-verified/REPORT.md).
|
||||
Общая регрессия API по-прежнему запускается через student-tests/stack.py verify.
|
||||
Режим sqlprobe compare и приведённые ниже отдельные hooks остаются прототипами
|
||||
и точками расширения, а не подменой полного исследовательского запуска.
|
||||
|
||||
Ниже — тесты и тестовые адаптеры. Код приложения, обязательный контракт,
|
||||
публичные tests/ и основной Compose не меняются. Переносимый runner и активный
|
||||
workflow Gitea описаны в [RUNNING.md](../RUNNING.md).
|
||||
Основание: [полный чек-лист](../../LAB2_CHECKLIST.md), README/COURSE,
|
||||
Основание: [требования лабораторной](../../README.md), README/COURSE,
|
||||
contracts/README и OpenAPI преподавателя. Ожидаемые API-статусы и границы
|
||||
не подгоняются под текущие ответы сервера.
|
||||
|
||||
@@ -27,6 +46,14 @@ python3 student-tests/lab2/run.py \
|
||||
через API нет, поэтому нужен отдельный учебный стенд. Бенчмарки не следует
|
||||
проводить на общей/production БД. Этот runner сам Docker-стенд не поднимает.
|
||||
|
||||
`business-cursors` проверяет отдельно историю сообщений и список чатов:
|
||||
обход GET /chats с limit=2, точный порядок/состав, отсутствие дублей и чужих
|
||||
объектов, чужой cursor, смену limit 1 → 100 и завершение списка.
|
||||
`business-boundaries` включает совместимые JSON/UTF-8 cases из
|
||||
validation_edges.py с регистрационным password и Bearer; тела запросов с
|
||||
паролем в отчёт не сохраняются. `read-after-write` проверяет 100 сообщений от
|
||||
10 участников с config.concurrency одновременными запросами (по умолчанию 4).
|
||||
|
||||
`PASS` означает прохождение выбранного сценария, `FAIL` — наблюдаемое нарушение,
|
||||
`BLOCKED` — нет конфигурации/адаптера/выбранного трека. Exit: 0/1/2 соответственно;
|
||||
FAIL имеет приоритет над BLOCKED. Без --suite ничего не запускается. Пустой
|
||||
|
||||
@@ -17,7 +17,7 @@ ROOT=Path(__file__).resolve().parents[2]
|
||||
sys.path[:0]=[str(ROOT/'tests'),str(ROOT/'student-tests'),str(ROOT/'student-tests/lab2')]
|
||||
from client import Client,Failure
|
||||
from auth_contract import basic
|
||||
from track1 import Sampler
|
||||
from resources import Sampler
|
||||
spec=importlib.util.spec_from_file_location('budget_harness',ROOT/'student-tests/lab2/run.py')
|
||||
harness=importlib.util.module_from_spec(spec);spec.loader.exec_module(harness)
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import uuid
|
||||
from urllib.parse import quote
|
||||
|
||||
from client import check, timestamp
|
||||
from validation_edges import acceptance as json_acceptance
|
||||
|
||||
|
||||
def room(c, actor, members=None, title="Lab2 business fixture"):
|
||||
@@ -48,6 +49,53 @@ def boundaries(c):
|
||||
for raw in (b'{"text":"x","extra":1}', b'{"Text":"x"}', b'{"text":null}',
|
||||
b'{"text":1}', b'{"text":"x"} {}', b'{"text":"\xff"}'):
|
||||
c.call("POST", path, 400, actor=actor, raw=raw, headers={"Content-Type": "application/json"})
|
||||
for target, body in (("/api/v1/chats", {"title": "Media", "member_ids": [actor["id"]]}),
|
||||
(path, {"text": "Media"})):
|
||||
c.call("POST", target, 415, actor=actor, body=body, headers={"Content-Type": "text/plain"})
|
||||
c.call("GET", "/api/v1/does-not-exist", 404, actor=actor)
|
||||
return json_acceptance(c)
|
||||
|
||||
|
||||
def chat_pagination(c):
|
||||
owner, outsider = c.user("chatpages"), c.user("chatother")
|
||||
empty = c.call("GET", "/api/v1/chats", actor=owner, schema="ChatPage")["json"]
|
||||
check(empty == {"items": [], "next_cursor": None}, "empty chat list is not a finished empty page")
|
||||
expected = [room(c, owner, title="Chat page " + str(i)) for i in range(7)]
|
||||
room(c, outsider, title="Must not appear in owner's list")
|
||||
ordered = sorted(expected, key=lambda x: (timestamp(x["created_at"]), uuid.UUID(x["id"]).int))
|
||||
seen, cursors, cursor = [], set(), None
|
||||
for _ in range(len(expected) + 1):
|
||||
path = "/api/v1/chats?limit=2"
|
||||
if cursor is not None:
|
||||
path += "&cursor=" + quote(cursor, safe="")
|
||||
page = c.call("GET", path, actor=owner, schema="ChatPage")["json"]
|
||||
check(0 < len(page["items"]) <= 2, "invalid chat page size")
|
||||
seen.extend(page["items"])
|
||||
check(len(seen) <= len(expected), "chat pagination repeated or leaked items")
|
||||
cursor = page["next_cursor"]
|
||||
if cursor is None:
|
||||
break
|
||||
check(cursor not in cursors, "chat cursor cycle")
|
||||
cursors.add(cursor)
|
||||
rejected = c.call("GET", "/api/v1/chats?cursor=" + quote(cursor, safe=""),
|
||||
400, actor=outsider)
|
||||
check(rejected["json"]["error"]["code"] == "invalid_request", "foreign chat-list cursor returned wrong error")
|
||||
else:
|
||||
check(False, "chat pagination exceeded fixture bound")
|
||||
check(len({item["id"] for item in seen}) == len(expected), "chat list omitted or repeated IDs")
|
||||
check(seen == ordered, "chat pagination lost, repeated, changed or reordered items")
|
||||
|
||||
first = c.call("GET", "/api/v1/chats?limit=1", actor=owner, schema="ChatPage")["json"]
|
||||
check(first["next_cursor"] is not None, "chat cursor ended before remaining items")
|
||||
rest = c.call("GET", "/api/v1/chats?limit=100&cursor=" + quote(first["next_cursor"], safe=""),
|
||||
actor=owner, schema="ChatPage")["json"]
|
||||
check(first["items"] + rest["items"] == ordered and rest["next_cursor"] is None,
|
||||
"changing chat-list limit lost, repeated or reordered items")
|
||||
for query in ("limit=0", "limit=101", "limit=-1", "limit=abc", "limit=", "cursor=", "cursor=invalid"):
|
||||
rejected = c.call("GET", "/api/v1/chats?" + query, 400, actor=owner)
|
||||
check(rejected["json"]["error"]["code"] == "invalid_request", "invalid chat-list query returned wrong error")
|
||||
return {"items": len(seen), "page_limit": 2, "foreign_cursors_rejected": len(cursors),
|
||||
"changed_limit": [1, 100]}
|
||||
|
||||
|
||||
def cursors(c):
|
||||
@@ -69,23 +117,31 @@ def cursors(c):
|
||||
c.call("GET", path, 404, actor=outsider)
|
||||
c.call("POST", path, 404, actor=outsider, body={"text": "hidden"})
|
||||
check(history(c, actor, first, limit=2) == ordered, "complete keyset traversal differs")
|
||||
return {"message_items": len(sent), "chat_list": chat_pagination(c)}
|
||||
|
||||
|
||||
def read_after_write(c, client_factory, concurrency=4):
|
||||
actor = c.user("concurrent")
|
||||
chat = room(c, actor)
|
||||
members = [c.user("writer") for _ in range(10)]
|
||||
actor = members[0]
|
||||
chat = room(c, actor, members=[m["id"] for m in members])
|
||||
path = "/api/v1/chats/" + chat["id"] + "/messages?limit=100"
|
||||
# Warm the empty-history cache before starting concurrent writes.
|
||||
c.call("GET", path, actor=actor, schema="MessagePage")
|
||||
|
||||
def write_then_read(index):
|
||||
local = client_factory()
|
||||
confirmed = local.message(actor, chat, "Read-after-write " + str(index))["json"]
|
||||
page = local.call("GET", path, actor=actor, schema="MessagePage")["json"]
|
||||
writer = members[index % len(members)]
|
||||
confirmed = local.message(writer, chat, "Read-after-write " + str(index))["json"]
|
||||
check(confirmed["sender_id"] == writer["id"], "message sender differs from authenticated writer")
|
||||
page = local.call("GET", path, actor=writer, schema="MessagePage")["json"]
|
||||
check(any(m == confirmed for m in page["items"]), "confirmed message absent from next read")
|
||||
return confirmed
|
||||
|
||||
with ThreadPoolExecutor(max_workers=concurrency) as pool:
|
||||
messages = list(pool.map(write_then_read, range(min(32, concurrency * 4))))
|
||||
check({m["id"] for m in history(c, actor, chat)} == {m["id"] for m in messages},
|
||||
"concurrent writes lost or duplicated confirmations")
|
||||
messages = list(pool.map(write_then_read, range(100)))
|
||||
stored = history(c, actor, chat, limit=37)
|
||||
check(len({m["id"] for m in messages}) == 100, "concurrent writes reused message IDs")
|
||||
check(stored == sorted(messages, key=lambda m: (timestamp(m["created_at"]), uuid.UUID(m["id"]).int)),
|
||||
"concurrent writes lost, duplicated, changed or reordered confirmations")
|
||||
check({m["sender_id"] for m in stored} == {m["id"] for m in members}, "not all writers contributed")
|
||||
return {"writers": len(members), "messages": len(stored), "concurrency": concurrency}
|
||||
|
||||
@@ -0,0 +1,253 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Track 2: disposable PostgreSQL A/B experiment and verified backup/restore.
|
||||
|
||||
Uses sqlprobe and the existing snapshot comparator. Credentials and the actual
|
||||
dump remain in an automatically removed private temporary directory. Only the
|
||||
two containers and volumes created by this invocation can be removed.
|
||||
"""
|
||||
import argparse
|
||||
from datetime import datetime, timezone
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import platform
|
||||
import secrets
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
||||
from resources import Sampler
|
||||
from run import compare_snapshots
|
||||
|
||||
|
||||
def command(argv, *, env=None, stdin=None, stdout=None, timeout=180):
|
||||
try:
|
||||
result = subprocess.run(argv, cwd=ROOT, env=env, stdin=stdin,
|
||||
stdout=stdout or subprocess.PIPE,
|
||||
stderr=subprocess.PIPE, timeout=timeout)
|
||||
except (OSError, subprocess.SubprocessError) as exc:
|
||||
raise RuntimeError('Command unavailable or timed out: ' + argv[0]) from exc
|
||||
if result.returncode:
|
||||
# Process arguments/output may contain connection details. Do not print them.
|
||||
safe = [s for s in result.stderr.decode(errors='replace').splitlines()
|
||||
if s.startswith(('research:', 'sqlstate:'))]
|
||||
raise RuntimeError('Command failed: ' + Path(argv[0]).name + ' (exit ' + str(result.returncode) + ')' + ('; ' + '; '.join(safe) if safe else ''))
|
||||
return result.stdout.decode() if stdout is None else ''
|
||||
|
||||
|
||||
def save(path, value):
|
||||
path.write_text(json.dumps(value, ensure_ascii=False, indent=2) + '\n')
|
||||
|
||||
|
||||
def wait_postgres(name):
|
||||
deadline = time.monotonic() + 75
|
||||
while time.monotonic() < deadline:
|
||||
result = subprocess.run(['docker', 'exec', name, 'pg_isready', '-U', 'messenger', '-d', 'messenger'],
|
||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=5)
|
||||
if result.returncode == 0:
|
||||
return
|
||||
time.sleep(.3)
|
||||
raise RuntimeError('PostgreSQL did not become ready')
|
||||
|
||||
|
||||
def container_state(name):
|
||||
fields = '{{json .State}}\n{{json .Mounts}}\n{{.Id}}'
|
||||
state, mounts, identifier = command(['docker', 'inspect', '--format', fields, name]).splitlines()
|
||||
state, mounts = json.loads(state), json.loads(mounts)
|
||||
return {'id': identifier, 'started_at': state['StartedAt'], 'running': state['Running'],
|
||||
'oom_killed': state['OOMKilled'],
|
||||
'volumes': [m['Name'] for m in mounts if m['Type'] == 'volume']}
|
||||
|
||||
|
||||
def selected_messages(name, schema):
|
||||
if not schema.startswith('lab2_test_') or not schema.replace('_', '').isalnum():
|
||||
raise RuntimeError('Unexpected fixture schema')
|
||||
# Values stay in process memory. Evidence retains IDs and content fingerprints.
|
||||
sql = f'''SELECT row_to_json(chosen)::text FROM (
|
||||
SELECT id,chat_id,sender_id,text,created_at,rn,total FROM (
|
||||
SELECT m.*,row_number() OVER (PARTITION BY chat_id ORDER BY created_at,id) rn,
|
||||
count(*) OVER (PARTITION BY chat_id) total FROM "{schema}".messages m
|
||||
) ranked WHERE rn IN (1,(total+1)/2,total) ORDER BY chat_id,rn
|
||||
) chosen'''
|
||||
raw = command(['docker', 'exec', name, 'psql', '-U', 'messenger', '-d', 'messenger', '-At', '-c', sql])
|
||||
result = []
|
||||
for line in raw.splitlines():
|
||||
row = json.loads(line)
|
||||
result.append({'id': row['id'], 'chat_id': row['chat_id'], 'position': row['rn'],
|
||||
'chat_rows': row['total'], 'sha256': hashlib.sha256(
|
||||
json.dumps(row, sort_keys=True, ensure_ascii=False).encode()).hexdigest()})
|
||||
if len(result) != 15:
|
||||
raise RuntimeError('Expected first/middle/last samples from all five chats')
|
||||
return result
|
||||
|
||||
|
||||
def main():
|
||||
p = argparse.ArgumentParser(description=__doc__)
|
||||
p.add_argument('--output', type=Path, required=True)
|
||||
p.add_argument('--postgres-image', default='postgres:18')
|
||||
p.add_argument('--rows', type=int, default=100000)
|
||||
p.add_argument('--repetitions', type=int, default=60)
|
||||
p.add_argument('--series', type=int, default=4)
|
||||
p.add_argument('--write-batches', type=int, default=20)
|
||||
args = p.parse_args()
|
||||
if args.rows < 100000 or args.rows % 100 or args.repetitions < 30 or args.series < 4 or args.series % 2 or args.write_batches < 10:
|
||||
p.error('need >=100k rows divisible by 100, >=30 reads, even >=4 series and >=10 write batches')
|
||||
output = args.output.resolve()
|
||||
output.mkdir(parents=True, exist_ok=False)
|
||||
run_id = 'lab2-research-' + secrets.token_hex(6)
|
||||
names = [run_id + '-source', run_id + '-target']
|
||||
volumes = [run_id + '-source-data', run_id + '-target-data']
|
||||
owned_containers, owned_volumes = [], []
|
||||
summary = {'status': 'FAIL', 'run_id': run_id, 'rows': args.rows,
|
||||
'started_at': datetime.now(timezone.utc).isoformat(), 'stages': []}
|
||||
sampler = None
|
||||
try:
|
||||
image_info = json.loads(command(['docker', 'image', 'inspect', args.postgres_image]))[0]
|
||||
# Run the immutable locally resolved image ID; the chosen digest is in evidence.
|
||||
image_id = image_info['Id']
|
||||
hardware = {}
|
||||
if sys.platform == 'darwin':
|
||||
for key in ('hw.model', 'hw.ncpu', 'hw.memsize', 'machdep.cpu.brand_string'):
|
||||
hardware[key] = command(['sysctl', '-n', key]).strip()
|
||||
environment = {'platform': platform.platform(), 'hardware': hardware,
|
||||
'go': command(['go', 'version']).strip(),
|
||||
'docker': command(['docker', 'version', '--format', '{{.Server.Version}}']).strip(),
|
||||
'image': {'id': image_id, 'digests': image_info.get('RepoDigests', []),
|
||||
'architecture': image_info['Architecture']},
|
||||
'limits_per_postgres': {'cpus': 1, 'memory_mib': 512},
|
||||
'other_running_containers_at_start': command(['docker', 'ps', '--format', '{{.Names}}']).splitlines()}
|
||||
save(output / 'environment.json', environment)
|
||||
with tempfile.TemporaryDirectory(prefix=run_id + '-') as directory:
|
||||
tmp = Path(directory)
|
||||
env_file = tmp / 'postgres.env'
|
||||
password = secrets.token_hex(24)
|
||||
env_file.write_text('POSTGRES_USER=messenger\nPOSTGRES_DB=messenger\nPOSTGRES_PASSWORD=' + password + '\n')
|
||||
env_file.chmod(0o600)
|
||||
probe = tmp / 'sqlprobe'
|
||||
build_env = dict(os.environ, GOCACHE=os.environ.get('GOCACHE', '/tmp/highload-research-go-cache'))
|
||||
command(['go', 'build', '-mod=readonly', '-o', str(probe), './student-tests/lab2/sqlprobe'], env=build_env)
|
||||
|
||||
def start(index):
|
||||
name, volume = names[index], volumes[index]
|
||||
command(['docker', 'volume', 'create', '--label', 'highload.research=' + run_id, volume])
|
||||
owned_volumes.append(volume)
|
||||
command(['docker', 'run', '-d', '--name', name, '--label', 'highload.research=' + run_id,
|
||||
'--cpus', '1', '--memory', '512m', '--memory-swap', '512m',
|
||||
'--env-file', str(env_file), '-p', '127.0.0.1::5432',
|
||||
'-v', volume + ':/var/lib/postgresql', image_id])
|
||||
owned_containers.append(name)
|
||||
wait_postgres(name)
|
||||
return connection_url(name)
|
||||
|
||||
def connection_url(name):
|
||||
port = command(['docker', 'port', name, '5432/tcp']).strip().rsplit(':', 1)[1]
|
||||
return f'postgres://messenger:{password}@127.0.0.1:{port}/messenger?sslmode=disable'
|
||||
|
||||
source_url = start(0)
|
||||
|
||||
def sqlprobe(mode, url, extra=()):
|
||||
argv = [str(probe), '-mode', mode, '-rows', str(args.rows),
|
||||
'-repetitions', str(args.repetitions), '-series', str(args.series),
|
||||
'-write-batches', str(args.write_batches), '-timeout', '12m', *extra]
|
||||
env = dict(os.environ, LAB2_SQL_DATABASE_URL=url)
|
||||
started = time.monotonic()
|
||||
result = json.loads(command(argv, env=env, timeout=750))
|
||||
summary['stages'].append({'stage': mode, 'status': 'PASS', 'seconds': time.monotonic() - started})
|
||||
return result
|
||||
|
||||
print('PostgreSQL source ready; preparing and comparing >=100k rows', flush=True)
|
||||
sampler = Sampler(names[0], .5)
|
||||
began = time.monotonic()
|
||||
sampler.thread.start()
|
||||
comparison = sqlprobe('research', source_url)
|
||||
ended = time.monotonic()
|
||||
comparison['resources'] = sampler.finish(began, ended, 1)
|
||||
sampler = None
|
||||
save(output / 'indexes.json', comparison)
|
||||
print('Index comparison PASS; preparing persistent backup fixture', flush=True)
|
||||
schema = 'lab2_test_backup_' + secrets.token_hex(5)
|
||||
seed = sqlprobe('seed', source_url, ('-schema', schema))
|
||||
save(output / 'dataset.json', seed)
|
||||
before = sqlprobe('snapshot', source_url, ('-schema', schema))
|
||||
selected_before = selected_messages(names[0], schema)
|
||||
save(output / 'source-snapshot.json', before)
|
||||
save(output / 'source-selected.json', selected_before)
|
||||
target_url = start(1)
|
||||
empty = sqlprobe('snapshot', target_url, ('-schema', schema))
|
||||
if not empty['empty'] or before['identity_sha256'] == empty['identity_sha256']:
|
||||
raise RuntimeError('Restore target must be a distinct empty PostgreSQL instance')
|
||||
before_states = {n: container_state(n) for n in names}
|
||||
if set(before_states[names[0]]['volumes']) & set(before_states[names[1]]['volumes']):
|
||||
raise RuntimeError('Source and target share a volume')
|
||||
save(output / 'storage-before-restore.json', before_states)
|
||||
dump = tmp / 'backup.dump'
|
||||
began = time.monotonic()
|
||||
with dump.open('wb') as stream:
|
||||
dump.chmod(0o600)
|
||||
command(['docker', 'exec', names[0], 'pg_dump', '-U', 'messenger', '-d', 'messenger',
|
||||
'-n', schema, '-Fc', '--no-owner', '--no-acl'], stdout=stream)
|
||||
backup_seconds = time.monotonic() - began
|
||||
dump_hash = hashlib.sha256(dump.read_bytes()).hexdigest()
|
||||
began = time.monotonic()
|
||||
with dump.open('rb') as stream:
|
||||
command(['docker', 'exec', '-i', names[1], 'pg_restore', '-U', 'messenger', '-d', 'messenger',
|
||||
'--exit-on-error', '--no-owner', '--no-acl'], stdin=stream)
|
||||
restore_seconds = time.monotonic() - began
|
||||
restored = sqlprobe('snapshot', target_url, ('-schema', schema))
|
||||
compare_snapshots(before, restored)
|
||||
selected_after = selected_messages(names[1], schema)
|
||||
if selected_before != selected_after or before != sqlprobe('snapshot', source_url, ('-schema', schema)):
|
||||
raise RuntimeError('Selected messages differ or source changed during backup/restore')
|
||||
save(output / 'restored-snapshot.json', restored)
|
||||
save(output / 'restored-selected.json', selected_after)
|
||||
# Start from disk again, retaining only the new target's own volume.
|
||||
began = time.monotonic()
|
||||
command(['docker', 'restart', '--time', '20', names[1]])
|
||||
wait_postgres(names[1])
|
||||
# Docker can allocate a different ephemeral host port after restart.
|
||||
target_url = connection_url(names[1])
|
||||
restarted = sqlprobe('snapshot', target_url, ('-schema', schema))
|
||||
compare_snapshots(before, restarted)
|
||||
restart_seconds = time.monotonic() - began
|
||||
save(output / 'storage-after-restart.json', {n: container_state(n) for n in names})
|
||||
restore = {'status': 'PASS', 'backup_seconds': backup_seconds, 'restore_seconds': restore_seconds,
|
||||
'target_restart_and_verification_seconds': restart_seconds,
|
||||
'archive_bytes': dump.stat().st_size, 'archive_sha256': dump_hash,
|
||||
'source_unchanged': True, 'selected_messages_equal': len(selected_before),
|
||||
'all_four_table_counts_and_digests_equal': True, 'target_restart_pass': True,
|
||||
'archive_retained': False, 'scope': 'quiescent synthetic PostgreSQL schema; Redis sessions and post-snapshot writes not included'}
|
||||
save(output / 'backup-restore.json', restore)
|
||||
summary['status'] = 'PASS'
|
||||
print('Backup/restore and target restart PASS', flush=True)
|
||||
except Exception as exc:
|
||||
summary['failure'] = str(exc) if isinstance(exc, RuntimeError) else type(exc).__name__
|
||||
print('FAIL: ' + summary['failure'], flush=True)
|
||||
finally:
|
||||
if sampler is not None:
|
||||
sampler.stop_event.set()
|
||||
sampler.thread.join(timeout=5)
|
||||
cleanup_errors = []
|
||||
for name in reversed(owned_containers):
|
||||
try:
|
||||
command(['docker', 'rm', '-f', name], timeout=45)
|
||||
except RuntimeError:
|
||||
cleanup_errors.append('container ' + name)
|
||||
for name in reversed(owned_volumes):
|
||||
try:
|
||||
command(['docker', 'volume', 'rm', name], timeout=30)
|
||||
except RuntimeError:
|
||||
cleanup_errors.append('volume ' + name)
|
||||
summary['cleanup_errors'] = cleanup_errors
|
||||
if cleanup_errors:
|
||||
summary['status'] = 'FAIL'
|
||||
summary['finished_at'] = datetime.now(timezone.utc).isoformat()
|
||||
save(output / 'summary.json', summary)
|
||||
return 0 if summary['status'] == 'PASS' else 1
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,67 @@
|
||||
"""Container resource sampling shared by the lab2 HTTP measurements."""
|
||||
import subprocess
|
||||
import threading
|
||||
import time
|
||||
|
||||
|
||||
class Sampler:
|
||||
"""PID 1 RSS and cgroup-v2 CPU/memory. Only samples inside the phase are used."""
|
||||
|
||||
files = ("/proc/1/status", "/sys/fs/cgroup/cpu.stat",
|
||||
"/sys/fs/cgroup/memory.current", "/sys/fs/cgroup/memory.events")
|
||||
|
||||
def __init__(self, name, interval):
|
||||
self.name, self.interval = name, interval
|
||||
self.stop_event = threading.Event()
|
||||
self.samples, self.errors = [], []
|
||||
self.thread = threading.Thread(target=self.loop, daemon=True)
|
||||
|
||||
def loop(self):
|
||||
while not self.stop_event.is_set():
|
||||
started = time.monotonic()
|
||||
try:
|
||||
result = subprocess.run(["docker", "exec", self.name, "awk",
|
||||
'FNR == 1 {print "FILE " FILENAME} {print}', *self.files],
|
||||
timeout=4, capture_output=True, text=True)
|
||||
if result.returncode:
|
||||
raise RuntimeError("resource sampling failed (container stopped or cgroup v2 unavailable)")
|
||||
sections, current = {}, None
|
||||
for line in result.stdout.splitlines():
|
||||
if line.startswith("FILE "):
|
||||
current = line[5:]
|
||||
sections[current] = []
|
||||
elif current:
|
||||
sections[current].append(line)
|
||||
status = dict(line.split(":", 1) for line in sections[self.files[0]] if ":" in line)
|
||||
cpu = dict(line.split() for line in sections[self.files[1]])
|
||||
events = dict(line.split() for line in sections[self.files[3]])
|
||||
self.samples.append({"started": started, "finished": time.monotonic(),
|
||||
"rss_bytes": int(status["VmRSS"].split()[0]) * 1024,
|
||||
"cgroup_memory_bytes": int(sections[self.files[2]][0]),
|
||||
"cpu_usage_usec": int(cpu["usage_usec"]),
|
||||
"oom_kill_count": int(events.get("oom_kill", 0))})
|
||||
except (RuntimeError, ValueError, KeyError, subprocess.SubprocessError) as exc:
|
||||
self.errors.append(str(exc))
|
||||
self.stop_event.wait(max(0, self.interval - (time.monotonic() - started)))
|
||||
|
||||
def finish(self, started, ended, cpus):
|
||||
self.stop_event.set()
|
||||
self.thread.join(timeout=5)
|
||||
samples = [s for s in self.samples if s["started"] >= started and s["finished"] <= ended]
|
||||
if self.errors or len(samples) < 2:
|
||||
raise RuntimeError(self.errors[0] if self.errors else "fewer than two resource samples; increase duration")
|
||||
first, last = samples[0], samples[-1]
|
||||
window = last["finished"] - first["finished"]
|
||||
cores = (last["cpu_usage_usec"] - first["cpu_usage_usec"]) / 1e6 / window
|
||||
rows = [{"seconds": round(s["finished"] - started, 4),
|
||||
"rss_bytes": s["rss_bytes"], "cgroup_memory_bytes": s["cgroup_memory_bytes"],
|
||||
"cpu_usage_usec": s["cpu_usage_usec"], "oom_kill_count": s["oom_kill_count"]}
|
||||
for s in samples]
|
||||
return {"sample_interval_seconds": self.interval, "sample_count": len(rows),
|
||||
"sample_window_seconds": window, "mean_cpu_cores": cores,
|
||||
"mean_cpu_percent_of_limit": 100 * cores / cpus,
|
||||
"rss_first_bytes": first["rss_bytes"],
|
||||
"rss_peak_observed_bytes": max(s["rss_bytes"] for s in samples),
|
||||
"cgroup_memory_peak_observed_bytes": max(s["cgroup_memory_bytes"] for s in samples),
|
||||
"oom_kill_count": max(s["oom_kill_count"] for s in samples), "samples": rows,
|
||||
"method": "RSS: /proc/1/status VmRSS. CPU: delta cgroup-v2 usage_usec / sample window. cgroup memory includes cache and sampling processes; it is not RSS. Peaks are sampled, not exact maxima."}
|
||||
@@ -20,6 +20,7 @@ import unittest
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
sys.path.insert(0, str(ROOT / "tests"))
|
||||
sys.path.insert(0, str(ROOT / "student-tests"))
|
||||
from client import Client, Failure, check # noqa: E402
|
||||
import business # noqa: E402
|
||||
|
||||
@@ -333,9 +334,9 @@ class Harness:
|
||||
|
||||
SUITES = {
|
||||
"auth": "Existing normal auth cases",
|
||||
"business-boundaries": "Title/text/member validation and malformed JSON",
|
||||
"business-cursors": "Cursor binding, changing limit, empty/complete pages and ACL",
|
||||
"read-after-write": "Concurrent confirmations are visible immediately",
|
||||
"business-boundaries": "Title/text/member validation and strict lab2 JSON/UTF-8 cases",
|
||||
"business-cursors": "Both chat-list and message-history pagination, bound cursors, changing limit and ACL",
|
||||
"read-after-write": "100 concurrent confirmations from 10 members are visible immediately",
|
||||
"persistence": "Full restart with original/revoked sessions",
|
||||
"expiry": "Separate API with actual TTL=2",
|
||||
"postgres-failure": "Real PostgreSQL outage and recovery",
|
||||
|
||||
@@ -24,6 +24,7 @@ import (
|
||||
|
||||
"highload/db/migrations"
|
||||
"highload/internal/database/sqlc"
|
||||
"highload/internal/model"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
@@ -50,13 +51,14 @@ func (r *recorder) TraceQueryStart(ctx context.Context, _ *pgx.Conn, data pgx.Tr
|
||||
func (*recorder) TraceQueryEnd(context.Context, *pgx.Conn, pgx.TraceQueryEndData) {}
|
||||
|
||||
type fixture struct {
|
||||
admin *pgx.Conn
|
||||
pool *pgxpool.Pool
|
||||
schema string
|
||||
owns bool
|
||||
user string
|
||||
chats []string
|
||||
record recorder
|
||||
admin *pgx.Conn
|
||||
pool *pgxpool.Pool
|
||||
schema string
|
||||
owns bool
|
||||
user string
|
||||
chats []string
|
||||
record recorder
|
||||
researchBudget time.Duration
|
||||
}
|
||||
|
||||
func (f *fixture) cleanup() error {
|
||||
@@ -160,18 +162,28 @@ ORDER BY created_at,id OFFSET (SELECT count(*)*8/10 FROM messages WHERE chat_id=
|
||||
}
|
||||
|
||||
func (f *fixture) read(ctx context.Context, after *repository2.MessagePosition) (time.Duration, error) {
|
||||
return f.readChat(ctx, f.chats[0], after)
|
||||
}
|
||||
|
||||
func (f *fixture) readChat(ctx context.Context, chatID string, after *repository2.MessagePosition) (time.Duration, error) {
|
||||
repo := postgres.NewMessageRepository(sqlc.New(f.pool))
|
||||
f.record.mu.Lock()
|
||||
f.record.active = true
|
||||
f.record.mu.Unlock()
|
||||
started := time.Now()
|
||||
items, err := repo.GetMessagesByChatID(ctx, f.chats[0], 51, after)
|
||||
var items []*model.Message
|
||||
var err error
|
||||
if f.researchBudget > 0 {
|
||||
items, err = f.researchRead(ctx, chatID, after)
|
||||
} else {
|
||||
items, err = repo.GetMessagesByChatID(ctx, chatID, 51, after)
|
||||
}
|
||||
elapsed := time.Since(started)
|
||||
f.record.mu.Lock()
|
||||
f.record.active = false
|
||||
f.record.mu.Unlock()
|
||||
if err == nil && len(items) != 51 {
|
||||
err = errors.New("fixture history returned an unexpected page length")
|
||||
err = fmt.Errorf("fixture history returned %d rows instead of 51", len(items))
|
||||
}
|
||||
for i := 1; err == nil && i < len(items); i++ {
|
||||
if items[i].CreatedAt.Before(items[i-1].CreatedAt) {
|
||||
@@ -194,7 +206,11 @@ func maxVisited(node map[string]any) float64 {
|
||||
}
|
||||
|
||||
func (f *fixture) plan(ctx context.Context, after *repository2.MessagePosition) (map[string]any, error) {
|
||||
if _, err := f.read(ctx, after); err != nil {
|
||||
return f.planChat(ctx, f.chats[0], after)
|
||||
}
|
||||
|
||||
func (f *fixture) planChat(ctx context.Context, chatID string, after *repository2.MessagePosition) (map[string]any, error) {
|
||||
if _, err := f.readChat(ctx, chatID, after); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
f.record.mu.Lock()
|
||||
@@ -450,20 +466,29 @@ func main() {
|
||||
rows := flag.Int("rows", 10000, "fixture message count")
|
||||
budget := flag.Int("scan-budget", 1000, "engineering threshold, not a teacher-mandated constant")
|
||||
repetitions := flag.Int("repetitions", 5, "measurement samples per variant")
|
||||
series := flag.Int("series", 4, "independent AB/BA research rounds (even, >= 4)")
|
||||
writeBatches := flag.Int("write-batches", 20, "committed batches of 200 rows per research trial")
|
||||
timeout := flag.Duration("timeout", 3*time.Minute, "total SQL probe execution budget")
|
||||
flag.Parse()
|
||||
url := os.Getenv("LAB2_SQL_DATABASE_URL")
|
||||
if url == "" {
|
||||
fmt.Fprintln(os.Stderr, "set LAB2_SQL_DATABASE_URL for a dedicated test database")
|
||||
os.Exit(2)
|
||||
}
|
||||
if *mode != "snapshot" && *mode != "plan" && *mode != "compare" && *mode != "seed" {
|
||||
if *mode != "snapshot" && *mode != "plan" && *mode != "compare" && *mode != "seed" && *mode != "research" {
|
||||
os.Exit(2)
|
||||
}
|
||||
signals, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer stop()
|
||||
ctx, cancel := context.WithTimeout(signals, 3*time.Minute)
|
||||
ctx, cancel := context.WithTimeout(signals, *timeout)
|
||||
defer cancel()
|
||||
result, err := execute(ctx, *mode, url, *schema, *rows, *budget, *repetitions)
|
||||
var result map[string]any
|
||||
var err error
|
||||
if *mode == "research" {
|
||||
result, err = research(ctx, url, *rows, *repetitions, *series, *writeBatches)
|
||||
} else {
|
||||
result, err = execute(ctx, *mode, url, *schema, *rows, *budget, *repetitions)
|
||||
}
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "SQL probe failed; private error details suppressed")
|
||||
os.Exit(1)
|
||||
|
||||
@@ -0,0 +1,255 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5/pgconn"
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
"highload/internal/database/sqlc"
|
||||
"highload/internal/model"
|
||||
repository2 "highload/internal/repository"
|
||||
)
|
||||
|
||||
// Research reuses the actual repository SQL. No application index is changed:
|
||||
// the fixture owns a fresh schema and removes it when the experiment finishes.
|
||||
func research(ctx context.Context, url string, rows, repetitions, series, batches int) (result map[string]any, err error) {
|
||||
stage := "validate"
|
||||
defer func() {
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "research: failed at "+stage)
|
||||
var pgErr *pgconn.PgError
|
||||
if errors.As(err, &pgErr) {
|
||||
fmt.Fprintln(os.Stderr, "sqlstate: "+pgErr.Code)
|
||||
}
|
||||
if errors.Is(err, context.DeadlineExceeded) {
|
||||
fmt.Fprintln(os.Stderr, "research: deadline exceeded")
|
||||
}
|
||||
if errors.Is(err, repository2.ErrServiceUnavailable) {
|
||||
fmt.Fprintln(os.Stderr, "research: repository unavailable")
|
||||
}
|
||||
for _, text := range []string{"timeout", "context deadline exceeded", "invalid input", "unexpected page", "history out of order"} {
|
||||
if strings.Contains(err.Error(), text) {
|
||||
fmt.Fprintln(os.Stderr, "research: "+text)
|
||||
}
|
||||
}
|
||||
if strings.HasPrefix(err.Error(), "fixture history returned ") {
|
||||
fmt.Fprintln(os.Stderr, "research: "+err.Error())
|
||||
}
|
||||
}
|
||||
}()
|
||||
if rows < 100000 || rows%100 != 0 || repetitions < 30 || series < 4 || series%2 != 0 || batches < 10 {
|
||||
return nil, errors.New("research needs >=100k rows, >=30 reads, even >=4 series, >=10 write batches")
|
||||
}
|
||||
schema := "lab2_test_" + uuid.NewString()[:8] + "_research"
|
||||
stage = "create-fixture"
|
||||
f, err := createFixture(ctx, url, schema, rows)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Preserve the API's one-second policy. Only the offline SQL experiment uses
|
||||
// a larger, identical budget for both indexes, so slow baselines are measurable.
|
||||
f.researchBudget = 10 * time.Second
|
||||
defer func() {
|
||||
if cleanupErr := f.cleanup(); err == nil {
|
||||
err = cleanupErr
|
||||
}
|
||||
}()
|
||||
stage = "drop-original-index"
|
||||
if _, err = f.pool.Exec(ctx, "DROP INDEX idx_messages_chat_created_id"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Disable autovacuum only for the disposable table to control trial cleanup.
|
||||
if _, err = f.pool.Exec(ctx, "ALTER TABLE messages SET (autovacuum_enabled=false)"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Fixed message body size; index keys and logical rows remain identical in A/B.
|
||||
stage = "payload"
|
||||
if _, err = f.pool.Exec(ctx, "UPDATE messages SET text=rpad(text,256,'x')"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var version string
|
||||
if err = f.pool.QueryRow(ctx, "SHOW server_version").Scan(&version); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
type readCase struct {
|
||||
name, chat string
|
||||
after *repository2.MessagePosition
|
||||
}
|
||||
var cases []readCase
|
||||
for _, item := range []struct {
|
||||
name string
|
||||
index int
|
||||
}{{"large", 0}, {"medium", 2}, {"small", 4}} {
|
||||
stage = "cursor-" + item.name
|
||||
chatID := f.chats[item.index]
|
||||
position := &repository2.MessagePosition{}
|
||||
if err = f.pool.QueryRow(ctx, `SELECT id::text,created_at FROM messages WHERE chat_id=$1
|
||||
ORDER BY created_at,id OFFSET (SELECT count(*)*8/10 FROM messages WHERE chat_id=$1) LIMIT 1`, chatID).Scan(&position.ID, &position.CreatedAt); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cases = append(cases, readCase{item.name + "_first", chatID, nil}, readCase{item.name + "_deep", chatID, position})
|
||||
}
|
||||
stage = "initial-digest"
|
||||
before, err := f.messageDigest(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var trials []map[string]any
|
||||
for round := 0; round < series; round++ {
|
||||
order := []string{"A", "B"}
|
||||
if round%2 == 1 {
|
||||
order = []string{"B", "A"}
|
||||
}
|
||||
for ordinal, variant := range order {
|
||||
stage = "vacuum-" + variant
|
||||
// Remove dead tuples and reset physical bloat between trials, outside timing.
|
||||
if _, err = f.pool.Exec(ctx, "VACUUM (FULL, ANALYZE) messages"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
columns := "chat_id"
|
||||
if variant == "B" {
|
||||
columns = "chat_id,created_at,id"
|
||||
}
|
||||
buildStart := time.Now()
|
||||
stage = "build-index-" + variant
|
||||
if _, err = f.pool.Exec(ctx, "CREATE INDEX lab2_history_variant ON messages("+columns+")"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
buildMS := float64(time.Since(buildStart).Microseconds()) / 1000
|
||||
if _, err = f.pool.Exec(ctx, "ANALYZE messages"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var indexBytes, tableBytes int64
|
||||
if err = f.pool.QueryRow(ctx, "SELECT pg_relation_size('lab2_history_variant'),pg_relation_size('messages')").Scan(&indexBytes, &tableBytes); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
readResults := map[string]any{}
|
||||
for _, c := range cases {
|
||||
stage = "warmup-" + variant + "-" + c.name
|
||||
for warmup := 0; warmup < 5; warmup++ {
|
||||
if _, err = f.readChat(ctx, c.chat, c.after); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
var timings []time.Duration
|
||||
var raw []float64
|
||||
started := time.Now()
|
||||
stage = "read-" + variant + "-" + c.name
|
||||
for n := 0; n < repetitions; n++ {
|
||||
d, readErr := f.readChat(ctx, c.chat, c.after)
|
||||
if readErr != nil {
|
||||
return nil, readErr
|
||||
}
|
||||
timings = append(timings, d)
|
||||
raw = append(raw, float64(d.Microseconds())/1000)
|
||||
}
|
||||
elapsed := time.Since(started).Seconds()
|
||||
stage = "plan-" + variant + "-" + c.name
|
||||
plan, planErr := f.planChat(ctx, c.chat, c.after)
|
||||
if planErr != nil {
|
||||
return nil, planErr
|
||||
}
|
||||
readResults[c.name] = map[string]any{"samples_ms": raw, "latency_ms": latency(timings), "successful_rps": float64(repetitions) / elapsed, "elapsed_seconds": elapsed, "plan": plan}
|
||||
}
|
||||
var writes []time.Duration
|
||||
var writeMS []float64
|
||||
var walBytes []int64
|
||||
for n := 0; n < batches; n++ {
|
||||
stage = "write-" + variant
|
||||
var lsn string
|
||||
if err = f.pool.QueryRow(ctx, "SELECT pg_current_wal_insert_lsn()::text").Scan(&lsn); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
started := time.Now()
|
||||
tx, txErr := f.pool.Begin(ctx)
|
||||
if txErr != nil {
|
||||
return nil, txErr
|
||||
}
|
||||
_, txErr = tx.Exec(ctx, `INSERT INTO messages(chat_id,sender_id,text)
|
||||
SELECT $1::uuid,$2::uuid,rpad('research-write-'||n,256,'x') FROM generate_series(1,200) n`, f.chats[0], f.user)
|
||||
if txErr == nil {
|
||||
txErr = tx.Commit(ctx)
|
||||
} else {
|
||||
_ = tx.Rollback(context.Background())
|
||||
}
|
||||
if txErr != nil {
|
||||
return nil, txErr
|
||||
}
|
||||
d := time.Since(started)
|
||||
writes = append(writes, d)
|
||||
writeMS = append(writeMS, float64(d.Microseconds())/1000)
|
||||
var delta int64
|
||||
if err = f.pool.QueryRow(ctx, "SELECT pg_wal_lsn_diff(pg_current_wal_insert_lsn(),$1::pg_lsn)::bigint", lsn).Scan(&delta); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
walBytes = append(walBytes, delta)
|
||||
}
|
||||
stage = "delete-fixture-writes-" + variant
|
||||
if _, err = f.pool.Exec(ctx, "DELETE FROM messages WHERE text LIKE 'research-write-%'"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
stage = "verify-dataset-" + variant
|
||||
after, digestErr := f.messageDigest(ctx)
|
||||
if digestErr != nil || after != before {
|
||||
return nil, errors.New("logical dataset changed between trials")
|
||||
}
|
||||
trials = append(trials, map[string]any{"series": round + 1, "order": ordinal + 1, "variant": variant, "columns": columns, "read_cases": readResults, "index_bytes": indexBytes, "table_bytes": tableBytes, "build_ms": buildMS, "insert_200_with_commit_ms": latency(writes), "write_samples_ms": writeMS, "write_wal_bytes": walBytes, "dataset_sha256": before})
|
||||
fmt.Fprintf(os.Stderr, "series %d variant %s complete\n", round+1, variant)
|
||||
stage = "drop-index-" + variant
|
||||
if _, err = f.pool.Exec(ctx, "DROP INDEX lab2_history_variant"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
return map[string]any{"mode": "research", "rows": rows, "chat_counts": []int{rows * 70 / 100, rows * 20 / 100, rows * 6 / 100, rows * 3 / 100, rows / 100}, "payload_bytes": 256, "postgres_version": version, "series": series, "reads_per_case": repetitions, "write_batches_per_trial": batches, "rows_per_write_batch": 200, "warmup_per_case": 5, "concurrent_clients": 1, "sql_experiment_timeout_seconds": 10, "application_repository_timeout_seconds": 1, "dataset_sha256": before, "trials": trials, "limitations": "Warm sequential closed-loop SQL through the same generated sqlc query; no HTTP/KDF. Offline query budget 10s, application repository unchanged at 1s. Same logical rows, VACUUM FULL and rebuild before trials. pgx prepared-plan behavior is retained. WAL is cluster-wide on a dedicated quiet instance; sampled CPU includes administration. No cold-cache or sustained-capacity claim."}, nil
|
||||
}
|
||||
|
||||
func (f *fixture) researchRead(ctx context.Context, chatID string, after *repository2.MessagePosition) ([]*model.Message, error) {
|
||||
queryCtx, cancel := context.WithTimeout(ctx, f.researchBudget)
|
||||
defer cancel()
|
||||
var id pgtype.UUID
|
||||
if err := id.Scan(chatID); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
params := sqlc.GetMessagesByChatIDParams{ChatID: id, LimitCount: 51}
|
||||
if after != nil {
|
||||
params.AfterCreatedAt = pgtype.Timestamptz{Time: after.CreatedAt, Valid: true}
|
||||
if err := params.AfterID.Scan(after.ID); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
rows, err := sqlc.New(f.pool).GetMessagesByChatID(queryCtx, params)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
items := make([]*model.Message, len(rows))
|
||||
for i, m := range rows {
|
||||
items[i] = &model.Message{ID: m.ID.String(), ChatID: m.ChatID.String(), SenderID: m.SenderID.String(), Text: m.Text, CreatedAt: m.CreatedAt.Time}
|
||||
}
|
||||
return items, nil
|
||||
}
|
||||
|
||||
func (f *fixture) messageDigest(ctx context.Context) (string, error) {
|
||||
rows, err := f.pool.Query(ctx, "SELECT row_to_json(m)::text FROM messages m ORDER BY id")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer rows.Close()
|
||||
h := sha256.New()
|
||||
for rows.Next() {
|
||||
var line string
|
||||
if err = rows.Scan(&line); err != nil {
|
||||
return "", err
|
||||
}
|
||||
_, _ = fmt.Fprintln(h, line)
|
||||
}
|
||||
return hex.EncodeToString(h.Sum(nil)), rows.Err()
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Rebuild the report's index-comparison aggregates from retained raw samples.
|
||||
|
||||
This reads evidence only; it never starts a database or changes test assertions.
|
||||
Nearest-rank percentiles match sqlprobe. No confidence/SLO claim is implied.
|
||||
"""
|
||||
import argparse
|
||||
import csv
|
||||
import json
|
||||
import math
|
||||
from pathlib import Path
|
||||
import statistics
|
||||
|
||||
|
||||
def percentile(values, percent):
|
||||
ordered = sorted(values)
|
||||
if not ordered or any(not math.isfinite(v) or v < 0 for v in ordered):
|
||||
raise ValueError('Missing or invalid timing samples')
|
||||
return ordered[max(0, math.ceil(len(ordered) * percent / 100) - 1)]
|
||||
|
||||
|
||||
def summarize(directory):
|
||||
data = json.loads((directory / 'indexes.json').read_text())
|
||||
trials = data['trials']
|
||||
if len(trials) != data['series'] * 2 or any(t['dataset_sha256'] != data['dataset_sha256'] for t in trials):
|
||||
raise ValueError('Incomplete trials or changed logical dataset')
|
||||
rows, writes = [], []
|
||||
for variant in ('A', 'B'):
|
||||
selected = [t for t in trials if t['variant'] == variant]
|
||||
if len(selected) != data['series']:
|
||||
raise ValueError('Unbalanced A/B series')
|
||||
for case in ('large_first', 'large_deep', 'medium_first', 'medium_deep', 'small_first', 'small_deep'):
|
||||
if any(len(t['read_cases'][case]['samples_ms']) != data['reads_per_case'] for t in selected):
|
||||
raise ValueError('Read sample count differs from the protocol')
|
||||
samples = [x for t in selected for x in t['read_cases'][case]['samples_ms']]
|
||||
elapsed = sum(t['read_cases'][case]['elapsed_seconds'] for t in selected)
|
||||
rows.append({'case': case, 'variant': variant, 'n': len(samples),
|
||||
**{'p' + str(p) + '_ms': percentile(samples, p) for p in (50, 95, 99)},
|
||||
'successful_rps': len(samples) / elapsed,
|
||||
'trial_p50_min': min(t['read_cases'][case]['latency_ms']['p50'] for t in selected),
|
||||
'trial_p50_max': max(t['read_cases'][case]['latency_ms']['p50'] for t in selected)})
|
||||
if any(len(t['write_samples_ms']) != data['write_batches_per_trial'] for t in selected):
|
||||
raise ValueError('Write sample count differs from the protocol')
|
||||
samples = [x for t in selected for x in t['write_samples_ms']]
|
||||
wal = [x for t in selected for x in t['write_wal_bytes']]
|
||||
writes.append({'variant': variant, 'batches': len(samples), 'rows_per_batch': data['rows_per_write_batch'],
|
||||
**{'p' + str(p) + '_ms': percentile(samples, p) for p in (50, 95, 99)},
|
||||
'median_wal_bytes': statistics.median(wal), 'index_bytes': selected[0]['index_bytes'],
|
||||
'median_build_ms': statistics.median(t['build_ms'] for t in selected)})
|
||||
rows.sort(key=lambda row: (row['case'], row['variant']))
|
||||
report = {'status': 'PASS', 'scope': 'index observations only; full run status is summary.json',
|
||||
'read_requests': sum(r['n'] for r in rows), 'read_errors': 0,
|
||||
'read_cases': rows, 'write_variants': writes}
|
||||
with (directory / 'READS.csv').open('w', newline='') as stream:
|
||||
writer = csv.DictWriter(stream, fieldnames=list(rows[0]))
|
||||
writer.writeheader()
|
||||
writer.writerows(rows)
|
||||
(directory / 'comparison-summary.json').write_text(json.dumps(report, ensure_ascii=False, indent=2) + '\n')
|
||||
print('PASS: aggregates rebuilt from ' + str(report['read_requests']) + ' retained read samples')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('directory', type=Path)
|
||||
summarize(parser.parse_args().directory.resolve())
|
||||
@@ -1,275 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Lab 1 level-4 acceptance checks against a running HTTP server.
|
||||
|
||||
Run: python3 student-tests/level4.py --base-url http://localhost:8080
|
||||
Creates only synthetic users, chats and messages.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import threading
|
||||
import uuid
|
||||
from urllib.parse import quote
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "tests"))
|
||||
from client import Client, Failure, check, timestamp # noqa: E402
|
||||
from validation_edges import acceptance # noqa: E402
|
||||
|
||||
|
||||
def chat_for(client, members):
|
||||
return client.call(
|
||||
"POST", "/api/v1/chats", 201, actor=members[0],
|
||||
body={"title": "Проверка уровня 4", "member_ids": [x["id"] for x in members]},
|
||||
schema="Chat",
|
||||
)["json"]
|
||||
|
||||
|
||||
def malformed_json(client):
|
||||
response = client.call(
|
||||
"POST", "/api/v1/users", 400,
|
||||
raw=b'{"username":', headers={"Content-Type": "application/json"},
|
||||
)
|
||||
check(response["json"]["error"]["code"] == "invalid_request", "wrong error for malformed JSON")
|
||||
|
||||
|
||||
def foreign_chat(client):
|
||||
owner, outsider = client.user("owner"), client.user("outsider")
|
||||
chat = chat_for(client, [owner])
|
||||
path = "/api/v1/chats/" + chat["id"]
|
||||
for method, suffix, body in (
|
||||
("GET", "", None),
|
||||
("GET", "/messages", None),
|
||||
("POST", "/messages", {"text": "synthetic"}),
|
||||
):
|
||||
result = client.call(method, path + suffix, 404, actor=outsider, body=body)
|
||||
check(result["json"]["error"]["code"] == "not_found", "foreign chat revealed")
|
||||
|
||||
|
||||
def empty_message(client):
|
||||
owner = client.user("empty")
|
||||
chat = chat_for(client, [owner])
|
||||
for value in ("", " \t\n "):
|
||||
result = client.call(
|
||||
"POST", "/api/v1/chats/" + chat["id"] + "/messages", 400,
|
||||
actor=owner, body={"text": value},
|
||||
)
|
||||
check(result["json"]["error"]["code"] == "invalid_request", "empty text accepted")
|
||||
|
||||
|
||||
def duplicate_username(client):
|
||||
owner = client.user("duplicate")
|
||||
result = client.call("POST", "/api/v1/users", 409, body=owner["registration"])
|
||||
check(result["json"]["error"]["code"] == "conflict", "duplicate username not rejected")
|
||||
|
||||
|
||||
def media_type(client):
|
||||
owner = client.user("media")
|
||||
chat = chat_for(client, [owner])
|
||||
requests = (
|
||||
("/api/v1/users", {"username": "media_probe", "display_name": "Probe"}, None),
|
||||
("/api/v1/chats", {"title": "Probe", "member_ids": [owner["id"]]}, owner),
|
||||
("/api/v1/chats/" + chat["id"] + "/messages", {"text": "synthetic"}, owner),
|
||||
)
|
||||
for path, body, actor in requests:
|
||||
response = client.call("POST", path, 415, actor=actor,
|
||||
raw=json.dumps(body).encode(), headers={"Content-Type": "text/plain"})
|
||||
check(response["json"]["error"]["code"] == "unsupported_media_type", "wrong 415 error code")
|
||||
|
||||
|
||||
def request_validation(client):
|
||||
owner = client.user("validation")
|
||||
chat = chat_for(client, [owner])
|
||||
cases = (
|
||||
("/api/v1/users", {"username": 123, "display_name": "Probe"}, None),
|
||||
("/api/v1/users", {"username": "validation_probe", "display_name": "Probe", "extra": True}, None),
|
||||
("/api/v1/chats", {"title": "Probe", "member_ids": [owner["id"], owner["id"]]}, owner),
|
||||
("/api/v1/chats", {"title": "Probe", "member_ids": []}, owner),
|
||||
("/api/v1/chats/" + chat["id"] + "/messages", {"text": 123}, owner),
|
||||
("/api/v1/chats/" + chat["id"] + "/messages", {"text": "synthetic", "sender_id": owner["id"]}, owner),
|
||||
)
|
||||
for path, body, actor in cases:
|
||||
response = client.call("POST", path, 400, actor=actor, body=body)
|
||||
check(response["json"]["error"]["code"] == "invalid_request", "wrong validation error code")
|
||||
|
||||
|
||||
def unknown_api_route(client):
|
||||
owner = client.user("route")
|
||||
response = client.call("GET", "/api/v1/does-not-exist", 404, actor=owner)
|
||||
check(response["json"]["error"]["code"] == "not_found", "wrong unknown-route error code")
|
||||
|
||||
|
||||
def pagination_parameters(client):
|
||||
owner = client.user("params")
|
||||
chat = chat_for(client, [owner])
|
||||
failures = []
|
||||
for path in ("/api/v1/chats", "/api/v1/chats/" + chat["id"] + "/messages"):
|
||||
for value in ("0", "101", "invalid", ""):
|
||||
try:
|
||||
response = client.call("GET", path + "?limit=" + value, 400, actor=owner)
|
||||
check(response["json"]["error"]["code"] == "invalid_request", "wrong limit error code")
|
||||
except Failure as exc:
|
||||
failures.append("limit=%r: %s" % (value, exc))
|
||||
client.call("GET", path + "?cursor=invalid", 400, actor=owner)
|
||||
check(not failures, "; ".join(failures))
|
||||
|
||||
|
||||
def cursor_binding(client):
|
||||
owner = client.user("cursor")
|
||||
first, second = chat_for(client, [owner]), chat_for(client, [owner])
|
||||
written = [client.message(owner, first, "cursor item %d" % i)["json"] for i in range(5)]
|
||||
path = "/api/v1/chats/" + first["id"] + "/messages"
|
||||
page = client.call("GET", path + "?limit=1", actor=owner, schema="MessagePage")["json"]
|
||||
cursor = quote(page["next_cursor"], safe="")
|
||||
client.call("GET", "/api/v1/chats/" + second["id"] + "/messages?cursor=" + cursor, 400, actor=owner)
|
||||
rest = client.call("GET", path + "?limit=100&cursor=" + cursor, actor=owner, schema="MessagePage")["json"]
|
||||
check(page["items"] + rest["items"] == written, "changing limit lost or duplicated messages")
|
||||
check(rest["next_cursor"] is None, "final cursor must be null")
|
||||
|
||||
|
||||
def chat_pagination(client):
|
||||
owner, outsider = client.user("chatpages"), client.user("chatother")
|
||||
expected = [chat_for(client, [owner]) for _ in range(7)]
|
||||
seen, cursor = [], None
|
||||
while True:
|
||||
path = "/api/v1/chats?limit=2"
|
||||
if cursor:
|
||||
path += "&cursor=" + quote(cursor, safe="")
|
||||
page = client.call("GET", path, actor=owner, schema="ChatPage")["json"]
|
||||
seen.extend(page["items"])
|
||||
check(len(seen) <= 7, "chat pagination repeated items")
|
||||
next_cursor = page["next_cursor"]
|
||||
check(next_cursor is None or next_cursor != cursor, "chat cursor did not advance")
|
||||
if next_cursor is None:
|
||||
break
|
||||
client.call("GET", "/api/v1/chats?cursor=" + quote(next_cursor, safe=""), 400, actor=outsider)
|
||||
cursor = next_cursor
|
||||
check(seen == sorted(expected, key=lambda item: (timestamp(item["created_at"]), item["id"])),
|
||||
"chat pagination lost, repeated or reordered items")
|
||||
|
||||
|
||||
def unicode_boundaries(client):
|
||||
registration = {"username": "unicode_" + uuid.uuid4().hex[:12], "display_name": "😀" * 100}
|
||||
user = client.call("POST", "/api/v1/users", 201, body=registration, schema="User")["json"]
|
||||
check(user["display_name"] == registration["display_name"], "Unicode display name changed")
|
||||
client.call("POST", "/api/v1/users", 400,
|
||||
body={"username": "unicode_" + uuid.uuid4().hex[:12], "display_name": "😀" * 101})
|
||||
actor = {"id": user["id"]}
|
||||
chat = client.call("POST", "/api/v1/chats", 201, actor=actor,
|
||||
body={"title": "😀" * 100, "member_ids": [user["id"]]}, schema="Chat")["json"]
|
||||
message = client.message(actor, chat, "😀" * 4000)["json"]
|
||||
check(message["text"] == "😀" * 4000, "Unicode text changed")
|
||||
client.call("POST", "/api/v1/chats/" + chat["id"] + "/messages", 400,
|
||||
actor=actor, body={"text": "😀" * 4001})
|
||||
|
||||
|
||||
def multiple_pages(client):
|
||||
owner = client.user("pages")
|
||||
chat = chat_for(client, [owner])
|
||||
path = "/api/v1/chats/" + chat["id"] + "/messages"
|
||||
written = [client.message(owner, chat, "page item %d" % i)["json"] for i in range(7)]
|
||||
seen = []
|
||||
cursor = None
|
||||
while True:
|
||||
url = path + "?limit=2"
|
||||
if cursor is not None:
|
||||
url += "&cursor=" + quote(cursor, safe="")
|
||||
page = client.call("GET", url, actor=owner, schema="MessagePage")["json"]
|
||||
check(0 < len(page["items"]) <= 2, "invalid page size")
|
||||
seen.extend(page["items"])
|
||||
next_cursor = page["next_cursor"]
|
||||
check(next_cursor is None or next_cursor != cursor, "cursor did not advance")
|
||||
check(len(seen) <= len(written), "pagination loop or duplicate")
|
||||
if next_cursor is None:
|
||||
break
|
||||
cursor = next_cursor
|
||||
ids = [item["id"] for item in seen]
|
||||
check(len(ids) == 7 and len(set(ids)) == 7, "pagination omitted or repeated messages")
|
||||
check(set(ids) == {item["id"] for item in written}, "pagination returned different messages")
|
||||
check(seen == sorted(seen, key=lambda item: (timestamp(item["created_at"]), item["id"])),
|
||||
"history is not ordered by (created_at, id)")
|
||||
|
||||
|
||||
def concurrent_messages(client):
|
||||
members = [client.user("race%d" % i) for i in range(10)]
|
||||
chat = chat_for(client, members)
|
||||
path = "/api/v1/chats/" + chat["id"] + "/messages"
|
||||
barrier = threading.Barrier(10)
|
||||
|
||||
def sender(index):
|
||||
local = Client(client.base)
|
||||
barrier.wait(timeout=10)
|
||||
return [local.message(members[index], chat, "race %d %d" % (index, j))["json"]
|
||||
for j in range(10)]
|
||||
|
||||
with ThreadPoolExecutor(max_workers=10) as pool:
|
||||
groups = list(pool.map(sender, range(10)))
|
||||
written = [item for group in groups for item in group]
|
||||
check(len(written) == 100 and len({item["id"] for item in written}) == 100,
|
||||
"100 writes were not acknowledged with unique IDs")
|
||||
|
||||
seen = []
|
||||
cursor = None
|
||||
while True:
|
||||
url = path + "?limit=37"
|
||||
if cursor is not None:
|
||||
url += "&cursor=" + quote(cursor, safe="")
|
||||
page = client.call("GET", url, actor=members[0], schema="MessagePage")["json"]
|
||||
seen.extend(page["items"])
|
||||
check(len(seen) <= 100, "history returned more than 100 messages")
|
||||
next_cursor = page["next_cursor"]
|
||||
check(next_cursor is None or next_cursor != cursor, "cursor did not advance")
|
||||
if next_cursor is None:
|
||||
break
|
||||
cursor = next_cursor
|
||||
|
||||
ids = [item["id"] for item in seen]
|
||||
check(len(ids) == 100 and len(set(ids)) == 100, "history does not contain 100 unique messages")
|
||||
check(set(ids) == {item["id"] for item in written}, "acknowledged messages missing from history")
|
||||
check({item["id"]: item for item in seen} == {item["id"]: item for item in written},
|
||||
"stored messages differ from acknowledged messages")
|
||||
check({item["sender_id"] for item in seen} == {member["id"] for member in members},
|
||||
"not all 10 clients contributed")
|
||||
print("RESULT: 10 clients x 10 writes; 100 acknowledged; 100 unique IDs in complete history")
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--base-url", default="http://localhost:8080")
|
||||
args = parser.parse_args()
|
||||
client = Client(args.base_url)
|
||||
failures = []
|
||||
scenarios = (
|
||||
("malformed JSON", malformed_json),
|
||||
("foreign chat", foreign_chat),
|
||||
("empty message", empty_message),
|
||||
("duplicate username", duplicate_username),
|
||||
("multiple pages", multiple_pages),
|
||||
("100 concurrent messages", concurrent_messages),
|
||||
("unsupported media type", media_type),
|
||||
("request validation", request_validation),
|
||||
("unknown API route", unknown_api_route),
|
||||
("pagination parameters", pagination_parameters),
|
||||
("cursor binding and changed limit", cursor_binding),
|
||||
("chat pagination", chat_pagination),
|
||||
("Unicode code-point boundaries", unicode_boundaries),
|
||||
("exact JSON field names", lambda c: acceptance(c, "key_case")),
|
||||
("strict UTF-8 and valid Unicode", lambda c: acceptance(c, "utf8")),
|
||||
("JSON required fields/types/document", lambda c: acceptance(c, "shape")),
|
||||
("additional contract boundaries", lambda c: acceptance(c, "boundaries")),
|
||||
)
|
||||
for name, scenario in scenarios:
|
||||
try:
|
||||
scenario(client)
|
||||
print("PASS:", name)
|
||||
except (Failure, OSError, ValueError) as exc:
|
||||
failures.append(name)
|
||||
print("FAIL: %s: %s" % (name, exc))
|
||||
print("SUMMARY: %d/%d passed" % (len(scenarios) - len(failures), len(scenarios)))
|
||||
return 1 if failures else 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
+16
-1
@@ -267,6 +267,17 @@ secrets:
|
||||
results.append({"check": name, "status": "PASS", "seconds": round(time.monotonic() - started, 3),
|
||||
**({"tests": detail} if detail else {})})
|
||||
print("PASS: " + name, flush=True)
|
||||
except subprocess.TimeoutExpired as error:
|
||||
def decode(value):
|
||||
return value.decode(errors="replace") if isinstance(value, bytes) else (value or "")
|
||||
partial = decode(error.stdout) + decode(error.stderr)
|
||||
partial = partial.replace(database, "<test-database-url>").replace(password, "<test-password>")
|
||||
(output / (name + ".log")).write_text(partial)
|
||||
results.append({"check": name, "status": "FAIL", "detail": "TimeoutExpired",
|
||||
"seconds": round(time.monotonic() - started, 3), "runner_budget_seconds": timeout})
|
||||
if required:
|
||||
raise CheckFailure(name + " timed out; see partial sanitized log") from None
|
||||
print("FAIL: " + name + "; partial log retained; continuing independent checks", flush=True)
|
||||
except (OSError, subprocess.SubprocessError, CheckFailure) as error:
|
||||
results.append({"check": name, "status": "FAIL", "detail": type(error).__name__})
|
||||
if required:
|
||||
@@ -279,7 +290,11 @@ secrets:
|
||||
stage("lab2-harness", [sys.executable, "-m", "unittest", "discover", "-s", "student-tests/lab2", "-p", "test_harness.py", "-v"])
|
||||
stage("compose-up", base + ["up", "-d", "--build", "--pull", pull, "--wait", "--wait-timeout", "90"], 300)
|
||||
wait_ready(env["BASE_URL"])
|
||||
stage("go-race", ["go", "test", "-race", "./...", "-count=1", "-json"], parse_go=True, timeout=300, required=False)
|
||||
# Compile race-instrumented packages separately. Cold compilation is
|
||||
# not an application-operation latency test and must not consume
|
||||
# the execution budget of the actual integration tests.
|
||||
stage("go-race-build", ["go", "test", "-race", "-run", "^$", "./..."], timeout=300)
|
||||
stage("go-race", ["go", "test", "-race", "./...", "-count=1", "-json"], parse_go=True, timeout=600, required=False)
|
||||
stage("go-build", ["go", "build", "./..."], required=False)
|
||||
stage("go-vet", ["go", "vet", "./..."], required=False)
|
||||
stage("teacher-smoke", ["make", "test", "BASE_URL=" + env["BASE_URL"], "PYTHON=" + Path(sys.executable).name], required=False)
|
||||
|
||||
@@ -1,465 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Lab 1, track 1: isolated matrix, integrity checks and paired comparison.
|
||||
|
||||
Requires Python 3.9+, Docker, Go 1.27.1+. Standard libraries only; macOS/Linux.
|
||||
Does not edit the application or perform Git mutations.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
import datetime as dt
|
||||
import hashlib
|
||||
import itertools
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import platform
|
||||
import shutil
|
||||
import statistics
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import threading
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
import uuid
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
GENERATOR = ROOT / "student-tests/track1_load.go"
|
||||
|
||||
|
||||
def command(args, timeout=60, required=True, **kwargs):
|
||||
result = subprocess.run(args, cwd=ROOT, capture_output=True, text=True,
|
||||
timeout=timeout, **kwargs)
|
||||
if required and result.returncode:
|
||||
raise RuntimeError("command failed: %s (exit %d)" % (args[0], result.returncode))
|
||||
return result
|
||||
|
||||
|
||||
def docker(*args):
|
||||
return command(["docker", *args]).stdout.strip()
|
||||
|
||||
|
||||
def inspect(name):
|
||||
return json.loads(docker("inspect", name))[0]
|
||||
|
||||
|
||||
def digest(paths):
|
||||
h = hashlib.sha256()
|
||||
for path in sorted(paths):
|
||||
h.update(str(path.relative_to(ROOT)).encode() + b"\0" + path.read_bytes() + b"\0")
|
||||
return h.hexdigest()
|
||||
|
||||
|
||||
def save(path, value):
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
temporary = path.with_suffix(path.suffix + ".tmp")
|
||||
temporary.write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
|
||||
temporary.replace(path)
|
||||
|
||||
|
||||
def numbers(value):
|
||||
result = [int(x) for x in value.split(",")]
|
||||
if len(set(result)) != len(result) or any(x <= 0 for x in result):
|
||||
raise argparse.ArgumentTypeError("expected distinct positive integers")
|
||||
return result
|
||||
|
||||
|
||||
def compile_generator(directory):
|
||||
target = Path(directory) / "track1-load"
|
||||
environment = dict(os.environ, GOCACHE=str(Path(directory) / "go-cache"))
|
||||
result = command(["go", "build", "-o", str(target), str(GENERATOR)],
|
||||
timeout=180, required=False, env=environment)
|
||||
if result.returncode:
|
||||
raise RuntimeError("generator compilation failed: " + result.stderr.strip())
|
||||
return target
|
||||
|
||||
|
||||
def build_image(args, output):
|
||||
if not args.build:
|
||||
return {"performed": False, "source_image_mapping": "unverified: existing image"}
|
||||
with tempfile.TemporaryDirectory(prefix="highload-track1-context-") as directory:
|
||||
for relative in filter(None, command(["git", "ls-files", "-z"]).stdout.split("\0")):
|
||||
source = ROOT / relative
|
||||
if source.is_file():
|
||||
target = Path(directory) / relative
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(source, target)
|
||||
result = command(["docker", "build", "--progress=plain", "-t", args.image, directory],
|
||||
timeout=300, required=False)
|
||||
log = output.with_name(output.stem + "-build.txt")
|
||||
log.write_text(result.stdout + result.stderr)
|
||||
if result.returncode:
|
||||
raise RuntimeError("application Docker build failed; see " + str(log))
|
||||
return {"performed": True, "exit_code": result.returncode, "log": str(log.relative_to(ROOT))
|
||||
if log.is_relative_to(ROOT) else str(log),
|
||||
"context": "current tracked working files; not a committed clone"}
|
||||
|
||||
|
||||
def start_container(image, args):
|
||||
name = "highload-track1-" + uuid.uuid4().hex[:12]
|
||||
try:
|
||||
docker("run", "-d", "--name", name, "--cpus=" + str(args.cpus),
|
||||
"--memory=" + str(args.memory_mib) + "m",
|
||||
"--memory-swap=" + str(args.memory_mib) + "m",
|
||||
"--log-opt", "max-size=10m", "--log-opt", "max-file=1",
|
||||
"-p", "127.0.0.1::8080", "-e", "APP_HOST=0.0.0.0",
|
||||
"-e", "APP_PORT=8080", image)
|
||||
port = inspect(name)["NetworkSettings"]["Ports"]["8080/tcp"][0]["HostPort"]
|
||||
base = "http://127.0.0.1:" + port
|
||||
deadline = time.monotonic() + 20
|
||||
while time.monotonic() < deadline:
|
||||
try:
|
||||
with urllib.request.urlopen(base + "/health/ready", timeout=1) as response:
|
||||
if response.status == 200:
|
||||
return name, base
|
||||
except (urllib.error.URLError, OSError):
|
||||
pass
|
||||
time.sleep(0.1)
|
||||
raise RuntimeError("API did not become ready")
|
||||
except BaseException:
|
||||
command(["docker", "rm", "--force", name], required=False)
|
||||
raise
|
||||
|
||||
|
||||
class Sampler:
|
||||
"""PID 1 RSS and cgroup-v2 CPU/memory. Only samples inside the phase are used."""
|
||||
|
||||
files = ("/proc/1/status", "/sys/fs/cgroup/cpu.stat",
|
||||
"/sys/fs/cgroup/memory.current", "/sys/fs/cgroup/memory.events")
|
||||
|
||||
def __init__(self, name, interval):
|
||||
self.name, self.interval = name, interval
|
||||
self.stop_event = threading.Event()
|
||||
self.samples, self.errors = [], []
|
||||
self.thread = threading.Thread(target=self.loop, daemon=True)
|
||||
|
||||
def loop(self):
|
||||
while not self.stop_event.is_set():
|
||||
started = time.monotonic()
|
||||
try:
|
||||
result = command(["docker", "exec", self.name, "awk",
|
||||
'FNR == 1 {print "FILE " FILENAME} {print}', *self.files],
|
||||
timeout=4, required=False)
|
||||
if result.returncode:
|
||||
raise RuntimeError("resource sampling failed (container stopped or cgroup v2 unavailable)")
|
||||
sections, current = {}, None
|
||||
for line in result.stdout.splitlines():
|
||||
if line.startswith("FILE "):
|
||||
current = line[5:]
|
||||
sections[current] = []
|
||||
elif current:
|
||||
sections[current].append(line)
|
||||
status = dict(line.split(":", 1) for line in sections[self.files[0]] if ":" in line)
|
||||
cpu = dict(line.split() for line in sections[self.files[1]])
|
||||
events = dict(line.split() for line in sections[self.files[3]])
|
||||
self.samples.append({"started": started, "finished": time.monotonic(),
|
||||
"rss_bytes": int(status["VmRSS"].split()[0]) * 1024,
|
||||
"cgroup_memory_bytes": int(sections[self.files[2]][0]),
|
||||
"cpu_usage_usec": int(cpu["usage_usec"]),
|
||||
"oom_kill_count": int(events.get("oom_kill", 0))})
|
||||
except (RuntimeError, ValueError, KeyError, subprocess.SubprocessError) as exc:
|
||||
self.errors.append(str(exc))
|
||||
self.stop_event.wait(max(0, self.interval - (time.monotonic() - started)))
|
||||
|
||||
def finish(self, started, ended, cpus):
|
||||
self.stop_event.set()
|
||||
self.thread.join(timeout=5)
|
||||
samples = [s for s in self.samples if s["started"] >= started and s["finished"] <= ended]
|
||||
if self.errors or len(samples) < 2:
|
||||
raise RuntimeError(self.errors[0] if self.errors else "fewer than two resource samples; increase duration")
|
||||
first, last = samples[0], samples[-1]
|
||||
window = last["finished"] - first["finished"]
|
||||
cores = (last["cpu_usage_usec"] - first["cpu_usage_usec"]) / 1e6 / window
|
||||
rows = [{"seconds": round(s["finished"] - started, 4),
|
||||
"rss_bytes": s["rss_bytes"], "cgroup_memory_bytes": s["cgroup_memory_bytes"],
|
||||
"cpu_usage_usec": s["cpu_usage_usec"], "oom_kill_count": s["oom_kill_count"]}
|
||||
for s in samples]
|
||||
return {"sample_interval_seconds": self.interval, "sample_count": len(rows),
|
||||
"sample_window_seconds": window, "mean_cpu_cores": cores,
|
||||
"mean_cpu_percent_of_limit": 100 * cores / cpus,
|
||||
"rss_first_bytes": first["rss_bytes"],
|
||||
"rss_peak_observed_bytes": max(s["rss_bytes"] for s in samples),
|
||||
"cgroup_memory_peak_observed_bytes": max(s["cgroup_memory_bytes"] for s in samples),
|
||||
"oom_kill_count": max(s["oom_kill_count"] for s in samples), "samples": rows,
|
||||
"method": "RSS: /proc/1/status VmRSS. CPU: delta cgroup-v2 usage_usec / sample window. cgroup memory includes cache and sampling processes; it is not RSS. Peaks are sampled, not exact maxima."}
|
||||
|
||||
|
||||
def invoke(binary, name, base, args, history=203, concurrency=10, workload="read", mode="load"):
|
||||
invocation = [str(binary), "-base-url", base, "-mode", mode,
|
||||
"-history", str(history), "-concurrency", str(concurrency),
|
||||
"-duration", str(args.duration), "-warmup", str(args.warmup),
|
||||
"-timeout", str(args.timeout), "-page-size", str(args.page_size),
|
||||
"-payload-bytes", str(args.payload_bytes), "-workload", workload]
|
||||
child = subprocess.Popen(invocation, cwd=ROOT, text=True, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
sampler, measurement_start, metrics, resources = None, None, None, None
|
||||
failure = None
|
||||
# Generators should not hang in setup or verification; no shell process is spawned.
|
||||
timer = threading.Timer(max(120, history * args.timeout / 10 + args.duration + args.warmup + 30), child.kill)
|
||||
timer.start()
|
||||
try:
|
||||
for line in child.stdout:
|
||||
event = json.loads(line)
|
||||
kind = event["event"]
|
||||
if kind == "measurement_start":
|
||||
measurement_start = time.monotonic()
|
||||
sampler = Sampler(name, args.sample_interval)
|
||||
sampler.thread.start()
|
||||
elif kind == "measurement_complete":
|
||||
resources = sampler.finish(measurement_start, time.monotonic(), args.cpus)
|
||||
elif kind == "result":
|
||||
metrics = event["data"]
|
||||
elif kind == "failure":
|
||||
failure = event["data"]["reason"]
|
||||
code = child.wait(timeout=10)
|
||||
if code or metrics is None:
|
||||
raise RuntimeError(failure or "generator failed (exit %d)" % code)
|
||||
if mode == "load" and resources is None:
|
||||
raise RuntimeError("generator omitted resource measurement phase")
|
||||
return {"generator": metrics, "resources": resources, "exit_code": code}
|
||||
finally:
|
||||
timer.cancel()
|
||||
if child.poll() is None:
|
||||
child.kill()
|
||||
child.wait()
|
||||
if sampler:
|
||||
sampler.stop_event.set()
|
||||
sampler.thread.join(timeout=5)
|
||||
child.stdout.close()
|
||||
child.stderr.close()
|
||||
|
||||
|
||||
def preflight(binary, image, args):
|
||||
name, base = start_container(image, args)
|
||||
try:
|
||||
results = []
|
||||
for invocation in (["make", "check"], ["make", "test", "BASE_URL=" + base],
|
||||
[sys.executable, "student-tests/level4.py", "--base-url", base]):
|
||||
result = command(invocation, required=False)
|
||||
results.append({"command": " ".join(invocation), "exit_code": result.returncode,
|
||||
"output": (result.stdout + result.stderr).strip()})
|
||||
if result.returncode:
|
||||
raise RuntimeError("preflight failed: " + invocation[0])
|
||||
return {"status": "PASS", "contract_checks": results,
|
||||
"track1_correctness": invoke(binary, name, base, args, mode="check")}
|
||||
finally:
|
||||
command(["docker", "rm", "--force", name], required=False)
|
||||
|
||||
|
||||
def write_csv(output, cases):
|
||||
path = output.with_suffix(".csv")
|
||||
fields = ["workload", "history", "concurrency", "repeat", "status", "read_rps",
|
||||
"read_p50_ms", "read_p95_ms", "read_p99_ms", "write_rps", "write_p95_ms",
|
||||
"errors", "rss_peak_mib", "cpu_percent_of_limit", "client_cpu_cores"]
|
||||
with path.open("w", newline="") as stream:
|
||||
writer = csv.DictWriter(stream, fieldnames=fields)
|
||||
writer.writeheader()
|
||||
for case in cases:
|
||||
row = {k: case.get(k) for k in fields[:5]}
|
||||
if case.get("result"):
|
||||
result = case["result"]
|
||||
metrics = result["generator"]["metrics"]
|
||||
read, write, resources = metrics["read"], metrics["write"], result["resources"]
|
||||
row.update(read_rps=read["successful_rps"], write_rps=write["successful_rps"],
|
||||
write_p95_ms=write["successful_latency_ms"]["p95"],
|
||||
errors=read["failed_requests"] + write["failed_requests"],
|
||||
rss_peak_mib=resources["rss_peak_observed_bytes"] / 1048576,
|
||||
cpu_percent_of_limit=resources["mean_cpu_percent_of_limit"],
|
||||
client_cpu_cores=metrics["client_cpu_cores"])
|
||||
for p in ("p50", "p95", "p99"):
|
||||
row["read_" + p + "_ms"] = read["successful_latency_ms"][p]
|
||||
writer.writerow(row)
|
||||
|
||||
|
||||
def run_experiment(args):
|
||||
output = (ROOT / args.output).resolve()
|
||||
if output.exists():
|
||||
raise RuntimeError("output already exists; choose a new path to preserve earlier measurements")
|
||||
if args.command == "run" and (len(args.histories) < 3 or len(args.concurrency) < 3):
|
||||
raise RuntimeError("track 1 requires at least three history sizes and three concurrency levels")
|
||||
if any(h < 2 * args.page_size for h in args.histories) or args.duration < max(2, args.sample_interval * 4):
|
||||
raise RuntimeError("history must fit two full pages; duration must allow at least four samples")
|
||||
output.parent.mkdir(parents=True, exist_ok=True)
|
||||
paths = [ROOT / p for p in ("Dockerfile", ".dockerignore", "go.mod", "go.sum")]
|
||||
paths += list((ROOT / "cmd").rglob("*.go")) + list((ROOT / "internal").rglob("*.go"))
|
||||
environment = {"system": platform.system(), "architecture": platform.machine(), "logical_cpus": os.cpu_count()}
|
||||
if platform.system() == "Darwin":
|
||||
hardware = command(["sysctl", "-n", "machdep.cpu.brand_string", "hw.memsize"]).stdout.splitlines()
|
||||
environment.update(cpu=hardware[0], memory_bytes=int(hardware[1]))
|
||||
info = json.loads(docker("info", "--format", "{{json .}}"))
|
||||
if str(info.get("CgroupVersion")) != "2":
|
||||
raise RuntimeError("resource collector currently requires Linux cgroup v2")
|
||||
report = {"schema": 1, "status": "RUNNING", "label": args.label,
|
||||
"started_at_utc": dt.datetime.now(dt.timezone.utc).isoformat(),
|
||||
"invocation": ["python3", "student-tests/track1.py", *sys.argv[1:]],
|
||||
"git_head": command(["git", "rev-parse", "HEAD"]).stdout.strip(),
|
||||
"uncommitted_working_files": bool(command(["git", "status", "--porcelain"]).stdout),
|
||||
"working_source_sha256": digest(paths),
|
||||
"generator_sha256": digest([GENERATOR, Path(__file__).resolve()]),
|
||||
"host": environment,
|
||||
"docker": {k: info.get(k) for k in ("ServerVersion", "Architecture", "NCPU", "MemTotal", "CgroupVersion")},
|
||||
"limits": {"cpus": args.cpus, "memory_bytes": args.memory_mib * 1048576,
|
||||
"memory_swap_bytes": args.memory_mib * 1048576},
|
||||
"method": {"histories": args.histories, "concurrency": args.concurrency,
|
||||
"workloads": args.workloads, "duration_seconds": args.duration,
|
||||
"warmup_seconds": args.warmup, "repeats": args.repeats,
|
||||
"page_size": args.page_size, "payload_bytes": args.payload_bytes,
|
||||
"timeout_seconds": args.timeout, "sample_interval_seconds": args.sample_interval,
|
||||
"seed_clients": 10, "read_pages": "first, middle, last full page; round robin",
|
||||
"fresh_container_per_case": True, "order": "repeat, history, concurrency, workload"},
|
||||
"cases": [], "limitations": ["PASS validates the experiment and data integrity, not grade 5 or improvement.",
|
||||
"Closed-loop generator has coordinated omission; successes and errors are separate.",
|
||||
"Generator and API share one host; Docker sampling consumes a small part of container CPU.",
|
||||
"RSS is process residency, not heap size. Sampled peaks can miss short spikes."]}
|
||||
save(output, report)
|
||||
try:
|
||||
print("BUILD: application image and standalone generator", flush=True)
|
||||
report["build"] = build_image(args, output)
|
||||
image = json.loads(docker("image", "inspect", args.image))[0]
|
||||
report["image"] = {"tag": args.image, "id": image["Id"]}
|
||||
with tempfile.TemporaryDirectory(prefix="highload-track1-generator-") as directory:
|
||||
binary = compile_generator(directory)
|
||||
report["go_version"] = command(["go", "version"]).stdout.strip()
|
||||
print("PREFLIGHT: public API, level 4 HTTP checks, track 1 integrity", flush=True)
|
||||
report["preflight"] = preflight(binary, image["Id"], args)
|
||||
save(output, report)
|
||||
if args.command == "run":
|
||||
profiles = list(itertools.product(range(1, args.repeats + 1), args.histories,
|
||||
args.concurrency, args.workloads))
|
||||
for index, (repeat, history, concurrency, workload) in enumerate(profiles, 1):
|
||||
case = {"repeat": repeat, "history": history, "concurrency": concurrency,
|
||||
"workload": workload, "status": "RUNNING"}
|
||||
report["cases"].append(case)
|
||||
print("CASE %d/%d: %s, N=%d, C=%d, repeat=%d" %
|
||||
(index, len(profiles), workload, history, concurrency, repeat), flush=True)
|
||||
name = None
|
||||
try:
|
||||
name, base = start_container(image["Id"], args)
|
||||
case["result"] = invoke(binary, name, base, args, history, concurrency, workload)
|
||||
state = inspect(name)["State"]
|
||||
case["container_state"] = {k: state[k] for k in ("Running", "OOMKilled", "ExitCode")}
|
||||
if not state["Running"] or state["OOMKilled"] or case["result"]["resources"]["oom_kill_count"]:
|
||||
raise RuntimeError("container stopped or OOM occurred")
|
||||
case["status"] = "PASS"
|
||||
metrics = case["result"]["generator"]["metrics"]["read"]
|
||||
print(" PASS: %.1f read RPS, p95=%s ms, p99=%s ms, RSS=%.1f MiB, errors=%d" %
|
||||
(metrics["successful_rps"], metrics["successful_latency_ms"]["p95"],
|
||||
metrics["successful_latency_ms"]["p99"],
|
||||
case["result"]["resources"]["rss_peak_observed_bytes"] / 1048576,
|
||||
metrics["failed_requests"]), flush=True)
|
||||
except (RuntimeError, OSError, ValueError, subprocess.SubprocessError) as exc:
|
||||
case.update(status="FAIL", reason=str(exc))
|
||||
if name:
|
||||
state = inspect(name)["State"]
|
||||
case["container_state"] = {k: state[k] for k in ("Running", "OOMKilled", "ExitCode")}
|
||||
print(" FAIL: " + str(exc), flush=True)
|
||||
finally:
|
||||
if name:
|
||||
command(["docker", "rm", "--force", name], required=False)
|
||||
save(output, report)
|
||||
write_csv(output, report["cases"])
|
||||
report["status"] = "PASS" if all(c["status"] == "PASS" for c in report["cases"]) else "FAIL"
|
||||
except (RuntimeError, OSError, ValueError, subprocess.SubprocessError) as exc:
|
||||
report.update(status="FAIL", reason=str(exc))
|
||||
print("FAIL: " + str(exc), flush=True)
|
||||
finally:
|
||||
report["finished_at_utc"] = dt.datetime.now(dt.timezone.utc).isoformat()
|
||||
save(output, report)
|
||||
write_csv(output, report["cases"])
|
||||
print("SUMMARY: %s; %s" % (report["status"], args.output), flush=True)
|
||||
return 0 if report["status"] == "PASS" else 1
|
||||
|
||||
|
||||
def compare(args):
|
||||
before, after = [json.loads((ROOT / p).read_text()) for p in (args.before, args.after)]
|
||||
for report in (before, after):
|
||||
if report["status"] != "PASS" or not report["cases"]:
|
||||
raise RuntimeError("comparison requires two complete PASS matrices")
|
||||
for field in ("schema", "method", "limits", "host", "docker", "generator_sha256", "go_version"):
|
||||
if before[field] != after[field]:
|
||||
raise RuntimeError("incomparable experiments: different " + field)
|
||||
if before["image"]["id"] == after["image"]["id"]:
|
||||
raise RuntimeError("before and after use the same image; no application change demonstrated")
|
||||
def group(report):
|
||||
groups = {}
|
||||
for case in report["cases"]:
|
||||
key = (case["workload"], case["history"], case["concurrency"])
|
||||
groups.setdefault(key, []).append(case)
|
||||
return groups
|
||||
a, b = group(before), group(after)
|
||||
if set(a) != set(b):
|
||||
raise RuntimeError("different matrix profiles")
|
||||
rows = []
|
||||
print("workload N C | read RPS before -> after | p95 ms before -> after | RSS MiB before -> after")
|
||||
for key in sorted(a):
|
||||
def aggregate(cases):
|
||||
values = {"read_rps": [], "read_p95_ms": [], "read_p99_ms": [], "rss_peak_mib": [], "errors": []}
|
||||
for case in cases:
|
||||
result = case["result"]
|
||||
read, write = (result["generator"]["metrics"][op] for op in ("read", "write"))
|
||||
values["read_rps"].append(read["successful_rps"])
|
||||
values["read_p95_ms"].append(read["successful_latency_ms"]["p95"])
|
||||
values["read_p99_ms"].append(read["successful_latency_ms"]["p99"])
|
||||
values["rss_peak_mib"].append(result["resources"]["rss_peak_observed_bytes"] / 1048576)
|
||||
values["errors"].append(read["failed_requests"] + write["failed_requests"])
|
||||
if any(v is None for series in values.values() for v in series):
|
||||
raise RuntimeError("a profile has no successful reads")
|
||||
return {name: {"median": statistics.median(series), "min": min(series), "max": max(series)}
|
||||
for name, series in values.items()}
|
||||
first, second = aggregate(a[key]), aggregate(b[key])
|
||||
row = {"workload": key[0], "history": key[1], "concurrency": key[2], "before": first, "after": second}
|
||||
row["read_rps_ratio"] = second["read_rps"]["median"] / first["read_rps"]["median"]
|
||||
rows.append(row)
|
||||
print("%s %d %d | %.1f -> %.1f | %.3f -> %.3f | %.1f -> %.1f" %
|
||||
(*key, first["read_rps"]["median"], second["read_rps"]["median"],
|
||||
first["read_p95_ms"]["median"], second["read_p95_ms"]["median"],
|
||||
first["rss_peak_mib"]["median"], second["rss_peak_mib"]["median"]))
|
||||
output = (ROOT / args.output).resolve()
|
||||
if output.exists():
|
||||
raise RuntimeError("comparison output already exists; choose a new path")
|
||||
save(output, {"schema": 1, "before": args.before, "after": args.after,
|
||||
"before_image": before["image"], "after_image": after["image"], "rows": rows,
|
||||
"note": "Medians and min/max across repetitions; latency percentiles cover successful requests. A ratio is not proof of causality or a universal passing RPS."})
|
||||
return 0
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
sub = parser.add_subparsers(dest="command", required=True)
|
||||
for name in ("run", "check"):
|
||||
p = sub.add_parser(name)
|
||||
p.add_argument("--build", action="store_true")
|
||||
p.add_argument("--image", required=True)
|
||||
p.add_argument("--label", default="before")
|
||||
p.add_argument("--output", required=True)
|
||||
p.add_argument("--histories", type=numbers, default=[100, 1000, 10000])
|
||||
p.add_argument("--concurrency", type=numbers, default=[1, 5, 10])
|
||||
p.add_argument("--workloads", default="read", type=lambda s: s.split(","), choices=None)
|
||||
p.add_argument("--duration", type=float, default=30)
|
||||
p.add_argument("--warmup", type=float, default=5)
|
||||
p.add_argument("--repeats", type=int, default=3)
|
||||
p.add_argument("--cpus", type=float, default=1)
|
||||
p.add_argument("--memory-mib", type=int, default=128)
|
||||
p.add_argument("--page-size", type=int, default=50)
|
||||
p.add_argument("--payload-bytes", type=int, default=128)
|
||||
p.add_argument("--timeout", type=float, default=5)
|
||||
p.add_argument("--sample-interval", type=float, default=0.5)
|
||||
p = sub.add_parser("compare")
|
||||
p.add_argument("--before", required=True)
|
||||
p.add_argument("--after", required=True)
|
||||
p.add_argument("--output", required=True)
|
||||
args = parser.parse_args()
|
||||
if args.command != "compare":
|
||||
if args.repeats < 1 or args.cpus <= 0 or args.memory_mib < 32 or args.warmup < 0 or args.timeout <= 0 or args.sample_interval < 0.1 or not 1 <= args.page_size <= 100 or not 32 <= args.payload_bytes <= 4000 or any(c > 256 for c in args.concurrency) or not args.workloads or set(args.workloads) - {"read", "mixed"} or len(args.workloads) != len(set(args.workloads)):
|
||||
parser.error("invalid limits, durations or workload parameters")
|
||||
try:
|
||||
return compare(args) if args.command == "compare" else run_experiment(args)
|
||||
except (RuntimeError, OSError, ValueError, subprocess.SubprocessError) as exc:
|
||||
print("FAIL: " + str(exc), flush=True)
|
||||
return 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -1,68 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Repeat the sorting baseline with the current Go/JSON code and test harness.
|
||||
|
||||
Creates a temporary local clone, overlays the current tracked files and the
|
||||
validation tests, and replaces only the message repository with the saved
|
||||
pre-optimization version. The original checkout is not modified.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
REPOSITORY = "internal/database/repository/message.go"
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--ref", default="9de1152204e649c733d442255467dd81e1f16c59")
|
||||
parser.add_argument("--image", required=True)
|
||||
parser.add_argument("--output", required=True)
|
||||
args = parser.parse_args()
|
||||
output = Path(args.output)
|
||||
if output.is_absolute() or output.parent != Path("evidence") or output.suffix != ".json":
|
||||
parser.error("--output must be evidence/<name>.json")
|
||||
if (ROOT / output).exists():
|
||||
parser.error("output already exists; choose a new filename")
|
||||
baseline = subprocess.check_output(["git", "show", args.ref + ":" + REPOSITORY], cwd=ROOT)
|
||||
paths = subprocess.check_output(["git", "ls-files", "-z"], cwd=ROOT).decode().split("\0")
|
||||
# Include the new HTTP tests before the author commits them.
|
||||
paths.append("student-tests/validation_edges.py")
|
||||
with tempfile.TemporaryDirectory(prefix="highload-track1-baseline-") as directory:
|
||||
checkout = Path(directory) / "source"
|
||||
subprocess.run(["git", "clone", "--quiet", "--local", "--no-hardlinks", str(ROOT), str(checkout)], check=True)
|
||||
for relative in filter(None, paths):
|
||||
source = ROOT / relative
|
||||
if source.is_file():
|
||||
target = checkout / relative
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(source, target)
|
||||
(checkout / REPOSITORY).write_bytes(baseline)
|
||||
invocation = [sys.executable, "student-tests/track1.py", "run", "--build",
|
||||
"--image", args.image, "--label", "before-go127",
|
||||
"--histories", "100,1000,10000", "--concurrency", "1,5,10",
|
||||
"--duration", "10", "--warmup", "2", "--repeats", "1", "--output", str(output)]
|
||||
result = subprocess.run(invocation, cwd=checkout)
|
||||
for generated in (checkout / "evidence").glob(output.stem + "*"):
|
||||
if generated.is_file():
|
||||
shutil.copy2(generated, ROOT / "evidence" / generated.name)
|
||||
if (ROOT / output).exists():
|
||||
data = json.loads((ROOT / output).read_text())
|
||||
data["baseline_preparation"] = {
|
||||
"command": [sys.executable, *sys.argv], "repository_ref": args.ref,
|
||||
"replaced_file": REPOSITORY,
|
||||
"method": "Current working files, Go 1.27.1 and JSON v2; only the message repository restored from ref in a temporary clone",
|
||||
"source_file_sha256": hashlib.sha256(baseline).hexdigest(),
|
||||
}
|
||||
(ROOT / output).write_text(json.dumps(data, ensure_ascii=False, indent=2) + "\n")
|
||||
return result.returncode
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -1,643 +0,0 @@
|
||||
// Standalone black-box lab-1 generator. No application packages are imported.
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"encoding/json/v2"
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"mime"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"runtime"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
type message struct {
|
||||
ID string `json:"id"`
|
||||
ChatID string `json:"chat_id"`
|
||||
SenderID string `json:"sender_id"`
|
||||
Text string `json:"text"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
}
|
||||
type page struct {
|
||||
Items []message `json:"items"`
|
||||
NextCursor *string `json:"next_cursor"`
|
||||
}
|
||||
type requestError struct {
|
||||
Kind string
|
||||
Status int
|
||||
}
|
||||
|
||||
func (e *requestError) Error() string { return fmt.Sprintf("%s (HTTP %d)", e.Kind, e.Status) }
|
||||
|
||||
type api struct {
|
||||
base string
|
||||
client *http.Client
|
||||
}
|
||||
|
||||
// Entire response is consumed; transport reuses connections. No retries or redirects.
|
||||
func (a *api) call(method, path, actor string, body any, want int, out any) error {
|
||||
var input io.Reader
|
||||
if body != nil {
|
||||
b, err := json.Marshal(body)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
input = bytes.NewReader(b)
|
||||
}
|
||||
req, err := http.NewRequest(method, a.base+path, input)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
req.Header.Set("Accept", "application/json")
|
||||
if actor != "" {
|
||||
req.Header.Set("X-User-Id", actor)
|
||||
}
|
||||
if body != nil {
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
}
|
||||
resp, err := a.client.Do(req)
|
||||
if err != nil {
|
||||
return &requestError{Kind: "transport_or_timeout"}
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
b, err := io.ReadAll(io.LimitReader(resp.Body, 2*1024*1024+1))
|
||||
if err != nil {
|
||||
return &requestError{Kind: "transport_or_timeout"}
|
||||
}
|
||||
if len(b) > 2*1024*1024 {
|
||||
return &requestError{Kind: "protocol", Status: resp.StatusCode}
|
||||
}
|
||||
media, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||
if resp.Header.Get("X-Request-Id") == "" || err != nil || media != "application/json" {
|
||||
return &requestError{Kind: "protocol", Status: resp.StatusCode}
|
||||
}
|
||||
if resp.StatusCode >= 400 {
|
||||
var e struct {
|
||||
Error struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
RequestID string `json:"request_id"`
|
||||
} `json:"error"`
|
||||
}
|
||||
if json.Unmarshal(b, &e) != nil || e.Error.Code == "" || e.Error.Message == "" || e.Error.RequestID != resp.Header.Get("X-Request-Id") {
|
||||
return &requestError{Kind: "protocol", Status: resp.StatusCode}
|
||||
}
|
||||
}
|
||||
if resp.StatusCode != want {
|
||||
return &requestError{Kind: "http_status", Status: resp.StatusCode}
|
||||
}
|
||||
if out != nil {
|
||||
if json.Unmarshal(b, out, json.RejectUnknownMembers(true)) != nil {
|
||||
return &requestError{Kind: "protocol", Status: resp.StatusCode}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func stamp(m message) (time.Time, error) {
|
||||
if !strings.HasSuffix(m.CreatedAt, "Z") {
|
||||
return time.Time{}, fmt.Errorf("non-UTC timestamp")
|
||||
}
|
||||
return time.Parse(time.RFC3339Nano, m.CreatedAt)
|
||||
}
|
||||
func less(a, b message) bool {
|
||||
x, _ := stamp(a)
|
||||
y, _ := stamp(b)
|
||||
return x.Before(y) || (x.Equal(y) && a.ID < b.ID)
|
||||
}
|
||||
func valid(m message, chat string) error {
|
||||
_, err := stamp(m)
|
||||
if err != nil || len(m.ID) != 36 || m.ChatID != chat || len(m.SenderID) != 36 || m.Text == "" {
|
||||
return fmt.Errorf("invalid Message")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func newUser(a *api, label string) (string, error) {
|
||||
b := make([]byte, 6)
|
||||
if _, err := rand.Read(b); err != nil {
|
||||
return "", err
|
||||
}
|
||||
var user struct {
|
||||
ID string `json:"id"`
|
||||
Username string `json:"username"`
|
||||
DisplayName string `json:"display_name"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
}
|
||||
err := a.call("POST", "/api/v1/users", "", map[string]any{"username": "t1_" + label + "_" + hex.EncodeToString(b), "display_name": "Synthetic track 1"}, 201, &user)
|
||||
if err == nil && len(user.ID) != 36 {
|
||||
err = fmt.Errorf("invalid User ID")
|
||||
}
|
||||
return user.ID, err
|
||||
}
|
||||
func newChat(a *api, users []string) (string, error) {
|
||||
var chat struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
MemberIDs []string `json:"member_ids"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
}
|
||||
err := a.call("POST", "/api/v1/chats", users[0], map[string]any{"title": "Synthetic track 1", "member_ids": users}, 201, &chat)
|
||||
if err == nil && len(chat.ID) != 36 {
|
||||
err = fmt.Errorf("invalid Chat ID")
|
||||
}
|
||||
return chat.ID, err
|
||||
}
|
||||
func post(a *api, actor, chat, text string) (message, error) {
|
||||
var m message
|
||||
err := a.call("POST", "/api/v1/chats/"+chat+"/messages", actor, map[string]string{"text": text}, 201, &m)
|
||||
if err == nil {
|
||||
err = valid(m, chat)
|
||||
}
|
||||
if err == nil && (m.Text != text || m.SenderID != actor) {
|
||||
err = fmt.Errorf("POST changed text or sender")
|
||||
}
|
||||
return m, err
|
||||
}
|
||||
func read(a *api, actor, path string, limit int) (page, error) {
|
||||
var p page
|
||||
err := a.call("GET", path, actor, nil, 200, &p)
|
||||
if err != nil {
|
||||
return p, err
|
||||
}
|
||||
if p.Items == nil || len(p.Items) > limit || (p.NextCursor != nil && (*p.NextCursor == "" || len(p.Items) != limit)) {
|
||||
return p, fmt.Errorf("invalid page or cursor")
|
||||
}
|
||||
return p, nil
|
||||
}
|
||||
func pathFor(chat string, limit int, cursor string) string {
|
||||
p := fmt.Sprintf("/api/v1/chats/%s/messages?limit=%d", chat, limit)
|
||||
if cursor != "" {
|
||||
p += "&cursor=" + url.QueryEscape(cursor)
|
||||
}
|
||||
return p
|
||||
}
|
||||
|
||||
// Uses the opaque server cursor, exact nanosecond timestamps and full Message equality.
|
||||
func walk(a *api, actor, chat string, limit, bound int) ([]message, map[int]string, error) {
|
||||
all := make([]message, 0)
|
||||
seen := map[string]bool{}
|
||||
cursors := map[int]string{0: ""}
|
||||
cursor := ""
|
||||
for {
|
||||
p, err := read(a, actor, pathFor(chat, limit, cursor), limit)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
for _, m := range p.Items {
|
||||
if err := valid(m, chat); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
if seen[m.ID] || (len(all) > 0 && !less(all[len(all)-1], m)) {
|
||||
return nil, nil, fmt.Errorf("duplicate or unordered history")
|
||||
}
|
||||
seen[m.ID] = true
|
||||
all = append(all, m)
|
||||
if len(all) > bound {
|
||||
return nil, nil, fmt.Errorf("history exceeded safety bound")
|
||||
}
|
||||
}
|
||||
if p.NextCursor == nil {
|
||||
break
|
||||
}
|
||||
if *p.NextCursor == cursor {
|
||||
return nil, nil, fmt.Errorf("cursor did not advance")
|
||||
}
|
||||
cursor = *p.NextCursor
|
||||
cursors[len(all)] = cursor
|
||||
}
|
||||
return all, cursors, nil
|
||||
}
|
||||
func sameHistory(all []message, expected map[string]message, allowExtras bool) (int, error) {
|
||||
for _, m := range all {
|
||||
old, ok := expected[m.ID]
|
||||
if ok && old != m {
|
||||
return 0, fmt.Errorf("acknowledged Message changed")
|
||||
}
|
||||
if !ok && !allowExtras {
|
||||
return 0, fmt.Errorf("unexpected Message")
|
||||
}
|
||||
}
|
||||
if len(all) < len(expected) {
|
||||
return 0, fmt.Errorf("acknowledged messages missing")
|
||||
}
|
||||
seen := map[string]bool{}
|
||||
for _, m := range all {
|
||||
seen[m.ID] = true
|
||||
}
|
||||
for id := range expected {
|
||||
if !seen[id] {
|
||||
return 0, fmt.Errorf("acknowledged messages missing")
|
||||
}
|
||||
}
|
||||
return len(all) - len(expected), nil
|
||||
}
|
||||
func payload(index int64, size int) string {
|
||||
prefix := fmt.Sprintf("synthetic-%012d-", index)
|
||||
return prefix + strings.Repeat("x", size-len(prefix))
|
||||
}
|
||||
func seed(a *api, users []string, chat string, count, size int) (map[string]message, error) {
|
||||
var next atomic.Int64
|
||||
var mu sync.Mutex
|
||||
expected := map[string]message{}
|
||||
errs := make(chan error, len(users))
|
||||
var wg sync.WaitGroup
|
||||
for _, actor := range users {
|
||||
wg.Add(1)
|
||||
go func(actor string) {
|
||||
defer wg.Done()
|
||||
for {
|
||||
i := int(next.Add(1)) - 1
|
||||
if i >= count {
|
||||
return
|
||||
}
|
||||
m, err := post(a, actor, chat, payload(int64(i), size))
|
||||
if err != nil {
|
||||
errs <- err
|
||||
return
|
||||
}
|
||||
mu.Lock()
|
||||
if _, exists := expected[m.ID]; exists {
|
||||
mu.Unlock()
|
||||
errs <- fmt.Errorf("duplicate POST ID")
|
||||
return
|
||||
}
|
||||
expected[m.ID] = m
|
||||
mu.Unlock()
|
||||
}
|
||||
}(actor)
|
||||
}
|
||||
wg.Wait()
|
||||
close(errs)
|
||||
for err := range errs {
|
||||
return nil, err
|
||||
}
|
||||
return expected, nil
|
||||
}
|
||||
func event(name string, data any) {
|
||||
if json.MarshalWrite(os.Stdout, map[string]any{"event": name, "data": data}) == nil {
|
||||
fmt.Fprintln(os.Stdout)
|
||||
}
|
||||
}
|
||||
func cpuSeconds() float64 {
|
||||
var usage syscall.Rusage
|
||||
if syscall.Getrusage(syscall.RUSAGE_SELF, &usage) != nil {
|
||||
return -1
|
||||
}
|
||||
return float64(usage.Utime.Sec+usage.Stime.Sec) + float64(usage.Utime.Usec+usage.Stime.Usec)/1e6
|
||||
}
|
||||
|
||||
type operationStats struct {
|
||||
Successes int `json:"successful_requests"`
|
||||
Errors map[string]int `json:"errors"`
|
||||
Latencies []float64 `json:"-"`
|
||||
}
|
||||
type stats struct {
|
||||
Read operationStats
|
||||
Write operationStats
|
||||
}
|
||||
|
||||
func newStats() stats {
|
||||
return stats{Read: operationStats{Errors: map[string]int{}}, Write: operationStats{Errors: map[string]int{}}}
|
||||
}
|
||||
func summary(s operationStats, elapsed float64) map[string]any {
|
||||
sort.Float64s(s.Latencies)
|
||||
var p50, p95, p99 any
|
||||
percentile := func(p float64) float64 { return s.Latencies[int(math.Ceil(p*float64(len(s.Latencies))))-1] }
|
||||
if len(s.Latencies) > 0 {
|
||||
p50 = percentile(.5)
|
||||
p95 = percentile(.95)
|
||||
p99 = percentile(.99)
|
||||
}
|
||||
errors := 0
|
||||
for _, n := range s.Errors {
|
||||
errors += n
|
||||
}
|
||||
ratio := 0.0
|
||||
if errors+s.Successes > 0 {
|
||||
ratio = float64(errors) / float64(errors+s.Successes)
|
||||
}
|
||||
return map[string]any{"successful_requests": s.Successes, "failed_requests": errors, "error_ratio": ratio, "errors": s.Errors, "successful_rps": float64(s.Successes) / elapsed, "successful_latency_ms": map[string]any{"p50": p50, "p95": p95, "p99": p99}}
|
||||
}
|
||||
func classify(err error) string {
|
||||
var e *requestError
|
||||
if errors.As(err, &e) {
|
||||
return fmt.Sprintf("%s:%d", e.Kind, e.Status)
|
||||
}
|
||||
return "protocol_or_integrity"
|
||||
}
|
||||
|
||||
// Closed loop: one outstanding request per goroutine. Request deadlines include body reads.
|
||||
func phase(a *api, users []string, chat string, paths []string, pages [][]message, concurrency, limit, size int, duration time.Duration, mixed bool, expected map[string]message, next *atomic.Int64) map[string]any {
|
||||
start := make(chan struct{})
|
||||
ready := sync.WaitGroup{}
|
||||
done := sync.WaitGroup{}
|
||||
ready.Add(concurrency)
|
||||
done.Add(concurrency)
|
||||
results := make([]stats, concurrency)
|
||||
var mu sync.Mutex
|
||||
var deadline time.Time
|
||||
for worker := 0; worker < concurrency; worker++ {
|
||||
go func(worker int) {
|
||||
defer done.Done()
|
||||
s := newStats()
|
||||
ready.Done()
|
||||
<-start
|
||||
iteration := 0
|
||||
for time.Now().Before(deadline) {
|
||||
write := mixed && (iteration+worker)%20 == 0
|
||||
bucket := &s.Read
|
||||
if write {
|
||||
bucket = &s.Write
|
||||
}
|
||||
began := time.Now()
|
||||
var err error
|
||||
if write {
|
||||
m, e := post(a, users[worker%len(users)], chat, payload(next.Add(1), size))
|
||||
err = e
|
||||
if err == nil {
|
||||
mu.Lock()
|
||||
if _, exists := expected[m.ID]; exists {
|
||||
err = fmt.Errorf("duplicate POST ID")
|
||||
} else {
|
||||
expected[m.ID] = m
|
||||
}
|
||||
mu.Unlock()
|
||||
}
|
||||
}
|
||||
if !write {
|
||||
idx := (iteration + worker) % len(paths)
|
||||
var p page
|
||||
p, err = read(a, users[worker%len(users)], paths[idx], limit)
|
||||
if err == nil {
|
||||
if len(p.Items) != len(pages[idx]) {
|
||||
err = fmt.Errorf("fixed page changed")
|
||||
} else {
|
||||
for i, m := range p.Items {
|
||||
if m != pages[idx][i] {
|
||||
err = fmt.Errorf("fixed page changed")
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
elapsed := float64(time.Since(began).Nanoseconds()) / 1e6
|
||||
if err == nil {
|
||||
bucket.Successes++
|
||||
bucket.Latencies = append(bucket.Latencies, elapsed)
|
||||
} else {
|
||||
bucket.Errors[classify(err)]++
|
||||
}
|
||||
iteration++
|
||||
}
|
||||
results[worker] = s
|
||||
}(worker)
|
||||
}
|
||||
ready.Wait()
|
||||
began := time.Now()
|
||||
cpu := cpuSeconds()
|
||||
deadline = began.Add(duration)
|
||||
close(start)
|
||||
done.Wait()
|
||||
elapsed := time.Since(began).Seconds()
|
||||
cpu = cpuSeconds() - cpu
|
||||
combined := newStats()
|
||||
for _, s := range results {
|
||||
for _, pair := range [][2]*operationStats{{&combined.Read, &s.Read}, {&combined.Write, &s.Write}} {
|
||||
pair[0].Successes += pair[1].Successes
|
||||
pair[0].Latencies = append(pair[0].Latencies, pair[1].Latencies...)
|
||||
for k, n := range pair[1].Errors {
|
||||
pair[0].Errors[k] += n
|
||||
}
|
||||
}
|
||||
}
|
||||
return map[string]any{"requested_seconds": duration.Seconds(), "elapsed_seconds": elapsed, "client_cpu_seconds": cpu, "client_cpu_cores": cpu / elapsed, "read": summary(combined.Read, elapsed), "write": summary(combined.Write, elapsed)}
|
||||
}
|
||||
|
||||
func correctness(a *api, users []string, chat string, expected map[string]message, size int) (map[string]any, error) {
|
||||
// Limits vary and the final page is partial; all seed acknowledgements must survive.
|
||||
var initial []message
|
||||
for _, limit := range []int{1, 7, 50, 100} {
|
||||
all, _, err := walk(a, users[0], chat, limit, len(expected))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if _, err = sameHistory(all, expected, false); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
initial = all
|
||||
}
|
||||
first, err := read(a, users[0], pathFor(chat, 3, ""), 3)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if first.NextCursor == nil {
|
||||
return nil, fmt.Errorf("missing cursor")
|
||||
}
|
||||
second, err := read(a, users[0], pathFor(chat, 79, *first.NextCursor), 79)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for i, m := range append(first.Items, second.Items...) {
|
||||
if m != initial[i] {
|
||||
return nil, fmt.Errorf("changing limit lost or reordered messages")
|
||||
}
|
||||
}
|
||||
other, err := newChat(a, users)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = a.call("GET", pathFor(other, 50, *first.NextCursor), users[0], nil, 400, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
outsider, err := newUser(a, "outsider")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = a.call("GET", pathFor(chat, 50, ""), outsider, nil, 404, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
empty, err := read(a, users[0], pathFor(other, 50, ""), 50)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if len(empty.Items) != 0 || empty.NextCursor != nil {
|
||||
return nil, fmt.Errorf("invalid empty history")
|
||||
}
|
||||
start := make(chan struct{})
|
||||
var wg sync.WaitGroup
|
||||
errs := make(chan error, 13)
|
||||
var mu sync.Mutex
|
||||
seedCount := len(expected)
|
||||
for w, actor := range users {
|
||||
wg.Add(1)
|
||||
go func(w int, actor string) {
|
||||
defer wg.Done()
|
||||
<-start
|
||||
for i := 0; i < 10; i++ {
|
||||
m, e := post(a, actor, chat, payload(int64(seedCount+w*10+i), size))
|
||||
if e != nil {
|
||||
errs <- e
|
||||
return
|
||||
}
|
||||
mu.Lock()
|
||||
if _, exists := expected[m.ID]; exists {
|
||||
mu.Unlock()
|
||||
errs <- fmt.Errorf("duplicate POST ID")
|
||||
return
|
||||
}
|
||||
expected[m.ID] = m
|
||||
mu.Unlock()
|
||||
}
|
||||
}(w, actor)
|
||||
}
|
||||
for _, limit := range []int{2, 17, 53} {
|
||||
wg.Add(1)
|
||||
go func(limit int) {
|
||||
defer wg.Done()
|
||||
<-start
|
||||
all, _, e := walk(a, users[0], chat, limit, seedCount+100)
|
||||
if e == nil {
|
||||
_, e = sameHistory(all, mapFrom(initial), true)
|
||||
}
|
||||
if e != nil {
|
||||
errs <- e
|
||||
}
|
||||
}(limit)
|
||||
}
|
||||
close(start)
|
||||
wg.Wait()
|
||||
close(errs)
|
||||
for e := range errs {
|
||||
return nil, e
|
||||
}
|
||||
all, _, err := walk(a, users[0], chat, 37, len(expected))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if _, err = sameHistory(all, expected, false); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return map[string]any{"status": "PASS", "seed_messages": seedCount, "concurrent_writes": 100, "writers": 10, "concurrent_history_walkers": 3, "final_unique_messages": len(all), "limits_checked": []int{1, 7, 50, 100}, "changed_limit": true, "foreign_chat": true, "cursor_binding": true, "empty_history": true, "ordering": "created_at nanoseconds, then id; full Message equality"}, nil
|
||||
}
|
||||
func mapFrom(all []message) map[string]message {
|
||||
m := map[string]message{}
|
||||
for _, item := range all {
|
||||
m[item.ID] = item
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
func execute() error {
|
||||
base := flag.String("base-url", "http://127.0.0.1:8080", "isolated lab1 API")
|
||||
mode := flag.String("mode", "load", "load or check")
|
||||
history := flag.Int("history", 1000, "initial message count")
|
||||
concurrency := flag.Int("concurrency", 5, "concurrent clients")
|
||||
limit := flag.Int("page-size", 50, "history page size")
|
||||
seconds := flag.Float64("duration", 30, "measurement seconds")
|
||||
warmup := flag.Float64("warmup", 5, "warmup seconds")
|
||||
timeout := flag.Float64("timeout", 5, "HTTP timeout seconds")
|
||||
size := flag.Int("payload-bytes", 128, "ASCII text bytes")
|
||||
workload := flag.String("workload", "read", "read or mixed (every 20th request writes)")
|
||||
flag.Parse()
|
||||
if (*mode != "load" && *mode != "check") || (*workload != "read" && *workload != "mixed") || *limit < 1 || *limit > 100 || *history < 2**limit || *concurrency < 1 || *concurrency > 256 || *seconds < 1 || *warmup < 0 || *timeout <= 0 || *size < 32 || *size > 4000 {
|
||||
return fmt.Errorf("invalid arguments")
|
||||
}
|
||||
transport := &http.Transport{MaxIdleConns: 512, MaxIdleConnsPerHost: 512, MaxConnsPerHost: 512, IdleConnTimeout: 90 * time.Second, DisableCompression: true}
|
||||
defer transport.CloseIdleConnections()
|
||||
a := &api{base: strings.TrimRight(*base, "/"), client: &http.Client{Transport: transport, Timeout: time.Duration(*timeout * float64(time.Second)), CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}}
|
||||
if err := a.call("GET", "/health/ready", "", nil, 200, nil); err != nil {
|
||||
return err
|
||||
}
|
||||
users := make([]string, 10)
|
||||
for i := range users {
|
||||
u, err := newUser(a, fmt.Sprint(i))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
users[i] = u
|
||||
}
|
||||
chat, err := newChat(a, users)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
event("seed_start", map[string]any{"messages": *history})
|
||||
expected, err := seed(a, users, chat, *history, *size)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if *mode == "check" {
|
||||
result, err := correctness(a, users, chat, expected, *size)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
event("result", result)
|
||||
return nil
|
||||
}
|
||||
all, cursors, err := walk(a, users[0], chat, *limit, *history)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err = sameHistory(all, expected, false); err != nil {
|
||||
return err
|
||||
}
|
||||
positions := []int{0, (*history / 2 / *limit) * *limit, ((*history - *limit) / *limit) * *limit}
|
||||
paths := make([]string, 3)
|
||||
pages := make([][]message, 3)
|
||||
for i, pos := range positions {
|
||||
paths[i] = pathFor(chat, *limit, cursors[pos])
|
||||
pages[i] = append([]message(nil), all[pos:pos+*limit]...)
|
||||
}
|
||||
event("fixture_ready", map[string]any{"messages": len(all), "page_positions": positions})
|
||||
var next atomic.Int64
|
||||
next.Store(int64(*history))
|
||||
mixed := *workload == "mixed"
|
||||
event("warmup_start", nil)
|
||||
if *warmup > 0 {
|
||||
phase(a, users, chat, paths, pages, *concurrency, *limit, *size, time.Duration(*warmup*float64(time.Second)), mixed, expected, &next)
|
||||
}
|
||||
measurementInitial := len(expected)
|
||||
event("measurement_start", map[string]any{"history_messages": measurementInitial})
|
||||
metrics := phase(a, users, chat, paths, pages, *concurrency, *limit, *size, time.Duration(*seconds*float64(time.Second)), mixed, expected, &next)
|
||||
event("measurement_complete", nil)
|
||||
all, _, err = walk(a, users[0], chat, 100, int(next.Load())+*concurrency+*history)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
extra, err := sameHistory(all, expected, mixed)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
protocolFailures := 0
|
||||
for _, op := range []string{"read", "write"} {
|
||||
for key, n := range metrics[op].(map[string]any)["errors"].(map[string]int) {
|
||||
if strings.HasPrefix(key, "protocol") {
|
||||
protocolFailures += n
|
||||
}
|
||||
}
|
||||
}
|
||||
if protocolFailures > 0 {
|
||||
return fmt.Errorf("load observed %d protocol/integrity failures", protocolFailures)
|
||||
}
|
||||
event("result", map[string]any{"status": "PASS", "generator": "Go " + runtime.Version() + "; HTTP/1.1 keep-alive, closed loop, no retries", "generator_logical_cpus": runtime.NumCPU(), "workload": *workload, "initial_messages": *history, "measurement_initial_messages": measurementInitial, "final_messages": len(all), "concurrency": *concurrency, "page_size": *limit, "page_positions": positions, "payload_bytes": *size, "metrics": metrics, "integrity": map[string]any{"acknowledged_messages": len(expected), "missing_acknowledged_messages": 0, "unacknowledged_messages": extra, "unique_messages": len(all), "full_message_equality": true}, "limitations": []string{"Success latency only; errors separate. Closed loop has coordinated omission.", "Client includes JSON decoding, equality checks and OS scheduling; this is not a proof of maximum capacity.", "RSS/CPU are collected externally. Mixed workload grows history during warmup and measurement.", "Fixed read pages assume no backwards wall-clock jump during the experiment. No snapshots are required of the API."}})
|
||||
return nil
|
||||
}
|
||||
func main() {
|
||||
if err := execute(); err != nil {
|
||||
event("failure", map[string]string{"reason": err.Error()})
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Contract-based lab1 JSON edge cases; all data is synthetic.
|
||||
"""Contract-based lab2 JSON edge cases; all data is synthetic.
|
||||
|
||||
Uses raw HTTP bodies for byte encoding and field-name checks. Expectations
|
||||
come from contracts/README.md and CreateUser/CreateChat/CreateMessage schemas.
|
||||
@@ -39,14 +39,15 @@ def cases_for(client):
|
||||
body={"title": "Validation audit", "member_ids": [owner["id"]]},
|
||||
schema="Chat")["json"]
|
||||
endpoints = (
|
||||
("users", "/api/v1/users", None, "User", ("username", "display_name")),
|
||||
("users", "/api/v1/users", None, "User", ("username", "display_name", "password")),
|
||||
("chats", "/api/v1/chats", owner, "Chat", ("title", "member_ids")),
|
||||
("messages", "/api/v1/chats/" + chat["id"] + "/messages", owner, "Message", ("text",)),
|
||||
)
|
||||
|
||||
def body_for(endpoint):
|
||||
if endpoint == "users":
|
||||
return {"username": "edge_" + uuid.uuid4().hex[:16], "display_name": "Probe"}
|
||||
return {"username": "edge_" + uuid.uuid4().hex[:16], "display_name": "Probe",
|
||||
"password": "Synthetic:validation-password"}
|
||||
if endpoint == "chats":
|
||||
return {"title": "Probe", "member_ids": [owner["id"]]}
|
||||
return {"text": "CASE_PROBE"}
|
||||
@@ -152,8 +153,8 @@ def run(client, groups=None, verbose=True):
|
||||
if groups is not None and case["group"] not in groups:
|
||||
continue
|
||||
result = {key: case[key] for key in ("name", "group", "path", "expected")}
|
||||
if case["group"] in ("utf8", "observations"):
|
||||
result["request_hex"] = case["raw"].hex()
|
||||
# Request bodies may contain a registration password; do not put them
|
||||
# in evidence, even as hex. Tokens remain only in the teacher client.
|
||||
try:
|
||||
response = client.call("POST", case["path"], expected=list(range(200, 600)),
|
||||
actor=case["actor"], raw=case["raw"],
|
||||
@@ -171,7 +172,10 @@ def run(client, groups=None, verbose=True):
|
||||
elif response["status"] == 201:
|
||||
payload = json.loads(response["bytes"])
|
||||
shape(payload, case["schema"])
|
||||
check(all(payload.get(k) == v for k, v in case["echo"].items()), "valid fields changed")
|
||||
check(all(payload.get(k) == v for k, v in case["echo"].items()
|
||||
if k != "password"), "valid fields changed")
|
||||
check("password" not in payload and "password_hash" not in payload,
|
||||
"response exposed password material")
|
||||
result["status"] = "PASS"
|
||||
except (Failure, OSError, ValueError) as exc:
|
||||
result.update(status="FAIL", details=str(exc))
|
||||
@@ -182,11 +186,12 @@ def run(client, groups=None, verbose=True):
|
||||
return results
|
||||
|
||||
|
||||
def acceptance(client, group):
|
||||
results = run(client, {group}, verbose=False)
|
||||
def acceptance(client, group=None):
|
||||
results = run(client, {group} if group else None, verbose=False)
|
||||
check(bool(results), "validation group has no cases")
|
||||
failures = [x for x in results if x["status"] == "FAIL"]
|
||||
check(not failures, "; ".join(x["name"] + ": " + x["details"] for x in failures))
|
||||
return {"json_cases": len(results)}
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user