Skip to content

Commit 39352a4

Browse files
authored
Merge pull request #122 from getlantern/fix-e2e-cgo
Fix SSH hanging on nohup background processes
2 parents ce0af68 + 80adf28 commit 39352a4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/e2e.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
142142
# Start Python HTTP server to serve plain.wasm (for WATER)
143143
ssh $SSH_OPTS root@"$DROPLET_IP" \
144-
"cd /root && nohup python3 -m http.server 8888 > /root/wasm-server.log 2>&1 &"
144+
"cd /root && nohup python3 -m http.server 8888 > /root/wasm-server.log 2>&1 < /dev/null &"
145145
146146
# --- ALGeneva server config ---
147147
cat > /tmp/algeneva-server.json << 'JSONEOF'
@@ -206,10 +206,11 @@ jobs:
206206
scp $SSH_OPTS /tmp/water-server.json root@"$DROPLET_IP":/root/water-server.json
207207
208208
# Start all 3 server processes
209+
# Close stdin (< /dev/null) so SSH doesn't wait for background processes
209210
ssh $SSH_OPTS root@"$DROPLET_IP" \
210-
"nohup /root/lantern-box run --config /root/algeneva-server.json > /root/algeneva-server.log 2>&1 &
211-
nohup /root/lantern-box run --config /root/samizdat-server.json > /root/samizdat-server.log 2>&1 &
212-
nohup /root/lantern-box run --config /root/water-server.json > /root/water-server.log 2>&1 &"
211+
"nohup /root/lantern-box run --config /root/algeneva-server.json > /root/algeneva-server.log 2>&1 < /dev/null &
212+
nohup /root/lantern-box run --config /root/samizdat-server.json > /root/samizdat-server.log 2>&1 < /dev/null &
213+
nohup /root/lantern-box run --config /root/water-server.json > /root/water-server.log 2>&1 < /dev/null &"
213214
214215
# Wait for servers to be ready (WATER needs time to download/compile WASM)
215216
# Note: must use bash explicitly since Ubuntu default shell is dash (no /dev/tcp support)

0 commit comments

Comments
 (0)