-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[CHORE] Enable rust log service, set timeouts, change tilt. #4338
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
|
bff3db2
to
3b21d80
Compare
It flakes rarely, but compaction logs show the last thing before tilt gets torn down is the compaction still making progress. Give it 60 more seconds.
@@ -108,6 +108,8 @@ def count(collection: Collection, record_set: RecordSet) -> None: | |||
"""The given collection count is equal to the number of embeddings""" | |||
count = collection.count() | |||
normalized_record_set = wrap_all(record_set) | |||
if count != len(normalized_record_set["ids"]): | |||
print('count mismatch:', count, '=!', len(normalized_record_set["ids"])) | |||
assert count == len(normalized_record_set["ids"]) |
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: won't the assert report both the expected and obtained counts? why the print?
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 X == Y
evaluates to a bool, so assert
cannot see the values.
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.
assert a == b, '%s != %s' % (a, b)
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.
@@ -61,6 +61,11 @@ impl RootConfig { | |||
pub fn load_from_path(path: &str) -> Self { | |||
// Unfortunately, figment doesn't support environment variables with underscores. So we have to map and replace them. | |||
// Excluding our own environment variables, which are prefixed with CHROMA_. | |||
eprintln!("loading config from {path}"); |
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 eprintln? Is it because tracing is not yet inited?
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.
Before tracing is initialized.
@@ -160,6 +160,11 @@ impl FrontendServerConfig { | |||
} | |||
|
|||
pub fn load_from_path(path: &str) -> Self { | |||
// SAFETY(rescrv): If we cannot read the config, we panic anyway. | |||
eprintln!( |
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.
why eprintln? Is it because tracing is not yet inited?
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.
Ditto.
|
||
executor: | ||
distributed: | ||
connections_per_node: 5 | ||
replication_factor: 2 | ||
connect_timeout_ms: 5000 | ||
request_timeout_ms: 5000 | ||
request_timeout_ms: 60000 # 1 minute |
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.
Is this because the latency to log is now more than before?
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 changed it because we have a 1min timeout on minio. It doesn't make sense to have that one be so high and this one be low. For CI stability, I chose to up this one.
Description of changes
Test plan
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
N/A