Skip to content

Commit ba7f352

Browse files
authored
Merge branch 'blob_stream_commit' into intel_npu/new_caching_api_2
2 parents dfa4c22 + f0c2163 commit ba7f352

File tree

768 files changed

+33415
-24526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

768 files changed

+33415
-24526
lines changed

.github/dockerfiles/docker_tag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pr-27430
1+
pr-27597
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
ARG REGISTRY="docker.io"
2+
FROM ${REGISTRY}/library/debian:10.13
3+
4+
USER root
5+
6+
# APT configuration
7+
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
8+
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
9+
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
10+
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
11+
12+
ENV DEBIAN_FRONTEND="noninteractive" \
13+
TZ="Europe/London"
14+
15+
RUN apt-get update && \
16+
apt-get install \
17+
git \
18+
libc6-dev \
19+
# parallel gzip
20+
pigz \
21+
# Python
22+
python3 \
23+
python3-pip \
24+
python3-dev \
25+
python3-venv \
26+
python3-distutils \
27+
# To build Python 3.10 from source
28+
build-essential \
29+
libffi-dev \
30+
libgdbm-dev \
31+
libc6-dev \
32+
libssl-dev \
33+
zlib1g-dev \
34+
libbz2-dev \
35+
libreadline-dev \
36+
libsqlite3-dev \
37+
libncurses5-dev \
38+
libncursesw5-dev \
39+
xz-utils \
40+
tk-dev \
41+
libxml2-dev \
42+
libxmlsec1-dev \
43+
liblzma-dev \
44+
wget \
45+
curl \
46+
&& \
47+
rm -rf /var/lib/apt/lists/*
48+
49+
# Install openvino dependencies
50+
ADD scripts/install_dependencies/install_openvino_dependencies.sh /install_openvino_dependencies.sh
51+
RUN chmod +x /install_openvino_dependencies.sh && \
52+
/install_openvino_dependencies.sh && \
53+
rm -rf /var/lib/apt/lists/*
54+
55+
# Setup Python 3.10
56+
RUN wget https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tar.xz
57+
58+
RUN tar -xf Python-3.10.9.tar.xz && \
59+
cd Python-3.10.9 && \
60+
./configure --enable-optimizations && \
61+
make -j 8 && \
62+
make altinstall
63+
64+
# Setup pip
65+
ENV PIP_VERSION="24.0"
66+
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
67+
python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
68+
rm -f get-pip.py
69+
70+
# Use Python 3.10 as default instead of Python 3.7
71+
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
72+
RUN python3.10 -m venv venv
73+
ENV PATH="/venv/bin:$PATH"
74+
75+
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
76+
ENV PIP_INSTALL_PATH=/venv/lib/python3.10/site-packages

.github/dockerfiles/ov_test/fedora_33/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ USER root
66
RUN yum update -y && yum install -y \
77
git \
88
curl \
9-
python3
9+
python3 \
10+
findutils \
11+
ocl-icd \
12+
ocl-icd-devel \
13+
# parallel gzip
14+
pigz \
15+
xz
1016

1117
# Install Node
1218
ENV NODE_VERSION=21.7.3
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
ARG REGISTRY="docker.io"
2+
FROM ${REGISTRY}/library/ubuntu:20.04
3+
4+
USER root
5+
6+
# APT configuration
7+
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
8+
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
9+
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
10+
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
11+
12+
ENV DEBIAN_FRONTEND="noninteractive" \
13+
TZ="Europe/London"
14+
15+
RUN apt-get update && \
16+
apt-get install software-properties-common && \
17+
add-apt-repository --yes --no-update ppa:git-core/ppa && \
18+
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
19+
apt-get update && \
20+
apt-get install \
21+
curl \
22+
git \
23+
gpg-agent \
24+
tzdata \
25+
# parallel gzip
26+
pigz \
27+
# Python
28+
python3.13-dev \
29+
python3.13-venv \
30+
&& \
31+
rm -rf /var/lib/apt/lists/*
32+
33+
# Install openvino dependencies
34+
ADD scripts/install_dependencies/install_openvino_dependencies.sh /install_openvino_dependencies.sh
35+
RUN chmod +x /install_openvino_dependencies.sh && \
36+
/install_openvino_dependencies.sh && \
37+
rm -rf /var/lib/apt/lists/*
38+
39+
# Setup pip
40+
ENV PIP_VERSION="24.0"
41+
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
42+
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
43+
python3.13 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
44+
rm -f get-pip.py
45+
46+
# Use Python 3.13 as default instead of Python 3.8
47+
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
48+
RUN python3.13 -m venv venv
49+
ENV PATH="/venv/bin:$PATH"
50+
51+
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
52+
ENV PIP_INSTALL_PATH=/venv/lib/python3.13/site-packages

.github/workflows/send_workflows_to_opentelemetry.yml renamed to .github/workflows/export_workflow_metrics.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
name: Export workflow metrics (BETA)
1+
name: Export workflow metrics
22

33
on:
44
workflow_run:
55
workflows:
6-
- Android ARM64 with vcpkg
7-
- Android x64
8-
- Cleanup caches
9-
- Coverity (Ubuntu 20.04, Python 3.11)
10-
- Debian 10 ARM
11-
- Fedora 29 (RHEL 8.4), Python 3.9
12-
- Linux (Ubuntu 20.04, Python 3.9)
13-
- Linux (Ubuntu 22.04, Python 3.11)
14-
- Linux (Ubuntu 24.04, Python 3.12)
15-
- Linux ARM64 (Ubuntu 20.04, Python 3.11)
16-
- Linux Static CC (Ubuntu 22.04, Python 3.11, Clang)
17-
- Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)
18-
- Linux (Ubuntu 22.04, Python 3.11, Intel DPC++ Compiler)
19-
- Linux CPU Plugin Snippets with LIBXSMM (Ubuntu 20.04)
20-
- Linux Sanitizers (Ubuntu 20.04, Python 3.9)
21-
- macOS (Python 3.11)
22-
- macOS ARM64 (Python 3.11)
23-
- Manylinux 2014
24-
- Webassembly
25-
- Windows (VS 2019, Python 3.11, Release)
26-
- Windows (VS 2019, Python 3.11, Debug)
27-
- Windows Conditional Compilation (VS 2022, Python 3.11)
28-
- Rerun Workflow with Known Errors
6+
- "Android ARM64 with vcpkg"
7+
- "Android x64"
8+
- "Cleanup caches"
9+
- "Coverity (Ubuntu 20.04, Python 3.11)"
10+
- "Debian 10 ARM"
11+
- "Fedora 29 (RHEL 8.4), Python 3.9"
12+
- "Linux (Ubuntu 20.04, Python 3.9)"
13+
- "Linux (Ubuntu 22.04, Python 3.11)"
14+
- "Linux (Ubuntu 24.04, Python 3.12)"
15+
- "Linux ARM64 (Ubuntu 20.04, Python 3.11)"
16+
- "Linux Static CC (Ubuntu 22.04, Python 3.11, Clang)"
17+
- "Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)"
18+
- "Linux (Ubuntu 22.04, Python 3.11, Intel DPC\\+\\+ Compiler)"
19+
- "Linux CPU Plugin Snippets with LIBXSMM (Ubuntu 20.04)"
20+
- "Linux Sanitizers (Ubuntu 20.04, Python 3.9)"
21+
- "macOS (Python 3.11)"
22+
- "macOS ARM64 (Python 3.11)"
23+
- "Manylinux 2014"
24+
- "Webassembly"
25+
- "Windows (VS 2019, Python 3.11, Release)"
26+
- "Windows (VS 2019, Python 3.11, Debug)"
27+
- "Windows Conditional Compilation (VS 2022, Python 3.11)"
28+
- "Rerun Workflow with Known Errors"
2929
types:
3030
- completed
3131

3232
permissions: read-all
3333

3434
jobs:
35-
otel-export-trace:
35+
export-workflow-metrics:
3636
name: Export finished workflow metrics
3737
runs-on: aks-linux-2-cores-8gb
3838
if: ${{ github.repository_owner == 'openvinotoolkit' }}

.github/workflows/job_python_api_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ jobs:
101101
--junitxml=${INSTALL_TEST_DIR}/TEST-Pyngraph.xml \
102102
--ignore=${INSTALL_TEST_DIR}/tests/pyopenvino/tests/test_utils/test_utils.py
103103
104-
- name: Python API Tests -- numpy>=2.0.0
104+
- name: Python API Tests -- numpy<2.0.0
105105
run: |
106106
python3 -m pip uninstall -y numpy
107-
python3 -m pip install "numpy~=2.0.0"
107+
python3 -m pip install "numpy~=1.26.0"
108108
python3 -m pip install -r ${INSTALL_TEST_DIR}/tests/bindings/python/requirements_test.txt
109109
# for 'template' extension
110110
export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/tests/:$LD_LIBRARY_PATH

.github/workflows/manylinux_2014.yml

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ jobs:
6969
images: |
7070
ov_build/ubuntu_22_04_x64_docker
7171
ov_build/manylinux2014_x86_64
72+
ov_test/ubuntu_20_04_x64_py313
73+
ov_test/ubuntu_22_04_x64
74+
ov_test/ubuntu_24_04_x64
75+
ov_test/fedora_33
76+
ov_test/debian_10_py310
7277
registry: 'openvinogithubactions.azurecr.io'
7378
dockerfiles_root_dir: '.github/dockerfiles'
7479
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
@@ -92,6 +97,7 @@ jobs:
9297
OPENVINO_REPO: ${{ github.workspace }}/src
9398
INSTALL_DIR: ${{ github.workspace }}/install/openvino
9499
INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
100+
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
95101
BUILD_DIR: ${{ github.workspace }}/build
96102
DOCKER_CONFIG: "/mount/.docker"
97103
CMAKE_CXX_COMPILER_LAUNCHER: sccache
@@ -135,6 +141,7 @@ jobs:
135141
-v ${{ env.OPENVINO_REPO }}:/work/src \
136142
-v ov_build_cache:/work/build \
137143
-v ${{ env.INSTALL_DIR }}:/work/install \
144+
-v ${{ env.INSTALL_TEST_DIR }}:/work/api_tests \
138145
-e SCCACHE_AZURE_BLOB_CONTAINER \
139146
-e SCCACHE_AZURE_CONNECTION_STRING \
140147
-e SCCACHE_SERVER_PORT \
@@ -148,16 +155,18 @@ jobs:
148155
-w /work/src \
149156
${{ fromJSON(needs.docker.outputs.images).ov_build.manylinux2014_x86_64 }} \
150157
/bin/bash -c "
151-
cmake -DENABLE_CPPLINT=OFF -DENABLE_NCC_STYLE=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_PYTHON=OFF -DENABLE_WHEEL=OFF -S /work/src -B /work/build &&
158+
python3.12 -m pip install -r /work/src/src/bindings/python/wheel/requirements-dev.txt
159+
cmake -DPython3_EXECUTABLE=/usr/local/bin/python3.12 -DENABLE_CPPLINT=OFF -DENABLE_NCC_STYLE=OFF -DENABLE_TESTS=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_OV_TF_FRONTEND=OFF -DENABLE_OV_TF_LITE_FRONTEND=OFF -DENABLE_OV_PADDLE_FRONTEND=OFF -DENABLE_OV_PYTORCH_FRONTEND=ON -DENABLE_OV_JAX_FRONTEND=OFF -DENABLE_OV_ONNX_FRONTEND=ON -DENABLE_PYTHON=ON -DENABLE_WHEEL=ON -S /work/src -B /work/build &&
152160
cmake --build /work/build --parallel $(nproc) --config ${{ env.CMAKE_BUILD_TYPE }} &&
153161
cmake --install /work/build --config ${{ env.CMAKE_BUILD_TYPE }} --prefix /work/install
162+
cmake --install /work/build --config ${{ env.CMAKE_BUILD_TYPE }} --prefix /work/api_tests --component tests
154163
"
155164
156165
- name: Pack Artifacts
157166
run: mkdir -p ${{ env.BUILD_DIR }} && tar -cvf - * | pigz > ${{ env.BUILD_DIR }}/openvino_package.tar.gz
158167
working-directory: ${{ env.INSTALL_DIR }}
159168

160-
- name: Build Python API(Python 3.9-3.13)
169+
- name: Build Python API (Python 3.9-3.13)
161170
run: |
162171
SUPPORTED_PYTHON_VERSIONS=("39" "310" "311" "312" "313")
163172
for PY_VER in "${SUPPORTED_PYTHON_VERSIONS[@]}"; do
@@ -190,6 +199,10 @@ jobs:
190199
"
191200
done
192201
202+
- name: Pack openvino_tests
203+
run: tar -cvf - * | pigz > ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
204+
working-directory: ${{ env.INSTALL_TEST_DIR }}
205+
193206
#
194207
# Upload build artifacts
195208
#
@@ -208,7 +221,15 @@ jobs:
208221
name: openvino_wheels
209222
path: ${{ env.INSTALL_WHEELS_DIR }}/wheels/*.whl
210223
if-no-files-found: 'error'
211-
224+
225+
- name: Upload openvino tests package
226+
if: ${{ always() }}
227+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
228+
with:
229+
name: openvino_tests
230+
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
231+
if-no-files-found: 'error'
232+
212233
- name: Store artifacts to a shared drive
213234
id: store_artifacts
214235
if: ${{ always() }}
@@ -220,10 +241,34 @@ jobs:
220241
${{ env.INSTALL_WHEELS_DIR }}/wheels
221242
storage_dir: ${{ env.PRODUCT_TYPE }}
222243
storage_root: ${{ env.ARTIFACTS_SHARE }}
223-
244+
245+
Python_API_Tests:
246+
name: Python API tests
247+
needs: [ Docker, Build, Smart_CI ]
248+
uses: ./.github/workflows/job_python_api_tests.yml
249+
strategy:
250+
fail-fast: false
251+
matrix:
252+
include:
253+
- python-version: "3.9"
254+
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.fedora_33 }}
255+
- python-version: "3.10"
256+
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.debian_10_py310 }}
257+
- python-version: "3.11"
258+
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
259+
- python-version: "3.12"
260+
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
261+
- python-version: "3.13"
262+
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_x64_py313 }}
263+
with:
264+
runner: 'aks-linux-4-cores-16gb'
265+
container: '{"image": "${{ matrix.image }}", "volumes": ["/mount:/mount"]}'
266+
python-version: ${{ matrix.python-version }}
267+
if: fromJSON(needs.smart_ci.outputs.affected_components).Python_API.test
268+
224269
Overall_Status:
225270
name: ci/gha_overall_status_manylinux2014
226-
needs: [Smart_CI, Build]
271+
needs: [Smart_CI, Build, Python_API_Tests]
227272
if: ${{ always() }}
228273
runs-on: ubuntu-latest
229274
steps:

0 commit comments

Comments
 (0)