Skip to content

Commit

Permalink
.zuul, playbooks: Run the CI on Arch Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
debarshiray committed Nov 6, 2024
1 parent b443428 commit 9d882b5
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/images/arch @Foxboron
/images/rhel @debarshiray @olivergs
/images/ubuntu @Jmennius
/playbooks/arch @Foxboron
14 changes: 14 additions & 0 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@
pre-run: playbooks/setup-env-restricted.yaml
run: playbooks/unit-test.yaml

- job:
name: system-test-arch-commands-options
description: Run Toolbx's commands-options system tests on Arch Linux
timeout: 6300
nodeset:
nodes:
- name: arch
label: arch-linux
pre-run: playbooks/arch/setup.yaml
run: playbooks/system-test-commands-options.yaml

- job:
name: system-test-fedora-rawhide-commands-options
description: Run Toolbx's commands-options system tests in Fedora Rawhide
Expand Down Expand Up @@ -183,6 +194,7 @@
- project:
periodic:
jobs:
- system-test-arch-commands-options
- system-test-fedora-rawhide-commands-options
- system-test-fedora-rawhide-runtime-environment-arch-fedora
- system-test-fedora-rawhide-runtime-environment-ubuntu
Expand All @@ -200,6 +212,7 @@
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- unit-test-restricted
- system-test-arch-commands-options
- system-test-fedora-rawhide-commands-options
- system-test-fedora-rawhide-runtime-environment-arch-fedora
- system-test-fedora-rawhide-runtime-environment-ubuntu
Expand All @@ -217,6 +230,7 @@
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- unit-test-restricted
- system-test-arch-commands-options
- system-test-fedora-rawhide-commands-options
- system-test-fedora-rawhide-runtime-environment-arch-fedora
- system-test-fedora-rawhide-runtime-environment-ubuntu
Expand Down
63 changes: 63 additions & 0 deletions playbooks/arch/dependencies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#
# Copyright © 2024 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: Install packages
become: yes
package:
update_cache: "{{ true if zuul.attempts > 1 else false }}"
name:
- apache
- bash-completion
- bats
- codespell
- crun
- fish
- gcc
- go
- go-md2man
- meson
- ninja
- openssl
- podman
- shadow
- shellcheck
- skopeo
- systemd
- udisks2

- 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: Check versions of crucial packages
command: pacman --query bash bats codespell *kernel* gcc *glibc* shadow-utils-subid-devel shellcheck golang golang-github-cpuguy83-md2man podman conmon containernetworking-plugins containers-common container-selinux crun skopeo

- name: Show podman versions
command: podman version

- name: Show podman debug information
command: podman info --debug
25 changes: 25 additions & 0 deletions playbooks/arch/setup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Copyright © 2021 – 2024 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.
#

---
- hosts: all
tasks:
- include_tasks: dependencies.yaml

- name: Set up build directory
command: meson setup --fatal-meson-warnings builddir
args:
chdir: '{{ zuul.project.src_dir }}'

0 comments on commit 9d882b5

Please sign in to comment.