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

use cln version manager #413

Merged
merged 9 commits into from
May 31, 2024

Conversation

ErikDeSmedt
Copy link
Collaborator

This is part of a bigger effort to make gl-testing a stand-alone package. One of the dependencies of gl-testing is a wide range of lightningd-executables.

The cln_version_manager can download these versions and provide them to gl-testing. I've introduced cln_version_manger before. This PR contains a couple of fixes and ensures gl-testing uses versions managed by cln_version_manager

  • cln_version_manager: Don't verify tag by default
  • Rework Dockerfile to install binaries
  • clnvm: Use non-zero exit code on error
  • Add verbose option to cln_vm cli
  • cln_version_manager: Use hash of patched version
  • Use versions based on cln-version-manager
  • Clean-up Makefile

@ErikDeSmedt ErikDeSmedt requested review from Randy808 and nepet April 23, 2024 20:08
@ErikDeSmedt ErikDeSmedt force-pushed the use_cln_version_manager branch from c854834 to c9eab9e Compare April 24, 2024 12:18
Randy808
Randy808 previously approved these changes Apr 24, 2024
cdecker
cdecker previously approved these changes Apr 25, 2024
Copy link
Collaborator

@cdecker cdecker left a comment

Choose a reason for hiding this comment

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

Very nice 👍

docker/gl-testing/Dockerfile Outdated Show resolved Hide resolved
libs/cln-version-manager/clnvm/cli.py Outdated Show resolved Hide resolved
libs/cln-version-manager/clnvm/cln_version_manager.py Outdated Show resolved Hide resolved
libs/cln-version-manager/clnvm/cli.py Outdated Show resolved Hide resolved
@cdecker cdecker force-pushed the use_cln_version_manager branch from c9eab9e to b0c90a6 Compare April 25, 2024 15:32
@cdecker cdecker enabled auto-merge (rebase) April 25, 2024 15:32
@ErikDeSmedt ErikDeSmedt dismissed stale reviews from Randy808 and cdecker via aafaa04 April 26, 2024 09:28
@ErikDeSmedt ErikDeSmedt force-pushed the use_cln_version_manager branch from aafaa04 to 7ba870b Compare April 26, 2024 13:33
@cdecker cdecker force-pushed the use_cln_version_manager branch from 7ba870b to 7fc2fd0 Compare May 12, 2024 13:51
@ErikDeSmedt ErikDeSmedt force-pushed the use_cln_version_manager branch from 9137b98 to ca2622a Compare May 14, 2024 17:59
@nepet nepet force-pushed the use_cln_version_manager branch from ca2622a to 7bc8268 Compare May 17, 2024 14:57
I had some code which ran `lightningd --version` and compared it to the
expected output. However, even running this code requires some
dependencies to be installed.

This is annoying. I disabled the check by default
The `clnvm get-all` command always returned a 0-exit code which
indicates success.

If an error occurs we now return exit-code `1`. This ensures CI will
actually fail if one of the sources is missing or corrupted.
The code is not needed anymore since I've introduced cln-version-manager
In the next version of Core Lightning you can pay invoices before the
node is fully synced. This MR has been applied to `v23.08gl1` to ensure
your greenlight node can use it immediately.
@cdecker cdecker force-pushed the use_cln_version_manager branch from 7bc8268 to 1750ba0 Compare May 31, 2024 10:48
@cdecker cdecker self-requested a review May 31, 2024 10:49
@cdecker cdecker merged commit 3b13604 into Blockstream:main May 31, 2024
19 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.

3 participants