Remove redundant commands and usage of ipython
This commit is contained in:
parent
7403a10705
commit
23a0e0149f
|
|
@ -151,7 +151,7 @@ check_result() {
|
||||||
check_notebook_result() {
|
check_notebook_result() {
|
||||||
jupyter nbconvert --to python $1.ipynb
|
jupyter nbconvert --to python $1.ipynb
|
||||||
pip3 install tensorflow==1.8.0
|
pip3 install tensorflow==1.8.0
|
||||||
ipython $1.py
|
python3 $1.py
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
cd ${TEST_DIR}
|
cd ${TEST_DIR}
|
||||||
|
|
||||||
|
|
@ -171,6 +171,8 @@ check_notebook_result() {
|
||||||
# Need to make sure CMLE models are cleaned inside the notebook.
|
# Need to make sure CMLE models are cleaned inside the notebook.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [[ -z "$RESULTS_GCS_DIR" ]]; then
|
if [[ -z "$RESULTS_GCS_DIR" ]]; then
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -264,7 +266,6 @@ elif [[ "${TEST_NAME}" == "kubeflow_pipeline_using_TFX_OSS_components" ]]; then
|
||||||
DEPLOYER_MODEL=`cat /proc/sys/kernel/random/uuid`
|
DEPLOYER_MODEL=`cat /proc/sys/kernel/random/uuid`
|
||||||
DEPLOYER_MODEL=Notebook_tfx_taxi_`echo ${DEPLOYER_MODEL//-/_}`
|
DEPLOYER_MODEL=Notebook_tfx_taxi_`echo ${DEPLOYER_MODEL//-/_}`
|
||||||
|
|
||||||
cd ${BASE_DIR}/samples/core/kubeflow_pipeline_using_TFX_OSS_components
|
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
if [[ -n "${DATAFLOW_TFT_IMAGE}" ]]; then
|
if [[ -n "${DATAFLOW_TFT_IMAGE}" ]]; then
|
||||||
|
|
@ -305,8 +306,6 @@ elif [[ "${TEST_NAME}" == "lightweight_component" ]]; then
|
||||||
|
|
||||||
check_notebook_result ${TEST_NAME}
|
check_notebook_result ${TEST_NAME}
|
||||||
elif [[ "${TEST_NAME}" == "dsl_static_type_checking" ]]; then
|
elif [[ "${TEST_NAME}" == "dsl_static_type_checking" ]]; then
|
||||||
|
|
||||||
cd ${BASE_DIR}/samples/core/dsl_static_type_checking
|
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
papermill --prepare-only -p KFP_PACKAGE /tmp/kfp.tar.gz \
|
papermill --prepare-only -p KFP_PACKAGE /tmp/kfp.tar.gz \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue