tasks for 4

This commit is contained in:
EgorAnti
2026-10-21 20:10:27 +03:00
parent 7565b65997
commit a70992ccdb
20 changed files with 617 additions and 41 deletions
+8 -2
View File
@@ -4,10 +4,10 @@ CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
.PHONY: help check validate test load test-persistence
.PHONY: help check validate test load test-persistence test-operational explain-history
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@echo "check/validate: contract; test: API; test-persistence: restart; test-operational: failure/race/rollback; explain-history: 10k index plan"
check:
$(PYTHON) scripts/check_contract.py
@@ -28,3 +28,9 @@ else
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2)
endif
$(PYTHON) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
test-operational:
$(PYTHON) tests/operational.py --base-url "$(BASE_URL)"
explain-history:
$(PYTHON) scripts/explain_history.py