GO ?= go .PHONY: check vet test build integration integration-load load # Local equivalent of the Gitea Actions CI job. check: vet test build vet: $(GO) vet ./... test: $(GO) test -count=1 ./... build: $(GO) build ./... # End-to-end: real FastAPI on :18000, Go on :18080, train small+forecast, # SSE scenario/heartbeat/reconnect, FastAPI kill + cache fallback + recovery. integration: scripts/integration.sh # The same run plus the 120-client, 5-minute SSE load test. integration-load: scripts/integration.sh --load # Load-only against an already-running API (CONTROL_USER/CONTROL_PASS from env). load: $(GO) run ./scripts/sse-load -base http://127.0.0.1:18080 -clients 120 -duration 5m