2424LINUX_MATRIX = [
2525 # Linux x86_64 (full).
2626 # 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+.
2929
3030 # Linux ARM64 (full).
3131 # 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' ]),
3333
3434 # Linux Power.
3535 # 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' ]),
3737
3838 # Linux zSeries.
3939 # 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' ]),
4141]
4242
4343MACOS_MATRIX = [
4444 # MacOS ARM64 (shared only, no extra alignment, min-max-latest).
4545 # 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' ]),
4747
4848 # MacOS x86_64 (shared only, C++11 only, no extra alignment, min-max-latest).
4949 # 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' ]),
5151
5252]
5353
5454WINDOWS_MATRIX = [
5555 # Windows x86_64 (min-max-latest).
5656 # 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' ]),
5858]
5959
6060MONGOCRYPTD_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' ]),
7868]
7969
8070# fmt: on
8171# pylint: enable=line-too-long
8272
8373
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
8575
8676
8777def 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 ,
9181 ):
9282 distro = find_large_distro (distro_name )
9383
@@ -106,10 +96,6 @@ def tasks():
10696 name += '-csfle'
10797 tags += ['csfle' ]
10898
109- if with_extra_align :
110- name += '-extra_alignment'
111- tags += ['extra_alignment' ]
112-
11399 name += f'-{ mongodb_version } -{ topology } '
114100 tags += [mongodb_version , topology ]
115101
@@ -119,15 +105,9 @@ def tasks():
119105
120106 updates = []
121107 icd_vars = {}
122- compile_vars = {'ENABLE_TESTS' : 'ON' }
108+ compile_vars = {'ENABLE_TESTS' : 'ON' , 'RUN_DISTCHECK' : 1 }
123109 test_vars = {'MONGOCXX_TEST_TOPOLOGY' : topology }
124110
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-
131111 if with_csfle != 'plain' :
132112 test_vars |= {'TEST_WITH_CSFLE' : 'ON' }
133113
@@ -155,15 +135,12 @@ def tasks():
155135 commands += [
156136 Setup .call (),
157137 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 ),
161139 InstallUV .call (),
162140 Compile .call (polyfill = polyfill , vars = compile_vars ),
163141 FetchDET .call (),
164142 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 {})),
167144 ]
168145
169146 # PowerPC and zSeries are limited resources.
@@ -191,11 +168,10 @@ def variants():
191168 ]
192169
193170 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 ),
197174 ('mongocryptd' , '.mongocryptd' , MONGOCRYPTD_MATRIX ),
198- ('extra_alignment' , '.extra_alignment' , EXTRA_ALIGNMENT_MATRIX ),
199175 ]
200176
201177 for name , filter , matrix in matrices :
0 commit comments