Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/qdrant tests in CI #1526

Merged
merged 17 commits into from
Jul 4, 2024
Merged

Fix/qdrant tests in CI #1526

merged 17 commits into from
Jul 4, 2024

Conversation

steinitzu
Copy link
Collaborator

@steinitzu steinitzu commented Jun 27, 2024

Description

  • Fixes issues with qdrant state restore
  • Support local qdrant
  • Test both local and server qdrant (same tests as weaviate)
  • server qdrant runs in docker in CI instead of cloud

Related Issues

Additional Context

Copy link

netlify bot commented Jun 27, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit a011523
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/6686cb88e11c9d00085b927d

@rudolfix rudolfix self-requested a review July 3, 2024 08:49
@rudolfix rudolfix added the sprint Marks group of tasks with core team focus at this moment label Jul 3, 2024
@steinitzu steinitzu marked this pull request as ready for review July 4, 2024 01:57
Comment on lines +39 to +42
if config.credentials.is_local():
# Local qdrant can not load in parallel
caps.loader_parallelism_strategy = "sequential"
caps.max_parallel_load_jobs = 1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workaround for local qdrant, it is not thread safe

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very true! this is why this capability got added :)

@steinitzu steinitzu force-pushed the fix/qdrant-tests-failing branch from 259c866 to faab3c0 Compare July 4, 2024 02:05
Comment on lines +68 to +70
# sync the schema
p.sync_schema()
# check if schema exists
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local qdrant uses flock and can't handle more than one instance of client, why I moved all the pipeline operations out of with destination_client() scope

rudolfix
rudolfix previously approved these changes Jul 4, 2024
Copy link
Collaborator

@rudolfix rudolfix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I can't find where you test local (not server) quadrant. the test suite seems to be run only once

Comment on lines +39 to +42
if config.credentials.is_local():
# Local qdrant can not load in parallel
caps.loader_parallelism_strategy = "sequential"
caps.max_parallel_load_jobs = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very true! this is why this capability got added :)

@@ -63,6 +63,28 @@ class StorageSchemaInfo(NamedTuple):
inserted_at: datetime.datetime
schema: str

@classmethod
def from_normalized_mapping(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is good!

@steinitzu
Copy link
Collaborator Author

LGTM! I can't find where you test local (not server) quadrant. the test suite seems to be run only once

I just added two destination configs so they both run together. (see local-file/server suffix)

tests/load/pipeline/test_arrow_loading.py::test_load_arrow_with_not_null_columns[arrow-batch-qdrant-no-staging-local-file] PASSED [ 33%]
tests/load/pipeline/test_arrow_loading.py::test_load_arrow_with_not_null_columns[arrow-batch-qdrant-no-staging-server] PASSED [ 33%]

https://github.com/dlt-hub/dlt/pull/1526/files#diff-136cf9e252c2cfe3f09641909b446ac65b5d00eb9286caf484bc5f1032437988R288-R293

@rudolfix rudolfix force-pushed the fix/qdrant-tests-failing branch from 50e6519 to a011523 Compare July 4, 2024 16:19
@rudolfix rudolfix merged commit 48c93f5 into devel Jul 4, 2024
52 checks passed
@rudolfix rudolfix deleted the fix/qdrant-tests-failing branch July 4, 2024 17:46
@rudolfix rudolfix removed the sprint Marks group of tasks with core team focus at this moment label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fix Qdrant tests on CI
2 participants