Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 157 additions & 25 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,139 +45,244 @@
nodes:
- name: fedora-rawhide
label: cloud-fedora-rawhide
pre-run: playbooks/setup-env-restricted.yaml
vars:
dependencies_playbook: dependencies-fedora-restricted.yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reminds me of a suggestion from Gemini Code Assist, when I was doing some CVE backports, to parameterise the definitions of the jobs in .zuul.yaml.

I never managed to get around to it. Do you think it would be a good idea and aligned with your work here? If so, would you like to throw in a patch for that? :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure yeah, I can look into it

pre-run: playbooks/setup-env.yaml
run: playbooks/unit-test.yaml

- job:
name: system-test-fedora
abstract: true
timeout: 6300
pre-run: playbooks/setup-env.yaml

- job:
name: system-test-fedora-rawhide
abstract: true
parent: system-test-fedora
timeout: 7200

- job:
name: system-test-fedora-rawhide-commands-options
parent: system-test-fedora-rawhide
description: Run Toolbx's commands-options system tests in Fedora Rawhide
timeout: 7200
nodeset:
nodes:
- name: fedora-rawhide
label: cloud-fedora-rawhide
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-rawhide-runtime-environment-arch-fedora
parent: system-test-fedora-rawhide
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora Rawhide
timeout: 7200
nodeset:
nodes:
- name: fedora-rawhide
label: cloud-fedora-rawhide
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-arch-fedora.yaml

- job:
name: system-test-fedora-rawhide-runtime-environment-ubuntu
parent: system-test-fedora-rawhide
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora Rawhide
timeout: 7200
nodeset:
nodes:
- name: fedora-rawhide
label: cloud-fedora-rawhide
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-ubuntu.yaml

- job:
name: system-test-fedora-44-commands-options
parent: system-test-fedora
description: Run Toolbx's commands-options system tests in Fedora 44
timeout: 6300
nodeset:
nodes:
- name: fedora-44
label: cloud-fedora-44
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-44-runtime-environment-arch-fedora
parent: system-test-fedora
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora 44
timeout: 6300
nodeset:
nodes:
- name: fedora-44
label: cloud-fedora-44
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-arch-fedora.yaml

- job:
name: system-test-fedora-44-runtime-environment-ubuntu
parent: system-test-fedora
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora 44
timeout: 6300
nodeset:
nodes:
- name: fedora-44
label: cloud-fedora-44
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-ubuntu.yaml

- job:
name: system-test-fedora-43-commands-options
parent: system-test-fedora
description: Run Toolbx's commands-options system tests in Fedora 43
timeout: 6300
nodeset:
nodes:
- name: fedora-43
label: cloud-fedora-43
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-43-runtime-environment-arch-fedora
parent: system-test-fedora
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora 43
timeout: 6300
nodeset:
nodes:
- name: fedora-43
label: cloud-fedora-43
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-arch-fedora.yaml

- job:
name: system-test-fedora-43-runtime-environment-ubuntu
parent: system-test-fedora
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora 43
timeout: 6300
nodeset:
nodes:
- name: fedora-43
label: cloud-fedora-43
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-ubuntu.yaml

- job:
name: system-test-fedora-42-commands-options
parent: system-test-fedora
description: Run Toolbx's commands-options system tests in Fedora 42
timeout: 6300
nodeset:
nodes:
- name: fedora-42
label: cloud-fedora-42
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-42-runtime-environment-arch-fedora
parent: system-test-fedora
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora 42
timeout: 6300
nodeset:
nodes:
- name: fedora-42
label: cloud-fedora-42
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-arch-fedora.yaml

- job:
name: system-test-fedora-42-runtime-environment-ubuntu
parent: system-test-fedora
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora 42
timeout: 6300
nodeset:
nodes:
- name: fedora-42
label: cloud-fedora-42
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test-runtime-environment-ubuntu.yaml

- job:
name: system-test-fedora-coreos
abstract: true
parent: system-test-fedora
voting: false
vars:
dependencies_playbook: dependencies-fedora-coreos.yaml
# Redirect installs from read-only /usr to writable /usr/local
meson_setup_args: >-
-Dfish_completions_dir=/usr/local/share/fish/vendor_completions.d
-Dprofile_dir=/usr/local/share/profile.d
-Dtmpfiles_dir=/usr/local/lib/tmpfiles.d

- job:
name: system-test-fedora-coreos-next-commands-options
parent: system-test-fedora-coreos
description: Run Toolbx's commands-options system tests in Fedora CoreOS next
nodeset:
nodes:
- name: fedora-coreos-next
label: cloud-fedora-coreos-next
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-coreos-next-runtime-environment-arch-fedora
parent: system-test-fedora-coreos
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora CoreOS next
nodeset:
nodes:
- name: fedora-coreos-next
label: cloud-fedora-coreos-next
run: playbooks/system-test-runtime-environment-arch-fedora.yaml

- job:
name: system-test-fedora-coreos-next-runtime-environment-ubuntu
parent: system-test-fedora-coreos
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora CoreOS next
nodeset:
nodes:
- name: fedora-coreos-next
label: cloud-fedora-coreos-next
run: playbooks/system-test-runtime-environment-ubuntu.yaml

- job:
name: system-test-fedora-coreos-stable-commands-options
parent: system-test-fedora-coreos
description: Run Toolbx's commands-options system tests in Fedora CoreOS stable
nodeset:
nodes:
- name: fedora-coreos-stable
label: cloud-fedora-coreos-stable
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-coreos-stable-runtime-environment-arch-fedora
parent: system-test-fedora-coreos
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora CoreOS stable
nodeset:
nodes:
- name: fedora-coreos-stable
label: cloud-fedora-coreos-stable
run: playbooks/system-test-runtime-environment-arch-fedora.yaml

- job:
name: system-test-fedora-coreos-stable-runtime-environment-ubuntu
parent: system-test-fedora-coreos
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora CoreOS stable
nodeset:
nodes:
- name: fedora-coreos-stable
label: cloud-fedora-coreos-stable
run: playbooks/system-test-runtime-environment-ubuntu.yaml

- job:
name: system-test-fedora-coreos-testing-commands-options
parent: system-test-fedora-coreos
description: Run Toolbx's commands-options system tests in Fedora CoreOS testing
nodeset:
nodes:
- name: fedora-coreos-testing
label: cloud-fedora-coreos-testing
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-coreos-testing-runtime-environment-arch-fedora
parent: system-test-fedora-coreos
description: Run Toolbx's (arch-fedora,runtime-environment) system tests in Fedora CoreOS testing
nodeset:
nodes:
- name: fedora-coreos-testing
label: cloud-fedora-coreos-testing
run: playbooks/system-test-runtime-environment-arch-fedora.yaml

- job:
name: system-test-fedora-coreos-testing-runtime-environment-ubuntu
parent: system-test-fedora-coreos
description: Run Toolbx's (runtime-environment,ubuntu) system tests in Fedora CoreOS testing
nodeset:
nodes:
- name: fedora-coreos-testing
label: cloud-fedora-coreos-testing
run: playbooks/system-test-runtime-environment-ubuntu.yaml

- project:
Expand All @@ -195,6 +300,15 @@
- system-test-fedora-42-commands-options
- system-test-fedora-42-runtime-environment-arch-fedora
- system-test-fedora-42-runtime-environment-ubuntu
- system-test-fedora-coreos-next-commands-options
- system-test-fedora-coreos-next-runtime-environment-arch-fedora
- system-test-fedora-coreos-next-runtime-environment-ubuntu
- system-test-fedora-coreos-stable-commands-options
- system-test-fedora-coreos-stable-runtime-environment-arch-fedora
- system-test-fedora-coreos-stable-runtime-environment-ubuntu
- system-test-fedora-coreos-testing-commands-options
- system-test-fedora-coreos-testing-runtime-environment-arch-fedora
- system-test-fedora-coreos-testing-runtime-environment-ubuntu
check:
jobs:
- unit-test
Expand All @@ -212,6 +326,15 @@
- system-test-fedora-42-commands-options
- system-test-fedora-42-runtime-environment-arch-fedora
- system-test-fedora-42-runtime-environment-ubuntu
- system-test-fedora-coreos-next-commands-options
- system-test-fedora-coreos-next-runtime-environment-arch-fedora
- system-test-fedora-coreos-next-runtime-environment-ubuntu
- system-test-fedora-coreos-stable-commands-options
- system-test-fedora-coreos-stable-runtime-environment-arch-fedora
- system-test-fedora-coreos-stable-runtime-environment-ubuntu
- system-test-fedora-coreos-testing-commands-options
- system-test-fedora-coreos-testing-runtime-environment-arch-fedora
- system-test-fedora-coreos-testing-runtime-environment-ubuntu
gate:
jobs:
- unit-test
Expand All @@ -229,3 +352,12 @@
- system-test-fedora-42-commands-options
- system-test-fedora-42-runtime-environment-arch-fedora
- system-test-fedora-42-runtime-environment-ubuntu
- system-test-fedora-coreos-next-commands-options
- system-test-fedora-coreos-next-runtime-environment-arch-fedora
- system-test-fedora-coreos-next-runtime-environment-ubuntu
- system-test-fedora-coreos-stable-commands-options
- system-test-fedora-coreos-stable-runtime-environment-arch-fedora
- system-test-fedora-coreos-stable-runtime-environment-ubuntu
- system-test-fedora-coreos-testing-commands-options
- system-test-fedora-coreos-testing-runtime-environment-arch-fedora
- system-test-fedora-coreos-testing-runtime-environment-ubuntu
58 changes: 58 additions & 0 deletions playbooks/dependencies-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#
# Copyright © 2026 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

- name: Ensure subordinate ID ranges exist for zuul-worker
become: yes
lineinfile:
create: true
path: "{{ item.file }}"
regexp: "^zuul-worker:"
line: "zuul-worker:524288:65536"
with_items:
- { file: /etc/subgid }
- { file: /etc/subuid }

- name: Force Podman to refresh user namespace mappings
become: yes
command: podman system migrate
ignore_errors: true

- name: Download Go modules
command: go mod download -x
args:
chdir: '{{ zuul.project.src_dir }}/src'

- name: Initialize Git submodules
command: git submodule init
args:
chdir: '{{ zuul.project.src_dir }}'

- name: Update Git submodules
command: git submodule update
args:
chdir: '{{ zuul.project.src_dir }}'

- name: Show OS release information
command: cat /etc/os-release

- name: Check versions of crucial packages
command: rpm -qa ShellCheck bash bash-completion bats codespell *kernel* gcc *glibc* shadow-utils-subid-devel golang golang-github-cpuguy83-md2man podman conmon containernetworking-plugins containers-common container-selinux crun fuse-overlayfs flatpak-session-helper skopeo

- name: Show podman versions
command: podman version

- name: Show podman debug information
command: podman info --debug
Loading
Loading