-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ENH] FE talks to logservice #1793
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
Please tag your PR title with one of: [ENH | BUG | DOC | TST | BLD | PERF | TYP | CLN | CHORE]. See https://docs.trychroma.com/contributing#contributing-code-and-ideas |
chromadb/test/test_logservice.py
Outdated
@@ -0,0 +1,147 @@ | |||
# type: ignore |
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 think we should plug this into test_producer_consumer if that makes sense (I would have to look at the test again to be sure)
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.
that test doesn't go through front end apis and main logic is testing topic assignments and seqIds. Since we don't need that for logservice, I create a new test. We can clean up the interface later when we have time.
if not self._running: | ||
raise RuntimeError("Component not running") | ||
|
||
return self.submit_embeddings(topic_name, [embedding])[0] # type: ignore |
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.
nit: why is type ignore needed 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.
because grpc returns auto, I think there's a way to generate protos with type, need to find that out
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.
This is fine. I would check if we can use test_producer_consumer.py, would be nice to get that if it makes sense. Also can we turn this test on in CI in the workflow?
yes, let me add that to git workflow |
chromadb/test/test_logservice.py
Outdated
@@ -0,0 +1,147 @@ | |||
# type: ignore |
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.
nit: prefer not to type: ignore the whole file..
b355dc5
to
1e5c3fd
Compare
## Description of changes https://linear.app/trychroma/issue/CHR-242/fe-talks-to-log-service - FE talks to logservice ## Test plan *How are these changes tested?* - [ ] test_logservice
Description of changes
https://linear.app/trychroma/issue/CHR-242/fe-talks-to-log-service
Test plan
How are these changes tested?