Files
mtusi2026lab5/evidence/tests/student-test-lb.md
T
2026-10-31 16:51:29 +03:00

40 lines
4.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Свой набор через LB
- Команда: `make student_test` (`BASE_URL=http://localhost:8080 EXPECT_REPLICAS=2`)
- Дата: 2026-10-31, 13:29:48–13:31:06 UTC; код выхода 2 (код pytest 1)
- Commit: `e2a6427` (ветка `feat/pipeline-reliability`), рабочее дерево без правок кода (добавлены только файлы `evidence/`)
- Стенд: проект compose `mtusi-lab5`, две реплики за HAProxy, relay, worker, собран `make run_docker` из `HEAD`
- Итог: **1 failed, 218 passed, 140 deselected, 77,81 с**. 140 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»). Приложение тут ни при чём: проверяется наличие файла в репозитории
- Сверка покрытия: 370 сценариев в 16 спеках, 348 проверены (163 — `make failure_checks`), 22 исключения; «no test and no exclusion» и «unknown scenario» нет
- Вывод сокращён: убраны строки `PASSED`, заголовки блоков вывода и текст функции теста
```text
collecting ... collected 359 items / 140 deselected / 219 selected
student-tests/test_coverage.py::test_exclusion_evidence_exists FAILED [ 49%]
=================================== FAILURES ===================================
________________________ test_exclusion_evidence_exists ________________________
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 / Хэш в БД
==================================== PASSES ====================================
test_one_instance_id_per_process: two series of 18 requests: {'d7f1b8c394b9': 18, 'e933a5daf6b3': 18}
test_attachment_becomes_ready: ready in 0.42 s
test_download_through_other_replica: uploaded via e933a5daf6b3, downloaded via ['d7f1b8c394b9', 'e933a5daf6b3']
test_every_scenario_is_covered: coverage: 370 scenarios in 16 specs, 348 tested (163 by make failure_checks), 22 excluded
test_replay_on_other_replica: sent via e933a5daf6b3, replayed via ['d7f1b8c394b9']; 409 via ['d7f1b8c394b9', 'e933a5daf6b3']
test_one_session_on_several_replicas: one session, 20 requests: {'d7f1b8c394b9': 10, 'e933a5daf6b3': 10}
test_write_visible_through_other_replica: written via e933a5daf6b3, read via {'d7f1b8c394b9': 3, 'e933a5daf6b3': 3}
test_hundred_messages_from_ten_clients: race: 10 clients x 10 messages, statuses {201: 100}, max in flight 10; history: 100 messages, 100 unique ids, 4 pages by 30
test_same_username_at_once: username race: 10 clients, statuses {409: 9, 201: 1}, max in flight 10
test_same_key_at_once: key race: 10 clients, statuses {201: 10}, max in flight 10; history: 1 messages
test_same_key_through_replicas: key race: 10 clients, statuses {201: 10}, max in flight 10; history: 1 messages; key race through replicas: {'e933a5daf6b3': 5, 'd7f1b8c394b9': 5}
=========== 1 failed, 218 passed, 140 deselected in 77.81s (0:01:17) ===========
make: *** [student_test] Error 1
```