forked from mtusi2026/mtusi2026lab5
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>
13 lines
809 B
Bash
Executable File
13 lines
809 B
Bash
Executable File
#!/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
|