rust-lightning icon indicating copy to clipboard operation
rust-lightning copied to clipboard

Drop `electrsd`'s auto-download feature for good

Open tnull opened this issue 1 year ago • 2 comments

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

tnull avatar Apr 25 '24 12:04 tnull

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.73%. Comparing base (9de7c1d) to head (4320f48). Report is 4 commits behind head on main.

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     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Apr 25 '24 13:04 codecov-commenter

Thanks! Now that we have a script, can we run download_bitcoind_electrs.sh directly from git CI yaml and then cache the outputs? That way we can avoid wasting all of bitcoincore.org's bandwidth.

TheBlueMatt avatar May 06 '24 16:05 TheBlueMatt

Any update here, looks like we currently can't build due to an MSRV bump in the time crate which this would fix.

TheBlueMatt avatar Aug 09 '24 12:08 TheBlueMatt

Any update here, looks like we currently can't build due to an MSRV bump in the time crate which this would fix.

Uh, good to know. No update so far, but then I'll see to prioritize it (likely start of next week).

tnull avatar Aug 09 '24 13:08 tnull

@TheBlueMatt I think this should be ready for review. So far it seems to work.

tnull avatar Aug 12 '24 11:08 tnull

Mh, seems so far it didn't save the cached files, lets see if it does with the pushed fixup..

tnull avatar Aug 12 '24 13:08 tnull

Is it possible it only caches when running on a merge and not on PRs?

TheBlueMatt avatar Aug 12 '24 13:08 TheBlueMatt

Is it possible it only caches when running on a merge and not on PRs?

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 $HOME in path and that somehow didn't seem to work, but the fix that worked on LDK Node somehow seems to break CI here, so I'll need a few more tries to get this right I guess.

tnull avatar Aug 12 '24 15:08 tnull

so I'll need a few more tries to get this right I guess.

Alright, let us know when its there :)

TheBlueMatt avatar Aug 12 '24 21:08 TheBlueMatt

Alright, let us know when its there :)

Alright, a thousand fixups and force-pushes later, this should be ready.

tnull avatar Aug 13 '24 10:08 tnull