Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
064fec19
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
064fec19
编写于
1月 09, 2018
作者:
A
Ashwin Agrawal
提交者:
Xin Zhang
1月 12, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CI: Make pg_twophase as one job.
上级
63c55411
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
4 addition
and
230 deletion
+4
-230
src/test/tinc/Makefile
src/test/tinc/Makefile
+2
-30
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase.py
...po/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase.py
+2
-3
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_11_20.py
.../gpdb/tests/storage/pg_twophase/test_pg_twophase_11_20.py
+0
-50
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_21_30.py
.../gpdb/tests/storage/pg_twophase/test_pg_twophase_21_30.py
+0
-48
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_31_40.py
.../gpdb/tests/storage/pg_twophase/test_pg_twophase_31_40.py
+0
-51
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_41_49.py
.../gpdb/tests/storage/pg_twophase/test_pg_twophase_41_49.py
+0
-48
未找到文件。
src/test/tinc/Makefile
浏览文件 @
064fec19
...
...
@@ -103,38 +103,10 @@ filerep_end_to_end_full_mirror:
filerep_end_to_end_incr_mirror
:
$(TESTER)
mpp.gpdb.tests.storage.filerep_end_to_end.test_filerep_e2e.FilerepE2EScenarioTestCase.test_incr_mirror
# cs-pg-two-phase
# The following targets are pulled from:
# http://pulse-cloud.gopivotal.com/admin/projects/cs-pg-two-phase
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.
test_pg_twophase_01_10
:
$(TESTER)
$(DISCOVER)
\
-s
tincrepo/mpp/gpdb/tests/storage/pg_twophase
\
-p
test_pg_twophase_01_10.py
test_pg_twophase_11_20
:
$(TESTER)
$(DISCOVER)
\
-s
tincrepo/mpp/gpdb/tests/storage/pg_twophase
\
-p
test_pg_twophase_11_20.py
test_pg_twophase_21_30
:
$(TESTER)
$(DISCOVER)
\
-s
tincrepo/mpp/gpdb/tests/storage/pg_twophase
\
-p
test_pg_twophase_21_30.py
test_pg_twophase_31_40
:
$(TESTER)
$(DISCOVER)
\
-s
tincrepo/mpp/gpdb/tests/storage/pg_twophase
\
-p
test_pg_twophase_31_40.py
test_pg_twophase_41_49
:
test_pg_twophase
:
$(TESTER)
$(DISCOVER)
\
-s
tincrepo/mpp/gpdb/tests/storage/pg_twophase
\
-p
test_pg_twophase
_41_49
.py
-p
test_pg_twophase.py
test_switch_01_12
:
$(TESTER)
$(DISCOVER)
\
...
...
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase
_01_10
.py
→
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase.py
浏览文件 @
064fec19
...
...
@@ -19,15 +19,14 @@ import os
import
tinctest
from
mpp.gpdb.tests.storage.pg_twophase.pg_twophase
import
PgtwoPhaseTestCase
class
PgtwoPhase01To
10
(
PgtwoPhaseTestCase
):
class
PgtwoPhase01To
N
(
PgtwoPhaseTestCase
):
'''
Testing state of prepared transactions upon crash-recovery
@gucs gp_create_table_random_default_distribution=off
'''
def
__init__
(
self
,
methodName
):
super
(
PgtwoPhase01To10
,
self
).
__init__
(
methodName
)
super
(
PgtwoPhase01ToN
,
self
).
__init__
(
methodName
)
def
test_execute_split_sqls_01_10
(
self
):
'''
...
...
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_11_20.py
已删除
100644 → 0
浏览文件 @
63c55411
"""
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
os
import
tinctest
from
mpp.gpdb.tests.storage.pg_twophase.pg_twophase
import
PgtwoPhaseTestCase
class
PgtwoPhase11To20
(
PgtwoPhaseTestCase
):
'''
Testing state of prepared transactions upon crash-recovery
@gucs gp_create_table_random_default_distribution=off
'''
def
__init__
(
self
,
methodName
):
super
(
PgtwoPhase11To20
,
self
).
__init__
(
methodName
)
def
test_execute_split_sqls_11_20
(
self
):
'''
@data_provider data_types_provider
'''
skip_state
=
self
.
test_data
[
1
][
0
]
cluster_state
=
self
.
test_data
[
1
][
1
]
ddl_type
=
self
.
test_data
[
1
][
2
]
fault_type
=
self
.
test_data
[
1
][
3
]
crash_type
=
self
.
test_data
[
1
][
4
]
self
.
execute_split_sqls
(
skip_state
,
cluster_state
,
ddl_type
,
fault_type
,
crash_type
)
@
tinctest
.
dataProvider
(
'data_types_provider'
)
def
test_data_provider
():
data
=
{
'17_skip_sync_drop_commit_gpstop_i'
:
[
'skip'
,
'sync'
,
'drop'
,
'commit'
,
'gpstop_i'
],
}
return
data
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_21_30.py
已删除
100644 → 0
浏览文件 @
63c55411
"""
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
os
import
tinctest
from
mpp.gpdb.tests.storage.pg_twophase.pg_twophase
import
PgtwoPhaseTestCase
class
PgtwoPhase21To30
(
PgtwoPhaseTestCase
):
'''
Testing state of prepared transactions upon crash-recovery
@gucs gp_create_table_random_default_distribution=off
'''
def
__init__
(
self
,
methodName
):
super
(
PgtwoPhase21To30
,
self
).
__init__
(
methodName
)
def
test_execute_split_sqls_21_30
(
self
):
'''
@data_provider data_types_provider
'''
skip_state
=
self
.
test_data
[
1
][
0
]
cluster_state
=
self
.
test_data
[
1
][
1
]
ddl_type
=
self
.
test_data
[
1
][
2
]
fault_type
=
self
.
test_data
[
1
][
3
]
crash_type
=
self
.
test_data
[
1
][
4
]
self
.
execute_split_sqls
(
skip_state
,
cluster_state
,
ddl_type
,
fault_type
,
crash_type
)
@
tinctest
.
dataProvider
(
'data_types_provider'
)
def
test_data_provider
():
data
=
{
'21_noskip_sync_drop_commit_gpstop_i'
:
[
'noskip'
,
'sync'
,
'drop'
,
'commit'
,
'gpstop_i'
],
}
return
data
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_31_40.py
已删除
100644 → 0
浏览文件 @
63c55411
"""
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
os
import
tinctest
from
mpp.gpdb.tests.storage.pg_twophase.pg_twophase
import
PgtwoPhaseTestCase
class
PgtwoPhase31To40
(
PgtwoPhaseTestCase
):
'''
Testing state of prepared transactions upon crash-recovery
@gucs gp_create_table_random_default_distribution=off
'''
def
__init__
(
self
,
methodName
):
super
(
PgtwoPhase31To40
,
self
).
__init__
(
methodName
)
def
test_execute_split_sqls_31_40
(
self
):
'''
@data_provider data_types_provider
'''
skip_state
=
self
.
test_data
[
1
][
0
]
cluster_state
=
self
.
test_data
[
1
][
1
]
ddl_type
=
self
.
test_data
[
1
][
2
]
fault_type
=
self
.
test_data
[
1
][
3
]
crash_type
=
self
.
test_data
[
1
][
4
]
self
.
execute_split_sqls
(
skip_state
,
cluster_state
,
ddl_type
,
fault_type
,
crash_type
)
@
tinctest
.
dataProvider
(
'data_types_provider'
)
def
test_data_provider
():
data
=
{
'33_skip_sync_create_abort_gpstop_i'
:
[
'skip'
,
'sync'
,
'create'
,
'abort'
,
'gpstop_i'
],
'37_noskip_sync_create_abort_gpstop_i'
:
[
'noskip'
,
'sync'
,
'create'
,
'abort'
,
'gpstop_i'
],
}
return
data
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/test_pg_twophase_41_49.py
已删除
100644 → 0
浏览文件 @
63c55411
"""
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
os
import
tinctest
from
mpp.gpdb.tests.storage.pg_twophase.pg_twophase
import
PgtwoPhaseTestCase
class
PgtwoPhase41To49
(
PgtwoPhaseTestCase
):
'''
Testing state of prepared transactions upon crash-recovery
@gucs gp_create_table_random_default_distribution=off
'''
def
__init__
(
self
,
methodName
):
super
(
PgtwoPhase41To49
,
self
).
__init__
(
methodName
)
def
test_execute_split_sqls_41_49
(
self
):
'''
@data_provider data_types_provider
'''
skip_state
=
self
.
test_data
[
1
][
0
]
cluster_state
=
self
.
test_data
[
1
][
1
]
ddl_type
=
self
.
test_data
[
1
][
2
]
fault_type
=
self
.
test_data
[
1
][
3
]
crash_type
=
self
.
test_data
[
1
][
4
]
self
.
execute_split_sqls
(
skip_state
,
cluster_state
,
ddl_type
,
fault_type
,
crash_type
)
@
tinctest
.
dataProvider
(
'data_types_provider'
)
def
test_data_provider
():
data
=
{
'49_noskip_sync_create_end_prepare_two_phase_sleep_gpstop_i'
:
[
'noskip'
,
'sync'
,
'create'
,
'end_prepare_two_phase_sleep'
,
'gpstop_i'
]
}
return
data
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录