-
Notifications
You must be signed in to change notification settings - Fork 403
Drop electrsd
's auto-download feature for good
#3020
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
Drop electrsd
's auto-download feature for good
#3020
Conversation
2cad4fb
to
baf30a6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3020 +/- ##
==========================================
- Coverage 89.73% 89.73% -0.01%
==========================================
Files 122 122
Lines 101921 101922 +1
Branches 101921 101922 +1
==========================================
Hits 91463 91463
- Misses 7770 7773 +3
+ Partials 2688 2686 -2 ☔ View full report in Codecov by Sentry. |
eeec14d
to
30c110b
Compare
Thanks! Now that we have a script, can we run |
30c110b
to
4c492d8
Compare
Any update here, looks like we currently can't build due to an MSRV bump in the |
Uh, good to know. No update so far, but then I'll see to prioritize it (likely start of next week). |
415aebb
to
d341821
Compare
@TheBlueMatt I think this should be ready for review. So far it seems to work. |
3c63c7d
to
f3cc788
Compare
Mh, seems so far it didn't save the cached files, lets see if it does with the pushed fixup.. |
Is it possible it only caches when running on a merge and not on PRs? |
f3cc788
to
4eed83d
Compare
I thought that first, too, but no, it also runs on PRs (cf. https://github.com/lightningdevkit/ldk-node/actions/caches). Actually all caches are branch-specific (so also of limited usefulness, tbh.). I previously included |
Alright, let us know when its there :) |
... allowing it to be sourced locally before running `lightning-transaction-sync` tests.
... which requires a bunch of unnecessary dev dependencies, e.g., `zip`. Instead we lean on the `download_bitcoind_electrs.sh` script also for local testing.
8f9b9c8
to
8ebf00b
Compare
Alright, a thousand fixups and force-pushes later, this should be ready. |
8ebf00b
to
4320f48
Compare
cargo test --verbose --color always --features electrum | ||
cargo check --verbose --color always --features electrum | ||
popd | ||
if [ -z "$BITCOIND_EXE" ] || [ -z "$ELECTRS_EXE" ]; then |
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 added this exception to still allow running ./ci/ci-tests.sh
locally without necessarily running the download script before. However, in CI we may want to fail here to avoid skipping tests if something with our CI setup is flaky.
@TheBlueMatt Do you have an opinion if it would be worth handing in a CI
flag for this, or if we're fine skipping here?
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.
Hmm, yea, would be nice to have a CI flag, I think.
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.
Done in a follow-up: #3240
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.
All just CI changes that are straightforward. More importantly, I need this to actually test things locally (cause I use MSRV often), so gonna just land this.
... which requires a bunch of unnecessary dev dependencies, e.g.,
zip
.Instead we lean on the
download_bitcoind_electrs.sh
script also for local testing.