Repository navigation
ci: point Podman at /usr/local/bin/crun on Ubuntu GHA runners - #4672
Merged
tanwigeetika1618 merged 1 commit intoJul 30, 2026
Merged
Conversation
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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe tox workflow now passes a pre-run script to the reusable workflow that configures Podman to use ChangesPodman runtime setup
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
tanwigeetika1618
approved these changes
Jul 30, 2026
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 -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ubuntu-24.04image20260726.254, which breaks molecule Linux integration tests (test_podman,test_native_inventory,test_with_backend_as_ansible_navigator) withError: OCI runtime error: crun: unknown version specified./usr/bin/crun1.14.1 instead of/usr/local/bin/crun1.28).Changes
run_prein.github/workflows/tox.ymlthat writes a containers.conf.d drop-in so Podman uses/usr/local/bin/crunon Linux runners when that binary exists.unameso 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.ymlso all consumers of the shared tox workflow get the fix, then remove the molecule-localrun_pre.Test plan
tox / py310andtox / py312pass on image20260726.254(no morecrun: unknown version specified)run_pre(or equivalent step)Summary by CodeRabbit