24
24
LINUX_MATRIX = [
25
25
# Linux x86_64 (full).
26
26
# RHEL 8 x86_64: 4.0+.
27
- ('rhel80' , None , ['Debug' ], ['shared' , 'static' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], [False ], [ '4.2' , '4.4' , '5.0' , '6.0' , '7.0' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
28
- ('rhel80' , None , ['Debug' ], ['shared' , 'static' ], [11 , 17 ], [None ], ['plain' , ], [False ], [ '4.0' , ], ['single' , 'replica' , 'sharded' ]), # CSFLE: 4.2+.
27
+ ('rhel80' , None , ['Debug' ], ['shared' , 'static' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], [ '4.2' , '4.4' , '5.0' , '6.0' , '7.0' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
28
+ ('rhel80' , None , ['Debug' ], ['shared' , 'static' ], [11 , 17 ], [None ], ['plain' , ], ['4.0' , ], ['single' , 'replica' , 'sharded' ]), # CSFLE: 4.2+.
29
29
30
30
# Linux ARM64 (full).
31
31
# Linux ARM64: 4.4+.
32
- ('ubuntu2004-arm64' , None , ['Debug' ], ['shared' , 'static' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], [False ], [ '4.4' , '5.0' , '6.0' , '7.0' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
32
+ ('ubuntu2004-arm64' , None , ['Debug' ], ['shared' , 'static' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], ['4.4' , '5.0' , '6.0' , '7.0' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
33
33
34
34
# Linux Power.
35
35
# RHEL 8 Power: 4.2+.
36
- ('rhel8-power' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [False ], [ 'latest' ], ['replica' ]),
36
+ ('rhel8-power' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], ['latest' ], ['replica' ]),
37
37
38
38
# Linux zSeries.
39
39
# RHEL 8 zSeries: 5.0+.
40
- ('rhel8-zseries' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [False ], [ 'latest' ], ['replica' ]),
40
+ ('rhel8-zseries' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], ['latest' ], ['replica' ]),
41
41
]
42
42
43
43
MACOS_MATRIX = [
44
44
# MacOS ARM64 (shared only, no extra alignment, min-max-latest).
45
45
# MacOS ARM64: 6.0+.
46
- ('macos-14-arm64' , None , ['Debug' ], ['shared' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], [False ], [ '6.0' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
46
+ ('macos-14-arm64' , None , ['Debug' ], ['shared' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], ['6.0' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
47
47
48
48
# MacOS x86_64 (shared only, C++11 only, no extra alignment, min-max-latest).
49
49
# MacOS x86_64: 4.2+.
50
- ('macos-14' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['plain' , 'csfle' ], [False ], [ '4.2' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
50
+ ('macos-14' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['plain' , 'csfle' ], ['4.2' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
51
51
52
52
]
53
53
54
54
WINDOWS_MATRIX = [
55
55
# Windows x86_64 (min-max-latest).
56
56
# Windows x86_64: 4.2+.
57
- ('windows-vsCurrent' , 'vs2022x64' , ['Debug' ], ['shared' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], [False ], [ '4.2' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
57
+ ('windows-vsCurrent' , 'vs2022x64' , ['Debug' ], ['shared' ], [11 , 17 ], [None ], ['plain' , 'csfle' ], ['4.2' , '8.0' , 'latest' ], ['single' , 'replica' , 'sharded' ]),
58
58
]
59
59
60
60
MONGOCRYPTD_MATRIX = [
61
- ('rhel80' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], [False ], ['latest' ], ['replica' ]),
62
- ('ubuntu2004-arm64' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], [False ], ['latest' ], ['replica' ]),
63
- ('rhel8-power' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], [False ], ['latest' ], ['replica' ]),
64
- ('rhel8-zseries' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], [False ], ['latest' ], ['replica' ]),
65
- ('macos-14-arm64' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], [False ], ['latest' ], ['replica' ]),
66
- ('macos-14' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], [False ], ['latest' ], ['replica' ]),
67
- ('windows-vsCurrent' , 'vs2022x64' , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], [False ], ['latest' ], ['replica' ]),
68
- ]
69
-
70
- EXTRA_ALIGNMENT_MATRIX = [
71
- ('rhel80' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [True ], ['latest' ], ['replica' ]),
72
- ('ubuntu2004-arm64' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [True ], ['latest' ], ['replica' ]),
73
- ('rhel8-power' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [True ], ['latest' ], ['replica' ]),
74
- ('rhel8-zseries' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [True ], ['latest' ], ['replica' ]),
75
- ('macos-14-arm64' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [True ], ['latest' ], ['replica' ]),
76
- ('macos-14' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [True ], ['latest' ], ['replica' ]),
77
- ('windows-vsCurrent' , 'vs2022x64' , ['Debug' ], ['shared' ], [11 ], [None ], ['csfle' ], [True ], ['latest' ], ['replica' ]),
61
+ ('rhel80' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], ['latest' ], ['replica' ]),
62
+ ('ubuntu2004-arm64' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], ['latest' ], ['replica' ]),
63
+ ('rhel8-power' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], ['latest' ], ['replica' ]),
64
+ ('rhel8-zseries' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], ['latest' ], ['replica' ]),
65
+ ('macos-14-arm64' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], ['latest' ], ['replica' ]),
66
+ ('macos-14' , None , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], ['latest' ], ['replica' ]),
67
+ ('windows-vsCurrent' , 'vs2022x64' , ['Debug' ], ['shared' ], [11 ], [None ], ['crypt' ], ['latest' ], ['replica' ]),
78
68
]
79
69
80
70
# fmt: on
81
71
# pylint: enable=line-too-long
82
72
83
73
84
- ALL_MATRIX = LINUX_MATRIX + MACOS_MATRIX + WINDOWS_MATRIX + MONGOCRYPTD_MATRIX + EXTRA_ALIGNMENT_MATRIX
74
+ ALL_MATRIX = LINUX_MATRIX + MACOS_MATRIX + WINDOWS_MATRIX + MONGOCRYPTD_MATRIX
85
75
86
76
87
77
def tasks ():
88
- for distro_name , compiler , build_types , link_types , cxx_standards , polyfills , with_csfles , with_extra_aligns , mongodb_versions , topologies in ALL_MATRIX :
89
- for build_type , link_type , cxx_standard , polyfill , with_csfle , with_extra_align , mongodb_version , topology in product (
90
- build_types , link_types , cxx_standards , polyfills , with_csfles , with_extra_aligns , mongodb_versions , topologies ,
78
+ for distro_name , compiler , build_types , link_types , cxx_standards , polyfills , with_csfles , mongodb_versions , topologies in ALL_MATRIX :
79
+ for build_type , link_type , cxx_standard , polyfill , with_csfle , mongodb_version , topology in product (
80
+ build_types , link_types , cxx_standards , polyfills , with_csfles , mongodb_versions , topologies ,
91
81
):
92
82
distro = find_large_distro (distro_name )
93
83
@@ -106,10 +96,6 @@ def tasks():
106
96
name += '-csfle'
107
97
tags += ['csfle' ]
108
98
109
- if with_extra_align :
110
- name += '-extra_alignment'
111
- tags += ['extra_alignment' ]
112
-
113
99
name += f'-{ mongodb_version } -{ topology } '
114
100
tags += [mongodb_version , topology ]
115
101
@@ -119,15 +105,9 @@ def tasks():
119
105
120
106
updates = []
121
107
icd_vars = {}
122
- compile_vars = {'ENABLE_TESTS' : 'ON' }
108
+ compile_vars = {'ENABLE_TESTS' : 'ON' , 'RUN_DISTCHECK' : 1 }
123
109
test_vars = {'MONGOCXX_TEST_TOPOLOGY' : topology }
124
110
125
- if with_extra_align :
126
- icd_vars |= {'BSON_EXTRA_ALIGNMENT' : 1 }
127
- compile_vars |= {'BSON_EXTRA_ALIGNMENT' : 1 }
128
- else :
129
- compile_vars |= {'RUN_DISTCHECK' : 1 }
130
-
131
111
if with_csfle != 'plain' :
132
112
test_vars |= {'TEST_WITH_CSFLE' : 'ON' }
133
113
@@ -155,15 +135,12 @@ def tasks():
155
135
commands += [
156
136
Setup .call (),
157
137
StartMongod .call (mongodb_version = mongodb_version , topology = topology ),
158
- ] + [
159
- InstallCDriver .call (vars = icd_vars | ({'SKIP_INSTALL_LIBMONGOCRYPT' : 1 } if with_extra_align else {})),
160
- ] + [
138
+ InstallCDriver .call (vars = icd_vars ),
161
139
InstallUV .call (),
162
140
Compile .call (polyfill = polyfill , vars = compile_vars ),
163
141
FetchDET .call (),
164
142
RunKMSServers .call (),
165
- ] + [
166
- Test .call (vars = test_vars | ({'use_mongocryptd' : True } if with_csfle == 'crypt' else {}))
143
+ Test .call (vars = test_vars | ({'use_mongocryptd' : True } if with_csfle == 'crypt' else {})),
167
144
]
168
145
169
146
# PowerPC and zSeries are limited resources.
@@ -191,11 +168,10 @@ def variants():
191
168
]
192
169
193
170
matrices = [
194
- ('linux' , '.linux !.mongocryptd !.extra_alignment ' , LINUX_MATRIX ),
195
- ('macos' , '.macos !.mongocryptd !.extra_alignment ' , MACOS_MATRIX ),
196
- ('windows' , '.windows !.mongocryptd !.extra_alignment ' , WINDOWS_MATRIX ),
171
+ ('linux' , '.linux !.mongocryptd' , LINUX_MATRIX ),
172
+ ('macos' , '.macos !.mongocryptd' , MACOS_MATRIX ),
173
+ ('windows' , '.windows !.mongocryptd' , WINDOWS_MATRIX ),
197
174
('mongocryptd' , '.mongocryptd' , MONGOCRYPTD_MATRIX ),
198
- ('extra_alignment' , '.extra_alignment' , EXTRA_ALIGNMENT_MATRIX ),
199
175
]
200
176
201
177
for name , filter , matrix in matrices :
0 commit comments