diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 447f910b2..c9e126e56 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,10 +96,12 @@ jobs: sudo apt-get install curl ffmpeg - name: Build backends run: | - make backends/transformers backends/huggingface backends/llama-cpp backends/local-store backends/silero-vad backends/piper backends/whisper backends/stablediffusion-ggml + make backends/transformers + mv backends/transformer external/transformers + make backends/huggingface backends/llama-cpp backends/local-store backends/silero-vad backends/piper backends/whisper backends/stablediffusion-ggml - name: Test run: | - PATH="$PATH:/root/go/bin" GO_TAGS="tts" make --jobs 5 --output-sync=target test + TRANSFORMER_BACKEND=$(abspath ./)/external/transformers/run.sh PATH="$PATH:/root/go/bin" GO_TAGS="tts" make --jobs 5 --output-sync=target test - name: Setup tmate session if tests fail if: ${{ failure() }} uses: mxschmitt/action-tmate@v3.23 diff --git a/Makefile b/Makefile index 704124c9a..8a9f1915a 100644 --- a/Makefile +++ b/Makefile @@ -149,7 +149,7 @@ test: test-models/testmodel.ggml protogen-go @echo 'Running tests' export GO_TAGS="debug" $(MAKE) prepare-test - HUGGINGFACE_GRPC=$(abspath ./)/backend/python/transformers/run.sh TEST_DIR=$(abspath ./)/test-dir/ FIXTURES=$(abspath ./)/tests/fixtures CONFIG_FILE=$(abspath ./)/test-models/config.yaml MODELS_PATH=$(abspath ./)/test-models BACKENDS_PATH=$(abspath ./)/backends \ + TEST_DIR=$(abspath ./)/test-dir/ FIXTURES=$(abspath ./)/tests/fixtures CONFIG_FILE=$(abspath ./)/test-models/config.yaml MODELS_PATH=$(abspath ./)/test-models BACKENDS_PATH=$(abspath ./)/backends \ $(GOCMD) run github.com/onsi/ginkgo/v2/ginkgo --label-filter="!llama-gguf" --flake-attempts $(TEST_FLAKES) --fail-fast -v -r $(TEST_PATHS) $(MAKE) test-llama-gguf $(MAKE) test-tts diff --git a/core/http/app_test.go b/core/http/app_test.go index eee66ab1e..6202573b5 100644 --- a/core/http/app_test.go +++ b/core/http/app_test.go @@ -916,7 +916,7 @@ parameters: application, err := application.New( append(commonOpts, - config.WithExternalBackend("transformers", os.Getenv("HUGGINGFACE_GRPC")), + config.WithExternalBackend("transformers", os.Getenv("TRANSFORMER_BACKEND")), config.WithContext(c), config.WithSystemState(systemState), )...)