ЛР5: устойчивый versioned pipeline изображений, outbox и доказательства отказов

This commit is contained in:
2026-11-06 18:27:29 +03:00
parent 276dbdad8a
commit 7f51c6ac3b
78 changed files with 7278 additions and 65 deletions
+17
View File
@@ -28,3 +28,20 @@ test-persistence:
test-failover:
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2)
$(PYTHON) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
# Student implementation commands; acceptance targets above are unchanged.
PUBLIC_PORT ?= 8085
BASE_URL = http://127.0.0.1:$(PUBLIC_PORT)
bootstrap:
python3 scripts/bootstrap.py
up: bootstrap
VCS_REF=$$(git rev-parse HEAD) docker compose up -d --build --wait
migrate:
docker compose run --rm migrate
down:
docker compose down
student-test:
BASE_URL=$(BASE_URL) uv run --locked pytest -q
lint:
uv run --locked ruff check src student-tests research
.PHONY: bootstrap up down migrate student-test lint