Skip to content

Commit 4d3e45d

Browse files
authored
Merge pull request #119 from getlantern/fix-e2e-cgo
Fix e2e: compress binary upload and add SSH keepalive
2 parents 501e6e3 + 7c90b2f commit 4d3e45d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/e2e.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,17 @@ jobs:
122122
SAMIZDAT_SHORT_ID: ${{ steps.creds.outputs.samizdat_short_id }}
123123
WASM_HASH: ${{ steps.creds.outputs.wasm_hash }}
124124
run: |
125-
SSH_OPTS="-o StrictHostKeyChecking=no -i e2e_key"
125+
SSH_OPTS="-o StrictHostKeyChecking=no -o ServerAliveInterval=30 -i e2e_key"
126+
127+
# Compress binary before upload to avoid SCP timeout on small droplets
128+
gzip -1 -c lantern-box > lantern-box.gz
126129
127130
# Upload files
128-
scp $SSH_OPTS lantern-box cert.pem key.pem plain.wasm root@"$DROPLET_IP":/root/
131+
scp $SSH_OPTS lantern-box.gz cert.pem key.pem plain.wasm root@"$DROPLET_IP":/root/
129132
130-
# Make binary executable
131-
ssh $SSH_OPTS root@"$DROPLET_IP" chmod +x /root/lantern-box
133+
# Decompress and make binary executable
134+
ssh $SSH_OPTS root@"$DROPLET_IP" \
135+
"gzip -d /root/lantern-box.gz && chmod +x /root/lantern-box"
132136
133137
# Start Python HTTP server to serve plain.wasm (for WATER)
134138
ssh $SSH_OPTS root@"$DROPLET_IP" \

0 commit comments

Comments
 (0)