From 87679fcab2e78ef824e11f59ed533677a1628894 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Tue, 29 Mar 2022 09:05:53 +0800 Subject: [PATCH] test: Add retries on ubi8 image and greenboot package downloading To fix issue: https://github.com/osbuild/osbuild-composer/issues/2492, retry 30 times when downloading ubi8 image and greenboot package. --- test/data/ansible/check_ostree.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/data/ansible/check_ostree.yaml b/test/data/ansible/check_ostree.yaml index 0f2696ba2..c5f23b36f 100644 --- a/test/data/ansible/check_ostree.yaml +++ b/test/data/ansible/check_ostree.yaml @@ -347,6 +347,9 @@ command: podman run registry.access.redhat.com/ubi8/ubi-minimal:latest cat /etc/redhat-release register: podman_result become: yes + retries: 30 # due to https://github.com/osbuild/osbuild-composer/issues/2492 + delay: 2 + until: podman_result is success ignore_errors: yes # due to https://bugzilla.redhat.com/show_bug.cgi?id=1903983 - name: run container test @@ -530,6 +533,10 @@ - name: install sanely failing health check unit to test red boot status behavior command: rpm-ostree install --cache-only https://s3.amazonaws.com/org.osbuild.test-dependencies/greenboot-failing-unit-1.0-1.el8.noarch.rpm become: yes + register: install_result + retries: 30 # due to https://github.com/osbuild/osbuild-composer/issues/2492 + delay: 2 + until: install_result is success - name: reboot to deploy new ostree commit reboot: