Выполнить лабораторную 5: асинхронный pipeline и исследование идемпотентности

This commit is contained in:
wpyatzy
2026-11-20 18:47:23 +03:00
parent 276dbdad8a
commit ec277e7e64
72 changed files with 6521 additions and 27 deletions
+27 -1
View File
@@ -1,5 +1,5 @@
PYTHON ?= python3
BASE_URL ?= http://localhost:8080
BASE_URL ?= http://localhost:8085
CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
@@ -28,3 +28,29 @@ 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)
.PHONY: up down research test-lifecycle test-backpressure test-extra
up:
./scripts/bootstrap.sh
./scripts/compose.sh up -d --build
$(PYTHON) scripts/wait_ready.py --base-url "http://localhost:8085"
down:
./scripts/compose.sh down
research:
./scripts/research.sh
# These manage real containers; run sequentially, never concurrently.
test-lifecycle:
$(PYTHON) tests/lifecycle.py
test-backpressure:
$(PYTHON) tests/backpressure.py
test-extra:
./scripts/compose.sh run --rm --no-deps ops python tests/uploads_negative.py
./scripts/compose.sh run --rm --no-deps ops python tests/image_variants.py
./scripts/compose.sh run --rm --no-deps ops python tests/private_storage.py
./scripts/compose.sh run --rm --no-deps -e BASE_URL=http://lb:8080 ops python tests/cache_consistency.py
$(PYTHON) tests/idempotency_concurrent.py --base-url "$(BASE_URL)"