test(worker): add retry and persistence checks and adapt attachment tests for async processing

This commit is contained in:
kk10
2026-11-16 12:41:11 +03:00
parent 4a6176fe81
commit eafc437933
9 changed files with 345 additions and 70 deletions
+5 -1
View File
@@ -8,10 +8,11 @@ ACTION ?= stop-one.sh
ACTION_AT ?= 10s
DRY_RUN ?= true
.PHONY: help-go contract-go race-go load-go failure-go load-action-go reconcile reconcile-test-go
.PHONY: help-go contract-go race-go load-go failure-go load-action-go reconcile reconcile-test-go worker-go
help-go:
@echo "contract-go: contract tests"
@echo "worker-go: worker persistence, duplicate and bounded retry (stops shared services)"
@echo "race-go: concurrency tests (-race)"
@echo "load-go: load test"
@echo "failure-go: dependency failure tests (stops redis/postgres/s3 containers)"
@@ -42,3 +43,6 @@ reconcile:
reconcile-test-go:
docker compose --env-file .env build reconcile
go test -count=1 -tags=reconcile ./student-tests/... -v -args -base-url=$(BASE_URL)
worker-go:
go test -count=1 -tags=worker ./student-tests/... -v -args -base-url=$(BASE_URL)