forked from Altinity/clickhouse-regression
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathregression.py
executable file
·152 lines (143 loc) · 4.66 KB
/
regression.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#!/usr/bin/env python3
import sys
from testflows.core import *
append_path(sys.path, ".")
from helpers.argparser import argparser
ffails = {
"s3": (
Skip,
"Required inputs are not specified, must be launch seperately.",
),
"tiered_storage": (
Skip,
"Required inputs are not specified, must be launch seperately.",
),
}
@TestModule
@Name("clickhouse")
@FFails(ffails)
@ArgumentParser(argparser)
def regression(self, local, clickhouse_binary_path, clickhouse_version, stress=None):
"""ClickHouse regression."""
args = {
"local": local,
"clickhouse_binary_path": clickhouse_binary_path,
"clickhouse_version": clickhouse_version,
"stress": stress,
}
self.context.stress = stress
with Pool(4) as pool:
try:
Feature(
test=load("aes_encryption.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("aggregate_functions.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("atomic_insert.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("base_58.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("clickhouse_keeper.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("datetime64_extended_range.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("disk_level_encryption.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("dns.regression", "regression"), parallel=True, executor=pool
)(**args)
Feature(
test=load("example.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("extended_precision_data_types.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("kafka.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("kerberos.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("key_value.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("ldap.regression", "regression"), parallel=True, executor=pool
)(**args)
Feature(
test=load("lightweight_delete.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("map_type.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("part_moves_between_shards.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("rbac.regression", "regression"), parallel=True, executor=pool
)(**args)
Feature(
test=load("s3.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("selects.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("ssl_server.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("tiered_storage.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
Feature(
test=load("window_functions.regression", "regression"),
parallel=True,
executor=pool,
)(**args)
finally:
join()
if main():
regression()