Skip to content
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

Fix MSRV tests and drop internet-required test #2577

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

TheBlueMatt
Copy link
Collaborator

No description provided.

`blockstream.info` is currently down, causing our CI to fail. This
shouldn't really be a thing, so we drop the blockstream.info-based
test here.

More generally, I'm not really a fan of having tests which run
(outside of CI) and call out to external servers - a developer
working on LDK shouldn't have to have internet access to run our
test suite and shouldn't be registering their presence with a third
party to run our tests.
@codecov-commenter
Copy link

codecov-commenter commented Sep 14, 2023

Codecov Report

Patch coverage: 94.56% and no project coverage change.

Comparison is base (411a3f7) 90.61% compared to head (1f41457) 90.62%.
Report is 23 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #2577    +/-   ##
========================================
  Coverage   90.61%   90.62%            
========================================
  Files         112      113     +1     
  Lines       58859    59217   +358     
  Branches    58859    59217   +358     
========================================
+ Hits        53335    53665   +330     
- Misses       5524     5552    +28     
Files Changed Coverage Δ
lightning-invoice/src/lib.rs 78.64% <ø> (ø)
lightning/src/ln/mod.rs 96.15% <ø> (ø)
lightning/src/ln/onion_utils.rs 90.97% <76.00%> (-0.82%) ⬇️
lightning/src/ln/msgs.rs 86.20% <92.30%> (-0.01%) ⬇️
lightning/src/ln/channelmanager.rs 88.04% <95.62%> (+0.12%) ⬆️
lightning-background-processor/src/lib.rs 81.41% <100.00%> (ø)
lightning/src/blinded_path/mod.rs 95.91% <100.00%> (-4.09%) ⬇️
lightning/src/blinded_path/payment.rs 84.21% <100.00%> (+7.23%) ⬆️
lightning/src/ln/blinded_payment_tests.rs 100.00% <100.00%> (ø)
lightning/src/ln/outbound_payment.rs 90.79% <100.00%> (+0.09%) ⬆️

... and 4 files with indirect coverage changes

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

@valentinewallace
Copy link
Contributor

Still a few CI fails


#[tokio::test]
#[cfg(any(feature = "esplora-async-https", feature = "esplora-blocking"))]
async fn test_esplora_connects_to_public_server() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Def. ACK on dropping this as it was a crutch anyways. I had originally added this as a regression test as we previously missed the https feature, which only yielded an error when connecting to HTTPS endpoints during runtime, and this was the easiest way to assert we can connect without issue.

ci/ci-tests.sh Outdated
# The memchr crate switched to an MSRV of 1.60 starting with v2.6.0
# This is currently only a release dependency via core2, which we intend to work with
# rust-bitcoin to remove soon.
[ "$RUSTC_MINOR_VERSION" -lt 60 ] && cargo update -p memchr --precise "2.5.0" --verbose
Copy link
Contributor

Choose a reason for hiding this comment

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

Weirdly this fails (sometimes) in CI due to

+ cargo update -p memchr --precise 2.5.0 --verbose
error: package ID specification `memchr` did not match any packages
Error: Process completed with exit code 101.

We're working with rust-bitcoin to remove the `core2` dependency
at rust-bitcoin/rust-bitcoin#2066 but until
that lands and we can upgrade rust-bitcoin we're stuck with it. In
the mean time, we should still pass our MSRV tests.
@tnull tnull merged commit 89fb5a3 into lightningdevkit:main Sep 15, 2023
14 checks passed
@tnull
Copy link
Contributor

tnull commented Sep 15, 2023

... and the merge commit fails CI again... 🫠

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.

None yet

4 participants