Azure CL: Improve yaml (#2951)
* Azure CL: Improve yaml * Fix installing requirements * Add run onnxImporterUnitTests
This commit is contained in:
parent
d225ba6e53
commit
df49a2b987
@ -1,110 +1,140 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- job: Lin
|
- job: Lin
|
||||||
# About 150% of total time
|
# About 150% of total time
|
||||||
timeoutInMinutes: 85
|
timeoutInMinutes: 90
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
name: LIN_VMSS_VENV_F8S_WU2
|
name: LIN_VMSS_VENV_F8S_WU2
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
system.debug: true
|
system.debug: true
|
||||||
WORKERS_NUMBER: 8
|
|
||||||
VSTS_HTTP_RETRY: 5
|
VSTS_HTTP_RETRY: 5
|
||||||
VSTS_HTTP_TIMEOUT: 200
|
VSTS_HTTP_TIMEOUT: 200
|
||||||
|
WORKERS_NUMBER: 8
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
REPO_DIR: $(Build.Repository.LocalPath)
|
REPO_DIR: $(Build.Repository.LocalPath)
|
||||||
WORK_DIR: $(Pipeline.Workspace)/_w
|
WORK_DIR: $(Pipeline.Workspace)/_w
|
||||||
BUILD_DIR: $(WORK_DIR)/build
|
BUILD_DIR: $(WORK_DIR)/build
|
||||||
BIN_DIR: $(REPO_DIR)/bin/intel64/$(BUILD_TYPE)
|
BIN_DIR: $(REPO_DIR)/bin/intel64/$(BUILD_TYPE)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
|
||||||
clean: true
|
|
||||||
lfs: false
|
|
||||||
submodules: recursive
|
|
||||||
path: openvino
|
|
||||||
- script: |
|
- script: |
|
||||||
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
|
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
|
||||||
whoami
|
whoami
|
||||||
uname -a
|
uname -a
|
||||||
which python3
|
which python3
|
||||||
python3 --version
|
python3 --version
|
||||||
|
which java
|
||||||
|
java -version
|
||||||
gcc --version
|
gcc --version
|
||||||
lsb_release
|
lsb_release
|
||||||
env
|
env
|
||||||
cat /proc/cpuinfo
|
cat /proc/cpuinfo
|
||||||
cat /proc/meminfo
|
cat /proc/meminfo
|
||||||
|
cat /etc/fstab
|
||||||
vmstat -s
|
vmstat -s
|
||||||
df
|
df
|
||||||
|
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
|
||||||
displayName: 'System info'
|
displayName: 'System info'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
|
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
|
||||||
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
|
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
|
||||||
displayName: 'Make dir'
|
displayName: 'Make dir'
|
||||||
|
|
||||||
|
- checkout: self
|
||||||
|
clean: true
|
||||||
|
lfs: false
|
||||||
|
submodules: recursive
|
||||||
|
path: openvino
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
sudo apt --assume-yes install libusb-1.0-0-dev
|
sudo apt --assume-yes install libusb-1.0-0-dev
|
||||||
python3 -m pip install -r ./inference-engine/ie_bridges/python/requirements.txt
|
python3 -m pip install -r $(REPO_DIR)/inference-engine/ie_bridges/python/requirements.txt
|
||||||
# For running Python API tests
|
# For running Python API tests
|
||||||
python3 -m pip install -r ./inference-engine/ie_bridges/python/src/requirements-dev.txt
|
python3 -m pip install -r $(REPO_DIR)/inference-engine/ie_bridges/python/src/requirements-dev.txt
|
||||||
displayName: 'Install dependencies'
|
# Speed up build
|
||||||
- script: |
|
|
||||||
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
|
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
|
||||||
unzip ninja-linux.zip
|
unzip ninja-linux.zip
|
||||||
sudo cp -v ninja /usr/local/bin/
|
sudo cp -v ninja /usr/local/bin/
|
||||||
|
# Speed up tests
|
||||||
|
git clone https://github.com/google/gtest-parallel.git
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: 'Install Ninja'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
inputs:
|
inputs:
|
||||||
# CMake must get Python 3.x version by default
|
# CMake must get Python 3.x version by default
|
||||||
cmakeArgs: -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DENABLE_TESTS=ON $(REPO_DIR)
|
cmakeArgs: -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DENABLE_TESTS=ON $(REPO_DIR)
|
||||||
workingDirectory: $(BUILD_DIR)
|
workingDirectory: $(BUILD_DIR)
|
||||||
|
|
||||||
- script: ninja
|
- script: ninja
|
||||||
workingDirectory: $(BUILD_DIR)
|
workingDirectory: $(BUILD_DIR)
|
||||||
displayName: 'Build Lin'
|
displayName: 'Build Lin'
|
||||||
|
|
||||||
- script: ls -alR $(REPO_DIR)/bin/
|
- script: ls -alR $(REPO_DIR)/bin/
|
||||||
displayName: 'List files'
|
displayName: 'List files'
|
||||||
|
|
||||||
- script: $(BIN_DIR)/unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU* --gtest_output=xml:TEST-NGraphUT.xml
|
- script: $(BIN_DIR)/unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU* --gtest_output=xml:TEST-NGraphUT.xml
|
||||||
displayName: 'nGraph UT'
|
displayName: 'nGraph UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
|
- script: $(BIN_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
|
||||||
displayName: 'IE UT old'
|
displayName: 'IE UT old'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
|
- script: $(BIN_DIR)/ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
|
||||||
displayName: 'IE UT'
|
displayName: 'IE UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
|
- script: $(BIN_DIR)/cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
|
||||||
displayName: 'CPU UT'
|
displayName: 'CPU UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/gnaUnitTests --gtest_output=xml:TEST-gnaUnitTests.xml
|
- script: $(BIN_DIR)/gnaUnitTests --gtest_output=xml:TEST-gnaUnitTests.xml
|
||||||
displayName: 'GNA UT'
|
displayName: 'GNA UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
|
- script: $(BIN_DIR)/vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
|
||||||
displayName: 'VPU UT'
|
displayName: 'VPU UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
|
- script: $(BIN_DIR)/onnxImporterUnitTests --gtest_output=xml:TEST-onnxImporterUnitTests.xml
|
||||||
|
displayName: 'ONNX Importer UT'
|
||||||
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
|
- script: $(BIN_DIR)/ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
|
||||||
displayName: 'IE FuncTests'
|
displayName: 'IE FuncTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/cpuFuncTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
|
- script: $(BIN_DIR)/cpuFuncTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
|
||||||
displayName: 'CPU FuncTests'
|
displayName: 'CPU FuncTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/MklDnnBehaviorTests --gtest_output=xml:TEST-MklDnnBehaviorTests.xml
|
- script: $(BIN_DIR)/MklDnnBehaviorTests --gtest_output=xml:TEST-MklDnnBehaviorTests.xml
|
||||||
displayName: 'MklDnnBehaviorTests'
|
displayName: 'MklDnnBehaviorTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
git clone https://github.com/openvinotoolkit/testdata.git
|
git clone https://github.com/openvinotoolkit/testdata.git
|
||||||
git clone https://github.com/google/gtest-parallel.git
|
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: 'Clone testdata & gtest-parallel'
|
displayName: 'Clone testdata'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
export DATA_PATH=$(WORK_DIR)/testdata
|
export DATA_PATH=$(WORK_DIR)/testdata
|
||||||
export MODELS_PATH=$(WORK_DIR)/testdata
|
export MODELS_PATH=$(WORK_DIR)/testdata
|
||||||
python3 $(WORK_DIR)/gtest-parallel/gtest-parallel $(BIN_DIR)/MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --print_test_times --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=*smoke* -- --gtest_print_time=1
|
python3 $(WORK_DIR)/gtest-parallel/gtest-parallel $(BIN_DIR)/MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=*smoke* -- --gtest_print_time=1
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: 'MklDnnFunctionalTests'
|
displayName: 'MklDnnFunctionalTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
export DATA_PATH=$(WORK_DIR)/testdata
|
export DATA_PATH=$(WORK_DIR)/testdata
|
||||||
export MODELS_PATH=$(WORK_DIR)/testdata
|
export MODELS_PATH=$(WORK_DIR)/testdata
|
||||||
$(BIN_DIR)/InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
|
$(BIN_DIR)/InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
|
||||||
displayName: 'IE CAPITests'
|
displayName: 'IE CAPITests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
export DATA_PATH=$(WORK_DIR)/testdata
|
export DATA_PATH=$(WORK_DIR)/testdata
|
||||||
export MODELS_PATH=$(WORK_DIR)/testdata
|
export MODELS_PATH=$(WORK_DIR)/testdata
|
||||||
@ -116,6 +146,7 @@ jobs:
|
|||||||
displayName: 'Python API Tests'
|
displayName: 'Python API Tests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
condition: always()
|
condition: always()
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -1,48 +1,61 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- job: Mac
|
- job: Mac
|
||||||
# About 200% of total time (perfomace of Mac hosts is unstable)
|
# About 200% of total time (perfomace of Mac hosts is unstable)
|
||||||
timeoutInMinutes: 180
|
timeoutInMinutes: 240
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macOS-10.15'
|
vmImage: 'macOS-10.15'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
system.debug: true
|
system.debug: true
|
||||||
WORKERS_NUMBER: 3
|
|
||||||
VSTS_HTTP_RETRY: 5
|
VSTS_HTTP_RETRY: 5
|
||||||
VSTS_HTTP_TIMEOUT: 200
|
VSTS_HTTP_TIMEOUT: 200
|
||||||
|
WORKERS_NUMBER: 3
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
REPO_DIR: $(Build.Repository.LocalPath)
|
REPO_DIR: $(Build.Repository.LocalPath)
|
||||||
WORK_DIR: $(Pipeline.Workspace)/_w
|
WORK_DIR: $(Pipeline.Workspace)/_w
|
||||||
BUILD_DIR: $(WORK_DIR)/build
|
BUILD_DIR: $(WORK_DIR)/build
|
||||||
BIN_DIR: $(REPO_DIR)/bin/intel64/$(BUILD_TYPE)
|
BIN_DIR: $(REPO_DIR)/bin/intel64/$(BUILD_TYPE)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
|
||||||
clean: true
|
|
||||||
lfs: false
|
|
||||||
submodules: recursive
|
|
||||||
path: openvino
|
|
||||||
- script: |
|
- script: |
|
||||||
whoami
|
whoami
|
||||||
uname -a
|
uname -a
|
||||||
which python3
|
which python3
|
||||||
python3 --version
|
python3 --version
|
||||||
|
which java
|
||||||
|
java -version
|
||||||
gcc --version
|
gcc --version
|
||||||
xcrun --sdk macosx --show-sdk-version
|
xcrun --sdk macosx --show-sdk-version
|
||||||
env
|
env
|
||||||
sysctl -a
|
sysctl -a
|
||||||
displayName: 'System info'
|
displayName: 'System info'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
|
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
|
||||||
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
|
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
|
||||||
displayName: 'Make dir'
|
displayName: 'Make dir'
|
||||||
|
|
||||||
|
- checkout: self
|
||||||
|
clean: true
|
||||||
|
lfs: false
|
||||||
|
submodules: recursive
|
||||||
|
path: openvino
|
||||||
|
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '3.7'
|
versionSpec: '3.7'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
brew install cython
|
brew install cython
|
||||||
brew install automake
|
brew install automake
|
||||||
|
# Speed up build
|
||||||
|
brew install ninja
|
||||||
|
# Speed up tests
|
||||||
|
git clone https://github.com/google/gtest-parallel.git
|
||||||
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
- script: brew install ninja
|
|
||||||
displayName: 'Install Ninja'
|
|
||||||
- script: |
|
- script: |
|
||||||
export PATH="/usr/local/opt/cython/bin:$PATH"
|
export PATH="/usr/local/opt/cython/bin:$PATH"
|
||||||
export CC=gcc
|
export CC=gcc
|
||||||
@ -53,53 +66,70 @@ jobs:
|
|||||||
cmake -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PYTHON=ON -DENABLE_TESTS=ON $(REPO_DIR)
|
cmake -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PYTHON=ON -DENABLE_TESTS=ON $(REPO_DIR)
|
||||||
workingDirectory: $(BUILD_DIR)
|
workingDirectory: $(BUILD_DIR)
|
||||||
displayName: 'CMake'
|
displayName: 'CMake'
|
||||||
|
|
||||||
- script: ninja
|
- script: ninja
|
||||||
workingDirectory: $(BUILD_DIR)
|
workingDirectory: $(BUILD_DIR)
|
||||||
displayName: 'Build Mac'
|
displayName: 'Build Mac'
|
||||||
|
|
||||||
- script: ls -alR $(REPO_DIR)/bin/
|
- script: ls -alR $(REPO_DIR)/bin/
|
||||||
displayName: 'List files'
|
displayName: 'List files'
|
||||||
|
|
||||||
- script: $(BIN_DIR)/unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU*:IE_CPU.onnx_model_sigmoid --gtest_output=xml:TEST-NGraphUT.xml
|
- script: $(BIN_DIR)/unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU*:IE_CPU.onnx_model_sigmoid --gtest_output=xml:TEST-NGraphUT.xml
|
||||||
displayName: 'nGraph UT'
|
displayName: 'nGraph UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
|
- script: $(BIN_DIR)/InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
|
||||||
displayName: 'IE UT old'
|
displayName: 'IE UT old'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
|
- script: $(BIN_DIR)/ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
|
||||||
displayName: 'IE UT'
|
displayName: 'IE UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
|
- script: $(BIN_DIR)/cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
|
||||||
displayName: 'CPU UT'
|
displayName: 'CPU UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
|
- script: $(BIN_DIR)/vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
|
||||||
displayName: 'VPU UT'
|
displayName: 'VPU UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
|
- script: $(BIN_DIR)/onnxImporterUnitTests --gtest_output=xml:TEST-onnxImporterUnitTests.xml
|
||||||
|
displayName: 'ONNX Importer UT'
|
||||||
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
|
- script: $(BIN_DIR)/ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
|
||||||
displayName: 'IE FuncTests'
|
displayName: 'IE FuncTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/cpuFuncTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
|
- script: $(BIN_DIR)/cpuFuncTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
|
||||||
displayName: 'CPU FuncTests'
|
displayName: 'CPU FuncTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: $(BIN_DIR)/MklDnnBehaviorTests --gtest_output=xml:TEST-MklDnnBehaviorTests.xml
|
- script: $(BIN_DIR)/MklDnnBehaviorTests --gtest_output=xml:TEST-MklDnnBehaviorTests.xml
|
||||||
displayName: 'MklDnnBehaviorTests'
|
displayName: 'MklDnnBehaviorTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
git clone https://github.com/openvinotoolkit/testdata.git
|
git clone https://github.com/openvinotoolkit/testdata.git
|
||||||
git clone https://github.com/google/gtest-parallel.git
|
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: 'Clone testdata & gtest-parallel'
|
displayName: 'Clone testdata'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
export DATA_PATH=$(WORK_DIR)/testdata
|
export DATA_PATH=$(WORK_DIR)/testdata
|
||||||
export MODELS_PATH=$(WORK_DIR)/testdata
|
export MODELS_PATH=$(WORK_DIR)/testdata
|
||||||
python3 $(WORK_DIR)/gtest-parallel/gtest-parallel $(BIN_DIR)/MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --print_test_times --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=*smoke*:-smoke_MobileNet/ModelTransformationsTest.LPT/mobilenet_v2_tf_depthwise_batch1_inPluginDisabled_inTestDisabled_asymmetric* -- --gtest_print_time=1
|
python3 $(WORK_DIR)/gtest-parallel/gtest-parallel $(BIN_DIR)/MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=*smoke*:-smoke_MobileNet/ModelTransformationsTest.LPT/mobilenet_v2_tf_depthwise_batch1_inPluginDisabled_inTestDisabled_asymmetric* -- --gtest_print_time=1
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: 'MklDnnFunctionalTests'
|
displayName: 'MklDnnFunctionalTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
export DATA_PATH=$(WORK_DIR)/testdata
|
export DATA_PATH=$(WORK_DIR)/testdata
|
||||||
export MODELS_PATH=$(WORK_DIR)/testdata
|
export MODELS_PATH=$(WORK_DIR)/testdata
|
||||||
$(BIN_DIR)/InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
|
$(BIN_DIR)/InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
|
||||||
displayName: 'IE CAPITests'
|
displayName: 'IE CAPITests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
condition: always()
|
condition: always()
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -2,13 +2,15 @@ jobs:
|
|||||||
- job: Win
|
- job: Win
|
||||||
# About 150% of total time
|
# About 150% of total time
|
||||||
timeoutInMinutes: 120
|
timeoutInMinutes: 120
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
name: WIN_VMSS_VENV_F8S_WU2
|
name: WIN_VMSS_VENV_F8S_WU2
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
system.debug: true
|
system.debug: true
|
||||||
WORKERS_NUMBER: 8
|
|
||||||
VSTS_HTTP_RETRY: 5
|
VSTS_HTTP_RETRY: 5
|
||||||
VSTS_HTTP_TIMEOUT: 200
|
VSTS_HTTP_TIMEOUT: 200
|
||||||
|
WORKERS_NUMBER: 8
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
REPO_DIR: $(Build.Repository.LocalPath)
|
REPO_DIR: $(Build.Repository.LocalPath)
|
||||||
WORK_DIR: $(Pipeline.Workspace)\_w
|
WORK_DIR: $(Pipeline.Workspace)\_w
|
||||||
@ -16,108 +18,136 @@ jobs:
|
|||||||
BIN_DIR: $(REPO_DIR)\bin\intel64
|
BIN_DIR: $(REPO_DIR)\bin\intel64
|
||||||
MSVS_VARS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
MSVS_VARS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||||
MSVC_COMPILER_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe
|
MSVC_COMPILER_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
|
||||||
clean: true
|
|
||||||
lfs: false
|
|
||||||
submodules: recursive
|
|
||||||
path: openvino
|
|
||||||
- script: |
|
- script: |
|
||||||
powershell -command "Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -Uri http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01 | format-custom"
|
powershell -command "Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -Uri http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01 | format-custom"
|
||||||
where python3
|
where python3
|
||||||
where python
|
where python
|
||||||
python --version
|
python --version
|
||||||
|
where java
|
||||||
|
java -version
|
||||||
wmic computersystem get TotalPhysicalMemory
|
wmic computersystem get TotalPhysicalMemory
|
||||||
wmic cpu list
|
wmic cpu list
|
||||||
wmic logicaldisk get description,name
|
wmic logicaldisk get description,name
|
||||||
wmic VOLUME list
|
wmic VOLUME list
|
||||||
set
|
set
|
||||||
displayName: 'System info'
|
displayName: 'System info'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
rd /Q /S $(WORK_DIR) & mkdir $(WORK_DIR)
|
rd /Q /S $(WORK_DIR) & mkdir $(WORK_DIR)
|
||||||
rd /Q /S $(BUILD_DIR) & mkdir $(BUILD_DIR)
|
rd /Q /S $(BUILD_DIR) & mkdir $(BUILD_DIR)
|
||||||
displayName: 'Make dir'
|
displayName: 'Make dir'
|
||||||
|
|
||||||
|
- checkout: self
|
||||||
|
clean: true
|
||||||
|
lfs: false
|
||||||
|
submodules: recursive
|
||||||
|
path: openvino
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
certutil -urlcache -split -f https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-win.zip ninja-win.zip
|
certutil -urlcache -split -f https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-win.zip ninja-win.zip
|
||||||
powershell -command "Expand-Archive -Force ninja-win.zip"
|
powershell -command "Expand-Archive -Force ninja-win.zip"
|
||||||
|
git clone https://github.com/google/gtest-parallel.git
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: Install Ninja
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
certutil -urlcache -split -f https://incredibuilddiag1wu2.blob.core.windows.net/incredibuild/IBSetupConsole_9_5_0.exe IBSetupConsole_9_5_0.exe
|
certutil -urlcache -split -f https://incredibuilddiag1wu2.blob.core.windows.net/incredibuild/IBSetupConsole_9_5_0.exe IBSetupConsole_9_5_0.exe
|
||||||
call IBSetupConsole_9_5_0.exe /Install /Components=Agent,oneuse /Coordinator=11.1.0.4 /AGENT:OPENFIREWALL=ON /AGENT:AUTOSELECTPORTS=ON /ADDTOPATH=ON /AGENT:INSTALLADDINS=OFF
|
call IBSetupConsole_9_5_0.exe /Install /Components=Agent,oneuse /Coordinator=11.1.0.4 /AGENT:OPENFIREWALL=ON /AGENT:AUTOSELECTPORTS=ON /ADDTOPATH=ON /AGENT:INSTALLADDINS=OFF
|
||||||
workingDirectory: $(WORK_DIR)
|
workingDirectory: $(WORK_DIR)
|
||||||
displayName: Install IncrediBuild
|
displayName: 'Install IncrediBuild'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
echo Stop IncrediBuild_Agent && net stop IncrediBuild_Agent
|
echo Stop IncrediBuild_Agent && net stop IncrediBuild_Agent
|
||||||
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Xoreax\IncrediBuild\Builder /f /v LastEnabled /d 0 && echo Start IncrediBuild_Agent && net start IncrediBuild_Agent
|
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Xoreax\IncrediBuild\Builder /f /v LastEnabled /d 0 && echo Start IncrediBuild_Agent && net start IncrediBuild_Agent
|
||||||
displayName: Start IncrediBuild
|
displayName: 'Start IncrediBuild'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(WORK_DIR)\ninja-win;%PATH%
|
set PATH=$(WORK_DIR)\ninja-win;%PATH%
|
||||||
call "$(MSVS_VARS_PATH)" && cmake -GNinja -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_TESTS=ON -DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" -DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" $(REPO_DIR)
|
call "$(MSVS_VARS_PATH)" && cmake -GNinja -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_TESTS=ON -DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" -DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" $(REPO_DIR)
|
||||||
workingDirectory: $(BUILD_DIR)
|
workingDirectory: $(BUILD_DIR)
|
||||||
displayName: 'CMake'
|
displayName: 'CMake'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(WORK_DIR)\ninja-win;%PATH%
|
set PATH=$(WORK_DIR)\ninja-win;%PATH%
|
||||||
call "$(MSVS_VARS_PATH)" && "C:\Program Files (x86)\IncrediBuild\BuildConsole.exe" /COMMAND="ninja" /MaxCPUS=40
|
call "$(MSVS_VARS_PATH)" && "C:\Program Files (x86)\IncrediBuild\BuildConsole.exe" /COMMAND="ninja" /MaxCPUS=40
|
||||||
workingDirectory: $(BUILD_DIR)
|
workingDirectory: $(BUILD_DIR)
|
||||||
displayName: 'Build Win'
|
displayName: 'Build Win'
|
||||||
|
|
||||||
- script: echo Stop IncrediBuild_Agent && net stop IncrediBuild_Agent
|
- script: echo Stop IncrediBuild_Agent && net stop IncrediBuild_Agent
|
||||||
displayName: Stop IncrediBuild
|
displayName: Stop IncrediBuild
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
- script: dir $(REPO_DIR)\bin\ /s /b
|
- script: dir $(REPO_DIR)\bin\ /s
|
||||||
displayName: 'List files'
|
displayName: 'List files'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU* --gtest_output=xml:TEST-NGraphUT.xml
|
$(BIN_DIR)\unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU* --gtest_output=xml:TEST-NGraphUT.xml
|
||||||
displayName: 'nGraph UT'
|
displayName: 'nGraph UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
|
$(BIN_DIR)\InferenceEngineUnitTests --gtest_print_time=1 --gtest_output=xml:TEST-InferenceEngineUnitTests.xml
|
||||||
displayName: 'IE UT old'
|
displayName: 'IE UT old'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
|
$(BIN_DIR)\ieUnitTests --gtest_output=xml:TEST-ieUnitTests.xml
|
||||||
displayName: 'IE UT'
|
displayName: 'IE UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
|
$(BIN_DIR)\cpuUnitTests --gtest_output=xml:TEST-cpuUnitTests.xml
|
||||||
displayName: 'CPU UT'
|
displayName: 'CPU UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\gnaUnitTests --gtest_output=xml:TEST-gnaUnitTests.xml
|
$(BIN_DIR)\gnaUnitTests --gtest_output=xml:TEST-gnaUnitTests.xml
|
||||||
displayName: 'GNA UT'
|
displayName: 'GNA UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
|
$(BIN_DIR)\vpuUnitTests --gtest_output=xml:TEST-vpuUnitTests.xml
|
||||||
displayName: 'VPU UT'
|
displayName: 'VPU UT'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
|
$(BIN_DIR)\onnxImporterUnitTests --gtest_output=xml:TEST-onnxImporterUnitTests.xml
|
||||||
|
displayName: 'ONNX Importer UT'
|
||||||
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
|
$(BIN_DIR)\ieFuncTests --gtest_output=xml:TEST-ieFuncTests.xml
|
||||||
displayName: 'IE FuncTests'
|
displayName: 'IE FuncTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\cpuFuncTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
|
$(BIN_DIR)\cpuFuncTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-cpuFuncTests.xml
|
||||||
displayName: 'CPU FuncTests'
|
displayName: 'CPU FuncTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;%PATH%
|
||||||
$(BIN_DIR)\MklDnnBehaviorTests --gtest_output=xml:TEST-MklDnnBehaviorTests.xml
|
$(BIN_DIR)\MklDnnBehaviorTests --gtest_output=xml:TEST-MklDnnBehaviorTests.xml
|
||||||
displayName: 'MklDnnBehaviorTests'
|
displayName: 'MklDnnBehaviorTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
git clone https://github.com/openvinotoolkit/testdata.git
|
git clone https://github.com/openvinotoolkit/testdata.git
|
||||||
git clone https://github.com/google/gtest-parallel.git
|
|
||||||
workingDirectory: $(BUILD_DIR)
|
workingDirectory: $(BUILD_DIR)
|
||||||
displayName: 'Clone testdata & gtest-parallel'
|
displayName: 'Clone testdata'
|
||||||
|
|
||||||
# Add for gtest-parallel, it hangs now (CVS-33386)
|
# Add for gtest-parallel, it hangs now (CVS-33386)
|
||||||
#python $(BUILD_DIR)\gtest-parallel\gtest-parallel $(BIN_DIR)\MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --print_test_times --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=*smoke* -- --gtest_print_time=1
|
#python $(BUILD_DIR)\gtest-parallel\gtest-parallel $(BIN_DIR)\MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=*smoke* -- --gtest_print_time=1
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;$(REPO_DIR)\inference-engine\temp\opencv_4.5.0\opencv\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;$(REPO_DIR)\inference-engine\temp\opencv_4.5.0\opencv\bin;%PATH%
|
||||||
set DATA_PATH=$(BUILD_DIR)\testdata
|
set DATA_PATH=$(BUILD_DIR)\testdata
|
||||||
@ -125,6 +155,7 @@ jobs:
|
|||||||
$(BIN_DIR)\MklDnnFunctionalTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-MklDnnFunctionalTests.xml
|
$(BIN_DIR)\MklDnnFunctionalTests --gtest_filter=*smoke* --gtest_print_time=1 --gtest_output=xml:TEST-MklDnnFunctionalTests.xml
|
||||||
displayName: 'MklDnnFunctionalTests'
|
displayName: 'MklDnnFunctionalTests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;$(REPO_DIR)\inference-engine\temp\opencv_4.5.0\opencv\bin;%PATH%
|
set PATH=$(REPO_DIR)\inference-engine\temp\tbb\bin;$(REPO_DIR)\inference-engine\temp\opencv_4.5.0\opencv\bin;%PATH%
|
||||||
set DATA_PATH=$(BUILD_DIR)\testdata
|
set DATA_PATH=$(BUILD_DIR)\testdata
|
||||||
@ -132,6 +163,7 @@ jobs:
|
|||||||
$(BIN_DIR)\InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
|
$(BIN_DIR)\InferenceEngineCAPITests --gtest_output=xml:TEST-InferenceEngineCAPITests.xml
|
||||||
displayName: 'IE CAPITests'
|
displayName: 'IE CAPITests'
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
condition: always()
|
condition: always()
|
||||||
inputs:
|
inputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user