Skip to content

ci(actions): pin podman OCI runtime to the flake's crun in setup-env - #1300

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1299-runner-crun-pairing
Jul 30, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1299-runner-crun-pairing

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1299 — the 2026-07-26 ubuntu-24.04 runner image bumped preinstalled podman 4.9.3 → 5.8.4 while keeping Ubuntu's stale system crun (< 1.14.3), which rejects the OCI runtime-spec v1.2.x config.json podman ≥ 5 writes (crun: unknown version specified). Every podman run in the image testinfra died at container start — run 30528291013, 116/116 errors on the amd64 leg. Rollout is per-runner, so red is probabilistic until the fleet converges.

setup-env now resolves crun from the flake dev-shell closure (the version nixpkgs pairs with podman 5.8.x, already pulled for the nix podman) and writes a rootless containers.conf drop-in pointing the crun runtime at that store path. Podman itself stays on the host path (#632 — rootless setuid newuidmap integration); only the OCI runtime it execs is pinned. The pairing is then governed by flake.lock, immune to runner-image drift, and backward-compatible with older host podman. If no crun is found in the closure the step warns and keeps the host runtime (no behavior change).

Verification

No unit-test surface (devkit-internal composite action, not a scaffolded asset). Verified by this PR's own CI: the Image Tests job runs the same test-image → setup-env → podman run path, and the step log now prints the pinned crun version. Post-merge, the dev push triggers the full Nix Image (discovery) build + testinfra on both arches.

Refs: #1299

The 2026-07-26 ubuntu-24.04 runner image bumped preinstalled podman
4.9.3 -> 5.8.4 while keeping Ubuntu's stale crun (< 1.14.3), which
rejects the OCI spec v1.2.x config podman >= 5 writes -- every
`podman run` in the image testinfra died with "crun: unknown version
specified". Resolve crun from the dev-shell closure and point the
rootless containers.conf `crun` runtime at it, so the podman<->crun
pairing is pinned by flake.lock instead of the runner image.

CI-infra-only change (devkit's own setup-env composite action, not a
scaffolded asset); no unit-test surface -- verified by the live CI runs
on this PR and the post-merge dev image build.

Refs: #1299
@c-vigo
c-vigo merged commit 8bb9e21 into dev Jul 30, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1299-runner-crun-pairing branch July 30, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant