Skip to content

Commit fea0d24

Browse files
committed
WIP
1 parent 41be9f2 commit fea0d24

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/e2e-tests-hybrid.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,33 @@ jobs:
3737
docker compose pull --quiet
3838
docker compose up -d
3939
40-
# Wait for services to be ready
40+
echo "Waiting for electrum server..."
4141
while ! nc -z '127.0.0.1' 60001; do sleep 1; done
42-
while [ ! -f lnd/data/chain/bitcoin/regtest/admin.macaroon ]; do sleep 1; done
42+
echo "Electrum server is ready!"
43+
44+
echo "Waiting for LND to initialize..."
45+
# Wait for LND container to be running
46+
timeout 60 bash -c 'until docker ps | grep lnd | grep -q "Up"; do echo "Waiting for LND container..."; sleep 2; done'
47+
48+
# Check if LND directory exists and wait for admin.macaroon
49+
echo "Checking LND data directory..."
50+
ls -la lnd/ || echo "LND directory not found"
51+
ls -la lnd/data/ || echo "LND data directory not found"
52+
ls -la lnd/data/chain/ || echo "LND chain directory not found"
53+
ls -la lnd/data/chain/bitcoin/ || echo "LND bitcoin directory not found"
54+
ls -la lnd/data/chain/bitcoin/regtest/ || echo "LND regtest directory not found"
55+
56+
# Wait for admin.macaroon with timeout and better error handling
57+
echo "Waiting for admin.macaroon..."
58+
timeout 120 bash -c 'until [ -f lnd/data/chain/bitcoin/regtest/admin.macaroon ]; do echo "Waiting for admin.macaroon... ($(date))"; sleep 5; done' || {
59+
echo "Timeout waiting for admin.macaroon. Checking LND logs:"
60+
docker logs lnd
61+
echo "LND directory contents:"
62+
find lnd -name "*.macaroon" -type f 2>/dev/null || echo "No macaroon files found"
63+
exit 1
64+
}
65+
66+
echo "Admin macaroon found! Setting permissions..."
4367
chmod -R 777 lnd
4468
4569
# Get the runner's public IP (this will be accessible from other runners)

0 commit comments

Comments
 (0)