From 3929cfa6425b43a533bdce5bd51b50939cd0056e Mon Sep 17 00:00:00 2001 From: Renmin Date: Wed, 25 Mar 2020 16:23:02 +0800 Subject: [PATCH] Integration test fix (#3357) * try generate MKP binary for each submit * try run * fix format * fix format * fix format * it works, gcloud builds submit --config test/cloudbuild/mkp_verify.yaml --project ml-pipeline-test * test commit trigger * backup codes * test * fix * pass manual test before submit * 0.3.0 * quick fix for test path Co-authored-by: Renmin Gu --- test/deploy-pipeline-mkp-cli.sh | 5 +++-- test/postsubmit-tests-with-pipeline-deployment.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/deploy-pipeline-mkp-cli.sh b/test/deploy-pipeline-mkp-cli.sh index e3337afa0c62..4918d11e428f 100755 --- a/test/deploy-pipeline-mkp-cli.sh +++ b/test/deploy-pipeline-mkp-cli.sh @@ -16,12 +16,13 @@ # Test before submit: -# test/deploy-pipline-mkp-cli.sh 0.2 $(git rev-parse HEAD) +# test/deploy-pipline-mkp-cli.sh 0.3 $(git rev-parse HEAD) $(pwd)/test set -ex VERSION=$1 COMMIT_SHA=$2 +TEST_FOLDER=$3 # sync trigger to avoid wait -gcloud builds submit --config=test/cloudbuild/mkp_verify.yaml --substitutions=_DEPLOYER_VERSION="$VERSION",COMMIT_SHA="$COMMIT_SHA" --project=ml-pipeline-test \ No newline at end of file +gcloud builds submit --config=$TEST_FOLDER/cloudbuild/mkp_verify.yaml --substitutions=_DEPLOYER_VERSION="$VERSION",COMMIT_SHA="$COMMIT_SHA" --project=ml-pipeline-test \ No newline at end of file diff --git a/test/postsubmit-tests-with-pipeline-deployment.sh b/test/postsubmit-tests-with-pipeline-deployment.sh index 974680ee3790..a3c4ed474c47 100755 --- a/test/postsubmit-tests-with-pipeline-deployment.sh +++ b/test/postsubmit-tests-with-pipeline-deployment.sh @@ -154,6 +154,6 @@ if [ ${KFP_DEPLOYMENT} == standalone ]; then echo "test workflow completed" else SEM_VERSION="$(cat ${DIR}/../VERSION)" - source "${DIR}/deploy-pipeline-mkp-cli.sh" $SEM_VERSION $COMMIT_SHA + source "${DIR}/deploy-pipeline-mkp-cli.sh" $SEM_VERSION $COMMIT_SHA ${DIR} exit $? fi