|
25 | 25 | get_task_name,
|
26 | 26 | get_variant_name,
|
27 | 27 | get_versions_from,
|
28 |
| - get_versions_until, |
29 | 28 | handle_c_ext,
|
30 | 29 | write_functions_to_file,
|
31 | 30 | write_tasks_to_file,
|
@@ -196,7 +195,7 @@ def create_compression_variants():
|
196 | 195 | for compressor in "snappy", "zlib", "zstd":
|
197 | 196 | expansions = dict(COMPRESSOR=compressor)
|
198 | 197 | if compressor == "zstd":
|
199 |
| - tasks = [".test-standard !.server-4.0"] |
| 198 | + tasks = [".test-standard !.server-4.2"] |
200 | 199 | else:
|
201 | 200 | tasks = [".test-standard"]
|
202 | 201 | display_name = get_variant_name(f"Compression {compressor}", host)
|
@@ -249,16 +248,11 @@ def create_pyopenssl_variants():
|
249 | 248 |
|
250 | 249 | def create_storage_engine_variants():
|
251 | 250 | host = DEFAULT_HOST
|
252 |
| - engines = ["InMemory", "MMAPv1"] |
| 251 | + engines = ["InMemory"] |
253 | 252 | variants = []
|
254 | 253 | for engine in engines:
|
255 | 254 | expansions = dict(STORAGE_ENGINE=engine.lower())
|
256 |
| - if engine == engines[0]: |
257 |
| - tasks = [".test-standard .standalone-noauth-nossl"] |
258 |
| - else: |
259 |
| - # MongoDB 4.2 drops support for MMAPv1 |
260 |
| - versions = get_versions_until("4.0") |
261 |
| - tasks = [f".test-standard !.sharded_cluster-auth-ssl .server-{v}" for v in versions] |
| 255 | + tasks = [".test-standard .standalone-noauth-nossl"] |
262 | 256 | display_name = get_variant_name(f"Storage {engine}", host)
|
263 | 257 | variant = create_variant(tasks, display_name, host=host, expansions=expansions)
|
264 | 258 | variants.append(variant)
|
@@ -352,23 +346,6 @@ def create_disable_test_commands_variants():
|
352 | 346 | return [create_variant(tasks, display_name, host=host, python=python, expansions=expansions)]
|
353 | 347 |
|
354 | 348 |
|
355 |
| -def create_serverless_variants(): |
356 |
| - host = DEFAULT_HOST |
357 |
| - batchtime = BATCHTIME_WEEK |
358 |
| - tasks = [".serverless"] |
359 |
| - base_name = "Serverless" |
360 |
| - return [ |
361 |
| - create_variant( |
362 |
| - tasks, |
363 |
| - get_variant_name(base_name, host, python=python), |
364 |
| - host=host, |
365 |
| - python=python, |
366 |
| - batchtime=batchtime, |
367 |
| - ) |
368 |
| - for python in MIN_MAX_PYTHON |
369 |
| - ] |
370 |
| - |
371 |
| - |
372 | 349 | def create_oidc_auth_variants():
|
373 | 350 | variants = []
|
374 | 351 | for host_name in ["ubuntu22", "macos", "win64"]:
|
@@ -920,7 +897,8 @@ def create_backport_pr_tasks():
|
920 | 897 | "${github_commit}",
|
921 | 898 | ]
|
922 | 899 | cmd = get_subprocess_exec(args=args)
|
923 |
| - return [EvgTask(name=name, commands=[cmd], allowed_requesters=["commit"])] |
| 900 | + assume_func = FunctionCall(func="assume ec2 role") |
| 901 | + return [EvgTask(name=name, commands=[assume_func, cmd], allowed_requesters=["commit"])] |
924 | 902 |
|
925 | 903 |
|
926 | 904 | def create_ocsp_tasks():
|
@@ -968,14 +946,6 @@ def create_free_threading_tasks():
|
968 | 946 | return [EvgTask(name=task_name, tags=tags, commands=[server_func, test_func])]
|
969 | 947 |
|
970 | 948 |
|
971 |
| -def create_serverless_tasks(): |
972 |
| - vars = dict(TEST_NAME="serverless", AUTH="auth", SSL="ssl") |
973 |
| - test_func = FunctionCall(func="run tests", vars=vars) |
974 |
| - tags = ["serverless"] |
975 |
| - task_name = "test-serverless" |
976 |
| - return [EvgTask(name=task_name, tags=tags, commands=[test_func])] |
977 |
| - |
978 |
| - |
979 | 949 | ##############
|
980 | 950 | # Functions
|
981 | 951 | ##############
|
|
0 commit comments