Skip to content

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Sep 25, 2025

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.

@tnull tnull requested a review from joostjager September 25, 2025 10:47
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Sep 25, 2025

👋 Thanks for assigning @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnull tnull added this to the 0.2 milestone Sep 25, 2025
@tnull tnull force-pushed the 2025-09-ci-test-persister-tokio branch from 6e2f2d5 to b208298 Compare September 25, 2025 10:50
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.
@tnull tnull force-pushed the 2025-09-ci-test-persister-tokio branch from b208298 to 96ad240 Compare September 25, 2025 10:52
rustdoc-args = ["--cfg", "docsrs"]

[features]
tokio = ["dep:tokio"]
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea.

@ldk-reviews-bot
Copy link

👋 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.

@joostjager
Copy link
Contributor

Good catch this PR

Copy link

codecov bot commented Sep 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.55%. Comparing base (d076584) to head (96ad240).
⚠️ Report is 18 commits behind head on main.

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              
Flag Coverage Δ
fuzzing 21.81% <ø> (+0.01%) ⬆️
tests 88.39% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tnull tnull requested a review from joostjager September 25, 2025 13:27
@TheBlueMatt TheBlueMatt merged commit 3aa9187 into lightningdevkit:main Sep 25, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants