docs: record exclusion evidence and move one-off probes into the driver
Adds worker-memory, freeze-sessions and freeze-lb driver commands, retakes the evidence they produce, and fills the report header. src/ and bench/ are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
# Свой набор через LB
|
||||
|
||||
- Команда: `make student_test` (`BASE_URL=http://localhost:8080 EXPECT_REPLICAS=2`)
|
||||
- Дата: 2026-10-31, 23:02:21–23:03:39 UTC; код выхода 2 (код pytest 1)
|
||||
- Commit: `d8fe2e8` (ветка `feat/unit-of-work`), рабочее дерево чистое
|
||||
- Дата: 2026-11-01, 10:46:33–10:47:58 UTC; код выхода 0
|
||||
- Commit: `9639aa1` (ветка `feat/track1-queue-overload`), код `src/` и `bench/` тот же, что на `5ee3257`; на рабочем дереве изменены `.claude/skills/run-mtusi-messenger/`, отчётные файлы и `evidence/`, в образ они не входят
|
||||
- Стенд: проект compose `mtusi-lab5`, две реплики за HAProxy, relay, worker, собран `make run_docker` из `HEAD`
|
||||
- Итог: **1 failed, 223 passed, 141 deselected, 78,03 с**. 141 deselected — проверки отказов (`evidence/tests/failure-checks.md`)
|
||||
- Единственное красное — ожидаемое `test_exclusion_evidence_exists`, причина ровно `missing_evidence`: файлы старых исключений `evidence/cache/hits.md`, `evidence/auth/passwords-and-tokens.md`, `evidence/idempotency/replay-after-restart.md` снимаются на последнем шаге всего прогона лабы (`QUESTIONS.md`, «Перенос из лабы 4»). Приложение тут ни при чём: проверяется наличие файла в репозитории
|
||||
- `student-tests/` с change `unit-of-work` не менялись (`git diff --stat` пуст): набор доказывает, что поведение то же
|
||||
- Вывод сокращён: убраны строки `PASSED`, заголовки блоков вывода и текст функции теста
|
||||
- Итог: **224 passed, 147 deselected, 84,81 с**. 147 deselected — проверки отказов (`evidence/tests/failure-checks.md`, снят на `d8fe2e8`)
|
||||
- `test_exclusion_evidence_exists` зелёный: файлы исключений сняты на стенде этой лабы (`evidence/cache/hits.md`, `evidence/auth/passwords-and-tokens.md`, `evidence/idempotency/replay-after-restart.md`, `evidence/queue/baseline2/summary.md` и прежние)
|
||||
- Вывод сокращён: убраны строки `PASSED` и заголовки блоков вывода
|
||||
|
||||
```text
|
||||
student-tests/test_coverage.py::test_exclusion_evidence_exists FAILED [ 50%]
|
||||
E AssertionError: exclusion refers to missing evidence/cache/hits.md: chat-cache / Временная база
|
||||
E exclusion refers to missing evidence/cache/hits.md: chat-cache / Срок записи
|
||||
E exclusion refers to missing evidence/cache/hits.md: chat-cache / Чтение из кэша
|
||||
E exclusion refers to missing evidence/idempotency/replay-after-restart.md: idempotency / Повтор после рестарта API
|
||||
E exclusion refers to missing evidence/auth/passwords-and-tokens.md: sessions / Токена нет в хранилище
|
||||
E exclusion refers to missing evidence/auth/passwords-and-tokens.md: users / Хэш в БД
|
||||
=========== 1 failed, 223 passed, 141 deselected in 78.03s (0:01:18) ===========
|
||||
student-tests/test_coverage.py::test_exclusion_evidence_exists PASSED [ 50%]
|
||||
uploaded via 97b8c4574c46, downloaded via ['5aecf775f84d', '97b8c4574c46']
|
||||
coverage: 389 scenarios in 17 specs, 358 tested (173 by make failure_checks), 31 excluded
|
||||
sent via 97b8c4574c46, replayed via ['5aecf775f84d']
|
||||
409 via ['5aecf775f84d', '97b8c4574c46']
|
||||
one session, 20 requests: {'5aecf775f84d': 10, '97b8c4574c46': 10}
|
||||
written via 97b8c4574c46, read via {'5aecf775f84d': 3, '97b8c4574c46': 3}
|
||||
race: 10 clients x 10 messages, statuses {201: 100}, max in flight 10; history: 100 messages, 100 unique ids, 4 pages by 30
|
||||
username race: 10 clients, statuses {409: 9, 201: 1}, max in flight 10
|
||||
key race: 10 clients, statuses {201: 10}, max in flight 10; history: 1 messages
|
||||
key race through replicas: {'5aecf775f84d': 5, '97b8c4574c46': 5}
|
||||
================ 224 passed, 147 deselected in 84.81s (0:01:24) ================
|
||||
```
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
# Набор на временной базе
|
||||
|
||||
- Команда: `make test_isolated`
|
||||
- Дата: 2026-10-31, 23:00:01–23:02:21 UTC; код выхода 2 (`results: {'test': 0, 'student_test': 2}`)
|
||||
- Commit: `d8fe2e8` (ветка `feat/unit-of-work`), рабочее дерево чистое
|
||||
- Дата: 2026-11-01, 10:48:00–10:50:36 UTC; код выхода 0 (`results: {'test': 0, 'student_test': 0}`)
|
||||
- Commit: `9639aa1` (ветка `feat/track1-queue-overload`), код `src/` и `bench/` тот же, что на `5ee3257`; на рабочем дереве изменены `.claude/skills/run-mtusi-messenger/`, отчётные файлы и `evidence/`, в образ они не входят
|
||||
- Стенд: образ из рабочего дерева, контейнеры `mtusi-lab5-test-api`, `mtusi-lab5-test-worker`, `mtusi-lab5-test-relay` на базе `test_messenger` поверх хранилищ рабочего стенда, один процесс API, `EXPECT_REPLICAS=1`
|
||||
- Итог: smoke — `PASS: lab5`; набор — **1 failed, 217 passed, 6 skipped, 141 deselected, 121,10 с**
|
||||
- 6 skipped — тесты реплик против одного процесса, причина напечатана
|
||||
- Красное — ожидаемое `test_exclusion_evidence_exists`, только `missing_evidence` по трём файлам, которые снимаются на последнем шаге прогона лабы: `evidence/cache/hits.md`, `evidence/auth/passwords-and-tokens.md`, `evidence/idempotency/replay-after-restart.md`; разбор — `evidence/tests/student-test-lb.md`
|
||||
- Вывод сокращён: убраны лог сборки, строки `PASSED` и журналы контейнеров, которые цель печатает при коде ≠ 0
|
||||
- Итог: smoke — `PASS: lab5`; набор — **218 passed, 6 skipped, 147 deselected, 134,11 с**
|
||||
- 6 skipped — тесты реплик против одного процесса, причина напечатана; 147 deselected — проверки отказов (`evidence/tests/failure-checks.md`, снят на `d8fe2e8`)
|
||||
- Вывод сокращён: убраны лог сборки и строки `PASSED`
|
||||
|
||||
```text
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
student-tests/test_coverage.py::test_exclusion_evidence_exists FAILED [ 50%]
|
||||
two series of 18 requests: {'fed908d45572': 36}
|
||||
ready in 0.44 s
|
||||
coverage: 371 scenarios in 16 specs, 349 tested (164 by make failure_checks), 22 excluded
|
||||
student-tests/test_coverage.py::test_exclusion_evidence_exists PASSED [ 50%]
|
||||
two series of 18 requests: {'d9060d224783': 36}
|
||||
ready in 0.64 s
|
||||
coverage: 389 scenarios in 17 specs, 358 tested (173 by make failure_checks), 31 excluded
|
||||
race: 10 clients x 10 messages, statuses {201: 100}, max in flight 10; history: 100 messages, 100 unique ids, 4 pages by 30
|
||||
username race: 10 clients, statuses {409: 9, 201: 1}, max in flight 10
|
||||
key race: 10 clients, statuses {201: 10}, max in flight 10; history: 1 messages
|
||||
@@ -26,8 +25,8 @@ SKIPPED [1] student-tests/test_idempotency.py:372: one API process (EXPECT_REPLI
|
||||
SKIPPED [1] student-tests/test_load_balancing.py:18: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
SKIPPED [1] student-tests/test_load_balancing.py:34: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
SKIPPED [1] student-tests/test_race.py:169: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
===== 1 failed, 217 passed, 6 skipped, 141 deselected in 121.10s (0:02:01) =====
|
||||
========== 218 passed, 6 skipped, 147 deselected in 134.11s (0:02:14) ==========
|
||||
[test_isolated] cleanup
|
||||
[test_isolated] remove objects /buckets/messenger/test_messenger/ and queue test_messenger.attachment.process.v1
|
||||
[test_isolated] results: {'test': 0, 'student_test': 2}
|
||||
[test_isolated] results: {'test': 0, 'student_test': 0}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user