Skip to content

Commit ee6c997

Browse files
authored
Merge pull request #869 from febyeji/upgrade-test-deps
Bump test dependencies and reorganize Docker files
2 parents fadc74f + 1f5e920 commit ee6c997

File tree

9 files changed

+28
-18
lines changed

9 files changed

+28
-18
lines changed

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/cache@v4
2424
with:
2525
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
26-
key: bitcoind-${{ runner.os }}-${{ runner.arch }}
26+
key: bitcoind-29.0-${{ runner.os }}-${{ runner.arch }}
2727
- name: Enable caching for electrs
2828
id: cache-electrs
2929
uses: actions/cache@v4
@@ -34,7 +34,7 @@ jobs:
3434
if: "(steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true')"
3535
run: |
3636
source ./scripts/download_bitcoind_electrs.sh
37-
mkdir bin
37+
mkdir -p bin
3838
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
3939
mv "$ELECTRS_EXE" bin/electrs-${{ runner.os }}-${{ runner.arch }}
4040
- name: Set bitcoind/electrs environment variables

.github/workflows/cln-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
sudo apt-get install -y socat
2020
2121
- name: Start bitcoind, electrs, and lightningd
22-
run: docker compose -f docker-compose-cln.yml up -d
22+
run: docker compose -p ldk-node -f tests/docker/docker-compose-cln.yml up -d
2323

2424
- name: Forward lightningd RPC socket
2525
run: |

.github/workflows/lnd-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: echo "LND_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
3838

3939
- name: Start bitcoind, electrs, and LND
40-
run: docker compose -f docker-compose-lnd.yml up -d
40+
run: docker compose -p ldk-node -f tests/docker/docker-compose-lnd.yml up -d
4141
env:
4242
LND_DATA_DIR: ${{ env.LND_DATA_DIR }}
4343

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
uses: actions/cache@v4
5454
with:
5555
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
56-
key: bitcoind-${{ runner.os }}-${{ runner.arch }}
56+
key: bitcoind-29.0-${{ runner.os }}-${{ runner.arch }}
5757
- name: Enable caching for electrs
5858
id: cache-electrs
5959
uses: actions/cache@v4
@@ -64,7 +64,7 @@ jobs:
6464
if: "matrix.platform != 'windows-latest' && (steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true')"
6565
run: |
6666
source ./scripts/download_bitcoind_electrs.sh
67-
mkdir bin
67+
mkdir -p bin
6868
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
6969
mv "$ELECTRS_EXE" bin/electrs-${{ runner.os }}-${{ runner.arch }}
7070
- name: Set bitcoind/electrs environment variables

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,17 @@ ldk-node-062 = { package = "ldk-node", version = "=0.6.2" }
9494
ldk-node-070 = { package = "ldk-node", version = "=0.7.0" }
9595

9696
[target.'cfg(not(no_download))'.dev-dependencies]
97-
electrsd = { version = "0.36.1", default-features = false, features = ["legacy", "esplora_a33e97e1", "corepc-node_27_2"] }
97+
electrsd = { version = "0.36.1", default-features = false, features = ["legacy", "esplora_a33e97e1", "corepc-node_29_0"] }
9898

9999
[target.'cfg(no_download)'.dev-dependencies]
100100
electrsd = { version = "0.36.1", default-features = false, features = ["legacy"] }
101-
corepc-node = { version = "0.10.0", default-features = false, features = ["27_2"] }
101+
corepc-node = { version = "0.10.1", default-features = false, features = ["29_0"] }
102102

103103
[target.'cfg(cln_test)'.dev-dependencies]
104104
clightningrpc = { version = "0.3.0-beta.8", default-features = false }
105105

106106
[target.'cfg(lnd_test)'.dev-dependencies]
107-
lnd_grpc_rust = { version = "2.10.0", default-features = false }
107+
lnd_grpc_rust = { version = "2.14.0", default-features = false }
108108
tokio = { version = "1.37", features = ["fs"] }
109109

110110
[build-dependencies]

scripts/download_bitcoind_electrs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')"
1010
ELECTRS_DL_ENDPOINT="https://github.com/RCasatta/electrsd/releases/download/electrs_releases"
1111
ELECTRS_VERSION="esplora_a33e97e1a1fc63fa9c20a116bb92579bbf43b254"
1212
BITCOIND_DL_ENDPOINT="https://bitcoincore.org/bin/"
13-
BITCOIND_VERSION="27.2"
13+
BITCOIND_VERSION="29.0"
1414
if [[ "$HOST_PLATFORM" == *linux* ]]; then
1515
ELECTRS_DL_FILE_NAME=electrs_linux_"$ELECTRS_VERSION".zip
1616
ELECTRS_DL_HASH="865e26a96e8df77df01d96f2f569dcf9622fc87a8d99a9b8fe30861a4db9ddf1"
1717
BITCOIND_DL_FILE_NAME=bitcoin-"$BITCOIND_VERSION"-x86_64-linux-gnu.tar.gz
18-
BITCOIND_DL_HASH="acc223af46c178064c132b235392476f66d486453ddbd6bca6f1f8411547da78"
18+
BITCOIND_DL_HASH="a681e4f6ce524c338a105f214613605bac6c33d58c31dc5135bbc02bc458bb6c"
1919
elif [[ "$HOST_PLATFORM" == *darwin* ]]; then
2020
ELECTRS_DL_FILE_NAME=electrs_macos_"$ELECTRS_VERSION".zip
2121
ELECTRS_DL_HASH="2d5ff149e8a2482d3658e9b386830dfc40c8fbd7c175ca7cbac58240a9505bcd"
2222
BITCOIND_DL_FILE_NAME=bitcoin-"$BITCOIND_VERSION"-x86_64-apple-darwin.tar.gz
23-
BITCOIND_DL_HASH="6ebc56ca1397615d5a6df2b5cf6727b768e3dcac320c2d5c2f321dcaabc7efa2"
23+
BITCOIND_DL_HASH="5bb824fc86a15318d6a83a1b821ff4cd4b3d3d0e1ec3d162b805ccf7cae6fca8"
2424
else
2525
printf "\n\n"
2626
echo "Unsupported platform: $HOST_PLATFORM Exiting.."
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
bitcoin:
3-
image: blockstream/bitcoind:27.2
3+
image: blockstream/bitcoind:29.1
44
platform: linux/amd64
55
command:
66
[
@@ -48,7 +48,7 @@ services:
4848
- bitcoin-electrs
4949

5050
cln:
51-
image: blockstream/lightningd:v23.08
51+
image: elementsproject/lightningd:v25.12.1
5252
platform: linux/amd64
5353
depends_on:
5454
bitcoin:
@@ -60,7 +60,6 @@ services:
6060
"--bitcoin-rpcuser=user",
6161
"--bitcoin-rpcpassword=pass",
6262
"--regtest",
63-
"--experimental-anchors",
6463
]
6564
ports:
6665
- "19846:19846"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
bitcoin:
3-
image: blockstream/bitcoind:27.2
3+
image: blockstream/bitcoind:29.1
44
platform: linux/amd64
55
command:
66
[
@@ -52,7 +52,7 @@ services:
5252
- bitcoin-electrs
5353

5454
lnd:
55-
image: lightninglabs/lnd:v0.18.5-beta
55+
image: lightninglabs/lnd:v0.20.1-beta
5656
container_name: ldk-node-lnd
5757
depends_on:
5858
- bitcoin

tests/integration_tests_cln.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,18 @@ async fn test_cln() {
121121
cln_client.pay(&ldk_invoice.to_string(), Default::default()).unwrap();
122122
common::expect_event!(node, PaymentReceived);
123123

124-
node.close_channel(&user_channel_id, cln_node_id).unwrap();
124+
// Retry close until monitor updates settle (avoids flaky sleep).
125+
for i in 0..10 {
126+
match node.close_channel(&user_channel_id, cln_node_id) {
127+
Ok(()) => break,
128+
Err(e) => {
129+
if i == 9 {
130+
panic!("close_channel failed after 10 attempts: {:?}", e);
131+
}
132+
std::thread::sleep(std::time::Duration::from_secs(1));
133+
},
134+
}
135+
}
125136
common::expect_event!(node, ChannelClosed);
126137
node.stop().unwrap();
127138
}

0 commit comments

Comments
 (0)