aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-12-13 12:49:21 +0000
committerJan Gelety <jgelety@cisco.com>2019-12-16 11:12:45 +0000
commit3111f250640b2f0364bd62104416ada41098b280 (patch)
tree16c25a3875c720eab90e20832fa154b2a72d9d66 /resources
parentdee46d5cedf38248eaf6a54dd273e93a592007b0 (diff)
FIX PIP requirement packages
+ CSIT will only use packages installed from master PIP requirement.txt file + All CSIT subsequent code must use single function and PIP list for virtualenv - Report/PAL/doc/trending will follow in next patch Change-Id: Ia9150fb05a144182a5a163178d553370ede55cdd Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/bash/function/common.sh2
-rw-r--r--resources/libraries/bash/function/per_patch.sh4
-rw-r--r--resources/tools/disk-image-builder/csit-sut/Dockerfile4
-rw-r--r--resources/tools/scripts/perpatch_requirements.txt15
4 files changed, 3 insertions, 22 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh
index f3e86164e1..eb7cee970e 100644
--- a/resources/libraries/bash/function/common.sh
+++ b/resources/libraries/bash/function/common.sh
@@ -119,7 +119,7 @@ function activate_virtualenv () {
pip3 install --upgrade virtualenv || {
die "Virtualenv package install failed."
}
- virtualenv -p $(which python3) "${env_dir}" || {
+ virtualenv --python=$(which python3) "${env_dir}" || {
die "Virtualenv creation for $(which python3) failed."
}
set +u
diff --git a/resources/libraries/bash/function/per_patch.sh b/resources/libraries/bash/function/per_patch.sh
index ea7ea4f837..abf2cac688 100644
--- a/resources/libraries/bash/function/per_patch.sh
+++ b/resources/libraries/bash/function/per_patch.sh
@@ -108,10 +108,6 @@ function compare_test_results () {
set -exuo pipefail
cd "${VPP_DIR}" || die "Change directory operation failed."
- # Ply is installed as system level package, but not seen for some reason.
- pip3 install -r "${PYTHON_SCRIPTS_DIR}/perpatch_requirements.txt" || {
- die "Compare script Python requirements installation failed."
- }
# Reusing CSIT main virtualenv.
python3 "${TOOLS_DIR}/integrated/compare_perpatch.py"
# The exit code determines the vote result.
diff --git a/resources/tools/disk-image-builder/csit-sut/Dockerfile b/resources/tools/disk-image-builder/csit-sut/Dockerfile
index ba212dc960..aa5ddf288d 100644
--- a/resources/tools/disk-image-builder/csit-sut/Dockerfile
+++ b/resources/tools/disk-image-builder/csit-sut/Dockerfile
@@ -14,7 +14,7 @@
FROM ubuntu:18.04
MAINTAINER csit-dev <csit-dev@lists.fd.io>
LABEL Description="CSIT vpp-device ubuntu 18.04 SUT image"
-LABEL Version="0.7"
+LABEL Version="1.0"
# Setup the environment
ENV DEBIAN_FRONTEND=noninteractive
@@ -57,7 +57,6 @@ RUN apt-get -q update \
python-cffi \
python-cffi-backend \
python-dev \
- python-enum34 \
python-pip \
python-setuptools \
python-virtualenv \
@@ -115,6 +114,7 @@ RUN pip3 install \
scapy==2.4.3 \
scp==0.13.2 \
ansible==2.7.8 \
+ ply==3.11 \
dill==0.2.8.2 \
numpy==1.17.3 \
hdrhistogram==0.6.1 \
diff --git a/resources/tools/scripts/perpatch_requirements.txt b/resources/tools/scripts/perpatch_requirements.txt
deleted file mode 100644
index 2275fb82f2..0000000000
--- a/resources/tools/scripts/perpatch_requirements.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (c) 2019 Cisco and/or its affiliates.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# TODO: Ply should be installed as system package, fix bootstrap to see it.
-ply==3.11