diff --git a/.zuul.yaml b/.zuul.yaml index 45da41e..1454e82 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -31,6 +31,17 @@ pre-run: playbooks/fedora-33/setup-env.yaml run: playbooks/fedora-33/system-test-fedora-33.yaml +- job: + name: system-test-fedora-34 + description: Run Toolbox's system tests in Fedora 34 + timeout: 1200 + nodeset: + nodes: + - name: ci-node-34 + label: cloud-fedora-34-small + pre-run: playbooks/fedora-34/setup-env.yaml + run: playbooks/fedora-34/system-test-fedora-34.yaml + - job: name: system-test-fedora-rawhide description: Run Toolbox's system tests in Fedora Rawhide @@ -47,15 +58,18 @@ jobs: - system-test-fedora-32 - system-test-fedora-33 + - system-test-fedora-34 - system-test-fedora-rawhide check: jobs: - shellcheck - system-test-fedora-32 - system-test-fedora-33 + - system-test-fedora-34 - system-test-fedora-rawhide gate: jobs: - system-test-fedora-32 - system-test-fedora-33 + - system-test-fedora-34 - system-test-fedora-rawhide diff --git a/playbooks/fedora-34/setup-env.yaml b/playbooks/fedora-34/setup-env.yaml new file mode 100644 index 0000000..f997680 --- /dev/null +++ b/playbooks/fedora-34/setup-env.yaml @@ -0,0 +1,53 @@ +--- +- hosts: all + tasks: + - name: Install requirements + become: yes + package: + use: dnf + name: + - golang + - golang-github-cpuguy83-md2man + - ninja-build + - meson + - flatpak-session-helper + - systemd + - bats + - bash-completion + - udisks2 + - podman + + - name: Install bats-support library + git: + repo: https://github.com/bats-core/bats-support + dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-support' + depth: 1 + + - name: Install bats-assert library + git: + repo: https://github.com/bats-core/bats-assert + dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-assert' + depth: 1 + + - name: Setup environment + become: yes + command: + cmd: systemd-tmpfiles --create + creates: /run/media + + - name: Check versions of crucial packages + command: rpm -q golang podman crun conmon fuse-overlayfs flatpak-session-helper + + - name: Pull registry.fedoraproject.org/f33/fedora-toolbox:33 + command: podman pull registry.fedoraproject.org/f33/fedora-toolbox:33 + register: _podman + until: _podman.rc == 0 + retries: 5 + delay: 10 + + - name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29 + command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29 + register: _podman + until: _podman.rc == 0 + retries: 5 + delay: 10 diff --git a/playbooks/fedora-34/system-test-fedora-34.yaml b/playbooks/fedora-34/system-test-fedora-34.yaml new file mode 100644 index 0000000..9208f26 --- /dev/null +++ b/playbooks/fedora-34/system-test-fedora-34.yaml @@ -0,0 +1,21 @@ +--- +- hosts: ci-node-34 + tasks: + - name: Build toolbox + command: meson builddir + args: + chdir: '{{ zuul.project.src_dir }}' + + - name: Install toolbox + become: yes + command: ninja -C builddir install + args: + chdir: '{{ zuul.project.src_dir }}' + + - name: Run system tests + command: bats ./test/system + environment: + PODMAN: '/usr/bin/podman' + TOOLBOX: '/usr/local/bin/toolbox' + args: + chdir: '{{ zuul.project.src_dir }}'