Repository navigation
Description
Why
The [k3s-macos] matrix jobs are a required check (via [k3s] demo-helmfile), and they flake on unrelated PRs. Each flake costs the full 45 minutes and blocks merge, and the failure is in CI setup, not in any test: the job dies at "Start Docker-compatible runtime on macOS" without running a single helm test.
Expected
When colima's preferred VM type fails to come up on the macos-15-intel runner, the setup-colima action falls through to its qemu fallback and the job proceeds, or it fails fast with a clear runtime error.
Actual
The "Start Docker-compatible runtime on macOS" step is capped at timeout-minutes: 45, but the setup-colima fallback ladder can take longer than that. The step is guillotined during the vz retries and the qemu fallback never runs. On a recent run the job spent ~46 minutes on this step and was killed with steps 5-7 ("Run tests for helm") never started.
Mechanism
setup-colima tries vz twice, then installs qemu and tries qemu twice. Each attempt allows up to 480s colima start + 120s docker info + 600s docker pull rancher/k3s:latest, roughly 20 minutes. Two vz attempts alone are ~40 minutes, so the 45-minute step cap fires partway through the second vz retry and the qemu fallback (the runtime that actually comes up on the Intel runner) is never reached. Every failure then costs the full 45 minutes.
Two compounding issues:
docker pull rancher/k3s:latestsits inside the start/retry loop, so a slow or rate-limited Docker Hub pull is treated as a runtime-start failure and triggers a fullcolima delete --data --force+ VM rebuild. Registry flakiness masquerades as hypervisor flakiness, and each attempt is 600s longer than it needs to be.- The step timeout is smaller than the fallback ladder it is meant to bound, so the fallback is effectively unreachable.
Relevant paths: .github/actions/setup-colima/action.yml; .github/workflows/test.yml (the k3s job and its Start Docker-compatible runtime on macOS step).
Note (separate, larger question)
macos-15-intel is on GitHub's deprecation path, and Apple-Silicon macOS runners do not support the nested virtualization colima needs. When the Intel runners sunset, this job needs a plan, for example treating [k3s-macos] as informational and keeping [k3s-linux] as the blocking signal, since it exercises the same helm/helmfile path on native Docker. Happy to open that as a separate discussion if useful.
Fix
Happy to follow up with a PR that moves the k3s pull out of the retry loop and raises the step timeout so the qemu fallback can run.
Activity