Skip to content

Commit 4246051

Browse files
committed
Merge remote-tracking branch 'origin/main' into multipart-rb
2 parents 3047943 + 4b7a96e commit 4246051

Some content is hidden

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

47 files changed

+3171
-169
lines changed

.bazelrc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ build:windows --host_linkopt=/OPT:REF
223223
build:windows --linkopt=/OPT:ICF
224224
build:windows --host_linkopt=/OPT:ICF
225225

226-
build:windows --action_env PYTHON_BIN_PATH="C:/opt/Python311/python.exe"
227-
build:windows --action_env PYTHON_LIB_PATH="C:/opt/Python311/lib/site-packages"
228-
build:windows --repo_env PYTHON_BIN_PATH=C:/opt/Python311/python.exe
229-
build:windows --python_path="C:/opt/Python311/python.exe"
226+
build:windows --action_env PYTHON_BIN_PATH="C:/opt/Python312/python.exe"
227+
build:windows --action_env PYTHON_LIB_PATH="C:/opt/Python312/lib/site-packages"
228+
build:windows --repo_env PYTHON_BIN_PATH=C:/opt/Python312/python.exe
229+
build:windows --python_path="C:/opt/Python312/python.exe"
230230
build:windows:opt --copt=/arch:AVX
231231
build:windows:opt --host_copt=/arch:AVX
232232
build:windows --define=override_eigen_strong_inline=true
@@ -248,7 +248,7 @@ build:windows --define=MEDIAPIPE_DISABLE=0
248248
build:windows --action_env OpenVINO_DIR="c:/opt/openvino/runtime/cmake"
249249
build:windows --action_env OpenCV_DIR="c:/opt/opencv"
250250

251-
build:windows --repo_env=HERMETIC_PYTHON_VERSION=3.11
251+
build:windows --repo_env=HERMETIC_PYTHON_VERSION=3.12
252252
build:windows --define=USE_DROGON=1
253253
build:windows --define=GENAI_USE_BINARY=1
254254

@@ -261,6 +261,7 @@ test:linux --test_env LD_LIBRARY_PATH=/opt/opencv/lib/:/opt/intel/openvino/runti
261261
# genai hardcodes path during build time so without this so is not visible
262262
test:linux --test_env OPENVINO_TOKENIZERS_PATH_GENAI=/opt/intel/openvino/runtime/lib/intel64/libopenvino_tokenizers.so
263263
test:linux --test_env PYTHONPATH=/opt/intel/openvino/python:/ovms/bazel-bin/src/python/binding
264+
test:linux --test_env no_proxy=localhost
264265

265266
# Bazelrc imports ############################################################################################################################
266267
# file below should contain sth like

Dockerfile.redhat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ RUN dnf install -y https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os
118118
libicu-devel && \
119119
dnf clean all
120120

121+
WORKDIR /lfs
122+
RUN wget -q --content-disposition "https://packagecloud.io/github/git-lfs/packages/el/9/git-lfs-3.6.1-1.el9.x86_64.rpm/download.rpm?distro_version_id=240"
123+
RUN dnf install -y git-lfs-3.6.1-1.el9.x86_64.rpm && dnf clean all
124+
121125
RUN python3 --version && python3 -m pip install numpy==1.21.0 --no-cache-dir
122126

123127
ARG INSTALL_DRIVER_VERSION="23.22.26516"

Dockerfile.ubuntu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
4444
patch \
4545
pkg-config \
4646
wget \
47-
zlib1g-dev && \
47+
zlib1g-dev \
48+
git-lfs && \
4849
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9 && \
4950
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9 && \
5051
apt-get clean && \

WORKSPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,10 @@ aws_sdk_cpp()
472472
load("@//third_party/llm_engine:llm_engine.bzl", "llm_engine")
473473
llm_engine()
474474

475+
### Libgit2
476+
load("@//third_party/libgt2:libgt2_engine.bzl", "libgt2_engine")
477+
libgt2_engine()
478+
475479
load("@//third_party/drogon:drogon.bzl", "drogon_cpp")
476480
drogon_cpp()
477481

ci/build_test_OnCommit.groovy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ pipeline {
1010
agent {
1111
label 'ovmsbuilder'
1212
}
13+
options {
14+
timeout(time: 4, unit: 'HOURS')
15+
}
1316
stages {
1417
stage('Configure') {
1518
steps {
@@ -45,6 +48,9 @@ pipeline {
4548
}
4649
}
4750
stage('Style, SDL and clean') {
51+
options {
52+
timeout(time: 20, unit: 'MINUTES')
53+
}
4854
parallel {
4955
stage('Style check') {
5056
agent {
@@ -74,6 +80,9 @@ pipeline {
7480
}
7581
}
7682
stage('Build') {
83+
options {
84+
timeout(time: 4, unit: 'HOURS')
85+
}
7786
parallel {
7887
stage("Build linux") {
7988
agent {
@@ -82,6 +91,7 @@ pipeline {
8291
when { expression { image_build_needed == "true" } }
8392
steps {
8493
sh "echo build --remote_cache=${env.OVMS_BAZEL_REMOTE_CACHE_URL} > .user.bazelrc"
94+
sh "echo test:linux --test_env https_proxy=${env.HTTPS_PROXY} >> .user.bazelrc"
8595
sh "make ovms_builder_image RUN_TESTS=0 OPTIMIZE_BUILDING_TESTS=1 OV_USE_BINARY=1 BASE_OS=redhat OVMS_CPP_IMAGE_TAG=${shortCommit} BUILD_IMAGE=openvino/model_server-build:${shortCommit}"
8696
}
8797
}
@@ -115,6 +125,9 @@ pipeline {
115125
}
116126
stage("Release image and tests in parallel") {
117127
when { expression { image_build_needed == "true" } }
128+
options {
129+
timeout(time: 120, unit: 'MINUTES')
130+
}
118131
parallel {
119132
stage("Run unit tests") {
120133
agent {

create_package.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ if [ -f /ovms_release/lib/libopenvino_genai_c.so ]; then cd /ovms_release/lib/ ;
3737
rm -rf \
3838
/ovms_release/lib/libssl.so \
3939
/ovms_release/lib/libexternal_Szlib_Slibzlib.so \
40-
/ovms_release/lib/py_openvino_genai.cpython-312-x86_64-linux-gnu.so \
40+
/ovms_release/lib/py_openvino_genai.cpython-*-x86_64-linux-gnu.so \
4141
/ovms_release/lib/libinference_calculator_cc_proto.so \
4242
/ovms_release/lib/libzlib.so \
43-
/ovms_release/lib/libface_detection_cc_proto.so.so \
44-
/ovms_release/lib/_crypt.cpython-312-x86_64-linux-gnu.so \
43+
/ovms_release/lib/libface_detection_cc_proto.so \
44+
/ovms_release/lib/_crypt.cpython-*-x86_64-linux-gnu.so \
45+
/ovms_release/lib/_testclinic.cpython-*-x86_64-linux-gnu.so \
4546
/ovms_release/lib/libface_detection_options_registry.so \
4647
/ovms_release/lib/libinference_calculator_options_registry.so
4748

@@ -84,6 +85,8 @@ patchelf --debug --set-rpath '$ORIGIN' /ovms_release/lib/libopenvino.so
8485
patchelf --debug --set-rpath '$ORIGIN' /ovms_release/lib/lib*plugin.so
8586
if [ -f /ovms_release/lib/libopenvino_nvidia_gpu_plugin.so ] && [ "$BASE_OS" != "redhat" ]; then patchelf --replace-needed libcutensor.so.1 /usr/lib/x86_64-linux-gnu/libcutensor/11/libcutensor.so.1 /ovms_release/lib/libopenvino_nvidia_gpu_plugin.so ; fi
8687

88+
cp -P /usr/bin/git-lfs .
89+
8790
cd /ovms
8891
cp -v /ovms/release_files/LICENSE /ovms_release/
8992
cp -v /ovms/release_files/metadata.json /ovms_release/

demos/c_api_minimal_app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ run `make` command in ovms git main directory.
9292
```bash
9393
git clone https://github.com/openvinotoolkit/model_server.git
9494
cd model_server
95-
make
95+
make BASE_OS=ubuntu24
9696
```
9797

9898
And then execute the alternative make target:

0 commit comments

Comments
 (0)