-
Notifications
You must be signed in to change notification settings - Fork 421
Add tests for lightning-persister
with tokio
feature to CI
#4125
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
Add tests for lightning-persister
with tokio
feature to CI
#4125
Conversation
👋 Thanks for assigning @joostjager as a reviewer! |
6e2f2d5
to
b208298
Compare
.. to indicate its existence
We recently introduced a new `tokio` feature to `lightning-persister`, but never added it to CI which has us never run the tests that depend on it. Here we fix this omission.
b208298
to
96ad240
Compare
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[features] | ||
tokio = ["dep:tokio"] |
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 had this initially, but it seems this is implicit already.
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.
Yeah, although I personally prefer to still make it explicit which improves discoverability. But happy to drop it if you prefer.
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 don't mind
echo -e "\n\nChecking and testing lightning-persister with features" | ||
cargo test -p lightning-persister --verbose --color always --features tokio | ||
cargo check -p lightning-persister --verbose --color always --features tokio | ||
cargo doc -p lightning-persister --document-private-items --features tokio |
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.
Any reason why doc
isn't checked for the Block Sync Clients with features above?
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.
No idea.
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
Good catch this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4125 +/- ##
==========================================
+ Coverage 88.53% 88.55% +0.02%
==========================================
Files 179 179
Lines 134329 134306 -23
Branches 134329 134306 -23
==========================================
+ Hits 118923 118937 +14
+ Misses 12656 12619 -37
Partials 2750 2750
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
We recently introduced a new
tokio
feature tolightning-persister
, but never added it to CI which has us never run the tests that depend on it. Here we fix this omission.