You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
osbuild/osbuild@a52e256
introduced running osbuild's test in the %check phase of an rpm build.
A lot of osbuild's tests are gated on $UID == 0 (i.e. running as root).
Thus, if $UID != 0, then a lot of tests are intentionally skipped.
RPM building setups (koji, mockbuild.sh in this repository) usually run
mock as a non-root user, thus the tests get skipped. However, this
script actually runs mock as root, and thus these tests don't get
skipped, causing a lot of failures because there are missing tools
in the buildroot, some rootful tests require networking, or they cannot
run in an environment missing certain privileges.
This commit changes the playbook to run tasks as root only when they
require it (subscription-manager, dnf). Mock is no longer run as root,
aligning the rpm building process to what's common in other setups.
0 commit comments