File tree Expand file tree Collapse file tree 1 file changed +27
-24
lines changed Expand file tree Collapse file tree 1 file changed +27
-24
lines changed Original file line number Diff line number Diff line change 4
4
5
5
PYTHON_SOAK_TEST_BRANCH = 'dev_otel_agent_soak_test'
6
6
7
- LIBRDKAFKA_VERSIONS = [
8
- # '2.11.1'
9
- # '2.10.1',
10
- '2.8.0' ,
11
- '2.6.1' ,
12
- '2.5.3' ,
13
- '2.4.0' ,
14
- '2.3.0' ,
15
- '2.2.0' ,
16
- '2.1.1' ,
17
- '2.0.2'
7
+ LIBRDKAFKA_VERSIONS = [
8
+ # '2.11.1'
9
+ # '2.10.1',
10
+ '2.8.0' ,
11
+ '2.6.1' ,
12
+ '2.5.3' ,
13
+ '2.4.0' ,
14
+ '2.3.0' ,
15
+ '2.2.0' ,
16
+ '2.1.1' ,
17
+ '2.0.2'
18
18
]
19
19
20
- PYTHON_VERSIONS = [
21
- # '2.11.0'
22
- # '2.10.1',
23
- '2.8.0' ,
24
- '2.6.1' ,
25
- '2.5.3' ,
26
- '2.4.0' ,
27
- '2.3.0' ,
28
- '2.2.0' ,
29
- '2.1.1' ,
30
- '2.0.2'
20
+ PYTHON_VERSIONS = [
21
+ # '2.11.0'
22
+ # '2.10.1',
23
+ '2.8.0' ,
24
+ '2.6.1' ,
25
+ '2.5.3' ,
26
+ '2.4.0' ,
27
+ '2.3.0' ,
28
+ '2.2.0' ,
29
+ '2.1.1' ,
30
+ '2.0.2'
31
31
]
32
32
33
+
33
34
def run (command ):
34
35
print (f'Running command: { command } ' )
35
36
env = os .environ .copy ()
@@ -38,15 +39,17 @@ def run(command):
38
39
if result .returncode != 0 :
39
40
raise Exception (f'Command failed: { command } , result: { result .returncode } ' )
40
41
42
+
41
43
if __name__ == '__main__' :
42
44
for i , librdkafka_version in enumerate (LIBRDKAFKA_VERSIONS ):
43
45
python_version = PYTHON_VERSIONS [i ]
44
- folder_name = f'confluent-kafka-python_{ librdkafka_version .replace ('.' , '_' )} '
46
+ librdkafka_version_folder_name = librdkafka_version .replace ('.' , '_' )
47
+ folder_name = f'confluent-kafka-python_{ librdkafka_version_folder_name } '
45
48
if os .path .exists (folder_name ):
46
49
print (f'Skipping \' { folder_name } \' , already exists.' )
47
50
continue
48
51
49
- run (f 'git clone https://github.com/confluentinc/confluent-kafka-python.git' )
52
+ run ('git clone https://github.com/confluentinc/confluent-kafka-python.git' )
50
53
run (f'mv confluent-kafka-python { folder_name } ' )
51
54
run (f'cd { folder_name } && git checkout { PYTHON_SOAK_TEST_BRANCH } ' )
52
55
run (f'cd { folder_name } /tests/soak && ./build.sh v{ librdkafka_version } v{ python_version } ' )
You can’t perform that action at this time.
0 commit comments