X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap-verify-perf.sh;h=c6619f9ea9dc2eb6971ce8a9de91aff7c5061eaf;hp=16dd536456f095e9fd9a4c3645612a1b96e593c9;hb=2059511d5d9d6c89c3dea852ac77e470d7f49265;hpb=a881153db68401e040f37262d60b5d5e3cc486ac diff --git a/bootstrap-verify-perf.sh b/bootstrap-verify-perf.sh index 16dd536456..c6619f9ea9 100755 --- a/bootstrap-verify-perf.sh +++ b/bootstrap-verify-perf.sh @@ -15,9 +15,12 @@ set -x # Space separated list of available testbeds, described by topology files -TOPOLOGIES="topologies/available/lf_testbed2-710-520.yaml" -VPP_STABLE_VER="1.0.0-437~g8f15e92_amd64" -VPP_REPO_URL="https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp" +TOPOLOGIES="topologies/available/lf_testbed1-X710-X520.yaml \ + topologies/available/lf_testbed2-X710-X520.yaml \ + topologies/available/lf_testbed3-X710-X520.yaml" + +VPP_STABLE_VER="16.09-rc0~85-gc71c426~b252_amd64" +VPP_REPO_URL="https://nexus.fd.io/content/repositories/fd.io.master.ubuntu.trusty.main/io/fd/vpp/" # Reservation dir RESERVATION_DIR="/tmp/reservation_dir" @@ -25,7 +28,7 @@ INSTALLATION_DIR="/tmp/install_dir" PYBOT_ARGS="--noncritical MULTI_THREAD" -ARCHIVE_ARTIFACTS=(log.html output.xml report.html output_perf_data.json) +ARCHIVE_ARTIFACTS=(log.html output.xml report.html output_perf_data.xml) # If we run this script from CSIT jobs we want to use stable vpp version if [[ ${JOB_NAME} == csit-* ]] ; @@ -61,7 +64,7 @@ export PYTHONPATH=${CUR_DIR} sudo apt-get -y update sudo apt-get -y install libpython2.7-dev python-virtualenv -virtualenv env +virtualenv --system-site-packages env . env/bin/activate echo pip install @@ -117,6 +120,7 @@ case "$TEST_TAG" in -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ -i perftest_long \ tests/ + RETURN_STATUS=$(echo $?) ;; PERFTEST_SHORT ) pybot ${PYBOT_ARGS} \ @@ -124,6 +128,7 @@ case "$TEST_TAG" in -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ -i perftest_short \ tests/ + RETURN_STATUS=$(echo $?) ;; PERFTEST_LONG_BRIDGE ) pybot ${PYBOT_ARGS} \ @@ -131,6 +136,7 @@ case "$TEST_TAG" in -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ -s "performance.Long_Bridge_Domain*" \ tests/ + RETURN_STATUS=$(echo $?) ;; PERFTEST_LONG_IPV4 ) pybot ${PYBOT_ARGS} \ @@ -138,6 +144,7 @@ case "$TEST_TAG" in -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ -s "performance.Long_IPv4*" \ tests/ + RETURN_STATUS=$(echo $?) ;; PERFTEST_LONG_IPV6 ) pybot ${PYBOT_ARGS} \ @@ -145,6 +152,7 @@ case "$TEST_TAG" in -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ -s "performance.Long_IPv6*" \ tests/ + RETURN_STATUS=$(echo $?) ;; PERFTEST_LONG_XCONNECT ) pybot ${PYBOT_ARGS} \ @@ -152,6 +160,30 @@ case "$TEST_TAG" in -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ -s "performance.Long_Xconnect*" \ tests/ + RETURN_STATUS=$(echo $?) + ;; + PERFTEST_LONG_XCONNECT_DOT1Q ) + pybot ${PYBOT_ARGS} \ + -L TRACE \ + -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ + -s "performance.Long_Xconnect_Dot1q*" \ + RETURN_STATUS=$(echo $?) + ;; + PERFTEST_NDR ) + pybot ${PYBOT_ARGS} \ + -L TRACE \ + -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ + -s performance -i NDR \ + tests/ + RETURN_STATUS=$(echo $?) + ;; + PERFTEST_PDR ) + pybot ${PYBOT_ARGS} \ + -L TRACE \ + -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ + -s performance -i PDR \ + tests/ + RETURN_STATUS=$(echo $?) ;; * ) # run full performance test suite and exit on fail @@ -160,12 +192,15 @@ case "$TEST_TAG" in -v TOPOLOGY_PATH:${WORKING_TOPOLOGY} \ -s performance \ tests/ + RETURN_STATUS=$(echo $?) esac # Pybot output post-processing +echo Post-processing test data... + python ${CUR_DIR}/resources/tools/robot_output_parser.py \ -i ${CUR_DIR}/output.xml \ - -o ${CUR_DIR}/output_perf_data.json \ + -o ${CUR_DIR}/output_perf_data.xml \ -v ${VPP_STABLE_VER} if [ ! $? -eq 0 ]; then echo "Parsing ${CUR_DIR}/output.xml failed" @@ -177,3 +212,6 @@ for i in ${ARCHIVE_ARTIFACTS[@]}; do cp $( readlink -f ${i} | tr '\n' ' ' ) archive/ done +echo Post-processing finished. + +exit ${RETURN_STATUS}