Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e2452a9a
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
e2452a9a
编写于
2月 06, 2022
作者:
H
Hui Li
提交者:
GitHub
2月 06, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #10115 from taosdata/CI_OPT_2.0
Ci opt 2.0
上级
e5e21db5
0f3caca2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
25 deletion
+40
-25
tests/parallel_test/cases.task
tests/parallel_test/cases.task
+16
-16
tests/parallel_test/run.sh
tests/parallel_test/run.sh
+8
-4
tests/parallel_test/run_case.sh
tests/parallel_test/run_case.sh
+8
-2
tests/parallel_test/run_container.sh
tests/parallel_test/run_container.sh
+8
-3
未找到文件。
tests/parallel_test/cases.task
浏览文件 @
e2452a9a
# 806,,pytest,test.py -f update/append_commit_data.py too long time
113,,pytest,python3 test.py -f update/append_commit_data.py
# 20,,pytest,insert/retentionpolicy.py change date time
# 20,,pytest,insert/retentionpolicy.py change date time
# ,,pytest,python3 test.py -f tools/taosdemoTestTblAlt.py never quit
440,,pytest,python3 test.py -f tools/taosdemoTestQuery.py
440,,pytest,python3 test.py -f tools/taosdemoTestQuery.py
#
432,,pytest,python3 test.py -f tools/taosdemoTestLimitOffset.py
432,,pytest,python3 test.py -f tools/taosdemoTestLimitOffset.py
#
431,,pytest,python3 test.py -f tools/taosdemoAllTest/taosdemoTestQueryWithJson.py
431,,pytest,python3 test.py -f tools/taosdemoAllTest/taosdemoTestQueryWithJson.py
296,,pytest,python3 ./test.py -f update/merge_commit_data.py
296,,pytest,python3 ./test.py -f update/merge_commit_data.py
294,,pytest,python3 ./test.py -f update/merge_commit_data-0.py
294,,pytest,python3 ./test.py -f update/merge_commit_data-0.py
258,,script,./test.sh -f general/stream/stream_3.sim
258,,script,./test.sh -f general/stream/stream_3.sim
256,,script,./test.sh -f general/stream/restart_stream.sim
256,,script,./test.sh -f general/stream/restart_stream.sim
243,,pytest,python3 ./test.py -f update/merge_commit_data2.py
243,,pytest,python3 ./test.py -f update/merge_commit_data2.py
232,,pytest,python3 ./test.py -f query/queryNullValueTest.py
232,,pytest,python3 ./test.py -f query/queryNullValueTest.py
#
218,,pytest,python3 test.py -f tools/taosdemoTestWithoutMetric.py
218,,pytest,python3 test.py -f tools/taosdemoTestWithoutMetric.py
#
218,,pytest,python3 test.py -f tools/taosdemoTestSampleData.py
218,,pytest,python3 test.py -f tools/taosdemoTestSampleData.py
#
218,,pytest,python3 test.py -f tools/taosdemoTest.py
218,,pytest,python3 test.py -f tools/taosdemoTest.py
#
218,,pytest,python3 test.py -f tools/taosdemoTestInterlace.py
218,,pytest,python3 test.py -f tools/taosdemoTestInterlace.py
#
217,,pytest,python3 test.py -f tools/taosdemoTestWithJson.py
217,,pytest,python3 test.py -f tools/taosdemoTestWithJson.py
#
217,,pytest,python3 ./test.py -f perfbenchmark/bug3433.py
217,,pytest,python3 ./test.py -f perfbenchmark/bug3433.py
#
216,,pytest,python3 test.py -f tools/taosdemoAllTest/taosdemoTestInsertWithJson.py
216,,pytest,python3 test.py -f tools/taosdemoAllTest/taosdemoTestInsertWithJson.py
#
216,,pytest,python3 ./test.py -f query/query1970YearsAf.py
216,,pytest,python3 ./test.py -f query/query1970YearsAf.py
215,2,script,./test.sh -f unique/cluster/balance3.sim
215,2,script,./test.sh -f unique/cluster/balance3.sim
#
215,,pytest,python3 test.py -f tools/taosdemoAllTest/TD-4985/query-limit-offset.py
215,,pytest,python3 test.py -f tools/taosdemoAllTest/TD-4985/query-limit-offset.py
204,,pytest,python3 ./test.py -f update/merge_commit_data2_update0.py
204,,pytest,python3 ./test.py -f update/merge_commit_data2_update0.py
198,,pytest,python3 ./test.py -f stream/stream1.py
198,,pytest,python3 ./test.py -f stream/stream1.py
196,,pytest,python3 ./test.py -f update/merge_commit_last.py
196,,pytest,python3 ./test.py -f update/merge_commit_last.py
...
@@ -191,6 +190,7 @@
...
@@ -191,6 +190,7 @@
29,,pytest,python3 ./test.py -f import_merge/importLastT.py
29,,pytest,python3 ./test.py -f import_merge/importLastT.py
29,,pytest,python3 ./test.py -f import_merge/importCacheFileTPO.py
29,,pytest,python3 ./test.py -f import_merge/importCacheFileTPO.py
29,,pytest,python3 ./test.py -f import_merge/importCacheFileTO.py
29,,pytest,python3 ./test.py -f import_merge/importCacheFileTO.py
29,,pytest,python3 test.py -f tools/taosdemoTestTblAlt.py
28,,script,./test.sh -f unique/arbitrator/sync_replica3_dropTable.sim
28,,script,./test.sh -f unique/arbitrator/sync_replica3_dropTable.sim
28,,script,./test.sh -f unique/arbitrator/sync_replica3_dropDb.sim
28,,script,./test.sh -f unique/arbitrator/sync_replica3_dropDb.sim
28,,script,./test.sh -f unique/arbitrator/sync_replica3_alterTable_add.sim
28,,script,./test.sh -f unique/arbitrator/sync_replica3_alterTable_add.sim
...
@@ -524,7 +524,7 @@
...
@@ -524,7 +524,7 @@
13,,pytest,python3 ./test.py -f table/column_num.py
13,,pytest,python3 ./test.py -f table/column_num.py
13,,pytest,python3 ./test.py -f table/column_name.py
13,,pytest,python3 ./test.py -f table/column_name.py
13,,pytest,python3 ./test.py -f table/boundary.py
13,,pytest,python3 ./test.py -f table/boundary.py
#
13,,pytest,python3 test.py -f subscribe/supertable.py
13,,pytest,python3 test.py -f subscribe/supertable.py
13,,pytest,python3 test.py -f query/queryFillTest.py
13,,pytest,python3 test.py -f query/queryFillTest.py
13,,pytest,python3 ./test.py -f query/isNullTest.py
13,,pytest,python3 ./test.py -f query/isNullTest.py
13,,pytest,python3 ./test.py -f query/filter.py
13,,pytest,python3 ./test.py -f query/filter.py
...
@@ -580,7 +580,7 @@
...
@@ -580,7 +580,7 @@
12,,pytest,python3 ./test.py -f insert/bug3654.py
12,,pytest,python3 ./test.py -f insert/bug3654.py
12,,pytest,python3 ./test.py -f insert/bigint.py
12,,pytest,python3 ./test.py -f insert/bigint.py
12,,pytest,python3 ./test.py -f import_merge/importHRestart.py
12,,pytest,python3 ./test.py -f import_merge/importHRestart.py
#
12,,pytest,python3 ./test.py -f functions/queryTestCases.py
12,,pytest,python3 ./test.py -f functions/queryTestCases.py
12,,pytest,python3 ./test.py -f functions/function_stddev.py -r 1
12,,pytest,python3 ./test.py -f functions/function_stddev.py -r 1
12,,pytest,python3 ./test.py -f functions/function_spread.py -r 1
12,,pytest,python3 ./test.py -f functions/function_spread.py -r 1
12,,pytest,python3 ./test.py -f functions/function_percentile.py -r 1
12,,pytest,python3 ./test.py -f functions/function_percentile.py -r 1
...
@@ -630,5 +630,5 @@
...
@@ -630,5 +630,5 @@
7,,pytest,python3 testNoCompress.py
7,,pytest,python3 testNoCompress.py
6,,pytest,python3 client/twoClients.py
6,,pytest,python3 client/twoClients.py
5,,pytest,python3 bug2265.py
5,,pytest,python3 bug2265.py
#
4,,pytest,python3 test.py -f subscribe/singlemeter.py
4,,pytest,python3 test.py -f subscribe/singlemeter.py
3,,pytest,python3 testMinTablesPerVnode.py
3,,pytest,python3 testMinTablesPerVnode.py
tests/parallel_test/run.sh
浏览文件 @
e2452a9a
...
@@ -140,7 +140,7 @@ function build_src() {
...
@@ -140,7 +140,7 @@ function build_src() {
flock
-x
$lock_file
-c
"echo
\"
${
hosts
[index]
}
taos-tools build failed
\"
>>
$log_dir
/failed.log"
flock
-x
$lock_file
-c
"echo
\"
${
hosts
[index]
}
taos-tools build failed
\"
>>
$log_dir
/failed.log"
return
return
fi
fi
script
=
"cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/bin/*
${
workdirs
[index]
}
/TDinternal/debug/build/bin/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib64/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
demo
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo"
script
=
"cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/bin/*
${
workdirs
[index]
}
/TDinternal/debug/build/bin/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/taos-tools/build/build/lib64/*
${
workdirs
[index]
}
/TDinternal/debug/build/lib/;cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
taosBenchmark
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo"
cmd
=
"
${
ssh_script
}
sh -c
\"
$script
\"
"
cmd
=
"
${
ssh_script
}
sh -c
\"
$script
\"
"
${
cmd
}
${
cmd
}
}
}
...
@@ -150,7 +150,7 @@ function rename_taosdemo() {
...
@@ -150,7 +150,7 @@ function rename_taosdemo() {
if
[
-z
${
passwords
[index]
}
]
;
then
if
[
-z
${
passwords
[index]
}
]
;
then
ssh_script
=
"ssh -o StrictHostKeyChecking=no
${
usernames
[index]
}
@
${
hosts
[index]
}
"
ssh_script
=
"ssh -o StrictHostKeyChecking=no
${
usernames
[index]
}
@
${
hosts
[index]
}
"
fi
fi
local
script
=
"cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
demo
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo
"
local
script
=
"cp -rf
${
workdirs
[index]
}
/TDinternal/debug/build/bin/
taosBenchmark
${
workdirs
[index]
}
/TDinternal/debug/build/bin/taosdemo 2>/dev/null
"
cmd
=
"
${
ssh_script
}
sh -c
\"
$script
\"
"
cmd
=
"
${
ssh_script
}
sh -c
\"
$script
\"
"
${
cmd
}
${
cmd
}
}
}
...
@@ -182,7 +182,7 @@ function run_thread() {
...
@@ -182,7 +182,7 @@ function run_thread() {
fi
fi
local
case_redo_time
=
`
echo
"
$line
"
|cut
-d
,
-f2
`
local
case_redo_time
=
`
echo
"
$line
"
|cut
-d
,
-f2
`
if
[
-z
"
$case_redo_time
"
]
;
then
if
[
-z
"
$case_redo_time
"
]
;
then
case_redo_time
=
1
case_redo_time
=
${
DEFAULT_RETRY_TIME
:-
2
}
fi
fi
local
exec_dir
=
`
echo
"
$line
"
|cut
-d
,
-f3
`
local
exec_dir
=
`
echo
"
$line
"
|cut
-d
,
-f3
`
local
case_cmd
=
`
echo
"
$line
"
|cut
-d
,
-f4
`
local
case_cmd
=
`
echo
"
$line
"
|cut
-d
,
-f4
`
...
@@ -232,6 +232,10 @@ function run_thread() {
...
@@ -232,6 +232,10 @@ function run_thread() {
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
redo
=
1
redo
=
1
fi
fi
grep
-q
"ssh_exchange_identification: Connection closed by remote host"
$log_dir
/
$case_file
.log
if
[
$?
-eq
0
]
;
then
redo
=
1
fi
grep
-q
"kex_exchange_identification: read: Connection reset by peer"
$log_dir
/
$case_file
.log
grep
-q
"kex_exchange_identification: read: Connection reset by peer"
$log_dir
/
$case_file
.log
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
redo
=
1
redo
=
1
...
@@ -273,7 +277,7 @@ function run_thread() {
...
@@ -273,7 +277,7 @@ function run_thread() {
cat
$log_dir
/
$case_file
.log
cat
$log_dir
/
$case_file
.log
echo
"====================================================="
echo
"====================================================="
echo
-e
"
\e
[34m log file:
$log_dir
/
$case_file
.log
\e
[0m"
echo
-e
"
\e
[34m log file:
$log_dir
/
$case_file
.log
\e
[0m"
if
[
!
-z
$corefile
]
;
then
if
[
!
-z
"
$corefile
"
]
;
then
echo
-e
"
\e
[34m corefiles:
$corefile
\e
[0m"
echo
-e
"
\e
[34m corefiles:
$corefile
\e
[0m"
fi
fi
fi
fi
...
...
tests/parallel_test/run_case.sh
浏览文件 @
e2452a9a
...
@@ -43,11 +43,17 @@ fi
...
@@ -43,11 +43,17 @@ fi
go
env
-w
GOPROXY
=
https://goproxy.cn
go
env
-w
GOPROXY
=
https://goproxy.cn
echo
"StrictHostKeyChecking no"
>>
/etc/ssh/ssh_config
echo
"StrictHostKeyChecking no"
>>
/etc/ssh/ssh_config
ln
-s
$CONTAINER_TESTDIR
/debug/build/lib/libtaos.so /usr/lib/libtaos.so
ln
-s
/home/debug/build/lib/libtaos.so /usr/lib/libtaos.so 2>/dev/null
npm config
-g
set
unsafe-perm
npm config
-g
set
unsafe-perm
npm config
-g
set
registry https://registry.npm.taobao.org
npm config
-g
set
registry https://registry.npm.taobao.org
mkdir
-p
/home/sim/tsim
mkdir
-p
/home/sim/tsim
mkdir
-p
/var/lib/taos/subscribe
rm
-rf
${
CONTAINER_TESTDIR
}
/src/connector/nodejs/node_modules
rm
-rf
${
CONTAINER_TESTDIR
}
/tests/examples/nodejs/node_modules
rm
-rf
${
CONTAINER_TESTDIR
}
/tests/connectorTest/nodejsTest/nanosupport/node_modules
# ln -s /home/node_modules ${CONTAINER_TESTDIR}/src/connector/nodejs/
# ln -s /home/node_modules ${CONTAINER_TESTDIR}/tests/examples/nodejs/
# ln -s /home/node_modules ${CONTAINER_TESTDIR}/tests/connectorTest/nodejsTest/nanosupport/
# echo "$cmd"|grep -q "nodejs"
# echo "$cmd"|grep -q "nodejs"
# if [ $? -eq 0 ]; then
# if [ $? -eq 0 ]; then
# cd $CONTAINER_TESTDIR/src/connector/nodejs
# cd $CONTAINER_TESTDIR/src/connector/nodejs
...
...
tests/parallel_test/run_container.sh
浏览文件 @
e2452a9a
...
@@ -77,24 +77,29 @@ if [ $? -eq 0 ]; then
...
@@ -77,24 +77,29 @@ if [ $? -eq 0 ]; then
-v
$TMP_DIR
/thread_volume/
$thread_no
/node_modules:
${
CONTAINER_TESTDIR
}
/tests/examples/nodejs/node_modules
\
-v
$TMP_DIR
/thread_volume/
$thread_no
/node_modules:
${
CONTAINER_TESTDIR
}
/tests/examples/nodejs/node_modules
\
-v
$TMP_DIR
/thread_volume/
$thread_no
/node_modules:
${
CONTAINER_TESTDIR
}
/tests/connectorTest/nodejsTest/nanosupport/node_modules"
-v
$TMP_DIR
/thread_volume/
$thread_no
/node_modules:
${
CONTAINER_TESTDIR
}
/tests/connectorTest/nodejsTest/nanosupport/node_modules"
fi
fi
if
[
-f
"
$REPDIR
/src/plugins/taosadapter/example/config/taosadapter.toml"
]
;
then
TAOSADAPTER_TOML
=
"-v
$REPDIR
/src/plugins/taosadapter/example/config/taosadapter.toml:/etc/taos/taosadapter.toml:ro"
fi
docker run
\
docker run
\
-v
$REPDIR
/tests:
$CONTAINER_TESTDIR
/tests
\
-v
$REPDIR
/tests:
$CONTAINER_TESTDIR
/tests
\
-v
$MOUNT_DIR
\
-v
$MOUNT_DIR
\
-v
"
$TMP_DIR
/thread_volume/
$thread_no
/sim:
${
CONTAINER_TESTDIR
}
/sim"
\
-v
"
$TMP_DIR
/thread_volume/
$thread_no
/sim:
${
CONTAINER_TESTDIR
}
/sim"
\
-v
${
TMP_DIR
}
/thread_volume/
$thread_no
/coredump:/home/coredump
\
-v
${
TMP_DIR
}
/thread_volume/
$thread_no
/coredump:/home/coredump
\
-v
$INTERNAL_REPDIR
/debug:
$CONTAINER_TESTDIR
/debug:ro
\
-v
$INTERNAL_REPDIR
/debug:
/home
/debug:ro
\
-v
$REPDIR
/deps:
$CONTAINER_TESTDIR
/deps:ro
\
-v
$REPDIR
/deps:
$CONTAINER_TESTDIR
/deps:ro
\
-v
$REPDIR
/src:
$CONTAINER_TESTDIR
/src
\
-v
$REPDIR
/src:
$CONTAINER_TESTDIR
/src
\
-v
$REPDIR
/src/inc/taos.h:/usr/include/taos.h:ro
\
-v
$REPDIR
/src/inc/taos.h:/usr/include/taos.h:ro
\
$TAOSADAPTER_TOML
\
-v
$REPDIR
/tests/examples:
$CONTAINER_TESTDIR
/tests/examples
\
-v
$REPDIR
/tests/examples:
$CONTAINER_TESTDIR
/tests/examples
\
-v
$REPDIR
/snap:
$CONTAINER_TESTDIR
/snap:ro
\
-v
$REPDIR
/snap:
$CONTAINER_TESTDIR
/snap:ro
\
-v
$REPDIR
/alert:
$CONTAINER_TESTDIR
/alert:ro
\
-v
$REPDIR
/alert:
$CONTAINER_TESTDIR
/alert:ro
\
-v
$REPDIR
/packaging/cfg/taos.cfg:/etc/taos/taos.cfg:ro
\
-v
$REPDIR
/packaging/cfg/taos.cfg:/etc/taos/taos.cfg:ro
\
-v
$REPDIR
/packaging:
$CONTAINER_TESTDIR
/packaging:ro
\
-v
$REPDIR
/README.md:
$CONTAINER_TESTDIR
/README.md:ro
\
-v
$REPDIR
/README.md:
$CONTAINER_TESTDIR
/README.md:ro
\
-v
$REPDIR
/src/connector/python/taos:/usr/local/lib/python3.8/site-packages/taos:ro
\
-v
$REPDIR
/src/connector/python/taos:/usr/local/lib/python3.8/site-packages/taos:ro
\
-e
LD_LIBRARY_PATH
=
$CONTAINER_TESTDIR
/debug/build/lib:
$CONTAINER_TESTDIR
/debug/build/lib64
\
-e
LD_LIBRARY_PATH
=
/home/debug/build/lib:/home
/debug/build/lib64
\
-e
PATH
=
/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
$CONTAINER_TESTDIR
/debug/build/bin:/usr/local/go/bin:/usr/local/node-v12.20.0-linux-x64/bin:/usr/local/apache-maven-3.8.4/bin:/usr/local/jdk1.8.0_144/bin
\
-e
PATH
=
/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
/home
/debug/build/bin:/usr/local/go/bin:/usr/local/node-v12.20.0-linux-x64/bin:/usr/local/apache-maven-3.8.4/bin:/usr/local/jdk1.8.0_144/bin
\
-e
JAVA_HOME
=
/usr/local/jdk1.8.0_144
\
-e
JAVA_HOME
=
/usr/local/jdk1.8.0_144
\
--rm
--ulimit
core
=
-1
taos_test:v1.0
$CONTAINER_TESTDIR
/tests/parallel_test/run_case.sh
-d
"
$exec_dir
"
-c
"
$cmd
"
--rm
--ulimit
core
=
-1
taos_test:v1.0
$CONTAINER_TESTDIR
/tests/parallel_test/run_case.sh
-d
"
$exec_dir
"
-c
"
$cmd
"
ret
=
$?
ret
=
$?
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录