995c6d175e
Sometimes the RPM dependencies can't be installed because the DNF cache refers to old packages that have been replaced by newer builds on the RPM repositories [1]. This often happens on Fedora Rawhide because it sees a lot more churn than stable Fedoras. Currently, one has to keep restarting the tests manually by typing 'recheck' until the DNF caches eventually get updated. This is both very inefficient because it requires manual intervention; and wasteful because it can take several attempts and it doesn't just run the failing Ansible job, but all the other ones too. It will be good to force the DNF cache to be updated [2] when an Ansible job is being attempted more than once [3]. [1] https://github.com/containers/toolbox/pull/1171 https://github.com/containers/toolbox/pull/1200 [2] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/dnf_module.html#parameter-update_cache [3] https://zuul-ci.org/docs/zuul/latest/job-content.html#var-zuul.attempts https://github.com/containers/toolbox/pull/1201
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
#
|
|
# Copyright © 2022 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 RPM packages
|
|
become: yes
|
|
package:
|
|
update_cache: "{{ true if zuul.attempts > 1 else false }}"
|
|
name:
|
|
- ShellCheck
|
|
- bash-completion
|
|
- bats
|
|
- codespell
|
|
- fish
|
|
- flatpak-session-helper
|
|
- golang
|
|
- golang-github-cpuguy83-md2man
|
|
- httpd-tools
|
|
- meson
|
|
- ninja-build
|
|
- openssl
|
|
- podman
|
|
- skopeo
|
|
- systemd
|
|
- udisks2
|
|
|
|
- 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
|