Cirrus: Add dedicated rootless mode testing - #2531
Conversation
398c3d8 to
f20eb4b
Compare
0f461c8 to
3afd267
Compare
a07663c to
c464fdd
Compare
|
/hold |
|
this is great. Once it lands we can probably nuke the ad-hoc rootless tests, or pick just a subset of them |
|
Hint: See the new "rootless_testing" task among the others 😄 |
|
☔ The latest upstream changes (presumably #2435) made this pull request unmergeable. Please resolve the merge conflicts. |
Certain integration tests require execution as a regular user. This is acomplished by `PodmanTest.PodmanAsUserBase()` wrapping a specialized execution environment, in `test/utils/utils.go`. However, doing this requires passing through python, which vastly increases the complexity of debugging low-level problems. This commit introduces a new parallel task, run as a regular user on the VM as set by three environment variables. All commands executed in the ``rootless_test.sh`` script, will occur as a real user with a name and home directory, just as `$DIETY` intended. All env. vars established during `environment_setup.sh` (for root) are available. The PR source in `$GOSRC` and `$GOPATH` are owned by this user, and ready for use. Signed-off-by: Chris Evich <cevich@redhat.com>
|
@giuseppe Anything else we need to do here to ensure we have a full subuid/subgid range set up for the user we test as? I'd love to drop the single user rootless container test hack |
|
@mheon good point. At the top-level we're still root, so config. changes can be made as needed to support testing. General updates to that Cirrus-CI can also do things in parallel within a task,as long as that doesn't hurt our brains too much 😄 One idea could be to use that to have multiple users running commands at the same time, or have root also doing operations on the system. Whichever way we want to make life challenging, it's possible 😃 |
|
@mheon I think no need to wait on this. It's designed as a stub, to be added onto later. /hold cancel |
|
@cevich Fair enough. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm One thing to think about is moving away from fedora29 to fedora 30. Also would be nice to test on RHEL8 at some point. |
|
@rhatdan I'll file jira cards for both. |
Signed-off-by: Chris Evich cevich@redhat.com