Repository navigation
Commit 0831f62
committed
ci(e2e): add CentOS Stream 10 Docker/Podman/SELinux suite
PR #2092 adds SELinux relabeling (:z/:Z) support to the Docker and
Podman driver bind mounts, but our existing E2E lanes run inside the
Ubuntu-based ghcr.io/nvidia/openshell/ci container image, which does
not enforce SELinux. That leaves the new relabeling behavior, and any
future SELinux-sensitive change, without a host that can actually deny
a mislabeled mount.
The original version of this suite required an org admin to provision
a GitHub-hosted RHEL 10 "larger runner", which isn't something CI
changes in this repo can provision. Per discussion on PR #2093, swap
that for a CentOS Stream 10 VM booted under QEMU/KVM on the existing
self-hosted linux-amd64-cpu8 runner (already used by
driver-vm-linux.yml with --privileged), driven entirely over SSH. This
needs no new runner class: it downloads a CentOS Stream 10 GenericCloud
image, seeds it with cloud-init over a generated ISO, boots it with
hardware-accelerated QEMU, and copies the checked-out repo in over
scp/tar.
Once the guest is up, the suite installs Docker Engine and Podman side
by side, confirms SELinux is Enforcing, runs the standard e2e:docker
and e2e:podman suites, and fails the job if the audit log shows AVC
denials during the run. It remains wired in as optional/non-blocking
via the test:e2e-centos label (renamed from test:e2e-rhel), matching
the existing test:e2e-kubernetes pattern.
Documentation in CI.md and CONTRIBUTING.md is updated to reflect the
renamed label and workflow.
Signed-off-by: Eric Curtin <eric.curtin@docker.com>1 parent 45614a3 commit 0831f62
5 files changed
Lines changed: 509 additions & 7 deletions
File tree
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
148 | 165 | | |
149 | 166 | | |
150 | 167 | | |
| |||
0 commit comments