docs: add failure checks evidence and report

Evidence from 5b65051: make failure_checks passes 12 checks in 45 s and
leaves the working stand untouched (same StartedAt and row counts);
make test_isolated reports 98 of 108 scenarios tested, 13 of them by the
failure checks. REPORT.md gets the level 4 rows for automatic expiry,
database and Valkey checks and the chat creation rollback. The spec and
rule note that two failure check runs must not overlap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 23:39:39 +03:00
co-authored by Claude Opus 5.5
parent 5b65051a60
commit b0357468ff
9 changed files with 180 additions and 26 deletions
+10 -7
View File
@@ -3,15 +3,17 @@
| | |
|---|---|
| Спеки | `student-tests` «Прогон на временной базе» — сценарий «Успешный прогон»; «Результат прогона сохраняется»; `container-run` «Штатный запуск» (`make student_test` проходит) |
| Change | `membership-cache`, задача 6.1 (прошлый прогон — `session-auth`, commit `ae4154e`, 99 тестов) |
| Дата | 2026-10-01 18:25 UTC |
| Commit | `cae4b09` |
| Change | `failure-checks`, задача 4.1 (прошлые прогоны: `membership-cache`, commit `cae4b09`, 103 теста и 23 исключения; `session-auth`, commit `ae4154e`, 99 тестов) |
| Дата | 2026-10-01 20:36 UTC |
| Commit | `5b65051` |
| Стенд | рабочий `make run_docker` запущен; образ собран из рабочего дерева, тестовый контейнер `mtusi-lab2-test-api` на `127.0.0.1:18088`, временная база `test_messenger` в том же Postgres, Valkey стенда общий (ключи разделены именем базы) |
| Хост | Docker Desktop 29.8.1, macOS arm64; ВМ Docker: 12 CPU, 7 GiB RAM; лимиты контейнерам не задавались |
Механика временной базы и уборка при любом исходе —
`evidence/tests/test-isolated-mechanics.md`. Ключи кэша тестового
прогона — `evidence/cache/hits.md`, раздел 4.
прогона — `evidence/cache/hits.md`, раздел 4. 12 проверок отказов
(маркер `fault`) здесь собраны, но не выполняются (`deselected`): их
прогон — `evidence/tests/failure-checks.md`.
## Прогон
@@ -26,8 +28,8 @@ $ make test_isolated # exit 0
[test_isolated] make test
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
[test_isolated] make student_test
coverage: 108 scenarios in 10 specs, 85 tested, 23 excluded
============================= 103 passed in 9.08s ==============================
coverage: 108 scenarios in 10 specs, 98 tested (13 by make failure_checks), 10 excluded
====================== 103 passed, 12 deselected in 9.21s ======================
[test_isolated] cleanup
[test_isolated] results: {'test': 0, 'student_test': 0}
```
@@ -72,5 +74,6 @@ username race: 10 clients, statuses {409: 9, 201: 1}, max in flight 10
smoke лабы 2 и все 103 собственных теста, включая вход, Bearer,
logout, неверный пароль и сценарии кэша карточки чата.
- Каждый сценарий HTTP-спеков покрыт тестом или исключением с причиной
и ссылкой на evidence: 85 тестами и 23 исключениями из 108.
и ссылкой на evidence: из 108 — 98 тестами (13 из них — проверками
отказов `make failure_checks`) и 10 исключениями.
- Временная база и контейнер убраны, рабочий стенд не затронут.