Skip to content

Commit cc9782e

Browse files
authored
Merge pull request #2840 from AkihiroSuda/remove-macos-12
CI: remove macos-12
2 parents a4e0b4c + 1986566 commit cc9782e

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,9 @@ jobs:
170170
# if: always()
171171
# run: type C:\Users\runneradmin\.lima\wsl2\ha.stderr.log
172172

173-
integration:
174-
name: Integration tests
175-
# on macOS 12, the default vmType is QEMU
176-
runs-on: macos-12
173+
qemu:
174+
name: "Integration tests (QEMU, macOS host)"
175+
runs-on: macos-15-large # Intel
177176
timeout-minutes: 120
178177
steps:
179178
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -199,11 +198,9 @@ jobs:
199198
# coreutils: required by test-templates.sh for the "timeout" command
200199
# curl: required by test-templates.sh to download nerdctl for alpine
201200
# jq: required by test-templates.sh to determine download URL for nerdctl
202-
run: |
203-
set -x
204-
# GitHub runners seem to have lima installed by brew already; we don't want/need it
205-
time brew uninstall --ignore-dependencies lima colima
206-
time brew install qemu bash coreutils curl jq
201+
run: brew install qemu bash coreutils curl jq
202+
- name: "Adjust LIMACTL_CREATE_ARGS"
203+
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --vm-type=qemu" >>$GITHUB_ENV
207204
- name: "Inject `no_timer_check` to kernel cmdline"
208205
# workaround to https://github.com/lima-vm/lima/issues/84
209206
run: ./hack/inject-cmdline-to-template.sh templates/default.yaml no_timer_check
@@ -231,8 +228,8 @@ jobs:
231228

232229
# Non-default templates are tested on Linux instances of GHA,
233230
# as they seem more stable than macOS instances.
234-
integration-linux:
235-
name: Integration tests (on Linux)
231+
qemu-linux:
232+
name: "Integration tests (QEMU, Linux host)"
236233
runs-on: ubuntu-24.04
237234
timeout-minutes: 120
238235
strategy:
@@ -292,7 +289,7 @@ jobs:
292289
run: ./hack/debug-cache.sh
293290

294291
colima:
295-
name: Colima
292+
name: "Colima tests (QEMU, Linux host)"
296293
runs-on: ubuntu-24.04
297294
timeout-minutes: 120
298295
strategy:
@@ -342,8 +339,8 @@ jobs:
342339
run: ./hack/debug-cache.sh
343340

344341
vmnet:
345-
name: "VMNet test"
346-
runs-on: macos-12
342+
name: "VMNet tests (QEMU)"
343+
runs-on: macos-15-large # Intel
347344
timeout-minutes: 120
348345
steps:
349346
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -357,7 +354,7 @@ jobs:
357354
- name: Install
358355
run: make install
359356
- name: "Adjust LIMACTL_CREATE_ARGS"
360-
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --network=lima:shared" >>$GITHUB_ENV
357+
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --vm-type=qemu --network=lima:shared" >>$GITHUB_ENV
361358
- name: "Inject `no_timer_check` to kernel cmdline"
362359
# workaround to https://github.com/lima-vm/lima/issues/84
363360
run: ./hack/inject-cmdline-to-template.sh templates/default.yaml no_timer_check
@@ -366,7 +363,7 @@ jobs:
366363
with:
367364
template: templates/default.yaml
368365
- name: Install test dependencies
369-
run: brew install qemu bash coreutils iperf3
366+
run: brew install qemu bash coreutils
370367
- name: Install socket_vmnet
371368
env:
372369
SOCKET_VMNET_VERSION: v1.1.5
@@ -394,12 +391,12 @@ jobs:
394391
uses: ./.github/actions/upload_failure_logs_if_exists
395392

396393
upgrade:
397-
name: "Upgrade test"
398-
runs-on: macos-12
394+
name: "Upgrade tests (QEMU, macOS host)"
395+
runs-on: macos-15-large # Intel
399396
timeout-minutes: 120
400397
strategy:
401398
matrix:
402-
oldver: ["v0.15.1"]
399+
oldver: ["v0.15.1"] # The default VM type was always QEMU until Lima v1.0
403400
steps:
404401
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
405402
with:
@@ -436,8 +433,7 @@ jobs:
436433
uses: ./.github/actions/upload_failure_logs_if_exists
437434

438435
vz:
439-
name: "vz"
440-
# on macOS >= 13, the default vmType is VZ
436+
name: "Integration tests (vz)"
441437
runs-on: macos-15-large # Intel
442438
timeout-minutes: 120
443439
strategy:

hack/common.inc.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ if [[ ${BASH_VERSINFO:-0} -lt 4 ]]; then
2424
fi
2525

2626
: "${LIMA_HOME:=$HOME/.lima}"
27+
_IPERF3=iperf3
28+
# iperf3-darwin does some magic on macOS to avoid "No route on host" on macOS 15
29+
# https://github.com/lima-vm/socket_vmnet/issues/85
30+
[ "$(uname -s)" = "Darwin" ] && _IPERF3="iperf3-darwin"
31+
: "${IPERF3:=$_IPERF3}"

hack/test-templates.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ if [[ -n ${CHECKS["vmnet"]} ]]; then
334334
set -x
335335
limactl shell "$NAME" sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
336336
limactl shell "$NAME" iperf3 -s -1 -D
337-
iperf3 -c "$guestip"
337+
${IPERF3} -c "$guestip"
338338
set +x
339339
# NOTE: we only test the shared interface here, as the bridged interface cannot be used on GHA (and systemd-networkd-wait-online.service will fail)
340340
fi

0 commit comments

Comments
 (0)