diff --git a/.azure-pipelines/model-test.yml b/.azure-pipelines/model-test.yml index 512fbe158cb..270a245bb65 100644 --- a/.azure-pipelines/model-test.yml +++ b/.azure-pipelines/model-test.yml @@ -45,7 +45,7 @@ parameters: - ssd_mobilenet_v1_ckpt # - ssd_resnet50_v1_ckpt - inception_v1 - - resnet50_fashion + # - resnet50_fashion - darknet19 - densenet-121 - resnet-101 diff --git a/.azure-pipelines/scripts/ut/run_basic_adaptor.sh b/.azure-pipelines/scripts/ut/run_basic_adaptor.sh index d9a9fd2d990..d5510bbd177 100644 --- a/.azure-pipelines/scripts/ut/run_basic_adaptor.sh +++ b/.azure-pipelines/scripts/ut/run_basic_adaptor.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x python -c "import neural_compressor as nc;print(nc.version.__version__)" echo "run basic adaptor" @@ -23,11 +22,13 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log echo "cat run.sh..." cat run.sh | tee ${ut_log_name} -echo "-------------" +echo "------UT start-------" bash run.sh 2>&1 | tee -a ${ut_log_name} cp .coverage ${LOG_DIR}/.coverage.adaptor -echo "list all in ${LOG_DIR}" -ls -a ${LOG_DIR} +echo "------UT end -------" + if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then + echo "Find errors in UT test, please check the output..." exit 1 -fi \ No newline at end of file +fi +echo "UT finished successfully! " \ No newline at end of file diff --git a/.azure-pipelines/scripts/ut/run_basic_adaptor_tfnewapi.sh b/.azure-pipelines/scripts/ut/run_basic_adaptor_tfnewapi.sh index 2b687e633d3..ebd861efeb2 100644 --- a/.azure-pipelines/scripts/ut/run_basic_adaptor_tfnewapi.sh +++ b/.azure-pipelines/scripts/ut/run_basic_adaptor_tfnewapi.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x python -c "import neural_compressor as nc;print(nc.version.__version__)" echo "run basic adaptor tfnewapi" @@ -19,11 +18,13 @@ ut_log_name=${LOG_DIR}/ut_tf_newapi.log echo "cat run.sh..." cat run.sh | tee ${ut_log_name} -echo "-------------" +echo "------UT start-------" bash run.sh 2>&1 | tee -a ${ut_log_name} cp .coverage ${LOG_DIR}/.coverage.tfnewapi -echo "list all in ${LOG_DIR}" -ls -a ${LOG_DIR} +echo "------UT end -------" + if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then + echo "Find errors in UT test, please check the output..." exit 1 -fi \ No newline at end of file +fi +echo "UT finished successfully! " \ No newline at end of file diff --git a/.azure-pipelines/scripts/ut/run_basic_ipex.sh b/.azure-pipelines/scripts/ut/run_basic_ipex.sh index 9e22bc01be3..edc2b5d3aeb 100644 --- a/.azure-pipelines/scripts/ut/run_basic_ipex.sh +++ b/.azure-pipelines/scripts/ut/run_basic_ipex.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x python -c "import neural_compressor as nc;print(nc.version.__version__)" echo "run basic ipex" @@ -20,11 +19,13 @@ ut_log_name=${LOG_DIR}/ut_ipex.log echo "cat run.sh..." cat run.sh | tee ${ut_log_name} -echo "-------------" +echo "------UT start-------" bash run.sh 2>&1 | tee -a ${ut_log_name} cp .coverage ${LOG_DIR}/.coverage.ipex -echo "list all in ${LOG_DIR}" -ls -a ${LOG_DIR} +echo "------UT end -------" + if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then + echo "Find errors in UT test, please check the output..." exit 1 -fi \ No newline at end of file +fi +echo "UT finished successfully! " diff --git a/.azure-pipelines/scripts/ut/run_basic_itex.sh b/.azure-pipelines/scripts/ut/run_basic_itex.sh index da9b9923ce9..45278216f8d 100644 --- a/.azure-pipelines/scripts/ut/run_basic_itex.sh +++ b/.azure-pipelines/scripts/ut/run_basic_itex.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x python -c "import neural_compressor as nc;print(nc.version.__version__)" echo "run basic itex" @@ -19,11 +18,13 @@ ut_log_name=${LOG_DIR}/ut_itex.log echo "cat run.sh..." cat run.sh | tee ${ut_log_name} -echo "-------------" +echo "------UT start-------" bash run.sh 2>&1 | tee -a ${ut_log_name} cp .coverage ${LOG_DIR}/.coverage.itex -echo "list all in ${LOG_DIR}" -ls -a ${LOG_DIR} +echo "------UT end -------" + if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then + echo "Find errors in UT test, please check the output..." exit 1 -fi \ No newline at end of file +fi +echo "UT finished successfully! " \ No newline at end of file diff --git a/.azure-pipelines/scripts/ut/run_basic_others.sh b/.azure-pipelines/scripts/ut/run_basic_others.sh index 9789802a75a..4781eb89468 100644 --- a/.azure-pipelines/scripts/ut/run_basic_others.sh +++ b/.azure-pipelines/scripts/ut/run_basic_others.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x python -c "import neural_compressor as nc;print(nc.version.__version__)" echo "run basic others" @@ -29,11 +28,13 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log echo "cat run.sh..." cat run.sh | tee ${ut_log_name} -echo "-------------" +echo "------UT start-------" bash run.sh 2>&1 | tee -a ${ut_log_name} cp .coverage ${LOG_DIR}/.coverage.others -echo "list all in ${LOG_DIR}" -ls -a ${LOG_DIR} +echo "------UT end -------" + if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then + echo "Find errors in UT test, please check the output..." exit 1 -fi \ No newline at end of file +fi +echo "UT finished successfully! " \ No newline at end of file diff --git a/.azure-pipelines/scripts/ut/run_ncoder.sh b/.azure-pipelines/scripts/ut/run_ncoder.sh index aef05d13e3f..bb3e3212494 100644 --- a/.azure-pipelines/scripts/ut/run_ncoder.sh +++ b/.azure-pipelines/scripts/ut/run_ncoder.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x python -c "import neural_compressor as nc;print(nc.version.__version__)" echo "run coder" @@ -15,9 +14,12 @@ ut_log_name=${LOG_DIR}/ut_neural_coder.log echo "cat run.sh..." cat run.sh | tee ${ut_log_name} -echo "-------------" +echo "------UT start-------" bash run.sh 2>&1 | tee -a ${ut_log_name} +echo "------UT end -------" if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then + echo "Find errors in UT test, please check the output..." exit 1 -fi \ No newline at end of file +fi +echo "UT finished successfully! " \ No newline at end of file diff --git a/.azure-pipelines/scripts/ut/run_ux.sh b/.azure-pipelines/scripts/ut/run_ux.sh index ceb1c7fcefd..e7041cbacce 100644 --- a/.azure-pipelines/scripts/ut/run_ux.sh +++ b/.azure-pipelines/scripts/ut/run_ux.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -x python -c "import neural_compressor as nc;print(nc.version.__version__)" echo "run ux" @@ -21,9 +20,12 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log echo "cat run.sh..." cat run.sh | tee ${ut_log_name} -echo "-------------" +echo "------UT start-------" bash run.sh 2>&1 | tee -a ${ut_log_name} +echo "------UT end -------" if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then + echo "Find errors in UT test, please check the output..." exit 1 -fi \ No newline at end of file +fi +echo "UT finished successfully! " \ No newline at end of file