Skip to content
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion ci/build_test_OnCommit.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
def image_build_needed = "false"
def perf_test_needed = "false"
def docs_test_needed = "false"
def win_image_build_needed = "false"
def client_test_needed = "false"
def shortCommit = ""
Expand Down Expand Up @@ -43,6 +45,8 @@ pipeline {
if (win_matched){
win_image_build_needed = "true"
}
perf_test_needed = (CHANGE_TITLE =~ /\[PERF_TEST\]/) ? "1" : "0"
docs_test_needed = (CHANGE_TITLE =~ /\[DOCS_TEST\]/) ? "1" : "0"
}
}
}
Expand Down Expand Up @@ -166,7 +170,7 @@ pipeline {
label "${agent_name_linux}"
}
steps {
sh "make release_image RUN_TESTS=0 OV_USE_BINARY=0 BASE_OS=redhat OVMS_CPP_IMAGE_TAG=${shortCommit} BUILD_IMAGE=openvino/model_server-build:${shortCommit}"
sh "make release_image RUN_TESTS=0 OV_USE_BINARY=0 GPU=${perf_test_needed} BASE_OS=redhat OVMS_CPP_IMAGE_TAG=${shortCommit} BUILD_IMAGE=openvino/model_server-build:${shortCommit}"
sh "make run_lib_files_test BASE_OS=redhat OVMS_CPP_IMAGE_TAG=${shortCommit}"
script {
dir ('internal_tests'){
Expand All @@ -178,6 +182,12 @@ pipeline {
sh "make create-venv && TT_ON_COMMIT_TESTS=True TT_XDIST_WORKERS=10 TT_BASE_OS=redhat TT_OVMS_IMAGE_NAME=openvino/model_server:${shortCommit} TT_OVMS_IMAGE_LOCAL=True make tests"
}
}
script {
if (perf_test_needed == "1") {
sh "docker tag openvino/model_server:${shortCommit} registry.toolbox.iotg.sclab.intel.com/model_server:${shortCommit}"
sh "docker push registry.toolbox.iotg.sclab.intel.com/model_server:${shortCommit}"
}
}
}
}
stage('Test windows') {
Expand Down Expand Up @@ -207,5 +217,46 @@ pipeline {
}
}
}
stage("Additional tests on other hosts in parallel") {
when { expression { perf_test_needed == "1" || docs_test_needed == "1" } }
options {
timeout(time: 30, unit: 'MINUTES')
}
parallel {
stage("Run performance tests CPU") {
when { expression { perf_test_needed == "1" } }
steps {
sh 'echo Running performance tests...'
build job: "ovmsc/perf_test", parameters: [
[$class: 'StringParameterValue', name: 'DOCKER_IMAGE_NAME', value: "registry.toolbox.iotg.sclab.intel.com/model_server:${shortCommit}"],
[$class: 'StringParameterValue', name: 'TARGET_ENV', value: "ov-spr-19"]
]
}
}
stage("Run performance tests GPU") {
when { expression { perf_test_needed == "1" } }
steps {
sh 'echo Running performance tests...'
build job: "ovmsc/perf_test", parameters: [
[$class: 'StringParameterValue', name: 'DOCKER_IMAGE_NAME', value: "registry.toolbox.iotg.sclab.intel.com/model_server:${shortCommit}"],
[$class: 'StringParameterValue', name: 'TARGET_ENV', value: "ov-spr-19"],
[$class: 'StringParameterValue', name: 'DEVICE', value: "GPU"]
]
}
}
stage("Run documentation tests") {
when { expression { docs_test_needed == "1" } }
steps {
sh 'echo Running documentation tests...'
build job: "ovmsc/testing_ci_changes/test-demos", parameters: [
[$class: 'StringParameterValue', name: 'TT_OVMS_IMAGE_NAME', value: "registry.toolbox.iotg.sclab.intel.com/model_server:${shortCommit}"],
[$class: 'StringParameterValue', name: 'CORE_BRANCH', value: "${BRANCH_NAME}"],
[$class: 'StringParameterValue', name: 'PATTERN', value: "demos/continuous_batching/agentic_ai/README.md"]
]
}
}
}
}
}
}

2 changes: 1 addition & 1 deletion ci/perf_linux.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ pipeline {
}
sh "echo Install BFCL && \
test -d gorilla || git clone https://github.com/ShishirPatil/gorilla && \
cd gorilla/berkeley-function-call-leaderboard && git checkout cd9429ccf3d4d04156affe883c495b3b047e6b64 -f && curl -s https://raw.githubusercontent.com/openvinotoolkit/model_server/refs/heads/perf-111/demos/continuous_batching/accuracy/gorilla.patch | git apply -v"
cd gorilla/berkeley-function-call-leaderboard && git checkout cd9429ccf3d4d04156affe883c495b3b047e6b64 -f && curl -s https://raw.githubusercontent.com/openvinotoolkit/model_server/refs/heads/main/demos/continuous_batching/accuracy/gorilla.patch | git apply -v"
sh "test -d .venv || python3 -m venv .venv && \
. .venv/bin/activate && pip install -e ./gorilla/berkeley-function-call-leaderboard && \
echo Running agentic accuracy test && \
Expand Down