-
Notifications
You must be signed in to change notification settings - Fork 2.2k
scripts+bw-compatibility-test: update Dave and make it use sqlite #9655
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# If you change this please also update GO_VERSION in Makefile (then run | ||
# `make lint` to see where else it needs to be updated as well). | ||
FROM golang:1.23.6-alpine as builder | ||
FROM golang:1.23.6-alpine AS builder | ||
|
||
LABEL maintainer="Olaoluwa Osuntokun <[email protected]>" | ||
|
||
|
@@ -19,11 +19,11 @@ COPY . /go/src/github.com/lightningnetwork/lnd | |
|
||
# Install/build lnd. | ||
RUN cd /go/src/github.com/lightningnetwork/lnd \ | ||
&& make \ | ||
&& make install-all tags="signrpc walletrpc chainrpc invoicesrpc peersrpc" | ||
&& make \ | ||
&& make install-all tags="signrpc walletrpc chainrpc invoicesrpc peersrpc kvdb_sqlite" | ||
|
||
# Start a new, final image to reduce size. | ||
FROM alpine as final | ||
FROM alpine AS final | ||
|
||
# Expose lnd ports (server, rpc). | ||
EXPOSE 9735 10009 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ send_payment alice dave | |
|
||
# Upgrade the compose variables so that the Bob configuration | ||
# is swapped out for the PR version. | ||
upgrade_bob | ||
upgrade_node bob | ||
|
||
# Wait for Bob to start. | ||
wait_for_node bob | ||
|
@@ -50,4 +50,19 @@ send_payment bob dave | |
send_payment dave bob | ||
send_payment alice dave | ||
|
||
# Upgrade the compose variables so that the Dave configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think we should first run the basic tests for bob before updating dave. otherwise we are not testing the send/receive/route with bob on the PR while dave is still on master. So bugs can slip through here in the case where send and receive only work if both nodes have upgraded There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point! Changed to run the basic tests after Bob is upgraded as well as after Dave is upgraded (to see that a migration doesn't bork anything). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool - thanks 🙏 |
||
# is swapped out for the PR version. | ||
upgrade_node dave | ||
|
||
wait_for_node dave | ||
wait_for_active_chans dave 1 | ||
|
||
# Show that Dave is now running the current branch. | ||
do_for print_version dave | ||
|
||
# Repeat the basic tests (after potential migraton). | ||
send_payment bob dave | ||
send_payment dave bob | ||
send_payment alice dave | ||
|
||
echo "🛡️⚔️🫡 Backwards compatibility test passed! 🫡⚔️🛡️" |
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.
nice 🙏