Skip to content

Commit 427535b

Browse files
committed
WIP
1 parent 9d848c5 commit 427535b

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,14 @@ jobs:
8181
uses: AnimMouse/setup-cloudflared/tunnel@v2
8282
with:
8383
url: http://localhost:60001
84+
continue-on-error: true
8485

8586
- name: Expose LND with Cloudflare Tunnel
8687
id: tunnel-lnd
8788
uses: AnimMouse/setup-cloudflared/tunnel@v2
8889
with:
8990
url: http://localhost:9735
91+
continue-on-error: true
9092

9193
- name: Keep regtest running
9294
run: |
@@ -142,11 +144,22 @@ jobs:
142144
echo "Docker containers:"
143145
docker ps
144146
145-
# Show tunnel URLs
147+
# Show tunnel URLs and verify they exist
146148
echo "Tunnel URLs:"
147149
echo "Electrum: ${{ steps.tunnel-electrum.outputs.url }}"
148150
echo "LND: ${{ steps.tunnel-lnd.outputs.url }}"
149151
152+
# Verify tunnel URLs are not empty
153+
if [ -z "${{ steps.tunnel-electrum.outputs.url }}" ] || [ -z "${{ steps.tunnel-lnd.outputs.url }}" ]; then
154+
echo "❌ ERROR: Tunnel URLs are empty!"
155+
echo "Electrum tunnel result: ${{ steps.tunnel-electrum.outcome }}"
156+
echo "LND tunnel result: ${{ steps.tunnel-lnd.outcome }}"
157+
echo "This means the Cloudflare tunnel setup failed."
158+
echo "Continuing anyway - E2E tests will handle the error..."
159+
else
160+
echo "✅ Tunnel URLs are available"
161+
fi
162+
150163
# Job is complete - background processes will keep everything running
151164
echo "✅ Regtest infrastructure and tunnels are running in background"
152165
echo "Job 1 completed - E2E tests can now start"
@@ -523,4 +536,10 @@ jobs:
523536

524537
- name: Shutdown Cloudflare Tunnels
525538
if: always()
526-
uses: AnimMouse/setup-cloudflared/shutdown@v2
539+
run: |
540+
echo "Attempting to shutdown Cloudflare tunnels..."
541+
# Try to kill any cloudflared processes
542+
pkill -f cloudflared || echo "No cloudflared processes found"
543+
# Try to remove PID file if it exists
544+
rm -f cloudflared.pid || echo "No PID file found"
545+
echo "Cloudflare tunnel cleanup completed"

0 commit comments

Comments
 (0)