-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[BLD]: test Rust stub bindings in CI #3561
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
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
457585d
to
6aa2e0b
Compare
6aa2e0b
to
2a52cfd
Compare
@@ -107,7 +107,7 @@ def create_collection( | |||
tenant: str = DEFAULT_TENANT, | |||
database: str = DEFAULT_DATABASE, | |||
) -> CollectionModel: | |||
return self.proxy_segment_api.create_collection( | |||
return self.bindings.create_collection( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a stub for this method as admin APIs aren't called by most tests
@@ -77,4 +77,28 @@ impl Bindings { | |||
} | |||
|
|||
////////////////////////////// Base API ////////////////////////////// | |||
#[allow(clippy::too_many_arguments)] | |||
fn create_collection( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decided to require Python to pass defaults instead of duplicating the defaults here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to self: align list databases and others
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of changes
Adds basic CI support for testing Rust bindings.
Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
n/a