Skip to content

Commit

Permalink
Run scale tests moved and hidden behind env var.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jun 15, 2020
1 parent ef6841e commit 00d74bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
6 changes: 6 additions & 0 deletions scripts/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function display_timelines() {
}

function run_scale_test_130_pods() {
echo "Running scale tests against cluster"
DEPLOY_START=$SECONDS

SCALE_UP_DURATION_ARRAY=()
SCALE_DOWN_DURATION_ARRAY=()
while [ ${#SCALE_UP_DURATION_ARRAY[@]} -lt 3 ]
Expand Down Expand Up @@ -71,4 +74,7 @@ function run_scale_test_130_pods() {
echo "${SCALE_DOWN_DURATION_ARRAY[$INDEX]} seconds"
INDEX=$((INDEX + 1))
done
echo ""
DEPLOY_DURATION=$((SECONDS - DEPLOY_START))
echo "TIMELINE: 130 Pod scale test took $DEPLOY_DURATION seconds."
}
20 changes: 6 additions & 14 deletions scripts/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,6 @@ echo "TESTING downloading eksctl"
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv -v /tmp/eksctl /usr/local/bin

aws sts get-caller-identity

eksctl get clusters

echo "TESTING trying to put 20 pods on new nodegroup"
DEPLOY_START=$SECONDS

$KUBECTL_PATH apply -f deploy-130-pods.yaml
run_scale_test_130_pods
$KUBECTL_PATH delete -f deploy-130-pods.yaml

DEPLOY_DURATION=$((SECONDS - DEPLOY_START))
echo "TIMELINE: Current image integration tests took $DEPLOY_DURATION seconds."

echo "*******************************************************************************"
echo "Running integration tests on default CNI version, $ADDONS_CNI_IMAGE"
echo ""
Expand Down Expand Up @@ -229,6 +215,12 @@ if [[ $TEST_PASS -eq 0 && "$RUN_CONFORMANCE" == true ]]; then
echo "TIMELINE: Conformance tests took $CONFORMANCE_DURATION seconds."
fi

if [ "$RUN_SCALE_TESTS" == true ]
$KUBECTL_PATH apply -f deploy-130-pods.yaml
run_scale_test_130_pods
$KUBECTL_PATH delete -f deploy-130-pods.yaml
fi

if [[ "$DEPROVISION" == true ]]; then
START=$SECONDS

Expand Down

0 comments on commit 00d74bc

Please sign in to comment.