Skip to content

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

[CI] [GHA] Introduce Fedora 29 (#26336)

Andrei Kashchikhin79a75a6b5652
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index d1c854099de..e764c498736 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-26448
\ No newline at end of file
+pr-26336
\ No newline at end of file
diff --git a/.github/dockerfiles/ov_build/fedora_29/Dockerfile b/.github/dockerfiles/ov_build/fedora_29/Dockerfile
new file mode 100644
index 00000000000..6d03a31937e
--- /dev/null
+++ b/.github/dockerfiles/ov_build/fedora_29/Dockerfile
@@ -0,0 +1,69 @@
+ARG REGISTRY="docker.io"
+FROM ${REGISTRY}/library/fedora:29
+
+USER root
+
+RUN yum update -y && yum install -y \
+ git \
+ curl \
+ python3 \
+ # To build Python from source
+ openssl-devel \
+ sqlite-devel \
+ bzip2-devel \
+ libffi-devel \
+ zlib-devel \
+ wget \
+ make \
+ tar \
+ gcc \
+ gcc-c++ \
+ xz
+
+# Install build dependencies
+ADD install_build_dependencies.sh /install_build_dependencies.sh
+RUN chmod +x /install_build_dependencies.sh && \
+ /install_build_dependencies.sh && \
+ rm -rf /var/lib/apt/lists/*
+
+# Setup Python
+RUN cd /usr/src && \
+ wget https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tar.xz && \
+ tar xvf Python-3.8.9.tar.xz
+RUN cd /usr/src/Python-3.8.9 && \
+ ./configure --enable-optimizations --enable-loadable-sqlite-extensions --prefix=/usr && \
+ make altinstall
+
+# Install sscache
+ARG SCCACHE_VERSION="v0.7.5"
+ENV SCCACHE_HOME="/opt/sccache" \
+ SCCACHE_PATH="/opt/sccache/sccache"
+
+RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
+ SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
+ curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
+ tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
+
+ENV PATH="$SCCACHE_HOME:$PATH"
+
+# Use Python 3.8 as default
+RUN python3.8 -m venv venv
+ENV PATH="/venv/bin:$PATH"
+RUN alternatives --install /usr/bin/python python /usr/bin/python3.8 10
+
+# Setup pip
+ENV PIP_VERSION="24.0"
+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
+ python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
+ rm -f get-pip.py
+
+ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
+
+# Install Node
+ENV NODE_VERSION=21.7.3
+ENV NVM_DIR=/.nvm
+RUN mkdir -p $NVM_DIR
+RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
+RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
+ENV PATH="$NVM_DIR/versions/node/v${NODE_VERSION}/bin/:${PATH}"
+
diff --git a/.github/dockerfiles/ov_build/fedora_33/Dockerfile b/.github/dockerfiles/ov_build/fedora_33/Dockerfile
deleted file mode 100644
index bd6d01f8a15..00000000000
--- a/.github/dockerfiles/ov_build/fedora_33/Dockerfile
+++ /dev/null
@@ -1,24 +0,0 @@
-ARG REGISTRY="docker.io"
-FROM ${REGISTRY}/library/fedora:33
-
-USER root
-
-RUN yum update -y && yum install -y git
-
-# Install build dependencies
-ADD install_build_dependencies.sh /install_build_dependencies.sh
-RUN chmod +x /install_build_dependencies.sh && \
- /install_build_dependencies.sh && \
- rm -rf /var/lib/apt/lists/*
-
-# Install sscache
-ARG SCCACHE_VERSION="v0.7.5"
-ENV SCCACHE_HOME="/opt/sccache" \
- SCCACHE_PATH="/opt/sccache/sccache"
-
-RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
- SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
- curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
- tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
-
-ENV PATH="$SCCACHE_HOME:$PATH"
diff --git a/.github/dockerfiles/ov_test/fedora_32/Dockerfile b/.github/dockerfiles/ov_test/fedora_32/Dockerfile
new file mode 100644
index 00000000000..ef0a21b8743
--- /dev/null
+++ b/.github/dockerfiles/ov_test/fedora_32/Dockerfile
@@ -0,0 +1,18 @@
+ARG REGISTRY="docker.io"
+FROM ${REGISTRY}/library/fedora:32
+
+USER root
+
+RUN yum update -y && yum install -y \
+ git \
+ curl \
+ python3
+
+# Install Node
+ENV NODE_VERSION=21.7.3
+ENV NVM_DIR=/.nvm
+RUN mkdir -p $NVM_DIR
+RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
+RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
+ENV PATH="$NVM_DIR/versions/node/v${NODE_VERSION}/bin/:${PATH}"
+
diff --git a/.github/workflows/debian_10_arm.yml b/.github/workflows/debian_10_arm.yml
index 72326f489ac..84496a50b9a 100644
--- a/.github/workflows/debian_10_arm.yml
+++ b/.github/workflows/debian_10_arm.yml
@@ -82,6 +82,7 @@ jobs:
build-js: false
build-debian-packages: false
build-contrib: false
+ build-rpm-packages: false
cmake-options: |-
-DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/arm.toolchain.cmake \
-DTHREADS_PTHREAD_ARG="-pthread" \
diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora_29.yml
similarity index 50%
rename from .github/workflows/fedora.yml
rename to .github/workflows/fedora_29.yml
index ba2008c4f21..d76ccb8ec58 100644
--- a/.github/workflows/fedora.yml
+++ b/.github/workflows/fedora_29.yml
@@ -1,4 +1,4 @@
-name: Fedora (RHEL), Python 3.9
+name: Fedora 29 (RHEL 8.4), Python 3.8
on:
workflow_dispatch:
pull_request:
@@ -10,7 +10,7 @@ on:
concurrency:
# github.ref is not unique in post-commit
- group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-fedora33
+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-fedora-29
cancel-in-progress: true
permissions: read-all
@@ -63,162 +63,37 @@ jobs:
id: handle_docker
with:
images: |
- ov_build/fedora_33
+ ov_build/fedora_29
+ ov_test/fedora_32
registry: 'openvinogithubactions.azurecr.io'
dockerfiles_root_dir: '.github/dockerfiles'
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
Build:
needs: [Docker, Smart_CI]
- timeout-minutes: 150
- defaults:
- run:
- shell: bash
- runs-on: aks-linux-16-cores-32gb
- container:
- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_33 }}
- volumes:
- - /mount:/mount
- options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
- env:
- CMAKE_BUILD_TYPE: 'Release'
- CMAKE_GENERATOR: 'Ninja'
- CMAKE_CXX_COMPILER_LAUNCHER: sccache
- CMAKE_C_COMPILER_LAUNCHER: sccache
- SCCACHE_IGNORE_SERVER_IO_ERROR: 1
- SCCACHE_SERVER_PORT: 35555
- SCCACHE_ERROR_LOG: /__w/openvino/sccache_log.txt
- SCCACHE_LOG: warn
- GITHUB_WORKSPACE: '/__w/openvino/openvino'
- OPENVINO_REPO: /__w/openvino/openvino/openvino
- INSTALL_DIR: /__w/openvino/openvino/openvino_install
- INSTALL_TEST_DIR: /__w/openvino/openvino/tests_install
- BUILD_DIR: /__w/openvino/openvino/openvino_build
- SCCACHE_AZURE_KEY_PREFIX: fedora33_x86_64_Release
if: "!needs.smart_ci.outputs.skip_workflow"
- steps:
- - name: Clone OpenVINO
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- with:
- path: ${{ env.OPENVINO_REPO }}
- submodules: 'true'
-
- #
- # Print system info
- #
-
- - name: System info
- uses: ./openvino/.github/actions/system_info
-
- #
- # Dependencies
- #
-
- - name: Install python dependencies
- run: |
- python3 -m pip install -U pip
- # For Python API: build and wheel packaging
- python3 -m pip install -r ${OPENVINO_REPO}/src/bindings/python/wheel/requirements-dev.txt
-
- # For running ONNX frontend unit tests
- python3 -m pip install --force-reinstall -r ${OPENVINO_REPO}/src/frontends/onnx/tests/requirements.txt
-
- # For running TensorFlow frontend unit tests
- python3 -m pip install -r ${OPENVINO_REPO}/src/frontends/tensorflow/tests/requirements.txt
-
- # For running TensorFlow Lite frontend unit tests
- python3 -m pip install -r ${OPENVINO_REPO}/src/frontends/tensorflow_lite/tests/requirements.txt
-
- # For running Paddle frontend unit tests
- python3 -m pip install -r ${OPENVINO_REPO}/src/frontends/paddle/tests/requirements.txt
-
- #
- # Build
- #
-
- - name: CMake configure - OpenVINO
- run: |
- cmake \
- -G "${{ env.CMAKE_GENERATOR }}" \
+ uses: ./.github/workflows/job_build_linux.yml
+ with:
+ runner: 'aks-linux-16-cores-32gb'
+ container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_29 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+ event-name: ${{ github.event_name }}
+ os: 'fedora_29'
+ build-contrib: false
+ build-debian-packages: false
+ build-js: false
+ build-rpm-packages: true
+ cmake-options: |-
+ -G "Ninja" \
-DENABLE_CPPLINT=OFF \
-DENABLE_NCC_STYLE=OFF \
+ -DENABLE_INTEL_NPU=OFF \
-DENABLE_TESTS=ON \
-DENABLE_STRICT_DEPENDENCIES=OFF \
-DENABLE_SYSTEM_OPENCL=ON \
- -DENABLE_PYTHON_PACKAGING=ON \
-DCPACK_GENERATOR=TGZ \
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
- -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} \
- -DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
- -DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
- -S ${OPENVINO_REPO} \
- -B ${BUILD_DIR}
-
- - name: Cmake build - OpenVINO
- run: cmake --build ${BUILD_DIR} --parallel --verbose
-
- - name: Show sccache stats
- run: ${SCCACHE_PATH} --show-stats
-
- - name: Cmake install - OpenVINO
- run: |
- cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -P ${BUILD_DIR}/cmake_install.cmake
- cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_TEST_DIR} -DCOMPONENT=tests -P ${BUILD_DIR}/cmake_install.cmake
- cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCOMPONENT=python_wheels -P ${BUILD_DIR}/cmake_install.cmake
-
- - name: Pack Artifacts
- run: |
- pushd ${INSTALL_DIR}
- tar -czvf ${BUILD_DIR}/openvino_package.tar.gz *
- popd
-
- pushd ${INSTALL_TEST_DIR}
- tar -czvf ${BUILD_DIR}/openvino_tests.tar.gz *
- popd
-
- - name: Build RPM packages
- run: |
- cmake -UTBB* \
- -DCPACK_GENERATOR=RPM \
- -DENABLE_SYSTEM_TBB=ON \
- -DENABLE_TESTS=OFF \
- ${BUILD_DIR}
- cmake --build ${BUILD_DIR} --parallel --target package --verbose
-
- #
- # Upload build artifacts and logs
- #
- - name: Upload build logs
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- if: always()
- with:
- name: build_logs
- path: ${{ env.SCCACHE_ERROR_LOG }}
- if-no-files-found: 'ignore'
-
- - name: Upload openvino package
- if: ${{ always() }}
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- with:
- name: openvino_package
- path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
- if-no-files-found: 'error'
-
- - name: Upload openvino RPM packages
- if: ${{ always() }}
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- with:
- name: openvino_rpm_packages
- path: ${{ env.BUILD_DIR }}/*.rpm
- if-no-files-found: 'error'
-
- - name: Upload openvino tests package
- if: ${{ always() }}
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- with:
- name: openvino_tests
- path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
- if-no-files-found: 'error'
+ -DCMAKE_BUILD_TYPE=Release
RPM_Packages:
name: RPM packages
@@ -229,7 +104,7 @@ jobs:
shell: bash
runs-on: aks-linux-4-cores-16gb
container:
- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_33 }}
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.fedora_32 }}
env:
RPM_PACKAGES_DIR: /__w/openvino/packages/
@@ -277,9 +152,18 @@ jobs:
opt_in_out --help
ovc --help
+ CXX_Unit_Tests:
+ name: C++ unit tests
+ needs: [ Docker, Build, Smart_CI ]
+ uses: ./.github/workflows/job_cxx_unit_tests.yml
+ with:
+ runner: 'aks-linux-4-cores-16gb'
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_29 }}
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+
Overall_Status:
name: ci/gha_overall_status_fedora
- needs: [Smart_CI, Build, RPM_Packages]
+ needs: [Smart_CI, Build, CXX_Unit_Tests, RPM_Packages]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.yml
index 5fda729743a..6466685387c 100644
--- a/.github/workflows/job_build_linux.yml
+++ b/.github/workflows/job_build_linux.yml
@@ -35,17 +35,22 @@ on:
description: 'Whether to build OpenVINO JS Bindings'
type: boolean
required: false
- default: true
+ default: false
build-debian-packages:
description: 'Whether to build Debian packages'
type: boolean
required: false
- default: true
+ default: false
build-contrib:
description: 'Whether to build OpenVINO Contrib'
type: boolean
required: false
- default: true
+ default: false
+ build-rpm-packages:
+ description: 'Whether to build RPM Packages'
+ type: boolean
+ required: false
+ default: false
permissions: read-all
@@ -229,6 +234,17 @@ jobs:
cmake --build ${BUILD_DIR} --parallel
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR_JS} -P ${BUILD_DIR}/cmake_install.cmake
+ - name: Build RPM packages
+ if: ${{ inputs.build-rpm-packages }}
+ run: |
+ cmake -UTBB* \
+ -DCPACK_GENERATOR=RPM \
+ -DENABLE_SYSTEM_TBB=ON \
+ -DENABLE_PYTHON_PACKAGING=ON \
+ -DENABLE_TESTS=OFF \
+ ${BUILD_DIR}
+ cmake --build ${BUILD_DIR} --parallel --target package --verbose
+
#
# Upload build artifacts and logs
#
@@ -264,6 +280,14 @@ jobs:
path: ${{ env.BUILD_DIR }}/openvino_developer_package.tar.gz
if-no-files-found: 'error'
+ - name: Upload openvino RPM packages
+ if: ${{ inputs.build-rpm-packages }}
+ uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
+ with:
+ name: openvino_rpm_packages
+ path: ${{ env.BUILD_DIR }}/*.rpm
+ if-no-files-found: 'error'
+
- name: Upload openvino debian packages
if: ${{ inputs.build-debian-packages }}
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
diff --git a/.github/workflows/send_workflows_to_opentelemetry.yml b/.github/workflows/send_workflows_to_opentelemetry.yml
index 027daec5993..c90d951eea8 100644
--- a/.github/workflows/send_workflows_to_opentelemetry.yml
+++ b/.github/workflows/send_workflows_to_opentelemetry.yml
@@ -11,7 +11,8 @@ on:
- Code Style
- Code coverage
- Coverity (Ubuntu 20.04, Python 3.11)
- - Fedora (RHEL), Python 3.9
+ - Debian 10 ARM
+ - Fedora 29 (RHEL 8.4), Python 3.8
- Linux (Ubuntu 20.04, Python 3.8)
- Linux (Ubuntu 22.04, Python 3.11)
- Linux (Ubuntu 24.04, Python 3.12)
diff --git a/.github/workflows/ubuntu_20.yml b/.github/workflows/ubuntu_20.yml
index 7487ed62635..7be3e4033e7 100644
--- a/.github/workflows/ubuntu_20.yml
+++ b/.github/workflows/ubuntu_20.yml
@@ -85,6 +85,10 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_20_04'
+ build-contrib: true
+ build-debian-packages: true
+ build-js: true
+ build-rpm-packages: false
cmake-options: |-
-G "Ninja Multi-Config" \
-DENABLE_CPPLINT=OFF \
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.yml
index 175097fe9c3..9714c129b8d 100644
--- a/.github/workflows/ubuntu_22.yml
+++ b/.github/workflows/ubuntu_22.yml
@@ -87,6 +87,10 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_22_04'
+ build-js: true
+ build-contrib: true
+ build-debian-packages: true
+ build-rpm-packages: false
cmake-options: |-
-G "Ninja Multi-Config" \
-DENABLE_CPPLINT=OFF \
diff --git a/.github/workflows/ubuntu_22_dpcpp.yml b/.github/workflows/ubuntu_22_dpcpp.yml
index bb4061dd734..1a5c69f03fe 100644
--- a/.github/workflows/ubuntu_22_dpcpp.yml
+++ b/.github/workflows/ubuntu_22_dpcpp.yml
@@ -77,6 +77,7 @@ jobs:
build-js: false
build-debian-packages: false
build-contrib: false
+ build-rpm-packages: false
cmake-options: |-
-G "Ninja Multi-Config" \
-DENABLE_CPPLINT=OFF \
diff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.yml
index 3a288595fbc..ce55afe426b 100644
--- a/.github/workflows/ubuntu_24.yml
+++ b/.github/workflows/ubuntu_24.yml
@@ -83,6 +83,10 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_24_04'
+ build-rpm-packages: false
+ build-js: true
+ build-debian-packages: true
+ build-contrib: true
cmake-options: |-
-G "Ninja Multi-Config" \
-DENABLE_CPPLINT=OFF \
diff --git a/docs/dev/ci/github_actions/adding_tests.md b/docs/dev/ci/github_actions/adding_tests.md
index a31cd4ded0c..f3e3ed7b5c7 100644
--- a/docs/dev/ci/github_actions/adding_tests.md
+++ b/docs/dev/ci/github_actions/adding_tests.md
@@ -122,7 +122,7 @@ Refer to the [official GitHub Actions documentation](https://docs.github.com/en/
You can refer to the [structural overview of the existing workflows](./overview.md#structure-of-the-workflows) as a template for a new workflow.
-The [`fedora.yml`](./../../../../.github/workflows/fedora.yml) workflow example includes:
+The [`fedora_29.yml`](./../../../../.github/workflows/fedora_29.yml) workflow example includes:
* The following jobs:
* `Smart_CI` - the [Smart CI system](./smart_ci.md).
* `Build` - installing prerequisites, building OpenVINO with the specified CMake configuration, packaging and uploading artifacts.
diff --git a/docs/dev/ci/github_actions/overview.md b/docs/dev/ci/github_actions/overview.md
index 746ac2926c7..8daf56a3a22 100644
--- a/docs/dev/ci/github_actions/overview.md
+++ b/docs/dev/ci/github_actions/overview.md
@@ -38,7 +38,7 @@ The three main ones, providing most coverage for different operating systems, ar
Additionally, several supporting workflows build and test OpenVINO for other operating systems and processor architectures:
* [Android ARM64](../../../../.github/workflows/android_arm64.yml)
-* [Fedora](../../../../.github/workflows/fedora.yml)
+* [Fedora](../../../../.github/workflows/fedora_29.yml)
* [Linux Conditional Compilation](../../../../.github/workflows/linux_conditional_compilation.yml)
* [Linux RISC-V](../../../../.github/workflows/linux_riscv.yml)
* [Windows Conditional Compilation](../../../../.github/workflows/windows_conditional_compilation.yml)