-
Notifications
You must be signed in to change notification settings - Fork 74
dependency resolution tests #2801
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
|
This PR is part of a stack of 11 bookmarks:
Created with jj-stack |
|
Claude finished @insipx's task —— View job Code Review CompleteReview Date: 2025-11-18 16:58 UTC Key Issues
Test Coverage NotesThe 21 missing lines in
|
Add test-only macros and refactor dependency resolution to use immutable resolver with network backoff and ordered queriesIntroduce an 📍Where to StartStart with the resolver implementation and its usage in ordering: Macroscope summarized b293d24. |
3ae81ca to
917b543
Compare
| multiplier: self.multiplier.unwrap_or(3), | ||
| ..Default::default() | ||
| total_wait_max: self.total_wait_max.unwrap_or_default(), | ||
| individual_wait_max: Default::default(), |
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.
individual_wait_max defaults to Duration::ZERO in build(), so backoff() clamps base waits to zero and only jitter remains. Consider defaulting it to the same as ExponentialBackoff::default() (30s) to keep expected timing.
| individual_wait_max: Default::default(), | |
| individual_wait_max: ExponentialBackoff::default().individual_wait_max, |
🚀 Reply to ask Macroscope to explain or update this suggestion.
👍 Helpful? React to give us feedback.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2801 +/- ##
==========================================
+ Coverage 74.43% 74.70% +0.26%
==========================================
Files 376 381 +5
Lines 48820 49001 +181
==========================================
+ Hits 36338 36605 +267
+ Misses 12482 12396 -86 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
917b543 to
2f6885e
Compare
5f5df6f to
ae330f1
Compare
2f6885e to
b293d24
Compare
| max_jitter: self.max_jitter.unwrap_or(Duration::from_millis(25)), | ||
| multiplier: self.multiplier.unwrap_or(3), | ||
| ..Default::default() | ||
| total_wait_max: self.total_wait_max.unwrap_or_default(), |
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 was making the builder not use a max wait. didn't effect anything because we construct the strategy directly rather than use builder
| use proptest::prelude::*; | ||
| use proptest::sample::subsequence; | ||
| use xmtp_proto::types::{Cursor, GlobalCursor, OriginatorId, SequenceId}; | ||
|
|
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 moved these into their own file here in the first commit of the PR, no changes otherwise
these are re-used by the ordering tests
#2789