Skip to content

Commit 50683c9

Browse files
TristanCacqueraydebarshiray
authored andcommitted
playbooks: Reduce flakiness due to network errors when pulling images
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
1 parent 5cea6c6 commit 50683c9

File tree

6 files changed

+45
-0
lines changed

6 files changed

+45
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- name: Pull registry.fedoraproject.org/f30/fedora-toolbox:30
2+
command: podman pull registry.fedoraproject.org/f30/fedora-toolbox:30
3+
register: _podman
4+
until: _podman.rc == 0
5+
retries: 5
6+
delay: 10
7+
8+
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29
9+
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
10+
register: _podman
11+
until: _podman.rc == 0
12+
retries: 5
13+
delay: 10

playbooks/fedora-30/setup-rpm-env.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@
2020

2121
- name: Check versions of crucial packages
2222
command: rpm -q podman runc conmon fuse-overlayfs flatpak-session-helper
23+
24+
- include_tasks: ./pre-common.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- name: Pull registry.fedoraproject.org/f31/fedora-toolbox:31
2+
command: podman pull registry.fedoraproject.org/f31/fedora-toolbox:31
3+
register: _podman
4+
until: _podman.rc == 0
5+
retries: 5
6+
delay: 10
7+
8+
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29
9+
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
10+
register: _podman
11+
until: _podman.rc == 0
12+
retries: 5
13+
delay: 10

playbooks/fedora-31/setup-rpm-env.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@
2020

2121
- name: Check versions of crucial packages
2222
command: rpm -q podman crun conmon fuse-overlayfs flatpak-session-helper
23+
24+
- include_tasks: ./pre-common.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- name: Pull registry.fedoraproject.org/f32/fedora-toolbox:32
2+
command: podman pull registry.fedoraproject.org/f32/fedora-toolbox:32
3+
register: _podman
4+
until: _podman.rc == 0
5+
retries: 5
6+
delay: 10
7+
8+
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29
9+
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
10+
register: _podman
11+
until: _podman.rc == 0
12+
retries: 5
13+
delay: 10

playbooks/fedora-rawhide/setup-rpm-env.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121

2222
- name: Check versions of crucial packages
2323
command: rpm -q podman crun conmon fuse-overlayfs flatpak-session-helper
24+
25+
- include_tasks: ./pre-common.yaml

0 commit comments

Comments
 (0)