-
Notifications
You must be signed in to change notification settings - Fork 74
Improve test logs and tester ergonomics #3052
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?
Conversation
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. |
|
Claude finished @tylerhawkes's task —— View job Code Review CompleteTasks
Review SummaryReviewed on: 2026-01-22 23:08 UTC This PR makes targeted improvements to test ergonomics and logging. The changes are well-focused and appropriate for the stated goal. Changes Overview
Findings✅ Code Quality
✅ Performance
✅ Best Practices
✅ Security
✅ Test Coverage
Notes
|
| if message.contains(id) { | ||
| message = message.replace(id, name); | ||
| message = | ||
| message.replace(&crate::fmt::truncate_hex(id), name); | ||
| } | ||
| } |
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.
The message.contains(id) guard prevents replacing truncated hex when only the truncated form is present. Consider removing this guard or also checking for truncate_hex(id).
| if message.contains(id) { | |
| message = message.replace(id, name); | |
| message = | |
| message.replace(&crate::fmt::truncate_hex(id), name); | |
| } | |
| } | |
| message = message.replace(id, name); | |
| message = | |
| message.replace(&crate::fmt::truncate_hex(id), name); |
🚀 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 #3052 +/- ##
==========================================
- Coverage 74.20% 74.09% -0.11%
==========================================
Files 445 445
Lines 54346 54346
==========================================
- Hits 40326 40270 -56
- Misses 14020 14076 +56 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

Update test logger output in
xmtp_common::test::build_layersto include file and line, omit target, and switch workspace feature resolver to "3" to improve tester ergonomicsAdjust default fmt layer to show file and line and hide target in crates/xmtp_common/src/test.rs, guard message ID replacement by checking presence, and set Cargo feature resolver to "3" in Cargo.toml. Rename recursive macro calls to
$crate::tester!in crates/xmtp_mls/src/utils/test/tester_utils.rs.📍Where to Start
Start with the logger layer configuration in
xmtp_common::test::build_layersin crates/xmtp_common/src/test.rs.📊 Macroscope summarized a8501e3. 2 files reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues