From 4e32249227da93f297f82a603c94bbd41d885d67 Mon Sep 17 00:00:00 2001 From: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com> Date: Mon, 7 Sep 2026 16:08:13 +0000 Subject: [PATCH] test: keep distributed specs in their own targets The general e2e target builds a container, not the host binary that cluster specs require. Run only its own package; dedicated distributed and cluster targets retain the full subpackage coverage. Assisted-by: Codex:GPT-6 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ac14752f8..0d9d7dad0 100644 --- a/Makefile +++ b/Makefile @@ -479,11 +479,13 @@ prepare-e2e: run-e2e-image: docker run -p 5390:8080 -e MODELS_PATH=/models -e THREADS=1 -e DEBUG=true -d --rm -v $(TEST_DIR):/models --name e2e-tests-$(RANDOM) localai-tests +# Distributed subpackages have separate targets that provision PostgreSQL and +# build the host binaries; this target exercises the container-backed API only. test-e2e: build-mock-backend build-cloud-proxy-backend prepare-e2e run-e2e-image @echo 'Running e2e tests' BUILD_TYPE=$(BUILD_TYPE) \ LOCALAI_API=http://$(E2E_BRIDGE_IP):5390 \ - $(GOCMD) run github.com/onsi/ginkgo/v2/ginkgo --flake-attempts $(TEST_FLAKES) -v -r ./tests/e2e + $(GOCMD) run github.com/onsi/ginkgo/v2/ginkgo --flake-attempts $(TEST_FLAKES) -v ./tests/e2e $(MAKE) clean-mock-backend $(MAKE) clean-cloud-proxy-backend $(MAKE) teardown-e2e