Skip to content

Commit 591179a

Browse files
committed
test: Remove retry in podman build and push
Do not need retry because registry is local now Signed-off-by: Xiaofeng Wang <[email protected]>
1 parent d3920c6 commit 591179a

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

tests/e2e/bootc-install.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ cat "$INSTALL_CONTAINERFILE"
175175

176176
# Build test bootc image and push to local registry
177177
greenprint "Build $TEST_OS installation container image"
178-
sudo podman build --tls-verify=false --retry=5 --retry-delay=10 -t "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" -f "$INSTALL_CONTAINERFILE" "$TEMPDIR"
178+
sudo podman build --tls-verify=false -t "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" -f "$INSTALL_CONTAINERFILE" "$TEMPDIR"
179179

180180
greenprint "Push $TEST_OS installation container image"
181-
retry sudo podman push --tls-verify=false --quiet "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" "$TEST_IMAGE_URL"
181+
sudo podman push --tls-verify=false --quiet "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" "$TEST_IMAGE_URL"
182182

183183
# Prepare Ansible inventory file and ansible.cfg
184184
greenprint "Prepare inventory file"
@@ -296,14 +296,14 @@ REALEOF
296296

297297
# Build upgrade container image and push to locay registry
298298
greenprint "Build $TEST_OS upgrade container image"
299-
sudo podman build --tls-verify=false --retry=5 --retry-delay=10 -t "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" -f "$UPGRADE_CONTAINERFILE" .
299+
sudo podman build --tls-verify=false -t "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" -f "$UPGRADE_CONTAINERFILE" .
300300

301301
greenprint "Push $TEST_OS upgrade container image"
302-
retry sudo podman push --tls-verify=false --quiet "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" "$TEST_IMAGE_URL"
302+
sudo podman push --tls-verify=false --quiet "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" "$TEST_IMAGE_URL"
303303

304304
# Copy upgrade image to local folder for bootc switch test
305305
if [[ "$AIR_GAPPED_DIR" != "" ]]; then
306-
retry skopeo copy docker://"$TEST_IMAGE_URL" dir://"$AIR_GAPPED_DIR"
306+
skopeo copy docker://"$TEST_IMAGE_URL" dir://"$AIR_GAPPED_DIR"
307307
BOOTC_IMAGE="/mnt"
308308
else
309309
BOOTC_IMAGE="$TEST_IMAGE_URL"

tests/e2e/shared_lib.sh

-11
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ function redprint {
3535
echo -e "\033[1;31m[$(date -Isecond)] ${1}\033[0m"
3636
}
3737

38-
# Retry container image pull and push
39-
function retry {
40-
n=0
41-
until [ "$n" -ge 3 ]
42-
do
43-
"$@" && break
44-
n=$((n+1))
45-
sleep 10
46-
done
47-
}
48-
4938
function deploy_libvirt_network {
5039
greenprint "Start firewalld"
5140
sudo systemctl enable --now firewalld

0 commit comments

Comments
 (0)