Skip to content

[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

Merged
merged 12 commits into from
Apr 22, 2025

Conversation

rescrv
Copy link
Contributor

@rescrv rescrv commented Apr 21, 2025

Description of changes

  • Change timeouts in tilt to 60s
  • Change deadline for proptest to 90s.
  • Reenable use_alt_host_for_everything in tilt.
  • Template with the right file consistently.

Test plan

  • Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes

N/A

Copy link

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation

  • Can you think of any use case in which the code does not behave as intended? Have they been tested?
  • Can you think of any inputs or external events that could break the code? Is user input validated and safe? Have they been tested?
  • If appropriate, are there adequate property based tests?
  • If appropriate, are there adequate unit tests?
  • Should any logging, debugging, tracing information be added or removed?
  • Are error messages user-friendly?
  • Have all documentation changes needed been made?
  • Have all non-obvious changes been commented?

System Compatibility

  • Are there any potential impacts on other parts of the system or backward compatibility?
  • Does this change intersect with any items on our roadmap, and if so, is there a plan for fitting them together?

Quality

  • Is this code of a unexpectedly high quality (Readability, Modularity, Intuitiveness)

@rescrv rescrv force-pushed the rescrv/reenable-log branch from bff3db2 to 3b21d80 Compare April 22, 2025 17:59
rescrv added 2 commits April 22, 2025 14:18
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.
@rescrv rescrv requested a review from sanketkedia April 22, 2025 21:53
@@ -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"])
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Screenshot 2025-04-22 at 3 33 21 PM

@@ -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}");
Copy link
Contributor

@sanketkedia sanketkedia Apr 22, 2025

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?

Copy link
Contributor Author

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!(
Copy link
Contributor

@sanketkedia sanketkedia Apr 22, 2025

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?

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@rescrv rescrv merged commit 8031bb7 into main Apr 22, 2025
68 checks passed
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.

3 participants