Skip to content

Commit 59c4248

Browse files
authored
update azure pipeline (#229)
Signed-off-by: chensuyue <[email protected]>
1 parent c0fa310 commit 59c4248

File tree

8 files changed

+41
-32
lines changed

8 files changed

+41
-32
lines changed

.azure-pipelines/model-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ parameters:
4545
- ssd_mobilenet_v1_ckpt
4646
# - ssd_resnet50_v1_ckpt
4747
- inception_v1
48-
- resnet50_fashion
48+
# - resnet50_fashion
4949
- darknet19
5050
- densenet-121
5151
- resnet-101

.azure-pipelines/scripts/ut/run_basic_adaptor.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -x
32
python -c "import neural_compressor as nc;print(nc.version.__version__)"
43
echo "run basic adaptor"
54

@@ -23,11 +22,13 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log
2322

2423
echo "cat run.sh..."
2524
cat run.sh | tee ${ut_log_name}
26-
echo "-------------"
25+
echo "------UT start-------"
2726
bash run.sh 2>&1 | tee -a ${ut_log_name}
2827
cp .coverage ${LOG_DIR}/.coverage.adaptor
29-
echo "list all in ${LOG_DIR}"
30-
ls -a ${LOG_DIR}
28+
echo "------UT end -------"
29+
3130
if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
31+
echo "Find errors in UT test, please check the output..."
3232
exit 1
33-
fi
33+
fi
34+
echo "UT finished successfully! "

.azure-pipelines/scripts/ut/run_basic_adaptor_tfnewapi.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -x
32
python -c "import neural_compressor as nc;print(nc.version.__version__)"
43
echo "run basic adaptor tfnewapi"
54

@@ -19,11 +18,13 @@ ut_log_name=${LOG_DIR}/ut_tf_newapi.log
1918

2019
echo "cat run.sh..."
2120
cat run.sh | tee ${ut_log_name}
22-
echo "-------------"
21+
echo "------UT start-------"
2322
bash run.sh 2>&1 | tee -a ${ut_log_name}
2423
cp .coverage ${LOG_DIR}/.coverage.tfnewapi
25-
echo "list all in ${LOG_DIR}"
26-
ls -a ${LOG_DIR}
24+
echo "------UT end -------"
25+
2726
if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
27+
echo "Find errors in UT test, please check the output..."
2828
exit 1
29-
fi
29+
fi
30+
echo "UT finished successfully! "

.azure-pipelines/scripts/ut/run_basic_ipex.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -x
32
python -c "import neural_compressor as nc;print(nc.version.__version__)"
43
echo "run basic ipex"
54

@@ -20,11 +19,13 @@ ut_log_name=${LOG_DIR}/ut_ipex.log
2019

2120
echo "cat run.sh..."
2221
cat run.sh | tee ${ut_log_name}
23-
echo "-------------"
22+
echo "------UT start-------"
2423
bash run.sh 2>&1 | tee -a ${ut_log_name}
2524
cp .coverage ${LOG_DIR}/.coverage.ipex
26-
echo "list all in ${LOG_DIR}"
27-
ls -a ${LOG_DIR}
25+
echo "------UT end -------"
26+
2827
if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
28+
echo "Find errors in UT test, please check the output..."
2929
exit 1
30-
fi
30+
fi
31+
echo "UT finished successfully! "

.azure-pipelines/scripts/ut/run_basic_itex.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -x
32
python -c "import neural_compressor as nc;print(nc.version.__version__)"
43
echo "run basic itex"
54

@@ -19,11 +18,13 @@ ut_log_name=${LOG_DIR}/ut_itex.log
1918

2019
echo "cat run.sh..."
2120
cat run.sh | tee ${ut_log_name}
22-
echo "-------------"
21+
echo "------UT start-------"
2322
bash run.sh 2>&1 | tee -a ${ut_log_name}
2423
cp .coverage ${LOG_DIR}/.coverage.itex
25-
echo "list all in ${LOG_DIR}"
26-
ls -a ${LOG_DIR}
24+
echo "------UT end -------"
25+
2726
if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
27+
echo "Find errors in UT test, please check the output..."
2828
exit 1
29-
fi
29+
fi
30+
echo "UT finished successfully! "

.azure-pipelines/scripts/ut/run_basic_others.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -x
32
python -c "import neural_compressor as nc;print(nc.version.__version__)"
43
echo "run basic others"
54

@@ -29,11 +28,13 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log
2928

3029
echo "cat run.sh..."
3130
cat run.sh | tee ${ut_log_name}
32-
echo "-------------"
31+
echo "------UT start-------"
3332
bash run.sh 2>&1 | tee -a ${ut_log_name}
3433
cp .coverage ${LOG_DIR}/.coverage.others
35-
echo "list all in ${LOG_DIR}"
36-
ls -a ${LOG_DIR}
34+
echo "------UT end -------"
35+
3736
if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
37+
echo "Find errors in UT test, please check the output..."
3838
exit 1
39-
fi
39+
fi
40+
echo "UT finished successfully! "

.azure-pipelines/scripts/ut/run_ncoder.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -x
32
python -c "import neural_compressor as nc;print(nc.version.__version__)"
43
echo "run coder"
54

@@ -15,9 +14,12 @@ ut_log_name=${LOG_DIR}/ut_neural_coder.log
1514

1615
echo "cat run.sh..."
1716
cat run.sh | tee ${ut_log_name}
18-
echo "-------------"
17+
echo "------UT start-------"
1918
bash run.sh 2>&1 | tee -a ${ut_log_name}
19+
echo "------UT end -------"
2020

2121
if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
22+
echo "Find errors in UT test, please check the output..."
2223
exit 1
23-
fi
24+
fi
25+
echo "UT finished successfully! "

.azure-pipelines/scripts/ut/run_ux.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -x
32
python -c "import neural_compressor as nc;print(nc.version.__version__)"
43
echo "run ux"
54

@@ -21,9 +20,12 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log
2120

2221
echo "cat run.sh..."
2322
cat run.sh | tee ${ut_log_name}
24-
echo "-------------"
23+
echo "------UT start-------"
2524
bash run.sh 2>&1 | tee -a ${ut_log_name}
25+
echo "------UT end -------"
2626

2727
if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
28+
echo "Find errors in UT test, please check the output..."
2829
exit 1
29-
fi
30+
fi
31+
echo "UT finished successfully! "

0 commit comments

Comments
 (0)