Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
0082c56b
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
0082c56b
编写于
10月 22, 2020
作者:
A
alexey-milovidov
提交者:
GitHub
10月 22, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16238 from ClickHouse/stateless_test_flaky_check
Changes in image for stateless test flaky check
上级
ecddc186
369365bd
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
3 deletion
+27
-3
docker/test/stateless/Dockerfile
docker/test/stateless/Dockerfile
+3
-0
docker/test/stateless/run.sh
docker/test/stateless/run.sh
+12
-3
tests/ci/ci_config.json
tests/ci/ci_config.json
+12
-0
未找到文件。
docker/test/stateless/Dockerfile
浏览文件 @
0082c56b
...
...
@@ -33,5 +33,8 @@ RUN mkdir -p /tmp/clickhouse-odbc-tmp \
ENV
TZ=Europe/Moscow
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
ENV
NUM_TRIES=1
ENV
MAX_RUN_TIME=0
COPY
run.sh /
CMD
["/bin/bash", "/run.sh"]
docker/test/stateless/run.sh
浏览文件 @
0082c56b
#!/bin/bash
set
-e
-x
# fail on errors, verbose and export all env variables
set
-e
-x
-a
dpkg
-i
package_folder/clickhouse-common-static_
*
.deb
dpkg
-i
package_folder/clickhouse-common-static-dbg_
*
.deb
...
...
@@ -16,9 +17,17 @@ service clickhouse-server start && sleep 5
if
grep
-q
--
"--use-skip-list"
/usr/bin/clickhouse-test
;
then
SKIP_LIST_OPT
=
"--use-skip-list"
fi
# We can have several additional options so we path them as array because it's
# more idiologically correct.
read
-ra
ADDITIONAL_OPTIONS
<<<
"
${
ADDITIONAL_OPTIONS
:-}
"
clickhouse-test
--testname
--shard
--zookeeper
--hung-check
--print-time
"
$SKIP_LIST_OPT
"
"
${
ADDITIONAL_OPTIONS
[@]
}
"
"
$SKIP_TESTS_OPTION
"
2>&1 | ts
'%Y-%m-%d %H:%M:%S'
|
tee
test_output/test_result.txt
function
run_tests
()
{
for
i
in
$(
seq
1
$NUM_TRIES
)
;
do
clickhouse-test
--testname
--shard
--zookeeper
--hung-check
--print-time
"
$SKIP_LIST_OPT
"
"
${
ADDITIONAL_OPTIONS
[@]
}
"
"
$SKIP_TESTS_OPTION
"
2>&1 | ts
'%Y-%m-%d %H:%M:%S'
|
tee
-a
test_output/test_result.txt
done
}
export
-f
run_tests
timeout
$MAX_RUN_TIME
bash
-c
run_tests
||
:
tests/ci/ci_config.json
浏览文件 @
0082c56b
...
...
@@ -584,6 +584,18 @@
"clang-tidy"
:
"disable"
,
"with_coverage"
:
false
}
},
"Functional stateless tests flaky check (address)"
:
{
"required_build_properties"
:
{
"compiler"
:
"clang-11"
,
"package_type"
:
"deb"
,
"build_type"
:
"relwithdebuginfo"
,
"sanitizer"
:
"address"
,
"bundled"
:
"bundled"
,
"splitted"
:
"unsplitted"
,
"clang-tidy"
:
"disable"
,
"with_coverage"
:
false
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录