From 547c9ff9daeded8c166876503a27ae953734fd3e Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Tue, 13 Nov 2018 17:58:14 -0500 Subject: [PATCH] AT debugging CI issues --- kubernetes/runK8SAcceptanceTests.sh | 98 ++++++++++++++--------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/kubernetes/runK8SAcceptanceTests.sh b/kubernetes/runK8SAcceptanceTests.sh index 205b5e2..f8623dd 100755 --- a/kubernetes/runK8SAcceptanceTests.sh +++ b/kubernetes/runK8SAcceptanceTests.sh @@ -159,31 +159,31 @@ CLUSTER_NAME=$2 GKE_ZONE=$3 CLUSTER_VERSION=$4 -#prepare_ticktock_latest_with_kafka_binder ${PROJECT_NAME} ${CLUSTER_NAME} ${GKE_ZONE} ${CLUSTER_VERSION} -# -#pushd ../spring-cloud-stream-acceptance-tests -# -#../mvnw clean package -Dtest=TickTockLatestAcceptanceTests -Dmaven.test.skip=false -Dtime.source.route=$FULL_TICKTOCK_TIME_SOURCE_ROUTE -Dlog.sink.route=$FULL_TICKTOCK_LOG_SINK_ROUTE -#BUILD_RETURN_VALUE=$? -# -#popd -# -#delete_acceptance_test_components -# -#if [ "$BUILD_RETURN_VALUE" != 0 ] -#then -# echo "Early exit due to test failure in ticktock tests" -# duration=$SECONDS -# -# echo "Total time: Build took $(($duration / 60)) minutes and $(($duration % 60)) seconds to complete." -# -# delete_kafka_components -# sleep 60 -# delete_test_cluster ${CLUSTER_NAME} ${GKE_ZONE} ${PROJECT_NAME} -# -# exit $BUILD_RETURN_VALUE -#fi -# +prepare_ticktock_latest_with_kafka_binder ${PROJECT_NAME} ${CLUSTER_NAME} ${GKE_ZONE} ${CLUSTER_VERSION} + +pushd ../spring-cloud-stream-acceptance-tests + +../mvnw clean package -Dtest=TickTockLatestAcceptanceTests -Dmaven.test.skip=false -Dtime.source.route=$FULL_TICKTOCK_TIME_SOURCE_ROUTE -Dlog.sink.route=$FULL_TICKTOCK_LOG_SINK_ROUTE +BUILD_RETURN_VALUE=$? + +popd + +delete_acceptance_test_components + +if [ "$BUILD_RETURN_VALUE" != 0 ] +then + echo "Early exit due to test failure in ticktock tests" + duration=$SECONDS + + echo "Total time: Build took $(($duration / 60)) minutes and $(($duration % 60)) seconds to complete." + + delete_kafka_components + sleep 60 + delete_test_cluster ${CLUSTER_NAME} ${GKE_ZONE} ${PROJECT_NAME} + + exit $BUILD_RETURN_VALUE +fi + #prepare_uppercase_transformer_with_kafka_binder # #pushd ../spring-cloud-stream-acceptance-tests @@ -209,30 +209,30 @@ CLUSTER_VERSION=$4 # exit $BUILD_RETURN_VALUE #fi -prepare_partitioning_test_with_kafka_binder ${PROJECT_NAME} ${CLUSTER_NAME} ${GKE_ZONE} ${CLUSTER_VERSION} - -pushd ../spring-cloud-stream-acceptance-tests - -../mvnw clean package -Dtest=PartitioningKafkaAcceptanceTests -Dmaven.test.skip=false -Dpartitioning.producer.route=$FULL_PARTITIONING_PRODUCER_ROUTE -Dpartitioning.consumer1.route=$FULL_PARTITIONING_CONSUMER1_ROUTE -Dpartitioning.consumer2.route=$FULL_PARTITIONING_CONSUMER2_ROUTE -Dpartitioning.consumer3.route=$FULL_PARTITIONING_CONSUMER3_ROUTE -BUILD_RETURN_VALUE=$? - -popd - -delete_acceptance_test_components - -if [ "$BUILD_RETURN_VALUE" != 0 ] -then - echo "Early exit due to test failure in ticktock tests" - duration=$SECONDS - - echo "Total time: Build took $(($duration / 60)) minutes and $(($duration % 60)) seconds to complete." - - delete_kafka_components - sleep 60 - delete_test_cluster ${CLUSTER_NAME} ${GKE_ZONE} ${PROJECT_NAME} - - exit $BUILD_RETURN_VALUE -fi +#prepare_partitioning_test_with_kafka_binder ${PROJECT_NAME} ${CLUSTER_NAME} ${GKE_ZONE} ${CLUSTER_VERSION} +# +#pushd ../spring-cloud-stream-acceptance-tests +# +#../mvnw clean package -Dtest=PartitioningKafkaAcceptanceTests -Dmaven.test.skip=false -Dpartitioning.producer.route=$FULL_PARTITIONING_PRODUCER_ROUTE -Dpartitioning.consumer1.route=$FULL_PARTITIONING_CONSUMER1_ROUTE -Dpartitioning.consumer2.route=$FULL_PARTITIONING_CONSUMER2_ROUTE -Dpartitioning.consumer3.route=$FULL_PARTITIONING_CONSUMER3_ROUTE +#BUILD_RETURN_VALUE=$? +# +#popd +# +#delete_acceptance_test_components +# +#if [ "$BUILD_RETURN_VALUE" != 0 ] +#then +# echo "Early exit due to test failure in ticktock tests" +# duration=$SECONDS +# +# echo "Total time: Build took $(($duration / 60)) minutes and $(($duration % 60)) seconds to complete." +# +# delete_kafka_components +# sleep 60 +# delete_test_cluster ${CLUSTER_NAME} ${GKE_ZONE} ${PROJECT_NAME} +# +# exit $BUILD_RETURN_VALUE +#fi delete_kafka_components sleep 60