Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/lima.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ jobs:
limactl shell vm1 sudo apt-get update
limactl shell vm1 sudo apt-get install -y iperf3
limactl shell vm1 sudo systemctl start iperf3.service
echo "Waiting for iperf3 server ..."
limactl shell vm1 bash -s << EOF
if ! timeout 10s bash -c "until ss -tln | grep -q :5201; do sleep 1; done"; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have picked a longer timeout, like 30s just because the GitHub runners are sometimes so sluggish, but maybe this is enough. At least we get a clear error when it fails.

echo >&2 "Timeout waiting for iperf3 port"
exit 1
fi
EOF
echo "iperf3 server is ready"
- name: "Lima: vm1: get the IP"
run: |
limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP
Expand Down