OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
CVS-189179 ubuntu26 workflow (#36590)
Jakub Koniuszewskiccb2f05fc9e8
diff --git a/.github/actions/common/constants.py b/.github/actions/common/constants.pyindex ccacc805945..0fd72cfe3c8 100644--- a/.github/actions/common/constants.py+++ b/.github/actions/common/constants.py@@ -18,6 +18,7 @@ productTypes = ('public_linux_ubuntu_22_04_x86_64_release','public_linux_ubuntu_22_04_dpcpp_x86_64_release','public_linux_ubuntu_24_04_x86_64_release',+ 'public_linux_ubuntu_26_04_x86_64_release','public_windows_vs2019_release','public_windows_vs2019_debug','public_windows_vs2022_release',@@ -41,6 +42,7 @@ platformKeys = ('ubuntu20_x86_64','ubuntu22_x86_64','ubuntu24_x86_64',+ 'ubuntu26_x86_64','macos_12_6_arm64','macos_12_6_x86_64','macos_14_7_arm64',@@ -57,6 +59,7 @@ PlatformMapping = {PlatformKey.UBUNTU22_ARM64_CROSS_COMPILE: ProductType.PUBLIC_LINUX_UBUNTU_22_04_ARM64_CROSS_COMPILE_RELEASE,PlatformKey.UBUNTU22_X86_64: ProductType.PUBLIC_LINUX_UBUNTU_22_04_X86_64_RELEASE,PlatformKey.UBUNTU24_X86_64: ProductType.PUBLIC_LINUX_UBUNTU_24_04_X86_64_RELEASE,+ PlatformKey.UBUNTU26_X86_64: ProductType.PUBLIC_LINUX_UBUNTU_26_04_X86_64_RELEASE,PlatformKey.WINDOWS_X86_64: ProductType.PUBLIC_WINDOWS_VS2022_RELEASE,PlatformKey.MACOS_12_6_X86_64: ProductType.PUBLIC_MACOS_X86_64_RELEASE,PlatformKey.MACOS_14_7_ARM64: ProductType.PUBLIC_MACOS_ARM64_RELEASE,diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex e6e1ea0cf61..d246c27005c 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-36464+pr-36590diff --git a/.github/dockerfiles/ov_build/ubuntu_26_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_26_04_x64/Dockerfilenew file mode 100644index 00000000000..52121b90980--- /dev/null+++ b/.github/dockerfiles/ov_build/ubuntu_26_04_x64/Dockerfile@@ -0,0 +1,70 @@+# Copyright (C) 2018-2026 Intel Corporation+# SPDX-License-Identifier: Apache-2.0++ARG REGISTRY="docker.io"+FROM ${REGISTRY}/library/ubuntu:26.04++USER root++# APT configuration+RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \+ echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \+ echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \+ echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf++ENV DEBIAN_FRONTEND="noninteractive" \+ TZ="Europe/London"++RUN apt-get update && \+ apt-get install software-properties-common && \+ add-apt-repository --yes --no-update ppa:git-core/ppa && \+ apt-get update && \+ apt-get install \+ curl \+ git \+ gpg-agent \+ tzdata \+ # parallel gzip+ pigz \+ # System Python (Ubuntu 26.04 ships Python 3.14)+ python3-dev \+ python3-venv \+ python3-pip \+ python3-full \+ # For Java API+ default-jdk \+ && \+ rm -rf /var/lib/apt/lists/*++# Install build dependencies+ADD install_build_dependencies.sh /install_build_dependencies.sh+RUN chmod +x /install_build_dependencies.sh && \+ bash -e /install_build_dependencies.sh && \+ rm -rf /var/lib/apt/lists/*++# Install sccache+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"++# Create a virtual environment for the system Python as recent Ubuntu releases+# mark the system Python as externally managed (PEP 668)+RUN python3 -m venv venv+ENV PATH="/venv/bin:$PATH"++# Setup pip+ENV PIP_VERSION="24.0"+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \+ /venv/bin/python3 -m pip install --upgrade pip==${PIP_VERSION}++# Install newer ninja for consistency across images+RUN python3 -m pip install --no-cache-dir ninja==1.13.0++ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}diff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.ymlindex 36a599b830a..5a16a36d21a 100644--- a/.github/workflows/job_build_linux.yml+++ b/.github/workflows/job_build_linux.yml@@ -70,6 +70,11 @@ on:type: booleanrequired: falsedefault: false+ install-frontend-test-deps:+ description: 'Whether to install TensorFlow/TFLite/Paddle frontend unit test requirements (no Python 3.14 wheels yet)'+ type: boolean+ required: false+ default: truepermissions: read-all@@ -194,14 +199,18 @@ jobs:# For running ONNX frontend unit testspython3 -m pip install -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+ if [[ "${INSTALL_FE_TEST_DEPS}" == "true" ]]; then+ # 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 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+ # For running Paddle frontend unit tests+ python3 -m pip install -r ${OPENVINO_REPO}/src/frontends/paddle/tests/requirements.txt+ fi+ env:+ INSTALL_FE_TEST_DEPS: ${{ inputs.install-frontend-test-deps }}## Build@@ -290,9 +299,9 @@ jobs:env:OS: ${{ inputs.os }}run: |- # Ubuntu 24 does not allow using the system Python directly so+ # Ubuntu 24+ does not allow using the system Python directly so# we have to use Python from the virtual environment created in Docker- [[ "${OS}" == "ubuntu_24_04" ]] && python_exec=/venv/bin/python3 || python_exec=/usr/bin/python3+ [[ "${OS}" == "ubuntu_24_04" || "${OS}" == "ubuntu_26_04" ]] && python_exec=/venv/bin/python3 || python_exec=/usr/bin/python3$python_exec -m pip install -U pip$python_exec -m pip install -r ${OPENVINO_REPO}/src/bindings/python/wheel/requirements-dev.txtcmake -UPython* -U_Python* -UPYTHON* \diff --git a/.github/workflows/ubuntu_26.yml b/.github/workflows/ubuntu_26.ymlnew file mode 100644index 00000000000..926188a3f32--- /dev/null+++ b/.github/workflows/ubuntu_26.yml@@ -0,0 +1,114 @@+name: Linux (Ubuntu 26.04, Python 3.14)+run-name: ${{ github.event_name == 'schedule' && 'Linux (Ubuntu 26.04, Python 3.14) - Nightly' || 'Linux (Ubuntu 26.04, Python 3.14)' }}+on:+ workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: false+ push:+ branches:+ - master+ - 'releases/**'++concurrency:+ # github.ref is not unique in post-commit+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-ubuntu-26+ cancel-in-progress: true++permissions: read-all++env:+ PIP_CACHE_PATH: /mount/caches/pip/linux++jobs:+ Smart_CI:+ runs-on: ubuntu-latest+ if: github.event.pull_request.draft == false || github.run_attempt > 1+ outputs:+ affected_components: "${{ steps.smart_ci.outputs.affected_components }}"+ changed_components: "${{ steps.smart_ci.outputs.changed_components }}"+ skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"+ steps:+ - name: checkout action+ uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries+ timeout-minutes: 15+ with:+ sparse-checkout: .github/actions/smart-ci++ - name: Get affected components+ id: smart_ci+ uses: ./.github/actions/smart-ci+ with:+ repository: ${{ github.repository }}+ pr: ${{ github.event.number }}+ commit_sha: ${{ github.sha }}+ ref_name: ${{ github.ref_name }}+ component_pattern: "category: (.*)"+ repo_token: ${{ secrets.GITHUB_TOKEN }}+ skip_when_only_listed_labels_set: 'docs'+ skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,.github/workflows/ci-doctor.lock.yml'++ - name: Show affected components+ run: |+ echo "${{ toJSON(steps.smart_ci.outputs.affected_components) }}"+ shell: bash++ Docker:+ needs: Smart_CI+ runs-on: aks-linux-4-cores-16gb-docker-build+ container:+ image: openvinogithubactions.azurecr.io/docker_build:0.2+ volumes:+ - /mount:/mount+ outputs:+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"+ steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_build\":{\"ubuntu_26_04_x64\":\"mock\"}}" >> "$GITHUB_OUTPUT"++ - name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}+ uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries+ timeout-minutes: 15++ - uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}+ id: handle_docker+ with:+ images: |+ ov_build/ubuntu_26_04_x64+ registry: 'openvinogithubactions.azurecr.io'+ dockerfiles_root_dir: '.github/dockerfiles'+ changed_components: ${{ needs.smart_ci.outputs.changed_components }}++ Build:+ needs: [Docker, Smart_CI]+ if: "!needs.smart_ci.outputs.skip_workflow"+ uses: ./.github/workflows/job_build_linux.yml+ with:+ runner: 'aks-linux-16-cores-32gb'+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_26_04_x64 }}+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+ event-name: ${{ github.event_name }}+ os: 'ubuntu_26_04'+ build-rpm-packages: false+ build-js: false+ build-debian-packages: true+ build-contrib: true+ build-additional-python-packages: false+ install-frontend-test-deps: false+ target-branch: ${{ inputs.target-branch }}+ cmake-options: >-+ -G 'Ninja Multi-Config'+ -DENABLE_NCC_STYLE=OFF+ -DENABLE_TESTS=OFF+ -DENABLE_STRICT_DEPENDENCIES=OFF+ -DENABLE_SYSTEM_OPENCL=ON+ -DENABLE_INTEL_NPU=OFF+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON+ -DCPACK_GENERATOR=TGZ+ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON