Skip to content

Commit

Permalink
playbooks: Reduce flakiness due to network errors when pulling images
Browse files Browse the repository at this point in the history
This change adds a pre-run task to pull the fedora-toolbox images from
the registry to reduce the number of false positives caused by
'podman pull' failing to download them during the actual test.

Each section needs a separate playbook because they use different
versions of Fedora, and hence different default images.

#375
  • Loading branch information
TristanCacqueray authored and debarshiray committed Feb 18, 2020
1 parent 5cea6c6 commit 50683c9
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
13 changes: 13 additions & 0 deletions playbooks/fedora-30/pre-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Pull registry.fedoraproject.org/f30/fedora-toolbox:30
command: podman pull registry.fedoraproject.org/f30/fedora-toolbox:30
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
2 changes: 2 additions & 0 deletions playbooks/fedora-30/setup-rpm-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@

- name: Check versions of crucial packages
command: rpm -q podman runc conmon fuse-overlayfs flatpak-session-helper

- include_tasks: ./pre-common.yaml
13 changes: 13 additions & 0 deletions playbooks/fedora-31/pre-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Pull registry.fedoraproject.org/f31/fedora-toolbox:31
command: podman pull registry.fedoraproject.org/f31/fedora-toolbox:31
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
2 changes: 2 additions & 0 deletions playbooks/fedora-31/setup-rpm-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@

- name: Check versions of crucial packages
command: rpm -q podman crun conmon fuse-overlayfs flatpak-session-helper

- include_tasks: ./pre-common.yaml
13 changes: 13 additions & 0 deletions playbooks/fedora-rawhide/pre-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Pull registry.fedoraproject.org/f32/fedora-toolbox:32
command: podman pull registry.fedoraproject.org/f32/fedora-toolbox:32
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
2 changes: 2 additions & 0 deletions playbooks/fedora-rawhide/setup-rpm-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@

- name: Check versions of crucial packages
command: rpm -q podman crun conmon fuse-overlayfs flatpak-session-helper

- include_tasks: ./pre-common.yaml

0 comments on commit 50683c9

Please sign in to comment.