Merge pull request #14322 from samuelkarp/retry-limactl-start

ci: retry limactl start on VM boot failure
This commit is contained in:
Fu Wei authored and GitHub committed 2026-10-15 21:43:34 +00:00
commit c787e39387
1 file changed
+8 -1
+8 -1
View File
@@ -663,7 +663,14 @@ jobs:
key: lima-${{ steps.lima-actions-setup.outputs.version }}-${{ matrix.template }}
- name: Boot VM
# --plain keeps the guest pristine (no guest agent, no mounts, no port forwards)
run: limactl start --plain --name=default --cpus=2 --memory=4 --disk=60 "template:$LIMA_TEMPLATE"
run: |
limactl start --plain --name=default --cpus=2 --memory=4 --disk=60 "template:$LIMA_TEMPLATE" || {
# limactl can fail to download the VM image due to flakiness on the
# upstream mirrors, wait a bit and retry
limactl delete -f default || true
sleep 60
limactl start --plain --name=default --cpus=2 --memory=4 --disk=60 "template:$LIMA_TEMPLATE"
}
- name: Copy the source code to the VM
env:
# $LIMA_WORKDIR does not exist yet