docs: add attachments evidence and report
- re-capture coverage-exclusion evidence on the lab 4 stand: cache,
auth storage, replay after API recreate, test-persistence,
attachment-failover (stop, kill), attachment-storage
- green evidence/tests: student_test via LB, test_isolated,
failure_checks; smoke, slow transfer, test-failover per replica
- bench_rollout label attachments: e1161f7 -> schema with attachments
under load, no errors, messages = keys
- REPORT.md: attachments architecture, write order, defense answers,
level 3/4 evidence rows, limitations; PLAN.md stage 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,15 +1,64 @@
|
||||
# `make test_isolated`: уборка объектов S3 временной базы
|
||||
|
||||
- Спек `student-tests`: «Прогон на временной базе» (уборка префикса
|
||||
`test_<db>/`, «Хвост прошлого прогона», «Сохранить базу для разбора»).
|
||||
Design change `s3-storage`, решение 9 и «Уточнения apply», п. 11.
|
||||
- Раздел 0 — пересъёмка после change `attachments` (зелёная). Разделы
|
||||
1–3 сняты на `f57635a` (change `s3-storage`): механизм уборки с тех
|
||||
пор не менялся (`student-tests/run_isolated.py`), а красное в них —
|
||||
ожидаемое до `attachments`, как сказано ниже.
|
||||
|
||||
## 0. Пересъёмка: код 0 (change `attachments`)
|
||||
|
||||
- Дата: 2026-10-20, 22:39:22–22:41:15 UTC.
|
||||
- Commit: `d56b892` (код приложения — `116d8d3`).
|
||||
- Стенд: рабочий `mtusi-lab4`; временная база `test_messenger`, один
|
||||
контейнер API `mtusi-lab4-test-api` на `127.0.0.1:18088` без LB
|
||||
(`EXPECT_REPLICAS=1`), Valkey и S3 стенда общие.
|
||||
|
||||
```
|
||||
$ make test_isolated
|
||||
[test_isolated] database=test_messenger objects=/buckets/messenger/test_messenger/ container=mtusi-lab4-test-api base_url=http://127.0.0.1:18088
|
||||
[test_isolated] remove objects /buckets/messenger/test_messenger/
|
||||
[test_isolated] build image
|
||||
[test_isolated] create database test_messenger
|
||||
[test_isolated] migrations
|
||||
[test_isolated] start api container
|
||||
[test_isolated] ready
|
||||
[test_isolated] make test
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
[test_isolated] make student_test
|
||||
SKIPPED [1] student-tests/test_attachments.py:610: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
SKIPPED [1] student-tests/test_idempotency.py:372: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
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
|
||||
========== 191 passed, 5 skipped, 23 deselected in 100.64s (0:01:40) ===========
|
||||
[test_isolated] cleanup
|
||||
[test_isolated] remove objects /buckets/messenger/test_messenger/
|
||||
[test_isolated] results: {'test': 0, 'student_test': 0}
|
||||
exit=0
|
||||
$ printf 'fs.ls /buckets/messenger/test_messenger\n' | docker compose exec -T s3 sh -c "exec weed shell -master=127.0.0.1:9333 2>&1" | wc -l
|
||||
0
|
||||
$ psql … -d postgres -c "SELECT count(*) FROM pg_database WHERE datname = 'test_messenger'"
|
||||
0
|
||||
$ docker ps -a --filter name=mtusi-lab4-test-api -q | wc -l
|
||||
0
|
||||
```
|
||||
|
||||
- Smoke и весь набор против одного контейнера прошли; пропущены с
|
||||
причиной только 5 тестов реплик (нужен LB).
|
||||
- Тестовые загрузки (вложения `test_attachments.py` и smoke) легли под
|
||||
префикс `test_messenger/` и убраны: `fs.ls` префикса пуст, временной
|
||||
базы и контейнера нет.
|
||||
|
||||
## Итог прогона на `f57635a` (до `attachments`): код 2, красное — ожидаемо
|
||||
|
||||
- Дата: 2026-10-20, 18:39:04–18:42:42 UTC.
|
||||
- Commit: `f57635a` (рабочее дерево — только `PLAN.md` вне кода).
|
||||
- Стенд: рабочий `mtusi-lab4` (`make run_docker` с этого commit).
|
||||
Временная база `test_messenger`, S3 и Valkey стенда общие. Раздел 3 —
|
||||
временный стенд (ниже).
|
||||
- Спек `student-tests`: «Прогон на временной базе» (уборка префикса
|
||||
`test_<db>/`, «Хвост прошлого прогона», «Сохранить базу для разбора»).
|
||||
Design change `s3-storage`, решение 9 и «Уточнения apply», п. 11.
|
||||
|
||||
## Итог прогона: код 2, красное — ожидаемо до change `attachments`
|
||||
|
||||
- Smoke: `FAIL: response: missing required fields`. Схема ответа
|
||||
контракта лабы 4 требует поле `attachment_ids`, которого в коде лабы 3
|
||||
|
||||
Reference in New Issue
Block a user