lab5 done
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
PYTHON ?= $(if $(wildcard .venv/bin/python),.venv/bin/python,python3)
|
||||
GO ?= go
|
||||
PORT ?= 8080
|
||||
PORT ?= 18085
|
||||
BASE_URL ?= http://localhost:$(PORT)
|
||||
IMAGE ?= mtusi-messenger:lab4
|
||||
IMAGE ?= mtusi-messenger:lab5
|
||||
CA_FILE ?=
|
||||
ACTION_SCRIPT ?= scripts/restart.sh
|
||||
FAILOVER_SCRIPT ?= scripts/stop-one.sh
|
||||
@@ -15,7 +15,7 @@ TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
export PORT BASE_URL
|
||||
|
||||
help:
|
||||
@echo "up: build and deploy Swarm stack; down: stop with volumes retained; test-integration: PostgreSQL race/rollback/EXPLAIN; test-grade4: cross-replica idempotency, both failures and rolling update; check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
|
||||
@echo "up: build and deploy isolated lab5 stack; test-lab5: pipeline faults; benchmark: queue research; down: keep volumes; test-integration: PostgreSQL race/rollback/EXPLAIN; test-grade4: cross-replica idempotency, both failures and rolling update; check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
@@ -69,10 +69,10 @@ test-grade4:
|
||||
$(PYTHON) tests/own/swarm_grade4.py
|
||||
|
||||
test-lab4:
|
||||
$(PYTHON) tests/own/lab4.py
|
||||
$(PYTHON) tests/own/lab5.py
|
||||
|
||||
test-reconcile:
|
||||
$(PYTHON) tests/own/reconcile.py
|
||||
$(PYTHON) tests/own/lab5.py
|
||||
|
||||
measure-uploads:
|
||||
$(PYTHON) scripts/measure_uploads.py
|
||||
@@ -94,3 +94,26 @@ test-failover:
|
||||
|
||||
wait:
|
||||
$(PYTHON) scripts/swarm.py wait
|
||||
|
||||
.PHONY: test-lab5 benchmark plot-research worker-stop worker-start
|
||||
test-lab5:
|
||||
$(PYTHON) tests/own/lab5.py
|
||||
|
||||
benchmark:
|
||||
$(PYTHON) scripts/benchmark_pipeline.py --base-url "$(BASE_URL)"
|
||||
|
||||
plot-research:
|
||||
$(PYTHON) scripts/plot_pipeline.py
|
||||
|
||||
worker-stop:
|
||||
$(PYTHON) scripts/swarm.py worker-stop
|
||||
|
||||
worker-start:
|
||||
$(PYTHON) scripts/swarm.py worker-start
|
||||
|
||||
.PHONY: failed-jobs replay
|
||||
failed-jobs:
|
||||
$(PYTHON) scripts/swarm.py failed-jobs
|
||||
|
||||
replay:
|
||||
$(PYTHON) scripts/swarm.py replay --replay "$(JOB_ID)" --operator "$(OPERATOR)" --reason "$(REASON)"
|
||||
|
||||
Reference in New Issue
Block a user