Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/actions/create_manifest/manifest_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/handle_docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ runs:
using: 'composite'
steps:
- name: Checkout head
uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Checkout base
uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
ref: ${{ github.base_ref || github.event.merge_group.base_ref }}
sparse-checkout: ${{ inputs.dockerfiles_root_dir }}/docker_tag
Expand Down
18 changes: 4 additions & 14 deletions .github/actions/handle_docker/get_images_to_build.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import argparse
import json
import re
import sys

from distutils.util import strtobool
from helpers import *
from images_api import *


def str_to_bool(value):
"""Convert string to boolean, replacing deprecated distutils.util.strtobool"""
value = value.lower()
if value in ('y', 'yes', 't', 'true', 'on', '1'):
return True
elif value in ('n', 'no', 'f', 'false', 'off', '0'):
return False
else:
raise ValueError(f"Invalid truth value: {value!r}")


def parse_args():
parser = argparse.ArgumentParser(description='Returns list of Docker images to build for a given workflow')
parser.add_argument('-i', '--images', required=True, help='Comma-separated docker images')
Expand All @@ -33,9 +23,9 @@ def parse_args():
parser.add_argument('--base_tag_file', default=None, required=False, help='Base docker tag file path')
parser.add_argument('--ref_name', required=False, default='', help='GitHub ref name')
parser.add_argument('--repo', default='openvinotoolkit/openvino', help='GitHub repository')
parser.add_argument('--docker_env_changed', type=lambda x: bool(str_to_bool(x)), default=True,
parser.add_argument('--docker_env_changed', type=lambda x: bool(strtobool(x)), default=True,
help='Whether PR changes docker env')
parser.add_argument('--dockerfiles_changed', type=lambda x: bool(str_to_bool(x)), default=True,
parser.add_argument('--dockerfiles_changed', type=lambda x: bool(strtobool(x)), default=True,
help='Whether PR changes dockerfiles')
parser.add_argument('--action_path', default='.github/actions/handle_docker', help='Path to this GitHub action')
parser.add_argument('--push', action='store_true', required=False, help='Whether to push images to registry')
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/handle_docker/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import logging
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/handle_docker/images_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import logging
Expand Down
4 changes: 1 addition & 3 deletions .github/actions/handle_docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
ghapi==1.0.9
# pin fastcore CVS-179495
fastcore==1.12.1
ghapi==1.0.4
27 changes: 2 additions & 25 deletions .github/actions/install_ov_wheels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ inputs:
required: true
wheels-to-install:
description: 'List of wheel names to install in the form of "openvino openvino_tokenizers"'
free-threaded-python:
description: 'Whether to look for free-threaded Python wheels (with "cpXYt" in their names)'
required: false
default: 'false'
runs:
using: 'composite'
steps:
Expand All @@ -25,18 +21,8 @@ runs:
Write-Host "Wheels folder: $(Get-ChildItem -Path ${{ inputs.wheels-dir-path }})"

foreach ($wheel in $("${{ inputs.wheels-to-install }}" -split ' ')) {
Write-Host "Installing the $wheel wheel"

# Search for the python-specific wheel version and install it if exists
# Free-threading Python wheels have 'cpXYt' in their names
if ("${{ inputs.free-threaded-python }}" -eq "true") {
Write-Host "Looking for free-threaded Python wheel: $wheel-*cp$pyVersion*t*.whl"
$wheelPath = Get-ChildItem -Path ${{ inputs.wheels-dir-path }} -Filter "$wheel-*cp$pyVersion*t*.whl" | Select-Object -First 1
} else {
Write-Host "Looking for non-free-threaded Python wheel: $wheel-*cp$pyVersion*.whl"
$wheelPath = Get-ChildItem -Path ${{ inputs.wheels-dir-path }} -Filter "$wheel-*cp$pyVersion*.whl" | Where-Object { $_.Name -notlike "*cp$pyVersion*t*.whl" } | Select-Object -First 1
}

$wheelPath = Get-ChildItem -Path ${{ inputs.wheels-dir-path }} -Filter "$wheel-*cp$pyVersion*.whl" | Select-Object -First 1
Write-Host "Wheel path: $($wheelPath)"
if ($wheelPath) {
python3 -m pip install $wheelPath.FullName
Expand All @@ -62,16 +48,7 @@ runs:
echo "Installing the ${wheel} wheel"

# Search for the python-specific wheel version and install it if exists

# free-threading Python wheels have 'cpXYt' in their names
if [ "${{ inputs.free-threaded-python }}" == "true" ]; then
echo "Looking for free-threaded Python wheel: $wheel-*cp$pyVersion*t*.whl"
wheel_path=$(find ${{ inputs.wheels-dir-path }} -name "$wheel-*cp${py_version}t*.whl")
else
echo "Looking for non-free-threaded Python wheel: $wheel-*cp$pyVersion*.whl"
wheel_path=$(find ${{ inputs.wheels-dir-path }} -name "$wheel-*cp$py_version*.whl" ! -name "*cp${py_version}t*.whl")
fi

wheel_path=$(find ${{ inputs.wheels-dir-path }} -name "$wheel-*cp$py_version*.whl")
echo "Wheel path: ${wheel_path}"
if [ -n "${wheel_path}" ]; then
python3 -m pip install $wheel_path
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/openvino_provider/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ runs:
env:
ACTION_REF: ${{ github.action_ref || github.base_ref || github.event.merge_group.base_ref || github.ref }}

- uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: 'openvinotoolkit/openvino'
ref: ${{ steps.get_action_revision.outputs.action_ref }}
sparse-checkout: .github/actions

- name: Clone OpenVINO to get HEAD commit
if: inputs.revision == 'HEAD'
uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: 'openvinotoolkit/openvino'
path: 'openvino'
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/restore_artifacts/restore_artifacts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations
Expand Down
7 changes: 1 addition & 6 deletions .github/actions/setup_python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ inputs:
description: 'If the runner is self-hosted'
required: false
default: 'true'
allow-prereleases:
description: 'If pre-release versions of Python are allowed'
required: false
default: 'false'
runs:
using: 'composite'
steps:
Expand All @@ -44,10 +40,9 @@ runs:

- if: ${{ runner.os == 'macOS' || runner.os == 'Windows' || (runner.os == 'Linux' && steps.check_python.outputs.installed == 'false') }}
name: Setup Python ${{ inputs.version }}
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ inputs.version }}
allow-prereleases: ${{ inputs.allow-prereleases }}

- if: ${{ inputs.should-setup-pip-paths == 'true' && runner.os != 'Windows' }}
name: Setup pip variables (cache and install path)
Expand Down
26 changes: 20 additions & 6 deletions .github/actions/smart-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ runs:
using: "composite"
steps:
- name: checkout wait-for-check action
uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
repository: openvinotoolkit/openvino
sparse-checkout: .github/actions/wait-for-check-completion
sparse-checkout-cone-mode: false
path: .github/actions_deps/wait_for_check

- name: Wait for labeler to finish
uses: ./.github/actions/wait-for-check-completion
uses: ./.github/actions_deps/wait_for_check/.github/actions/wait-for-check-completion
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -82,10 +83,13 @@ runs:
timeout: 300

- name: checkout components file
uses: ababushk/checkout@9bec46a94a83db82acd4303e7627d88db71402a5 # cherry_pick_retries
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
sparse-checkout: .github/components.yml
sparse-checkout: |
.github/components.yml
.github/labeler.yml
sparse-checkout-cone-mode: false
path: .github/actions_deps/config

- name: Install Python dependencies
uses: py-actions/py-dependency-install@30aa0023464ed4b5b116bd9fbdab87acf01a484e # v4.1.0
Expand All @@ -102,14 +106,24 @@ runs:
- name: Smart CI
id: smart_ci
run: |
COMPONENTS_CONFIG="${{ inputs.components_config }}"
if [ "$COMPONENTS_CONFIG" == ".github/components.yml" ]; then
COMPONENTS_CONFIG=".github/actions_deps/config/.github/components.yml"
fi

LABELER_CONFIG="${{ inputs.labeler_config }}"
if [ "$LABELER_CONFIG" == ".github/labeler.yml" ]; then
LABELER_CONFIG=".github/actions_deps/config/.github/labeler.yml"
fi

python ${{ github.action_path }}/smart_ci.py \
$([[ -n "${{ inputs.pr }}" ]] && echo '--pr ${{ inputs.pr }}' || echo '-s ${{ inputs.commit_sha }}') \
-r ${{ inputs.repository }} \
-f "${{ inputs.ref_name }}" \
-p "${{ inputs.component_pattern }}" \
-c "${{ inputs.components_config }}" \
-c "$COMPONENTS_CONFIG" \
-m "${{ inputs.components_config_schema || env.DEFAULT_CONFIG_SCHEMA }}" \
-l "${{ inputs.labeler_config }}" \
-l "$LABELER_CONFIG" \
--enable_for_org "${{ inputs.enable_for_org }}" \
--skip-when-only-listed-labels-set "${{ inputs.skip_when_only_listed_labels_set }}" \
--skip-when-only-listed-files-changed "${{ inputs.skip_when_only_listed_files_changed }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/smart-ci/smart_ci.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import os
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/smart-ci/smart_ci_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import logging
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/store_artifacts/store_artifacts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018-2026 Intel Corporation
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations
Expand Down
20 changes: 10 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Poland"
open-pull-requests-limit: 20
open-pull-requests-limit: 10
assignees:
- "p-wysocki"
- "akuporos"
Expand All @@ -30,7 +30,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Poland"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
assignees:
- "p-wysocki"
- "akuporos"
Expand All @@ -46,7 +46,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Poland"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
assignees:
- "p-wysocki"
- "akuporos"
Expand All @@ -60,7 +60,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Asia/Dubai"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
assignees:
- "rkazants"
- "andrei-kochin"
Expand All @@ -82,7 +82,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Asia/Dubai"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
assignees:
- "Wovchena"
- "p-wysocki"
Expand All @@ -96,7 +96,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Asia/Dubai"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
assignees:
- "Wovchena"
- "p-wysocki"
Expand All @@ -110,7 +110,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Asia/Dubai"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
assignees:
- "Wovchena"
- "p-wysocki"
Expand All @@ -124,7 +124,7 @@ updates:
interval: "daily"
time: "09:00"
timezone: "Asia/Dubai"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
assignees:
- "Wovchena"
- "p-wysocki"
Expand All @@ -147,7 +147,7 @@ updates:
- "akashchi"
- "mryzhov"
- "akladiev"
open-pull-requests-limit: 10
open-pull-requests-limit: 3

# Docker images
- package-ecosystem: docker
Expand All @@ -163,4 +163,4 @@ updates:
- "akashchi"
- "mryzhov"
- "akladiev"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
2 changes: 1 addition & 1 deletion .github/dockerfiles/docker_tag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pr-33888
pr-33267
44 changes: 1 addition & 43 deletions .github/dockerfiles/ov_build/debian_10_arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -195,55 +195,13 @@ RUN cd Python-3.13.2 && make distclean && \
ac_cv_file__dev_ptc=no && \
make -j $(nproc) && make altinstall

# Cross-compile Python3.14 for ARM
RUN curl -O https://www.python.org/ftp/python/3.14.0/Python-3.14.0.tgz && \
tar -xf Python-3.14.0.tgz && \
cd Python-3.14.0 && \
LDFLAGS="-L/usr/local/lib64" ./configure --with-openssl=/usr/local --with-openssl-rpath=auto && \
make -j $(nproc) && make altinstall

# Cross-compile Python3.14 for ARM
RUN cd Python-3.14.0 && make distclean && \
./configure \
--host=arm-linux-gnueabihf \
--build=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE) \
--disable-ipv6 \
--enable-shared \
--prefix=/opt/python3.14_arm \
--with-build-python \
ac_cv_file__dev_ptmx=no \
ac_cv_file__dev_ptc=no && \
make -j4 && make altinstall

# Cross-compile Python3.14t for ARM (with --disable-gil)
RUN cp -r Python-3.14.0 Python-3.14t && \
cd Python-3.14t && make distclean && \
LDFLAGS="-L/usr/local/lib64" ./configure --disable-gil --with-openssl=/usr/local --with-openssl-rpath=auto --prefix=/usr/local/bin/python3.14t && \
make -j4 && make altinstall && \
ln -s /usr/local/bin/python3.14t/bin/python3.14 /usr/bin/python3.14t

# Cross-compile Python3.14t for ARM
RUN cd Python-3.14t && make distclean && \
./configure \
--host=arm-linux-gnueabihf \
--build=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE) \
--disable-ipv6 \
--enable-shared \
--prefix=/opt/python3.14t_arm \
--with-build-python \
ac_cv_file__dev_ptmx=no \
ac_cv_file__dev_ptc=no && \
make -j4 && make altinstall

# Setup pip
ENV PIP_VERSION="24.0"
RUN python3 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.10 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.11 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.12 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.13 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.14 -m pip install --upgrade pip==${PIP_VERSION} && \
python3.14t -m pip install --upgrade pip==${PIP_VERSION}
python3.13 -m pip install --upgrade pip==${PIP_VERSION}

# Use Python 3.11 as default
# Using venv here because other methods to switch the default Python break both system and wheels build
Expand Down
Loading