Files
mtusi2026lab5/evidence/tests/student-test-lb.md
T
ricoromaandClaude Opus 5.5 acc6584dd3 docs: record async-attachments evidence and report
Evidence taken on ff1a83b. The report covers level 3; levels 4 and 5 are
closed by the following changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 08:30:46 +03:00

39 lines
3.6 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, ~05:21 UTC; код выхода 2 (код pytest 1)
- Commit: `ff1a83b`, рабочее дерево без правок кода (добавлены только файлы `evidence/`)
- Стенд: проект compose `mtusi-lab5`, две реплики за HAProxy, worker, собран `make run_docker` из `HEAD`
- Итог: **1 failed, 211 passed, 99 deselected, 51,53 с**. 99 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»). Приложение тут ни при чём: проверяется наличие файла в репозитории
- Вывод сокращён: убраны строки `PASSED`
```text
collecting ... collected 311 items / 99 deselected / 212 selected
student-tests/test_coverage.py::test_exclusion_evidence_exists FAILED
=================================== 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: {'93ed54dde305': 18, '2e18648c95a3': 18}
test_attachment_becomes_ready: ready in 0.22 s
test_download_through_other_replica: uploaded via 2e18648c95a3, downloaded via ['2e18648c95a3', '93ed54dde305']
test_every_scenario_is_covered: coverage: 318 scenarios in 15 specs, 296 tested (118 by make failure_checks), 22 excluded
test_replay_on_other_replica: sent via 2e18648c95a3, replayed via ['93ed54dde305']; 409 via ['2e18648c95a3', '93ed54dde305']
test_one_session_on_several_replicas: one session, 20 requests: {'93ed54dde305': 10, '2e18648c95a3': 10}
test_write_visible_through_other_replica: written via 2e18648c95a3, read via {'93ed54dde305': 3, '2e18648c95a3': 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: {'2e18648c95a3': 5, '93ed54dde305': 5}
================ 1 failed, 211 passed, 99 deselected in 51.53s =================
make: *** [student_test] Error 1
```