From: Andrew Grimberg Date: Mon, 3 Jul 2017 17:23:56 +0000 (+0000) Subject: Merge "CSIT-682 Usage of make-verify for vpp-csit-verify jobs" X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=a247aa6703f3a09c0bcd74fd403c38876d5f3db3;hp=54669b30933ab3dff645085f4ec85c1c4b26d22e;p=ci-management.git Merge "CSIT-682 Usage of make-verify for vpp-csit-verify jobs" --- diff --git a/jjb/scripts/setup_vpp_dpdk_dev_env.sh b/jjb/scripts/setup_vpp_dpdk_dev_env.sh index cfb99615e..f36bcaad8 100644 --- a/jjb/scripts/setup_vpp_dpdk_dev_env.sh +++ b/jjb/scripts/setup_vpp_dpdk_dev_env.sh @@ -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] diff --git a/jjb/vpp/include-raw-vpp-build.sh b/jjb/vpp/include-raw-vpp-build.sh index b51b41a32..5e603d216 100644 --- a/jjb/vpp/include-raw-vpp-build.sh +++ b/jjb/vpp/include-raw-vpp-build.sh @@ -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 diff --git a/jjb/vpp/include-raw-vpp-csit-functional.sh b/jjb/vpp/include-raw-vpp-csit-functional.sh index 33eef0f38..38ef7e08e 100644 --- a/jjb/vpp/include-raw-vpp-csit-functional.sh +++ b/jjb/vpp/include-raw-vpp-csit-functional.sh @@ -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 ] diff --git a/jjb/vpp/include-raw-vpp-csit-verify-perf.sh b/jjb/vpp/include-raw-vpp-csit-verify-perf.sh index b601137b0..4a7480ae1 100644 --- a/jjb/vpp/include-raw-vpp-csit-verify-perf.sh +++ b/jjb/vpp/include-raw-vpp-csit-verify-perf.sh @@ -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 ] diff --git a/jjb/vpp/vpp.yaml b/jjb/vpp/vpp.yaml index 70f844fa9..4cd56a7dc 100644 --- a/jjb/vpp/vpp.yaml +++ b/jjb/vpp/vpp.yaml @@ -317,13 +317,15 @@ 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: @@ -405,7 +407,8 @@ - ../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: