ЛР6 - БВТ2302 - Зюлина - на 3

This commit is contained in:
2026-11-23 19:12:15 +03:00
parent 470d9d6f1e
commit 6fdb550abc
41 changed files with 2233 additions and 20 deletions
+15
View File
@@ -0,0 +1,15 @@
2026-11-23 — local lab6 checks
PASS — `scripts/check_contract.py` in an ephemeral `python:3.11.10-slim` container: `PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.`
PASS — `python -m compileall -q src alembic scripts student-tests` in the same image; exit 0.
PASS — `docker compose --env-file .env config --quiet`, Docker Compose v2.27.1-desktop.1; exit 0.
PASS — `docker compose --env-file .env up -d --build`; all services started. Both API replicas became healthy; MinIO and Redis broker reported healthy; OTel Collector logged `Everything is ready. Begin running and processing data.`
PASS — final Collector config restarted successfully; internal `http://otel-collector:13133/` health_check extension returned HTTP 200.
PASS — public `tests/smoke.py --base-url http://lb:8080`, run three times in an ephemeral Python 3.11 container on the Compose network: `PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.`
PASS — Prometheus API query returned `messenger_http_requests_total` series with `service_name`, method, route template and status-class attributes.
PASS — Prometheus contained 31 request series, 496 HTTP duration histogram bucket series, 1 worker job counter series and 16 job duration bucket series after smoke.
PASS — Loki range query returned worker logs; stored metadata includes `trace_id` and `span_id`.
PASS — Tempo search returned an API trace containing the worker `attachment.process` span (W3C trace context crosses Redis Streams).
PASS — Grafana `/api/search` returned dashboard title `Messenger observability`, uid `messenger-overview`.
No credentials or session tokens are recorded. Local `.env` is ignored by Git. Smoke-created synthetic rows and objects remain in project volumes until explicitly removed with the documented `down --volumes` command.