feat(reconcile): add attachment consistency reconciler

This commit is contained in:
kk10
2026-11-04 14:53:07 +03:00
parent 29f51bf0b3
commit 94afb53e05
6 changed files with 511 additions and 1 deletions
+6 -1
View File
@@ -6,14 +6,16 @@ LOAD_ARGS = $(if $(LOAD_WORKERS),-workers=$(LOAD_WORKERS),) \
REPLICA ?= 1
ACTION ?= stop-one.sh
ACTION_AT ?= 10s
DRY_RUN ?= true
.PHONY: help-go contract-go race-go load-go failure-go load-action-go
.PHONY: help-go contract-go race-go load-go failure-go load-action-go reconcile
help-go:
@echo "contract-go: contract tests"
@echo "race-go: concurrency tests (-race)"
@echo "load-go: load test"
@echo "failure-go: dependency failure tests (stops redis/postgres containers)"
@echo "reconcile: attachment audit; DRY_RUN=false to repair"
contract-go:
go test -tags=contract ./student-tests/... -v -args -base-url=$(BASE_URL)
@@ -33,3 +35,6 @@ load-action-go:
-replica=$(REPLICA) \
-action=$(CURDIR)/scripts/$(ACTION) \
-action-at=$(ACTION_AT)
reconcile:
docker compose --env-file .env run --rm --no-deps reconcile -dry-run=$(DRY_RUN)