Skip to content

Commit 6491082

Browse files
committedNov 17, 2024
.zuul, playbooks: Run the CI on Arch Linux
containers#1438
1 parent f900585 commit 6491082

File tree

4 files changed

+119
-0
lines changed

4 files changed

+119
-0
lines changed
 

‎.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/images/arch @Foxboron
88
/images/rhel @debarshiray @olivergs
99
/images/ubuntu @Jmennius
10+
/playbooks/arch @Foxboron

‎.zuul.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@
4848
pre-run: playbooks/setup-env-restricted.yaml
4949
run: playbooks/unit-test.yaml
5050

51+
- job:
52+
name: system-test-arch-commands-options
53+
description: Run Toolbx's commands-options system tests on Arch Linux
54+
timeout: 6300
55+
nodeset:
56+
nodes:
57+
- name: arch
58+
label: arch-linux
59+
pre-run: playbooks/arch/setup.yaml
60+
run: playbooks/system-test-commands-options.yaml
61+
62+
- job:
63+
name: system-test-arch-runtime-environment-arch-fedora
64+
description: Run Toolbx's (arch-fedora,runtime-environment) system tests on Arch Linux
65+
timeout: 6300
66+
nodeset:
67+
nodes:
68+
- name: arch
69+
label: arch-linux
70+
pre-run: playbooks/arch/setup.yaml
71+
run: playbooks/system-test-runtime-environment-arch-fedora.yaml
72+
5173
- job:
5274
name: system-test-fedora-rawhide-commands-options
5375
description: Run Toolbx's commands-options system tests in Fedora Rawhide
@@ -183,6 +205,8 @@
183205
- project:
184206
periodic:
185207
jobs:
208+
- system-test-arch-commands-options
209+
- system-test-arch-runtime-environment-arch-fedora
186210
- system-test-fedora-rawhide-commands-options
187211
- system-test-fedora-rawhide-runtime-environment-arch-fedora
188212
- system-test-fedora-rawhide-runtime-environment-ubuntu
@@ -200,6 +224,8 @@
200224
- unit-test
201225
- unit-test-migration-path-for-coreos-toolbox
202226
- unit-test-restricted
227+
- system-test-arch-commands-options
228+
- system-test-arch-runtime-environment-arch-fedora
203229
- system-test-fedora-rawhide-commands-options
204230
- system-test-fedora-rawhide-runtime-environment-arch-fedora
205231
- system-test-fedora-rawhide-runtime-environment-ubuntu
@@ -217,6 +243,8 @@
217243
- unit-test
218244
- unit-test-migration-path-for-coreos-toolbox
219245
- unit-test-restricted
246+
- system-test-arch-commands-options
247+
- system-test-arch-runtime-environment-arch-fedora
220248
- system-test-fedora-rawhide-commands-options
221249
- system-test-fedora-rawhide-runtime-environment-arch-fedora
222250
- system-test-fedora-rawhide-runtime-environment-ubuntu

‎playbooks/arch/dependencies.yaml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#
2+
# Copyright © 2024 Red Hat, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
- name: Install Arch Linux packages
18+
become: yes
19+
package:
20+
name:
21+
- apache
22+
- bash-completion
23+
- bats
24+
- codespell
25+
- crun
26+
- fish
27+
- flatpak
28+
- gcc
29+
- go
30+
- go-md2man
31+
- meson
32+
- ninja
33+
- openssl
34+
- pkgconf
35+
- podman
36+
- shadow
37+
- shellcheck
38+
- skopeo
39+
- systemd
40+
- udisks2
41+
update_cache: "{{ true if zuul.attempts > 1 else false }}"
42+
43+
- name: Download Go modules
44+
command: go mod download -x
45+
args:
46+
chdir: '{{ zuul.project.src_dir }}/src'
47+
48+
- name: Initialize Git submodules
49+
command: git submodule init
50+
args:
51+
chdir: '{{ zuul.project.src_dir }}'
52+
53+
- name: Update Git submodules
54+
command: git submodule update
55+
args:
56+
chdir: '{{ zuul.project.src_dir }}'
57+
58+
- name: Check versions of crucial packages
59+
command: pacman --query bash bats codespell conmon containers-common crun flatpak gcc glibc go go-md2man linux podman shadow shellcheck skopeo
60+
61+
- name: Show Podman version
62+
command: podman version
63+
64+
- name: Show Podman related system information
65+
command: podman info --debug

‎playbooks/arch/setup.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Copyright © 2021 – 2024 Red Hat, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
---
18+
- hosts: all
19+
tasks:
20+
- include_tasks: dependencies.yaml
21+
22+
- name: Set up build directory
23+
command: meson setup --fatal-meson-warnings builddir
24+
args:
25+
chdir: '{{ zuul.project.src_dir }}'

0 commit comments

Comments
 (0)