Files
mtusi2026lab2/openspec/changes/close-lab3-review-gaps/tasks.md
T
ArtyomandClaude Opus 5.5 956d24a701 Repeat detection, add track 1 control runs and isolate image tags
BASE_URL defaults to the published port of lb from docker compose, so
the targets work with a changed LB_HTTP_PORT. rolling-update FROM_REV
and track1-compare tag the old revision by its commit instead of the
shared mtusi-messenger tag, which a parallel clone could overwrite.
detection runs three times to show the spread, failover-each records
docker ps -a of the replicas right after the stop, and failover-evidence
takes SHIFT to move round robin to the other replica. track1-control
varies the pool and the balancer queue at 8x1 and compares 8x0.5 with
4x1 on the same CPUs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-29 23:12:55 +03:00

30 lines
2.1 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.
## 1. Требования и код
- [x] 1.1 Тест порядка проверок `POST …/messages` для постороннего (`test_request_shape_is_checked_before_access`)
- [x] 1.2 Убрать `# type: ignore` из `shared/entrypoints/errors.py`
- [x] 1.3 `openspec/config.yaml`: `gunicorn_conf.py` в карте модулей
- [x] 1.4 Проверка группы: `make lint`, `make student-test`, `make check`
## 2. Обвязка
- [x] 2.1 `Makefile`: `BASE_URL` по порту `lb`, `API_IMAGE` по каталогу, `detection` трижды, `track1-control`
- [x] 2.2 `scripts/evidence-storage.sh` — volumes своего проекта; `scripts/limits.py` — коммит в заголовке
- [x] 2.3 `scripts/scaling.py` — полный stderr сбоя `compose up` в `compose-up-failed.log`
- [x] 2.4 `scripts/failover-each.sh` — `docker ps -a` реплик после хука; `scripts/failover-evidence.sh` — `SHIFT`
- [x] 2.5 Проверка группы: `make lint`, `make check`, `bash -n`/`sh -n` скриптов
## 3. Доказательства на итоговом коде
- [ ] 3.1 `evidence/checks.txt`: `make check`, `make validate`, `make lint`
- [ ] 3.2 Стенд: `make test`, `make stack-evidence`, `make storage-evidence`, `make failover-evidence` ×2, `make persistence-evidence`, `make test-faults`
- [ ] 3.3 `make level4`: limits, lb-check, detection ×3, failover-each, rolling-update, rolling-update `FROM_REV=8d28d45`
- [ ] 3.4 `make track1-control`: пул и `maxconn` на 8×1, 8×0,5 против 4×1
- [ ] 3.5 Запуск из чистого clone с нестандартным портом без `BASE_URL`
- [ ] 3.6 Проверка группы: все файлы `evidence/` несут коммит не раньше кода
## 4. Отчёт
- [ ] 4.1 `REPORT.md`: шапка, таблицы 4.x и отказов, трек (H2, методика, контроль, цифры), ограничения; `evidence/README.md`
- [ ] 4.2 Сократить proposal `add-lab3-scaling-cost` до 400 слов
- [ ] 4.3 Проверка группы: `make check`, `make lint`, `make student-test`