Test -Dmigration_path_for_coreos_toolbox on CentOS Stream 9
The code behind -Dmigration_path_for_coreos_toolbox is meant for Red Hat Enterprise Linux 8 and 9. Hence, it makes sense to use CentOS Stream 9 to run the 'unit tests' on the corresponding code path. Note that, just like Fedora, Podman prefers crun(1) as its OCI runtime on CentOS Stream 9 [1,2]. [1] Podman commit 060775901de09b27 https://gitlab.com/redhat/centos-stream/rpms/podman/-/commit/060775901de09b27 [2] Podman commit f327e88a08ca224b https://gitlab.com/redhat/centos-stream/rpms/podman/-/commit/f327e88a08ca224b https://github.com/containers/toolbox/pull/1171
This commit is contained in:
parent
ccaa27e034
commit
4cd1c798b3
3 changed files with 62 additions and 3 deletions
|
@ -32,8 +32,8 @@
|
||||||
timeout: 600
|
timeout: 600
|
||||||
nodeset:
|
nodeset:
|
||||||
nodes:
|
nodes:
|
||||||
- name: ci-node-36
|
- name: centos-9-stream
|
||||||
label: cloud-fedora-36
|
label: cloud-centos-9-stream
|
||||||
pre-run: playbooks/setup-env-migration-path-for-coreos-toolbox.yaml
|
pre-run: playbooks/setup-env-migration-path-for-coreos-toolbox.yaml
|
||||||
run: playbooks/unit-test.yaml
|
run: playbooks/unit-test.yaml
|
||||||
|
|
||||||
|
|
59
playbooks/dependencies-centos-9-stream.yaml
Normal file
59
playbooks/dependencies-centos-9-stream.yaml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
- name: Install RPM packages from CentOS Stream
|
||||||
|
become: yes
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- bash-completion
|
||||||
|
- flatpak-session-helper
|
||||||
|
- golang
|
||||||
|
- httpd-tools
|
||||||
|
- meson
|
||||||
|
- ninja-build
|
||||||
|
- openssl
|
||||||
|
- podman
|
||||||
|
- skopeo
|
||||||
|
- systemd
|
||||||
|
- udisks2
|
||||||
|
|
||||||
|
- name: Install RPM packages from CentOS Stream CodeReady Linux Builder
|
||||||
|
become: yes
|
||||||
|
package:
|
||||||
|
enablerepo: crb
|
||||||
|
name:
|
||||||
|
- golang-github-cpuguy83-md2man
|
||||||
|
|
||||||
|
- name: Enable EPEL
|
||||||
|
become: yes
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- epel-release
|
||||||
|
|
||||||
|
- name: Install RPM packages from EPEL
|
||||||
|
become: yes
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- ShellCheck
|
||||||
|
- bats
|
||||||
|
- codespell
|
||||||
|
- fish
|
||||||
|
|
||||||
|
- name: Download Go modules
|
||||||
|
shell: |
|
||||||
|
go mod download -x
|
||||||
|
args:
|
||||||
|
chdir: '{{ zuul.project.src_dir }}/src'
|
||||||
|
|
||||||
|
- name: Setup Git submodules
|
||||||
|
shell: |
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
args:
|
||||||
|
chdir: '{{ zuul.project.src_dir }}'
|
||||||
|
|
||||||
|
- name: Check versions of crucial packages
|
||||||
|
command: rpm -qa ShellCheck codespell *kernel* *glibc* golang podman conmon containernetworking-plugins containers-common container-selinux crun fuse-overlayfs flatpak-session-helper
|
||||||
|
|
||||||
|
- name: Show podman versions
|
||||||
|
command: podman version
|
||||||
|
|
||||||
|
- name: Show podman debug information
|
||||||
|
command: podman info --debug
|
|
@ -17,7 +17,7 @@
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- include_tasks: dependencies-fedora.yaml
|
- include_tasks: dependencies-centos-9-stream.yaml
|
||||||
|
|
||||||
- name: Set up build directory
|
- name: Set up build directory
|
||||||
command: meson -Dmigration_path_for_coreos_toolbox=true --fatal-meson-warnings builddir
|
command: meson -Dmigration_path_for_coreos_toolbox=true --fatal-meson-warnings builddir
|
||||||
|
|
Loading…
Reference in a new issue