ЛР5 БВТ2304 Запорожец на 5

RabbitMQ (quorum queue, publisher confirms, manual ack, DLX) + отдельный worker:
staging в S3 + вложение/job/outbox одной транзакцией -> 202 queued; relay outbox,
lease с heartbeat и fencing (worker_id, attempt), retry с backoff+jitter, failed-реестр,
безопасный replay с audit; thumbnail/crop/WebP в изолированном процессе с лимитами.
Тесты окон отказа (fault injection), трек 1 «Очередь под перегрузкой» с backpressure.
Перенесено исправление замечания lab3 PR #99 (U+0000 в тексте).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 18:33:52 +03:00
co-authored by Claude Opus 5.5
parent 276dbdad8a
commit 0a221b0675
100 changed files with 12431 additions and 17 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# Собственные проверки lab5 + регрессия lab4, lab3 и уровня 4 lab2. Запускать на хосте (Linux/macOS/Git Bash) из корня.
# Поднимает api-ttl (SESSION_TTL_SECONDS=2), запускает student-tests в контейнере tester, гасит api-ttl.
set -eu
cd "$(dirname "$0")/.."
compose() { docker compose --env-file .env "$@"; }
compose --profile test up -d --wait api-ttl
status=0
MSYS_NO_PATHCONV=1 compose --profile tools run --rm tester sh -c \
'python -u student-tests/test_lab5.py; a=$?; python -u student-tests/test_lab4.py; b=$?; python -u student-tests/test_lab3.py; c=$?; python -u student-tests/test_lab2_regression.py; d=$?; exit $((a | b | c | d))' || status=$?
compose --profile test stop api-ttl
exit $status