Skip to content

Conversation

@martinpitt
Copy link
Contributor

@martinpitt martinpitt commented May 5, 2025

Feature: Support running this role during container builds and in
container environments.

Reason: This is particularly useful for building bootc derivative OSes.
It's also desirable to run roles in system containers.

Result: These flags enable running the container scenarios in CI, which
ensures that the role works in podman system containers as well as
buildah build environment and thus allows us to officially support this
role for image mode builds.

Actual roles may opt out of this by dropping the corresponding tag.

martinpitt added 2 commits May 5, 2025 09:46
Generalize qemu-kvm-integration-tests.yml to run some "container-*"
environments as well. For "classic rpm" OSes that does not give us too
much beyond making sure that the container tests actually work
(developers might use them locally, after all). 90% of the logic (setup,
compatibility check, status updates, etc.) is the same, so it's not
economic to duplicate all of that into a new workflow.

Add Fedora/CentOS *-bootc scenarios: These check that our role works
during a bootc container build, without any systemd, processes, or other
runtime environment. tox-lsr added support for this in
linux-system-roles/tox-lsr#188.

However, as most roles don't currently work in that environment,
introduce and check a new `containerbuild` tag in meta/main.yml. We'll
add this to roles as we adjust them.

Similarly, as not every role works in a running container (e.g. due to
assuming SELinux), check a new `container` tag in their tests.

See https://issues.redhat.com/browse/RHEL-78157
@martinpitt martinpitt requested review from richm and spetrosi as code owners May 5, 2025 07:50
Feature: Support running this role during container builds and in
container environments.

Reason: This is particularly useful for building bootc derivative OSes.
It's also desirable to run roles in system containers.

Result: These flags enable running the container scenarios in CI, which
ensures that the role works in podman system containers as well as
buildah build environment and thus allows us to officially support this
role for image mode builds.

Actual roles may opt out of this by dropping the corresponding tag.
@martinpitt martinpitt force-pushed the bootc-container-test branch from 9d1be2b to 618793f Compare May 5, 2025 07:54
@richm richm merged commit d5768d9 into linux-system-roles:main May 5, 2025
20 checks passed
@martinpitt martinpitt deleted the bootc-container-test branch May 5, 2025 21:25
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.

2 participants