CSIT-682 Usage of make-verify for vpp-csit-verify jobs 73/7173/3
authorPeter Mikus <pmikus@cisco.com>
Fri, 16 Jun 2017 08:04:12 +0000 (10:04 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 28 Jun 2017 20:25:49 +0000 (16:25 -0400)
Solve DPDK dependency in vpp-csit-verify* jobs, so that every time
vpp-csit-verify* is triggered the latest DPDK is build and used. This
patch will allows us to verify latest DPDK changes and be able to link
dpdk-plugin dependencies. It suppose the remove the dependency of
upgrading DPDK_DEV manually in CSIT branch.

Change-Id: Id560e4798ae9261bc98497a1ffb211b39131d0e3
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
jjb/scripts/setup_vpp_dpdk_dev_env.sh
jjb/vpp/include-raw-vpp-build.sh
jjb/vpp/include-raw-vpp-csit-functional.sh
jjb/vpp/include-raw-vpp-csit-verify-perf.sh
jjb/vpp/vpp.yaml

index cfb9961..f36bcaa 100644 (file)
@@ -26,6 +26,7 @@ function setup {
             echo "deb ${REPO_URL} ./" | sudo tee /etc/apt/sources.list.d/99fd.io.list
             sudo apt-get update || true
             sudo apt-get -y --force-yes install vpp-dpdk-dev || true
+            sudo apt-get -y --force-yes install vpp-dpdk-dkms || true
         elif [[ $DISTRIB_ID == "CentOS" ]]; then
             sudo cat << EOF > fdio-master.repo
 [fdio-master]
index b51b41a..5e603d2 100644 (file)
@@ -32,15 +32,16 @@ echo "CC=${CC}"
 echo "IS_CSIT_VPP_JOB=${IS_CSIT_VPP_JOB}"
 # If and only if we are doing verify *after* make verify was made to work
 # and we are not a CSIT job just building packages, then use make verify,
-# else use the old build-root/vagrant/build.sh
+# else use the old extras/vagrant/build.sh
 if (git log --oneline | grep 37682e1 > /dev/null 2>&1) && \
         [ "x${IS_CSIT_VPP_JOB}" != "xTrue" ]
 then
     echo "Building using \"make verify\""
     [ "x${DRYRUN}" == "xTrue" ] || make UNATTENDED=yes verify
 else
-    echo "Building using \"build-root/vagrant/build.sh\""
-    [ "x${DRYRUN}" == "xTrue" ] || build-root/vagrant/build.sh
+    echo "Building using \"make extras/vagrant/build.sh\""
+    [ "x${DRYRUN}" == "xTrue" ] || make UNATTENDED=yes dpdk-install-dev
+    [ "x${DRYRUN}" == "xTrue" ] || extras/vagrant/build.sh
 fi
 
 if [ "x${VPP_REPO}" == "x1" ]; then
index 33eef0f..38ef7e0 100644 (file)
@@ -18,6 +18,13 @@ if [ $? != 0 ]; then
 fi
 
 cp build-root/*.deb csit/
+if [ -e dpdk/vpp-dpdk-dkms*.deb ]
+then
+    cp dpdk/vpp-dpdk-dkms*.deb csit/
+else
+    cp /var/cache/apt/archives/vpp-dpdk-dkms*.deb csit/
+fi
+
 cd csit
 # execute csit bootstrap script if it exists
 if [ -e bootstrap.sh ]
index b601137..4a7480a 100644 (file)
@@ -23,6 +23,13 @@ if [ $? != 0 ]; then
 fi
 
 cp build-root/*.deb csit/
+if [ -e dpdk/vpp-dpdk-dkms*.deb ]
+then
+    cp dpdk/vpp-dpdk-dkms*.deb csit/
+else
+    cp /var/cache/apt/archives/vpp-dpdk-dkms*.deb csit/
+fi
+
 cd csit
 # execute csit bootstrap script if it exists
 if [ ! -e bootstrap-verify-perf.sh ]
index a4e7c7d..f936158 100644 (file)
 
     builders:
         - shell:
-            !include-raw-escape: include-raw-vpp-checkstyle.sh
+            !include-raw-escape:
+                - include-raw-vpp-checkstyle.sh
         - shell:
             !include-raw-escape:
                 - ../scripts/setup_vpp_dpdk_dev_env.sh
                 - include-raw-vpp-build.sh
         - shell:
-            !include-raw-escape: include-raw-vpp-csit-functional.sh
+            !include-raw-escape:
+                - include-raw-vpp-csit-functional.sh
 
     publishers:
         - archive-artifacts:
                 - ../scripts/setup_vpp_dpdk_dev_env.sh
                 - include-raw-vpp-build.sh
         - shell:
-            !include-raw-escape: include-raw-vpp-csit-verify-perf.sh
+            !include-raw-escape:
+                - include-raw-vpp-csit-verify-perf.sh
 
     publishers:
         - archive-artifacts: