8000 ci: point Podman at /usr/local/bin/crun on Ubuntu GHA runners by cidrblock · Pull Request #4672 · ansible/molecule · GitHub
[go: up one dir, main page]

Skip to content

ci: point Podman at /usr/local/bin/crun on Ubuntu GHA runners - #4672

Merged
tanwigeetika1618 merged 1 commit into
ansible:mainfrom
cidrblock:ci/gha-crun-runtime-workaround
Jul 30, 2026
Merged

tanwigeetika1618 merged 1 commit into
ansible:mainfrom
cidrblock:ci/gha-crun-runtime-workaround

Conversation

@cidrblock
@cidrblock cidrblock commented Jul 30, 2026 •
Copy link
Copy Markdown
Contributor

Summary

  • Work around broken Podman/crun pairing on GitHub Actions ubuntu-24.04 image 20260726.254, which breaks molecule Linux integration tests (test_podman, test_native_inventory, test_with_backend_as_ansible_navigator) with Error: OCI runtime error: crun: unknown version specified.
  • Upstream tracker: actions/runner-images#14473 (Podman 5.8.4 still resolves /usr/bin/crun 1.14.1 instead of /usr/local/bin/crun 1.28).

Changes

  • Add a temporary run_pre in .github/workflows/tox.yml that writes a containers.conf.d drop-in so Podman uses /usr/local/bin/crun on Linux runners when that binary exists.
  • Guarded with uname so macOS jobs are unaffected.

Follow-up

If CI goes green on the new runner image, promote this workaround into ansible/team-devtools .github/workflows/tox.yml so all consumers of the shared tox workflow get the fix, then remove the molecule-local run_pre.

Test plan

  • tox / py310 and tox / py312 pass on image 20260726.254 (no more crun: unknown version specified)
  • macOS jobs still pass (Linux-only guard)
  • Actionlint / workflow lint clean on this YAML
  • After merge + confirmation, open team-devtools PR to absorb the same run_pre (or equivalent step)

Summary by CodeRabbit

  • Bug Fixes
    • Improved automated test workflow reliability on Linux runners by resolving Podman and OCI runtime compatibility issues.
    • Added a non-blocking environment check to help diagnose container runtime problems.

Work around actions/runner-images#14473 where ubuntu-24.04 image
20260726.254 ships Podman 5.8.4 but still resolves to /usr/bin/crun
1.14.1, breaking container-backed integration tests.

Temporary molecule run_pre; promote into team-devtools tox.yml if CI
goes green.
@coderabbitai
coderabbitai Bot commented Jul 30, 2026 •
Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 091bb206-0c22-427f-9b80-827a093312dc

📥 Commits

Reviewing files that changed from the base of the PR and between 67abe05 and e1614e8.

📒 Files selected for processing (1)
  • .github/workflows/tox.yml

📝 Walkthrough

Walkthrough

The tox workflow now passes a pre-run script to the reusable workflow that configures Podman to use /usr/local/bin/crun on Linux and performs a non-fatal podman info check.

Changes

Podman runtime setup

Layer / File(s) Summary
Configure Podman runtime before tox
.github/workflows/tox.yml
The tox job adds a conditional run_pre script that writes Podman’s crun configuration when available and runs podman info without failing the job if the command errors.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: alisonlhart, ansibuddy, ganeshrn

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the Ubuntu GHA runner Podman/crun workaround added to CI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@tanwigeetika1618
tanwigeetika1618 merged commit 6ed62f3 into ansible:main Jul 30, 2026
20 checks passed
tanwigeetika1618 pushed a commit to TejasAmle/molecule that referenced this pull request Aug 4, 2026
…e#4672)

## Summary
- Work around broken Podman/crun pairing on GitHub Actions
`ubuntu-24.04` image `20260726.254`, which breaks molecule Linux
integration tests (`test_podman`, `test_native_inventory`,
`test_with_backend_as_ansible_navigator`) with `Error: OCI runtime
error: crun: unknown version specified`.
- Upstream tracker:
[actions/runner-images#14473](actions/runner-images#14473)
(Podman 5.8.4 still resolves `/usr/bin/crun` 1.14.1 instead of
`/usr/local/bin/crun` 1.28).

## Changes
- Add a temporary `run_pre` in `.github/workflows/tox.yml` that writes a
containers.conf.d drop-in so Podman uses `/usr/local/bin/crun` on Linux
runners when that binary exists.
- Guarded with `uname` so macOS jobs are unaffected.

## Follow-up
If CI goes green on the new runner image, **promote this workaround into
`ansible/team-devtools` `.github/workflows/tox.yml`** so all consumers
of the shared tox workflow get the fix, then remove the molecule-local
`run_pre`.

## Test plan
- [ ] `tox / py310` and `tox / py312` pass on image `20260726.254` (no
more `crun: unknown version specified`)
- [ ] macOS jobs still pass (Linux-only guard)
- [ ] Actionlint / workflow lint clean on this YAML
- [ ] After merge + confirmation, open team-devtools PR to absorb the
same `run_pre` (or equivalent step)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved automated test workflow reliability on Linux runners by
resolving Podman and OCI runtime compatibility issues.
- Added a non-blocking environment check to help diagnose container
runtime problems.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants

0