Skip to content

Commit

Permalink
Skip morpheus_llm's faiss tests on aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Will Killian <wkillian@nvidia.com>
  • Loading branch information
willkill07 committed Feb 27, 2025
1 parent 1db281c commit 98e4f81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/morpheus_llm/services/test_faiss_vector_db_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

import os
import platform
import typing
from pathlib import Path

Expand Down Expand Up @@ -79,6 +80,7 @@ def faiss_service_fixture(faiss_simple_store_dir: str):
yield service


@pytest.mark.skipif(platform.machine() == 'aarch64', reason="/~https://github.com/nv-morpheus/Morpheus/issues/2190")
def test_load_resource(faiss_service: FaissVectorDBService):

# Check the default implementation
Expand All @@ -94,6 +96,7 @@ def test_load_resource(faiss_service: FaissVectorDBService):
assert resource.describe()["index_name"] == "other_index"


@pytest.mark.skipif(platform.machine() == 'aarch64', reason="/~https://github.com/nv-morpheus/Morpheus/issues/2190")
def test_describe(faiss_service: FaissVectorDBService):
desc_dict = faiss_service.load_resource().describe()

Expand All @@ -102,12 +105,14 @@ def test_describe(faiss_service: FaissVectorDBService):
# Room for other properties


@pytest.mark.skipif(platform.machine() == 'aarch64', reason="/~https://github.com/nv-morpheus/Morpheus/issues/2190")
def test_count(faiss_service: FaissVectorDBService):

count = faiss_service.load_resource().count()
assert count == 3


@pytest.mark.skipif(platform.machine() == 'aarch64', reason="/~https://github.com/nv-morpheus/Morpheus/issues/2190")
async def test_similarity_search(faiss_service: FaissVectorDBService):

vdb = faiss_service.load_resource()
Expand All @@ -131,6 +136,7 @@ async def test_similarity_search(faiss_service: FaissVectorDBService):
assert k_5[0][0]["page_content"] == "22"


@pytest.mark.skipif(platform.machine() == 'aarch64', reason="/~https://github.com/nv-morpheus/Morpheus/issues/2190")
def test_has_store_object(faiss_service: FaissVectorDBService):
assert faiss_service.has_store_object("index")

Expand Down

0 comments on commit 98e4f81

Please sign in to comment.