Forward the lab 5 foundation while preserving lab 6 telemetry
Source: immutable lab5 snapshot f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071; forward the allowed diff from 64d5c67. Carry SQLAlchemy, Alembic, reliability fixes, versioned jobs, infrastructure and student tests without changing protected coursework files. Validation: make check, validate, lint; 515 student tests passed with one Linux-only skip; public smoke with telemetry enabled and repeat migration passed. Stop the owned stack and retain volumes. Preserve the existing OTel work in progress; grade implementation remains a separate phase.
This commit is contained in:
@@ -41,7 +41,7 @@ context: |
|
||||
Python 3.14 (аннотации вычисляются лениво по PEP 649, `TYPE_CHECKING` и
|
||||
`from __future__ import annotations` не используются), FastAPI, gunicorn с несколькими
|
||||
`UvicornWorker` (пакет `uvicorn-worker`, `preload_app = False`), dishka (DI, интеграции FastAPI
|
||||
и FastStream), pydantic v2 + pydantic-settings, structlog, asyncpg, redis-py для Valkey,
|
||||
и FastStream), pydantic v2 + pydantic-settings, structlog, SQLAlchemy 2.x async (asyncpg), Alembic, redis-py для Valkey,
|
||||
argon2-cffi, aiobotocore, Pillow, FastStream 0.7 с `faststream[rabbit,otel]` поверх aio-pika,
|
||||
OpenTelemetry Python (API/SDK, OTLP/HTTP protobuf exporter без gRPC, инструментации FastAPI и
|
||||
asyncpg, версии в `uv.lock`), pytest + pytest-asyncio + httpx. Зависимости — uv и `uv.lock`;
|
||||
@@ -68,7 +68,7 @@ context: |
|
||||
main.py сборка HTTP-приложения: вклады зон, связи зон портами, телеметрия процесса
|
||||
relay.py сборка процесса relay: outbox → брокер, возврат просроченных аренд
|
||||
worker.py сборка процесса worker: FastStream-подписчик очереди заданий
|
||||
migrate.py одноразовая точка входа: применяет SQL-миграции под advisory lock
|
||||
alembic/ async миграции с legacy adoption и advisory lock
|
||||
identity/ пользователи, пароли и сессии
|
||||
messaging/ чаты, история и идемпотентная отправка, ссылки сообщения на вложения
|
||||
attachments/ вложения: приём и staging, задания и outbox, обработка и варианты, порты
|
||||
|
||||
Reference in New Issue
Block a user