Skip to content

Commit c819f45

Browse files
authored
Merge branch 'master' into cvs_76333_python_transformations
2 parents 1a0dfb7 + 9c41f10 commit c819f45

File tree

1,614 files changed

+73280
-69005
lines changed

Some content is hidden

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

1,614 files changed

+73280
-69005
lines changed

.github/actions/create_manifest/create_manifest.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ def generate_manifest(repos: list, product_type: str, event_type: str, build_typ
9999
custom_branch_name = f'-{trigger_repo.branch}' if trigger_repo.branch != 'master' else ''
100100
run_number_postfix = f'-{os.environ.get("GITHUB_RUN_NUMBER")}' if os.environ.get("GITHUB_RUN_NUMBER") else ''
101101
product_version = f"{ov_version}{run_number_postfix}-{trigger_repo.revision[:11]}{custom_branch_name}"
102-
ci_build_dev_tag = f'dev{trigger_repo.commit_time.strftime("%Y%m%d")}'
103-
wheel_product_version = f'{ov_version}.{ci_build_dev_tag}'
102+
103+
merge_queue_target_branch = next(iter(re.findall(f'^gh-readonly-queue/(.*)/', trigger_repo.branch)), None)
104+
target_branch = merge_queue_target_branch or trigger_repo.target_branch or trigger_repo.branch
105+
is_release_branch = re.match('^releases/.+$', target_branch)
106+
ci_build_dev_tag = f'dev{trigger_repo.commit_time.strftime("%Y%m%d")}' if not is_release_branch else ''
107+
wheel_product_version = f'{ov_version}.{ci_build_dev_tag}' if not is_release_branch else ov_version
104108

105109
set_github_output('CI_BUILD_NUMBER', product_version, 'GITHUB_ENV')
106110
set_github_output('CI_BUILD_DEV_TAG', ci_build_dev_tag, 'GITHUB_ENV')

.github/dockerfiles/docker_tag

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pr-25912
1+
pr-26086
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
FROM openvinogithubactions.azurecr.io/dockerio/library/debian:10.13
2+
3+
USER root
4+
5+
# APT configuration
6+
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
7+
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
8+
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
9+
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
10+
11+
ENV DEBIAN_FRONTEND="noninteractive" \
12+
TZ="Europe/London"
13+
14+
RUN apt-get update && \
15+
apt-get install \
16+
software-properties-common \
17+
curl \
18+
git \
19+
gpg-agent \
20+
tzdata \
21+
# Pythons \
22+
python3 \
23+
python3-pip \
24+
python3-dev \
25+
python3-venv \
26+
python3-distutils \
27+
libhdf5-dev \
28+
# For building Python from source
29+
build-essential \
30+
libffi-dev \
31+
libgdbm-dev \
32+
libc6-dev \
33+
libssl-dev \
34+
zlib1g-dev \
35+
libbz2-dev \
36+
libreadline-dev \
37+
libsqlite3-dev \
38+
libncurses5-dev \
39+
libncursesw5-dev \
40+
xz-utils \
41+
tk-dev \
42+
libxml2-dev \
43+
libxmlsec1-dev \
44+
liblzma-dev \
45+
wget \
46+
# Compilers
47+
gcc-arm-linux-gnueabihf \
48+
g++-arm-linux-gnueabihf \
49+
&& \
50+
rm -rf /var/lib/apt/lists/*
51+
52+
# Install build dependencies
53+
ADD install_build_dependencies.sh /install_build_dependencies.sh
54+
RUN chmod +x /install_build_dependencies.sh && \
55+
/install_build_dependencies.sh && \
56+
rm -rf /var/lib/apt/lists/*
57+
58+
# Install sscache
59+
ARG SCCACHE_VERSION="v0.7.5"
60+
ENV SCCACHE_HOME="/opt/sccache" \
61+
SCCACHE_PATH="/opt/sccache/sccache"
62+
63+
RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
64+
SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-aarch64-unknown-linux-musl.tar.gz" && \
65+
curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
66+
tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
67+
68+
ENV PATH="$SCCACHE_HOME:$PATH"
69+
70+
# Setup Python
71+
RUN wget https://www.python.org/ftp/python/3.11.9/Python-3.11.9.tar.xz
72+
73+
RUN tar -xf Python-3.11.9.tar.xz && \
74+
cd Python-3.11.9 && \
75+
./configure --enable-optimizations && \
76+
make -j 8 && \
77+
make altinstall
78+
79+
# Setup pip
80+
ENV PIP_VERSION="24.0"
81+
RUN python3 -m pip install --upgrade pip==24.0
82+
RUN python3.11 -m pip install --upgrade pip==24.0
83+
84+
# Use Python 3.11 as default
85+
# Using venv here because other methods to switch the default Python break both system and wheels build
86+
RUN python3.11 -m venv venv
87+
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
88+
89+
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}

.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,11 @@ RUN python3.11 -m venv venv
7171
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
7272

7373
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
74+
75+
# Install Node
76+
ENV NODE_VERSION=21.7.3
77+
ENV NVM_DIR=/.nvm
78+
RUN mkdir -p $NVM_DIR
79+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
80+
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
81+
ENV PATH="$NVM_DIR/versions/node/v${NODE_VERSION}/bin/:${PATH}"

.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,11 @@ RUN python3.11 -m venv venv
6161
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
6262

6363
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
64+
65+
# Install Node
66+
ENV NODE_VERSION=21.7.3
67+
ENV NVM_DIR=/.nvm
68+
RUN mkdir -p $NVM_DIR
69+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
70+
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
71+
ENV PATH="$NVM_DIR/versions/node/v${NODE_VERSION}/bin/:${PATH}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
FROM openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04
2+
3+
USER root
4+
5+
# APT configuration
6+
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
7+
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
8+
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
9+
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
10+
11+
ENV DEBIAN_FRONTEND="noninteractive" \
12+
TZ="Europe/London"
13+
14+
RUN apt-get update && \
15+
apt-get install software-properties-common && \
16+
add-apt-repository --yes --no-update ppa:git-core/ppa && \
17+
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
18+
apt-get update && \
19+
apt-get install \
20+
wget \
21+
curl \
22+
git \
23+
ca-certificates \
24+
gpg-agent \
25+
tzdata \
26+
libtbb2 \
27+
# Pythons \
28+
python3.11-dev \
29+
python3.11-venv \
30+
python3.11-distutils \
31+
default-jdk \
32+
&& \
33+
rm -rf /var/lib/apt/lists/*
34+
35+
36+
# Install OneAPI Toolkit
37+
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/intel-oneapi-archive-keyring.gpg > /dev/null
38+
RUN echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main " > /etc/apt/sources.list.d/oneAPI.list
39+
40+
RUN apt-get update && \
41+
apt-get install \
42+
intel-oneapi-compiler-dpcpp-cpp=2024.2.1-1079 \
43+
&& \
44+
rm -rf /var/lib/apt/lists/*
45+
46+
# Install build dependencies
47+
ADD install_build_dependencies.sh /install_build_dependencies.sh
48+
RUN chmod +x /install_build_dependencies.sh && \
49+
/install_build_dependencies.sh && \
50+
rm -rf /var/lib/apt/lists/*
51+
52+
# Install sscache
53+
ARG SCCACHE_VERSION="v0.7.5"
54+
ENV SCCACHE_HOME="/opt/sccache" \
55+
SCCACHE_PATH="/opt/sccache/sccache"
56+
57+
RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
58+
SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" && \
59+
curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \
60+
tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE}
61+
62+
# Setup pip
63+
ENV PIP_VERSION="24.0"
64+
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
65+
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
66+
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
67+
rm -f get-pip.py
68+
69+
# Use Python 3.11 as default
70+
# Using venv here 'cause other methods to switch the default Python on Ubuntu break both system and wheels build
71+
RUN python3.11 -m venv venv
72+
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
73+
74+
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
75+
76+
# OneAPI env
77+
ENV ONEAPI_ROOT=/opt/intel/oneapi
78+
ENV PKG_CONFIG_PATH=/opt/intel/oneapi/compiler/2024.2/lib/pkgconfig
79+
ENV DIAGUTIL_PATH=/opt/intel/oneapi/dpcpp-ct/2024.2/etc/dpct/sys_check/sys_check.sh:/opt/intel/oneapi/debugger/2024.2/etc/debugger/sys_check/sys_check.py:/opt/intel/oneapi/compiler/2024.2/etc/compiler/sys_check/sys_check.sh
80+
ENV MANPATH=/opt/intel/oneapi/debugger/2024.2/share/man:/opt/intel/oneapi/compiler/2024.2/share/man:
81+
ENV GDB_INFO=/opt/intel/oneapi/debugger/2024.2/share/info/
82+
ENV CMAKE_PREFIX_PATH=/opt/intel/oneapi/compiler/2024.2
83+
ENV CMPLR_ROOT=/opt/intel/oneapi/compiler/2024.2
84+
ENV INFOPATH=/opt/intel/oneapi/debugger/2024.2/share/info
85+
ENV LIBRARY_PATH=/opt/intel/oneapi/compiler/2024.2/lib
86+
ENV OCL_ICD_FILENAMES=/opt/intel/oneapi/compiler/2024.2/lib/libintelocl.so
87+
ENV LD_LIBRARY_PATH=/opt/intel/oneapi/debugger/2024.2/opt/debugger/lib:/opt/intel/oneapi/compiler/2024.2/opt/compiler/lib:/opt/intel/oneapi/compiler/2024.2/lib
88+
ENV NLSPATH=/opt/intel/oneapi/mkl/2024.2/share/locale/%l_%t/%N:/opt/intel/oneapi/compiler/2024.2/lib/compiler/locale/%l_%t/%N
89+
ENV PATH=$PATH:/opt/intel/oneapi/dev-utilities/2024.2/bin:/opt/intel/oneapi/debugger/2024.2/opt/debugger/bin:/opt/intel/oneapi/compiler/2024.2/bin
90+
ENV INTEL_PYTHONHOME=/opt/intel/oneapi/debugger/2024.2/opt/debugger
91+
ENV CPATH=/opt/intel/oneapi/dpl/2022.6/include:/opt/intel/oneapi/dev-utilities/2024.2/include:
92+
93+
# Set Intel DPC++ as a default compiler
94+
ENV CC=icx
95+
ENV CXX=icpx

.github/scripts/workflow_rerun/errors_to_look_for.json

+4
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,9 @@
6666
{
6767
"error_text": "Unexpected HTTP response: 520",
6868
"ticket": 147958
69+
},
70+
{
71+
"error_text": "Unable to make request: ECONNRESET",
72+
"ticket": 148702
6973
}
7074
]

.github/workflows/android_arm64.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
id: handle_docker
5959
with:
6060
images: |
61-
ov_build/ubuntu_22_04_android_arm64
61+
ov_build/ubuntu_22_04_android
6262
registry: 'openvinogithubactions.azurecr.io'
6363
dockerfiles_root_dir: '.github/dockerfiles'
6464
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
@@ -71,7 +71,7 @@ jobs:
7171
shell: bash
7272
runs-on: aks-linux-16-cores-32gb
7373
container:
74-
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_android_arm64 }}
74+
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_android }}
7575
volumes:
7676
- /mount:/mount
7777
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
@@ -91,6 +91,7 @@ jobs:
9191
ANDROID_NDK_HOME: '/deps/android_tools/ndk-bundle'
9292
ANDROID_SDK_VERSION: 29
9393
ANDROID_ABI_CONFIG: arm64-v8a
94+
VCPKG_TARGET_TRIPLET: arm64-android
9495
VCPKG_DEFAULT_BINARY_CACHE: '/mount/caches/ccache/android_arm64/vcpkg_cache'
9596
VCPKG_FORCE_SYSTEM_BINARIES: '1'
9697
SCCACHE_AZURE_KEY_PREFIX: android_arm64
@@ -154,7 +155,7 @@ jobs:
154155
-DENABLE_SYSTEM_FLATBUFFERS=ON \
155156
-DANDROID_ABI=${{ env.ANDROID_ABI_CONFIG }} \
156157
-DANDROID_PLATFORM=${{ env.ANDROID_SDK_VERSION }} \
157-
-DVCPKG_TARGET_TRIPLET=arm64-android \
158+
-DVCPKG_TARGET_TRIPLET=${{ env.VCPKG_TARGET_TRIPLET }} \
158159
-DVCPKG_HOST_TRIPLET=x64-linux-release \
159160
-DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake \
160161
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \
@@ -177,15 +178,15 @@ jobs:
177178
# Upload build logs
178179
#
179180
- name: Upload build logs
180-
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
181+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
181182
if: always()
182183
with:
183184
name: build_logs
184185
path: ${{ env.SCCACHE_ERROR_LOG }}
185186
if-no-files-found: 'ignore'
186187

187188
Overall_Status:
188-
name: ci/gha_overall_status_android
189+
name: ci/gha_overall_status_android_arm64
189190
needs: [Smart_CI, Build]
190191
if: ${{ always() }}
191192
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)