-
Notifications
You must be signed in to change notification settings - Fork 385
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
Move lightning-transaction-sync
tests to dedicated script
#3528
Move lightning-transaction-sync
tests to dedicated script
#3528
Conversation
630804b
to
98abe2d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3528 +/- ##
==========================================
- Coverage 88.36% 88.36% -0.01%
==========================================
Files 149 149
Lines 112875 113053 +178
Branches 112875 113053 +178
==========================================
+ Hits 99742 99899 +157
- Misses 10653 10672 +19
- Partials 2480 2482 +2 ☔ View full report in Codecov by Sentry. |
Grr, can you fix CI?
|
98abe2d
to
0829353
Compare
Jup, just pushed a fix. |
0829353
to
bff52f2
Compare
CI is still failing with |
Ah, missed that it was explicitly added as a dependency to |
a43805e
to
b732e76
Compare
Went ahead and squashed the fixups as my hope is up that this will finally pass, and I want to enable landing it whenever it does: > git diff-tree -U2 a43805e85 b732e763b
> |
I'd kinda prefer to remove it from the workspace as well so that |
b732e76
to
8a1d5ed
Compare
Well, essentially the same argument: I'd prefer to have it included in usual tests via
Even without moving it out of the workspace,
In any case, now went ahead and included a fixup that moves it out as per your preference. Let me know if I should squash or drop it. |
71ed4e8
to
7ee287b
Compare
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'd prefer to leave it out of the workspace. At least personally I use the workspace on our MSRV all the time, and the ability to run cargo test --all-features
without it vomiting would be nice.
.. and bump its MSRV to 1.75. Recently, `rustls` bumped their MSRV to 1.71. As we depend on them and don't want to continuously pin this security-critical dependency back, we have no choice left but to bump the MSRV for `lightning-transaction-sync` to a version >= 1.71, too. Here, we hence move the `lightning-transaction-sync` tests to a dedicated script and propose to introduce a secondary MSRV of 1.75. We chose this particular version, because: a) it's > 1 year old b) it provides a buffer to 1.71, i.e., if some crate bumped to a version > 1.71, there is a chance we don't immediately have to react again c) it stabilized `async fn`s in traits (see https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html), which might become handy for related (BDK) crates, which hopefully will adopt the same target.
7ee287b
to
cd5b4f7
Compare
Alright, now squashed with the following additional changes (reverting the hunk mentioned above): > git diff-tree -U2 7ee287bd0 cd5b4f763
diff --git a/ci/ci-tests.sh b/ci/ci-tests.sh
index 393ce18f5..f4987569f 100755
--- a/ci/ci-tests.sh
+++ b/ci/ci-tests.sh
@@ -87,7 +87,5 @@ echo -e "\n\nTesting c_bindings builds"
# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
# disable doctests in `c_bindings` so we skip doctests entirely here.
-for DIR in "${WORKSPACE_MEMBERS[@]}"; do
- RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p "$DIR" --verbose --color always --lib --bins --tests
-done
+RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always --lib --bins --tests
for DIR in lightning-invoice lightning-rapid-gossip-sync; do |
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.
Just gonna land this. The changes are all straightforward moves/copies, and CI (finally) passes 🎉
Backported in #3536. |
.. and bump its MSRV to 1.75.
Recently,
rustls
bumped their MSRV to v1.71. As we depend on them and don't want to continuously pin this security-critical dependency back, we have no choice left but to bump the MSRV forlightning-transaction-sync
to a version >= v1.71, too.Here, we hence move the
lightning-transaction-sync
tests to a dedicated script and propose to introduce a secondary MSRV of 1.75.We chose this particular version, because:
a) it's > 1 year old
b) it provides a buffer on top of v1.71, i.e., if some crate bumped to a version > 1.71, there is a chance we don't immediately have to react again
c) it stabilized
async fn
s in traits (see https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html), which might become handy for related (BDK) crates, which hopefully will adopt the same target.