created tasks for grade 4
This commit is contained in:
@@ -8,6 +8,7 @@ SERVICE ?=
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
COMPOSE = docker compose --env-file .env
|
||||
LOCAL_COMPOSE = $(COMPOSE) -f compose.yaml -f compose.local.yml
|
||||
|
||||
TEST_PROJECT ?= messenger-test
|
||||
TEST_LB_PORT ?= 28080
|
||||
@@ -27,13 +28,14 @@ TEST_REDIS_PASSWORD ?= $(if $(wildcard secrets/redis_password),$(file <secrets/r
|
||||
TEST_REDIS_DB ?= 15
|
||||
export TEST_DATABASE_URL TEST_REDIS_HOST TEST_REDIS_PORT TEST_REDIS_PASSWORD TEST_REDIS_DB
|
||||
|
||||
.PHONY: help init up down restart ps logs migrate migration worker-stop worker-start \
|
||||
.PHONY: help init up up-local down restart ps logs migrate migration worker-stop worker-start \
|
||||
cleanup-dry-run cleanup-apply check validate test load test-unit test-pipeline \
|
||||
test-nginx test-storage test-outbox test-jobs test-persistence test-failover \
|
||||
test-suite test-stand-up test-stand-destroy test-telemetry test-observability verify clean-stands
|
||||
|
||||
help:
|
||||
@echo "Запуск: init | up | down | restart | ps | logs SERVICE=worker"
|
||||
@echo "Локальные порты и веб-панели: up-local"
|
||||
@echo "Обслуживание: migrate | migration m='описание' | worker-stop | worker-start"
|
||||
@echo "Очистка объектов: cleanup-dry-run | cleanup-apply"
|
||||
@echo "Проверки: check | validate | test | test-pipeline | test-unit PYTEST_ARGS=..."
|
||||
@@ -49,6 +51,9 @@ init:
|
||||
up:
|
||||
$(COMPOSE) up -d --build --wait --wait-timeout 180
|
||||
|
||||
up-local:
|
||||
$(LOCAL_COMPOSE) up -d --build --wait --wait-timeout 180
|
||||
|
||||
down:
|
||||
$(COMPOSE) down
|
||||
|
||||
@@ -94,11 +99,11 @@ load:
|
||||
test-telemetry:
|
||||
$(PYTHON) -m pytest -q student-tests/test_telemetry.py
|
||||
|
||||
# Проверка на уже запущенном стенде; явно включает два ограниченных отказа.
|
||||
# Проверка на уже запущенном стенде; включает сценарии отказа и восстановления.
|
||||
test-observability:
|
||||
$(PYTHON) -m scripts.check_observability --base-url "$(BASE_URL)" --grafana-url "$(GRAFANA_URL)" --incidents --restart-telemetry
|
||||
|
||||
# Один стенд, один прогон, удаление контейнеров/томов/образов даже при ошибке.
|
||||
# Один прогон на отдельном стенде, удаление его контейнеров/сети/томов при завершении.
|
||||
verify:
|
||||
$(PYTHON) -m scripts.deployment verify
|
||||
|
||||
|
||||
Reference in New Issue
Block a user