-
Notifications
You must be signed in to change notification settings - Fork 74
Test commit proposals #3051
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
base: main
Are you sure you want to change the base?
Test commit proposals #3051
Conversation
|
Claude finished @tylerhawkes's task —— View job Code Review - January 22, 2026 at 22:58 UTC
SummaryThis PR refactors the Code Quality & Best Practicesmls_sync.rs:3203-3245 ✅ Good refactoring
Potential Issuesmls_sync.rs:3203 test_commit_proposals.rs:58-60 unsafe { std::mem::transmute(tree) }The comment acknowledges this isn't safe. While this is test code, consider:
test_commit_proposals.rs:476-477 ℹ️ Test is ignored #[xmtp_common::test]
#[ignore]
async fn test_commit_sizes_with_proposals()The main test is marked with
Performance Considerationstest_commit_proposals.rs:29-33 📊 Test parameters test_commit_proposals.rs:571-591 📊 CSV output Security ConcernsNo security issues identified. The test code appropriately uses test contexts and doesn't expose any production security concerns. Test Coverage✅ Excellent test coverage - The new test file is comprehensive:
The test demonstrates real-world usage patterns and stress-tests the proposal+commit workflow with multiple participants and installations. Minor Suggestions
|
How to use the Graphite Merge QueueAdd the label mergequeue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
| .as_ref() | ||
| .map(xmtp_db::db_serialize) | ||
| .transpose() | ||
| .inspect_err(|error| tracing::error!(%error, "Error serializing staged commit")) |
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.
Serialization errors are silently swallowed via .ok().flatten(), making failures indistinguishable from having no pending commit. Consider propagating the error instead.
🚀 Want me to fix this? Reply ex: "fix it for me".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3051 +/- ##
==========================================
- Coverage 74.20% 74.06% -0.14%
==========================================
Files 445 445
Lines 54346 54359 +13
==========================================
- Hits 40326 40263 -63
- Misses 14020 14096 +76 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

Add
mls_sync::with_rollbackand refactor result-returning commit path to test commit proposalsIntroduce
mls_sync::with_rollbackto run operations in a rolled-back transaction and reload the group, and refactor the commit path to use it while returning(R, Option<Vec<u8>>, u64); add commit proposal size tests in test_commit_proposals.rs.📍Where to Start
Start with
with_rollbackin mls_sync.rs, then review its use in the refactored result-returning function and the tests in test_commit_proposals.rs.📊 Macroscope summarized 70a3eff. 1 file reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues