Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Commit 753b163

Browse files
[87578] Fix bootstrap docs, update mainlib version (#97)
1 parent 2fc9d13 commit 753b163

32 files changed

+160
-70
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ide
22
.idea
33
.vs
4+
.vscode
45

56
# python
67
__pycache__
@@ -72,3 +73,6 @@ thread.info
7273

7374
# bundles
7475
bundles/
76+
77+
# wheels
78+
wheels/
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
openvino_wheels_version: 2022.1.0
1+
openvino_wheels_version: 2022.2.0
22
openvino_deployment_archives: https://storage.openvinotoolkit.org/deployment_archives/releases/2022.1/

automation/Jenkins/precommit_test_config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ e2e_deployment_manager:
1616
memory_limit: 1G
1717
browser: chrome
1818

19-
e2e_gpu_chrome:
20-
platform: workbench_gpu=true
21-
tests: e2e:gpu
22-
cpu: 2
23-
memory: 2G
24-
memory_limit: 2G
25-
browser: chrome
26-
frameworks: pytorch
19+
# e2e_gpu_chrome:
20+
# platform: workbench_gpu=true
21+
# tests: e2e:gpu
22+
# cpu: 2
23+
# memory: 2G
24+
# memory_limit: 2G
25+
# browser: chrome
26+
# frameworks: pytorch
2727

2828
e2e_int8_basic_chrome:
2929
platform: workbench=true

automation/bom/openvino_notebooks_BOM.txt

-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
102-pytorch-onnx-to-openvino/requirements.txt
3838
102-pytorch-onnx-to-openvino/README.md
3939
102-pytorch-onnx-to-openvino/data/street.jpg
40-
103-paddle-onnx-to-openvino/requirements.txt
41-
103-paddle-onnx-to-openvino/README.md
42-
103-paddle-onnx-to-openvino/103-paddle-onnx-to-openvino-classification.ipynb
43-
103-paddle-onnx-to-openvino/coco_close.png
4440
104-model-tools/requirements.txt
4541
104-model-tools/README.md
4642
104-model-tools/104-model-tools.ipynb

automation/bootstrap/install_docker_packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
2222

2323
sudo -E apt-get install -y docker-ce docker-ce-cli containerd.io
2424

25-
sudo groupadd docker
25+
sudo groupadd -f docker
2626

2727
sudo usermod -aG docker $USER
2828

automation/bootstrap/install_python_packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ python3 -m pip install -r ${OPENVINO_WORKBENCH_ROOT}/client/automation/requireme
3939
python3 -m pip install -r ${OPENVINO_WORKBENCH_ROOT}/model_analyzer/requirements.txt
4040
deactivate
4141

42-
printf "\n Installing dependecies of deep learning frameworks \n\n"
42+
printf "\n Installing dependencies of deep learning frameworks \n\n"
4343

4444
python3 -m virtualenv ${OPENVINO_WORKBENCH_ROOT}/.unified_venv
4545
source ${OPENVINO_WORKBENCH_ROOT}/.unified_venv/bin/activate

automation/jenkinsfiles/deploy.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@Library(['workbench_lib', 'mainlib@0.1.0']) _
1+
@Library(['workbench_lib', 'mainlib@master']) _
22
import java.text.SimpleDateFormat
33

44

automation/jenkinsfiles/precommit.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@Library(['workbench_lib', 'mainlib@0.4.0']) _
1+
@Library(['workbench_lib', 'mainlib@master']) _
22

33
properties([
44
buildDiscarder(logRotator(daysToKeepStr: "10")),

client/e2e/commands.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"browsers": {
88
"base": "./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --github_token 5fb7f923d65bd47dde62689da74cb849435c2c8a {chrome} {firefox}",
9-
"chrome": "--versions.chrome 100.0.4896.60",
9+
"chrome": "--versions.chrome 106.0.5249.61",
1010
"firefox": "--versions.gecko v0.26.0",
1111
"without:chrome": "--chrome false",
1212
"without:firefox": "--gecko false",

client/e2e/src/headless-mode-off.e2e-spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ describe('UI tests with disabled headless mode', () => {
7070
await testUtils.configurationWizard.deleteUploadedFile(datasetName);
7171
});
7272

73-
it(
73+
// FIXME: 92937
74+
xit(
7475
'should upload FasterRCNNInceptionResNetV2 model, specify usage of pipeline config,' +
7576
' check that model is in table',
7677
async () => {

client/e2e/src/int8-advanced-cases.e2e-spec.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('UI tests on Running Int8 Calibration (Python)', () => {
8383
const adviceCheckingParams = {
8484
adviceLevel: 0,
8585
isTheoryPresent: true,
86-
numberOfAdviceContainers: 2,
86+
numberOfAdviceContainers: 1, // TODO 92170
8787
adviceId: 'unquantizedConvolutions',
8888
};
8989
// Go back to the original project
@@ -96,11 +96,12 @@ describe('UI tests on Running Int8 Calibration (Python)', () => {
9696
await testUtils.inferenceCard.checkAdvice({ ...adviceCheckingParams, adviceId: 'calibrateFirst' });
9797

9898
// Check the second advice
99-
await testUtils.inferenceCard.checkAdvice({
100-
...adviceCheckingParams,
101-
adviceLevel: 1,
102-
adviceId: 'reordersOverload',
103-
});
99+
// TODO 92170 Consider changing model for checking second reorder advice/improvement
100+
// await testUtils.inferenceCard.checkAdvice({
101+
// ...adviceCheckingParams,
102+
// adviceLevel: 1,
103+
// adviceId: 'reordersOverload',
104+
// });
104105
}
105106
);
106107

client/e2e/src/smoke-cpu.e2e-spec.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ describe('UI tests on Running inference', () => {
6262
await calibrationUtils.runInt8PipelineThroughDownloader(modelFile, datasetFileImageNet, inferenceTarget);
6363
});
6464

65-
// TODO unskip when resolved 38040
65+
// TODO unskip when resolved 38040 - seems resolved
66+
// TODO However, possibly test can fail due to the same tensor name error as in 38040
67+
// TODO 93582 - Fix RuntimeError: Attempt to get a name for a Tensor without names
6668
xit(
6769
'should go to model manager and upload a YOLO V2 model, go to accuracy edit and select Tiny V2, check that change is applied ' +
6870
'in the models table',

development/docs/bootstrap.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
```
234234

235235
11. Copy this configuration(this one will be for Celery)
236-
12. Setup settings as on the image![Celery configuration](celery_configuration.png)
236+
12. Setup settings as on the image![Celery configuration](images/celery_configuration.png)
237237

238238
| Property | Value |
239239
|-----------------------|----------------------------------------------------------------------------------------------------------|
@@ -242,7 +242,7 @@
242242
| Working configuration | OPENVINO_WORKBENCH_ROOT/ |
243243
13. Set to user environment variable `VENV_TF2_PYTHON` this value `OPENVINO_WORKBENCH_ROOT/.unified_venv/bin/python`
244244
14. Copy this configuration(this one will be for database upgrading)
245-
15. Setup settings as on the image![DB upgrade configuration](db_upgrade_configuration.png)
245+
15. Setup settings as on the image![DB upgrade configuration](images/db_upgrade_configuration.png)
246246

247247
| Property | Value |
248248
|-----------------------|----------------------------------------------------------------------------------------------------------|
@@ -310,4 +310,3 @@ python ./wb/main/utils/bundle_creator/bundle_downloader.py \
310310
4. Make sure that your VM satisfy requirement:
311311
* Installed `python` (v3) and `pip` (as a python module:`python3 -m pip --version`)
312312
* Configured Internet connection (`ping -c 1 google.com`)
313-

docker/dockerfiles/Dockerfile

+45-15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ARG rabbitmq_password
1616
ARG google_analytics_id
1717
ARG PACKAGE_LINK
1818
ARG WHEELS_LINK
19+
ARG WHEELS_DEV_LINK
1920
ARG HTTP_PROXY
2021
ARG HTTPS_PROXY
2122
ARG NO_PROXY
@@ -38,29 +39,37 @@ ENV http_proxy ${HTTP_PROXY}
3839
ENV https_proxy ${HTTPS_PROXY}
3940
ENV no_proxy ${NO_PROXY}
4041

42+
ENV INTEL_OPENVINO_DIR /opt/intel/openvino
43+
4144
ENV OPENVINO_WORKBENCH_ROOT ${INTEL_OPENVINO_DIR}/tools/workbench
4245
ENV WHEELS_PATH ${OPENVINO_WORKBENCH_ROOT}/wheels
4346
ENV WORKBENCH_FE_DIR ${OPENVINO_WORKBENCH_ROOT}/client
4447
ENV OPENVINO_WORKBENCH_DATA_PATH ${OPENVINO_WORKBENCH_ROOT}/wb/data
48+
ENV WORKBENCH_POSTGRESQL_DATA_DIR ${WORKBENCH_PUBLIC_DIR}/postgresql_data_directory
4549

4650
ENV TZ Europe/Helsinki
4751

4852
ENV PYTHONPATH ${PYTHONPATH}:\
4953
${OPENVINO_WORKBENCH_ROOT}:\
50-
${OPENVINO_WORKBENCH_ROOT}/model_analyzer:\
51-
${INTEL_OPENVINO_DIR}/tools/benchmark_tool
54+
${OPENVINO_WORKBENCH_ROOT}/model_analyzer
5255

53-
ENV NOTEBOOKS_VENV /tmp/jupyter_env
56+
ENV HOME_FOLDER /home/${USER_NAME}
5457

55-
RUN useradd -ms /bin/bash -u 28895 ${USER_NAME} && \
58+
RUN useradd -ms /bin/bash -u 1001 ${USER_NAME} && \
5659
chown ${USER_NAME} -R /home/${USER_NAME}
5760

5861
# CREATE DIRECTORY FOR PUBLIC WORKBENCH ARTIFACTS
59-
ENV WORKBENCH_PUBLIC_DIR /home/${USER_NAME}/.workbench
62+
ENV WORKBENCH_PUBLIC_DIR ${HOME_FOLDER}/.workbench
6063
RUN mkdir -m 777 -p ${WORKBENCH_PUBLIC_DIR} && chown -R ${USER_NAME} ${WORKBENCH_PUBLIC_DIR}
6164

65+
ENV JUPYTER_BASE_DIR ${HOME_FOLDER}/.jupyter
66+
ENV JUPYTER_USER_SETTINGS_DIR ${JUPYTER_BASE_DIR}/lab/user-settings
67+
ENV JUPYTER_TUTORIALS_DIR ${WORKBENCH_PUBLIC_DIR}/tutorials
68+
ENV NOTEBOOKS_VENV ${OPENVINO_WORKBENCH_DATA_PATH}/jupyter_env
69+
6270
RUN apt update && \
6371
apt install -y --no-install-recommends \
72+
curl \
6473
unzip \
6574
erlang-nox \
6675
default-jre \
@@ -71,8 +80,11 @@ RUN apt update && \
7180
python3-pip \
7281
python3-setuptools \
7382
python3-dev \
83+
python3-venv \
7484
nginx \
7585
libsm6 \
86+
libopencv-dev \
87+
python3-opencv \
7688
# for envsubst
7789
gettext-base \
7890
libboost-filesystem-dev \
@@ -90,6 +102,15 @@ RUN apt update && \
90102
apt clean && \
91103
rm -rf /var/lib/apt/lists/*
92104

105+
RUN mkdir -p ${INTEL_OPENVINO_DIR}
106+
107+
# Load and install OpenVINO package
108+
RUN curl ${PACKAGE_LINK} -o /tmp/package.tgz \
109+
&& mkdir -p /tmp/openvino/ \
110+
&& tar -xzf /tmp/package.tgz -C /tmp/openvino/ \
111+
&& rm -rf /tmp/package.tgz \
112+
&& DIRNAME=$(ls /tmp/openvino/) && mv -v /tmp/openvino/${DIRNAME}/* ${INTEL_OPENVINO_DIR}
113+
93114
# For postgresql-10
94115
RUN curl -L https://www.postgresql.org/media/keys/ACCC4CF8.asc -s | apt-key add - && \
95116
echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list
@@ -125,6 +146,9 @@ RUN gpasswd -a ${USER_NAME} ssl-cert && \
125146
gpasswd -a ${USER_NAME} video && \
126147
gpasswd -a ${USER_NAME} adm
127148

149+
# COPY JUPYTER USER SETTINGS
150+
COPY --chown=${USER_NAME} docker/jupyter_config/user-settings ${JUPYTER_USER_SETTINGS_DIR}
151+
128152
RUN rm -rf /etc/nginx/sites-enabled/default && \
129153
touch /var/run/nginx.pid
130154

@@ -191,6 +215,21 @@ RUN python3 -m pip install --no-cache-dir --proxy=${https_proxy} -r ${OPENVINO_W
191215
python3 -m pip install --no-cache-dir --proxy=${https_proxy} -r ${OPENVINO_WORKBENCH_ROOT}/requirements/requirements_dev.txt && \
192216
python3 -m pip install --no-cache-dir --proxy=${https_proxy} -r ${OPENVINO_WORKBENCH_ROOT}/model_analyzer/requirements.txt
193217

218+
RUN chown ${CI_USER}: ${INTEL_OPENVINO_DIR}/setupvars.sh
219+
220+
# TODO: 94358 - Enable wheel downloader
221+
222+
WORKDIR ${WHEELS_PATH}
223+
RUN curl -O $WHEELS_LINK
224+
RUN curl -O $WHEELS_DEV_LINK
225+
226+
# Base image changed to ubuntu, we should to setup openvino
227+
RUN python3 -m pip install -U pip setuptools wheel
228+
229+
RUN chown -R ${USER_NAME} ${WHEELS_PATH} && \
230+
OPENVINO_WHEEL=$(find ${WHEELS_PATH} -name "openvino-202*cp38*linux*.whl" -print -quit) && python3 -m pip install ${OPENVINO_WHEEL} && \
231+
OPENVINO_DEV_WHEEL=$(find ${WHEELS_PATH} -name "openvino_dev*.whl" -print -quit) && python3 -m pip install "${OPENVINO_DEV_WHEEL}"
232+
194233
RUN chown -R ${USER_NAME} ${OPENVINO_WORKBENCH_ROOT}
195234

196235
USER ${USER_NAME}
@@ -208,16 +247,7 @@ RUN . ${NVM_DIR}/nvm.sh && \
208247

209248
WORKDIR ${OPENVINO_WORKBENCH_ROOT}
210249

211-
RUN python3 ${OPENVINO_WORKBENCH_ROOT}/wb/main/utils/bundle_creator/bundle_downloader.py \
212-
--link "${PACKAGE_LINK}" \
213-
-os ubuntu18 ubuntu20 \
214-
--output-path "${OPENVINO_WORKBENCH_ROOT}/bundles" \
215-
--targets cpu gpu hddl opencv python3.6 python3.7 python3.8 vpu
216-
217-
RUN python3 ${OPENVINO_WORKBENCH_ROOT}/wb/main/utils/wheel_downloader.py \
218-
--link ${WHEELS_LINK} \
219-
--output-path ${WHEELS_PATH}
250+
# TODO: 94359 - Enable bundle downloader
220251

221252
# install jenkins jnlp agent
222-
223253
ENTRYPOINT ["/tools/jenkins-agent"]

docker/dockerfiles/Dockerfile_opensource_image.template

+9-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ ENV https_proxy ${HTTPS_PROXY}
1010

1111
ARG DB_PASSWORD
1212
ARG RABBITMQ_PASSWORD
13-
ARG PACKAGE_LINK
14-
ARG WHEELS_LINK
13+
# ARG PACKAGE_LINK
14+
# ARG WHEELS_LINK
15+
# ARG WHEELS_DEV_LINK
1516
ARG OPENVINO_OPENCV_DOWNLOAD_SERVER
17+
ARG GOOGLE_ANALYTICS_ID
1618

1719
ENV DEBIAN_FRONTEND noninteractive
1820
ENV ACCURACY_CHECKER_LOG_LEVEL ERROR
@@ -31,6 +33,8 @@ ENV GROUP_NAME ${USER_NAME}
3133
ENV GROUP_ID ${USER_ID}
3234
ENV HOME_FOLDER /home/${USER_NAME}
3335

36+
ENV GOOGLE_ANALYTICS_ID ${GOOGLE_ANALYTICS_ID}
37+
3438
ENV DB_PASSWORD ${DB_PASSWORD}
3539
ENV DB_USER ${USER_NAME}
3640
ENV DB_NAME workbench
@@ -43,17 +47,20 @@ RUN useradd ${USER_NAME} -u ${USER_ID} -g ${GROUP_ID} -ms /bin/bash && \
4347

4448
ENV WORKBENCH_PUBLIC_DIR ${HOME_FOLDER}/.workbench
4549
ENV WORKBENCH_POSTGRESQL_DATA_DIR ${WORKBENCH_PUBLIC_DIR}/postgresql_data_directory
50+
4651
ENV JUPYTER_BASE_DIR ${HOME_FOLDER}/.jupyter
4752
ENV JUPYTER_USER_SETTINGS_DIR ${JUPYTER_BASE_DIR}/lab/user-settings
4853
ENV JUPYTER_TUTORIALS_DIR ${WORKBENCH_PUBLIC_DIR}/tutorials
4954
ENV NOTEBOOKS_VENV ${OPENVINO_WORKBENCH_DATA_PATH}/jupyter_env
5055

5156
ENV DEPENDENCIES " \
5257
unzip \
58+
git \
5359
python3 \
5460
python3-pip \
5561
python3-setuptools \
5662
python3-dev \
63+
python3-venv \
5764
libopencv-dev \
5865
python3-opencv \
5966
build-essential \

0 commit comments

Comments
 (0)