Skip to content

Commit

Permalink
Skip tests of near image and remove container to speed up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed Jan 15, 2025
1 parent 16d35e1 commit 923aaff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 1 addition & 3 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-contextionary'
ENABLE_MODULES: text2vec-contextionary,backup-filesystem,img2vec-neural,generative-dummy,generative-anyscale,reranker-dummy,reranker-cohere
ENABLE_MODULES: text2vec-contextionary,backup-filesystem,generative-dummy,generative-anyscale,reranker-dummy,reranker-cohere
BACKUP_FILESYSTEM_PATH: "/tmp/backups"
CLUSTER_GOSSIP_BIND_PORT: "7100"
CLUSTER_DATA_BIND_PORT: "7101"
Expand All @@ -41,6 +41,4 @@ services:
image: semitechnologies/contextionary:en0.16.0-v1.2.0
ports:
- 9999:9999
i2v-neural:
image: semitechnologies/img2vec-pytorch:resnet50
...
6 changes: 6 additions & 0 deletions integration/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,9 @@ def test_near_text_offset(collection_factory: CollectionFactory) -> None:
assert objects[0].properties["value"] == "apple cake"


@pytest.mark.skip(
"img2vec-neural removed from CI. This test should go in the e2e-tests repo instead"
)
@pytest.mark.parametrize(
"image_maker",
[
Expand Down Expand Up @@ -1330,6 +1333,9 @@ def test_near_image(
assert objects3[0].uuid == uuid2


@pytest.mark.skip(
"img2vec-neural removed from CI. This test should go in the e2e-tests repo instead"
)
@pytest.mark.parametrize(
"image_maker",
[
Expand Down
6 changes: 6 additions & 0 deletions integration/test_collection_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ def test_near_text_missing_param(collection_factory: CollectionFactory) -> None:
)


@pytest.mark.skip(
"img2vec-neural removed from CI. This test should go in the e2e-tests repo instead"
)
@pytest.mark.parametrize("option", [{"object_limit": 1}, {"certainty": 0.9}, {"distance": 0.1}])
def test_near_image_aggregation(collection_factory: CollectionFactory, option: dict) -> None:
collection = collection_factory(
Expand All @@ -591,6 +594,9 @@ def test_near_image_aggregation(collection_factory: CollectionFactory, option: d
assert res.properties["rating"].maximum == 9


@pytest.mark.skip(
"img2vec-neural removed from CI. This test should go in the e2e-tests repo instead"
)
def test_near_image_missing_param(collection_factory: CollectionFactory) -> None:
collection = collection_factory(
properties=[
Expand Down

0 comments on commit 923aaff

Please sign in to comment.