Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CI] [GHA] Add retries and timeout for Fedora, use `dnf` (#27882)

Andrei Kashchikhindac42a9301f2
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index bcfa07fb5c2..1dc77e89521 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-27597
+pr-27882
diff --git a/.github/dockerfiles/ov_build/fedora_29/Dockerfile b/.github/dockerfiles/ov_build/fedora_29/Dockerfile
index e5f400e2915..0b9911ac707 100644
--- a/.github/dockerfiles/ov_build/fedora_29/Dockerfile
+++ b/.github/dockerfiles/ov_build/fedora_29/Dockerfile
@@ -3,7 +3,11 @@ FROM ${REGISTRY}/library/fedora:29
USER root
-RUN yum update -y && yum install -y \
+# dnf configuration
+RUN echo "timeout=60" >> /etc/dnf/dnf.conf && \
+ echo "retries=10" >> /etc/dnf/dnf.conf
+
+RUN dnf update -y && dnf install -y \
git \
curl \
python3 \
diff --git a/.github/dockerfiles/ov_test/fedora_33/Dockerfile b/.github/dockerfiles/ov_test/fedora_33/Dockerfile
index 6e0fcc7d351..4c5b2037e60 100644
--- a/.github/dockerfiles/ov_test/fedora_33/Dockerfile
+++ b/.github/dockerfiles/ov_test/fedora_33/Dockerfile
@@ -3,7 +3,11 @@ FROM ${REGISTRY}/library/fedora:33
USER root
-RUN yum update -y && yum install -y \
+# dnf configuration
+RUN echo "timeout=60" >> /etc/dnf/dnf.conf && \
+ echo "retries=10" >> /etc/dnf/dnf.conf
+
+RUN dnf update -y && dnf install -y \
git \
curl \
python3 \
diff --git a/.github/workflows/fedora_29.yml b/.github/workflows/fedora_29.yml
index 0dd101225dc..6d128f33fca 100644
--- a/.github/workflows/fedora_29.yml
+++ b/.github/workflows/fedora_29.yml
@@ -131,10 +131,10 @@ jobs:
# install previous release version
mv /tmp/openvino-2023.repo /etc/yum.repos.d
- yum install -y openvino
+ dnf install -y openvino
# install current version
- yum install --allowerasing -y *.rpm
+ dnf install --allowerasing -y *.rpm
working-directory: ${{ env.RPM_PACKAGES_DIR }}
- name: Test RPM packages