From 90ec03c617b9ebfb7f095a0080a05888a80bc1e7 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Wed, 13 Mar 2024 18:04:51 +0100 Subject: [PATCH] try failure --- .github/workflows/fastembed.yml | 9 ++++++++- .../fastembed/tests/test_fastembed_text_embedder.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fastembed.yml b/.github/workflows/fastembed.yml index d67b05090..72d348950 100644 --- a/.github/workflows/fastembed.yml +++ b/.github/workflows/fastembed.yml @@ -54,4 +54,11 @@ jobs: - name: Nightly - run unit tests with Haystack main branch run: | hatch run pip install git+https://github.com/deepset-ai/haystack.git - hatch run test -m "not integration" + hatch run test -m "not integration" + + - name: Send event to Datadog for nightly failures with Haystack main branch + if: failure() + uses: ./.github/actions/send_failure + with: + title: "core-integrations nightly failure with Haystack main branch: ${{ github.workflow }}" + api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/integrations/fastembed/tests/test_fastembed_text_embedder.py b/integrations/fastembed/tests/test_fastembed_text_embedder.py index 402980485..7d362d908 100644 --- a/integrations/fastembed/tests/test_fastembed_text_embedder.py +++ b/integrations/fastembed/tests/test_fastembed_text_embedder.py @@ -179,7 +179,7 @@ def test_embed(self): result = embedder.run(text=text) embedding = result["embedding"] - assert isinstance(embedding, list) + assert isinstance(embedding, str) assert all(isinstance(emb, float) for emb in embedding) def test_run_wrong_incorrect_format(self):