docs: add upload-consistency evidence and report

- evidence: consistency (driver upload-consistency), cleaner process,
  cleaner S3 key, pending index plan on the working database
- re-run failure_checks (29/29), student_test via LB and test_isolated
  with the cleaner and storage-consistency coverage
- REPORT: database and S3 consistency, compensation table, grace period
  rationale, "PUT succeeded, COMMIT did not" answer, level 4 rows,
  limitations; PLAN stage 3 and AGENTS evidence map

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 06:32:48 +03:00
co-authored by Claude Opus 5.5
parent 5b42bd2891
commit f2dc0b368a
14 changed files with 1175 additions and 171 deletions
+21 -12
View File
@@ -3,18 +3,26 @@
- Спек `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 — пересъёмка после change `upload-consistency` (зелёная).
Разделы 1–3 сняты на `f57635a` (change `s3-storage`): механизм уборки
с тех пор не менялся (`student-tests/run_isolated.py`), а красное в
них — ожидаемое до `attachments`, как сказано ниже. Прежний снимок
раздела 0 (commit `d56b892`, change `attachments`): 191 passed, 5
skipped, 23 deselected.
## 0. Пересъёмка: код 0 (change `attachments`)
## 0. Пересъёмка: код 0 (change `upload-consistency`)
- Дата: 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 стенда общие.
- Дата: 2026-10-21, 03:25:49–03:27:24 UTC.
- Commit: `5b42bd2` (change `upload-consistency`); незакоммичены только
файлы `evidence/` этого change.
- Стенд: рабочий `mtusi-lab4` (с уборщиком `cleaner`); временная база
`test_messenger`, один контейнер API `mtusi-lab4-test-api` на
`127.0.0.1:18088` без LB (`EXPECT_REPLICAS=1`), Valkey и S3 стенда
общие. Перед прогоном цель запускает `start_s3` — bootstrap S3
(пользователи `api` и `cleaner` уже есть).
- Уборщик рабочего стенда объекты `test_messenger/` не видит: он
работает со строками своей базы `messenger` и её префиксом; префикс
временной базы убирает сам прогон.
```
$ make test_isolated
@@ -28,12 +36,13 @@ $ make test_isolated
[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
coverage: 212 scenarios in 13 specs, 197 tested (33 by make failure_checks), 15 excluded
SKIPPED [1] student-tests/test_attachments.py:648: 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) ===========
=========== 192 passed, 5 skipped, 29 deselected in 83.18s (0:01:23) ===========
[test_isolated] cleanup
[test_isolated] remove objects /buckets/messenger/test_messenger/
[test_isolated] results: {'test': 0, 'student_test': 0}