test: fix postsubmit test is_integration_test flag

This commit is contained in:
Yuan Gong 2021-02-24 14:05:11 +00:00
parent d3f77b292b
commit cd55a55c62
3 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ Please refer to inline comments for the purpose of each step in both samples.
# Compilation
* `parameterized_tfx_oss.py`:
In order to successfully compile the Python sample, you'll need to have a TFX installation at
version 0.21.2 by running `python3 -m pip install tfx==0.21.2`. After that, under the sample dir run
version 0.27.0 by running `python3 -m pip install tfx==0.27.0`. After that, under the sample dir run
`python3 parameterized_tfx_oss.py` to compile the TFX pipeline into KFP pipeline package.
The compilation is done by invoking `kfp_runner.run(pipeline)` in the script.

View File

@ -37,6 +37,7 @@ GCR_IMAGE_BASE_DIR=gcr.io/ml-pipeline-test
TARGET_IMAGE_BASE_DIR=gcr.io/ml-pipeline-test/${PULL_BASE_SHA}
TIMEOUT_SECONDS=1800
NAMESPACE=kubeflow
IS_INTEGRATION_TEST=false
ENABLE_WORKLOAD_IDENTITY=true
COMMIT_SHA="$PULL_BASE_SHA"
@ -57,6 +58,9 @@ while [ "$1" != "" ]; do
--test_result_folder ) shift
TEST_RESULT_FOLDER=$1
;;
--is_integration_test ) shift
IS_INTEGRATION_TEST=$1
;;
--timeout ) shift
TIMEOUT_SECONDS=$1
;;
@ -146,6 +150,7 @@ if [ ${KFP_DEPLOYMENT} == standalone ]; then
-p component-image-prefix="${GCR_IMAGE_BASE_DIR}/" \
-p target-image-prefix="${TARGET_IMAGE_BASE_DIR}/" \
-p test-results-gcs-dir="${TEST_RESULTS_GCS_DIR}" \
-p is-integration-test="${IS_INTEGRATION_TEST}" \
-n ${NAMESPACE} \
--serviceaccount test-runner \
-o name

View File

@ -5,10 +5,5 @@ fire
yamale
kubernetes
# Avoiding conflicts:
# There are incompatible versions in the resolved dependencies:
# google-resumable-media<0.5.0dev,>=0.3.1 (from google-cloud-bigquery==1.17.1->apache-beam[gcp]==2.17.0->tfx==0.21.2->-r -)
# google-resumable-media<0.6dev,>=0.5.0 (from google-cloud-storage==1.27.0->-r -)
google-cloud-bigquery==1.17.0
google-cloud-storage==1.17.0