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

test: qdrant upload twice to test upsert behavior #321

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ds-filipknefel
Copy link
Contributor

Extend qdrant integration tests to upload the files twice to test the upsert behavior is working.

Comment on lines -1 to 3
## 0.3.12-dev3
## 0.3.12-dev4

### Enhancements
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we want to update changelog with this fix/enchancement?

I mean, it all depends on whether we want to include dev updates here too, or only user-facing ones.

Comment on lines -147 to +160
if uploader.is_async():
await uploader.run_async(path=staged_upload_file, file_data=file_data)
else:
uploader.run(path=upload_file, file_data=file_data)
await uploader.run_async(path=staged_upload_file, file_data=file_data)
async with qdrant_client(connection_kwargs) as client:
await validate_upload(client=client, upload_file=upload_file)

# NOTE: Upload the second time to validate upsert behavior
await uploader.run_async(path=staged_upload_file, file_data=file_data)
Copy link
Contributor

@mpolomdeepsense mpolomdeepsense Jan 7, 2025

Choose a reason for hiding this comment

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

Just curious, why the previous change includes both async and sync run (if not async) but here you removed that and use async only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants