-
Notifications
You must be signed in to change notification settings - Fork 74
switch with_connection to be sync with now_or_never #2820
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 1 bookmark:
Created with jj-stack |
|
Claude finished @insipx's task —— View job Code Review CompleteReview Date: November 25, 2025, 21:04 UTC SummaryThis PR successfully converts the Positive Observations
Concerns & Recommendations1. Missing Test Coverage (82% patch coverage)The codecov report shows 45 lines missing coverage, particularly in:
Recommendation: These appear to be new utility types/errors introduced as part of the refactor. Consider adding tests for the uncovered code paths or document why they're acceptable to leave untested. 2. Potential Footgun for Future DevelopersThe synchronous Recommendation: Add a comment to xmtp_db/src/test_utils.rs:111 documenting this constraint: /// Test harness that loads an Ephemeral store.
/// IMPORTANT: Only works with ephemeral databases because persistent databases
/// require async initialization (OPFS setup). Use `with_connection_async` for
/// persistent database tests.
pub fn with_connection<F, R>(fun: F) -> R3. Dependency ManagementThe Recommendation: Since Code Quality
VerdictApprove with minor suggestions. The core change is sound and well-executed. The main concerns are documentation and test coverage, which are low-priority improvements. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2820 +/- ##
==========================================
- Coverage 74.65% 74.19% -0.47%
==========================================
Files 387 387
Lines 50048 49262 -786
==========================================
- Hits 37362 36548 -814
- Misses 12686 12714 +28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
98a558b to
9b4f2f4
Compare
Make
|
a8c6d99 to
8fa0624
Compare
c54934e to
859ec84
Compare
8fa0624 to
157f868
Compare
859ec84 to
f3afec7
Compare
157f868 to
03917e5
Compare
f3afec7 to
daf718b
Compare
03917e5 to
344089e
Compare
daf718b to
e897bc8
Compare
e897bc8 to
0c9c8d2
Compare
this is mostly a QoL pr since i noticed the wasm ephemeral db builds completely synchronously. this makes using some test utils more flexible, like making it possible to use proptest for db queries (not used yet)