Skip to content

Commit 8ebceca

Browse files
committed
revert mod_wsgi
1 parent 7e880ac commit 8ebceca

File tree

3 files changed

+90
-33
lines changed

3 files changed

+90
-33
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,68 @@ tasks:
199199
TEST_NAME: kms
200200
SUB_TEST_NAME: azure-fail
201201

202+
# Mod wsgi tests
203+
- name: mod-wsgi-replica-set-python3.9
204+
commands:
205+
- func: run server
206+
vars:
207+
TOPOLOGY: replica_set
208+
PYTHON_VERSION: "3.9"
209+
- func: run tests
210+
vars:
211+
TEST_NAME: mod_wsgi
212+
SUB_TEST_NAME: standalone
213+
PYTHON_VERSION: "3.9"
214+
tags: [mod_wsgi]
215+
- name: mod-wsgi-embedded-mode-replica-set-python3.10
216+
commands:
217+
- func: run server
218+
vars:
219+
TOPOLOGY: replica_set
220+
PYTHON_VERSION: "3.10"
221+
- func: run tests
222+
vars:
223+
TEST_NAME: mod_wsgi
224+
SUB_TEST_NAME: embedded
225+
PYTHON_VERSION: "3.10"
226+
tags: [mod_wsgi]
227+
- name: mod-wsgi-replica-set-python3.11
228+
commands:
229+
- func: run server
230+
vars:
231+
TOPOLOGY: replica_set
232+
PYTHON_VERSION: "3.11"
233+
- func: run tests
234+
vars:
235+
TEST_NAME: mod_wsgi
236+
SUB_TEST_NAME: standalone
237+
PYTHON_VERSION: "3.11"
238+
tags: [mod_wsgi]
239+
- name: mod-wsgi-embedded-mode-replica-set-python3.12
240+
commands:
241+
- func: run server
242+
vars:
243+
TOPOLOGY: replica_set
244+
PYTHON_VERSION: "3.12"
245+
- func: run tests
246+
vars:
247+
TEST_NAME: mod_wsgi
248+
SUB_TEST_NAME: embedded
249+
PYTHON_VERSION: "3.12"
250+
tags: [mod_wsgi]
251+
- name: mod-wsgi-replica-set-python3.13
252+
commands:
253+
- func: run server
254+
vars:
255+
TOPOLOGY: replica_set
256+
PYTHON_VERSION: "3.13"
257+
- func: run tests
258+
vars:
259+
TEST_NAME: mod_wsgi
260+
SUB_TEST_NAME: standalone
261+
PYTHON_VERSION: "3.13"
262+
tags: [mod_wsgi]
263+
202264
# No orchestration tests
203265
- name: test-no-orchestration-python3.9
204266
commands:

.evergreen/generated_configs/variants.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -374,28 +374,14 @@ buildvariants:
374374
TEST_NAME: mockupdb
375375

376376
# Mod wsgi tests
377-
- name: mod_wsgi-standalone-ubuntu-22
377+
- name: mod_wsgi-ubuntu-22
378378
tasks:
379-
- name: .test-non-standard .replica_set-noauth-ssl .server-latest
380-
- name: .test-non-standard .standalone-noauth-nossl .server-latest
381-
display_name: Mod_WSGI Standalone Ubuntu-22
379+
- name: .mod_wsgi
380+
display_name: Mod_WSGI Ubuntu-22
382381
run_on:
383382
- ubuntu2204-small
384383
expansions:
385384
MOD_WSGI_VERSION: "4"
386-
TEST_NAME: mod_wsgi
387-
SUB_TEST_NAME: standalone
388-
- name: mod_wsgi-embedded-ubuntu-22
389-
tasks:
390-
- name: .test-non-standard .replica_set-noauth-ssl .server-latest
391-
- name: .test-non-standard .standalone-noauth-nossl .server-latest
392-
display_name: Mod_WSGI Embedded Ubuntu-22
393-
run_on:
394-
- ubuntu2204-small
395-
expansions:
396-
MOD_WSGI_VERSION: "4"
397-
TEST_NAME: mod_wsgi
398-
SUB_TEST_NAME: embedded
399385

400386
# No c ext tests
401387
- name: no-c-ext-rhel8

.evergreen/scripts/generate_config.py

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -335,22 +335,10 @@ def create_atlas_data_lake_variants():
335335

336336
def create_mod_wsgi_variants():
337337
host = HOSTS["ubuntu22"]
338-
variants = []
339-
for test_type in ["standalone", "embedded"]:
340-
expansions = dict(MOD_WSGI_VERSION="4", TEST_NAME="mod_wsgi", SUB_TEST_NAME=test_type)
341-
display_name = get_variant_name(f"Mod_WSGI {test_type.capitalize()}", host)
342-
variants.append(
343-
create_variant(
344-
[
345-
".test-non-standard .replica_set-noauth-ssl .server-latest",
346-
".test-non-standard .standalone-noauth-nossl .server-latest",
347-
],
348-
display_name,
349-
host=host,
350-
expansions=expansions,
351-
)
352-
)
353-
return variants
338+
tasks = [".mod_wsgi"]
339+
expansions = dict(MOD_WSGI_VERSION="4")
340+
display_name = get_variant_name("Mod_WSGI", host)
341+
return [create_variant(tasks, display_name, host=host, expansions=expansions)]
354342

355343

356344
def create_disable_test_commands_variants():
@@ -755,6 +743,27 @@ def create_oidc_tasks():
755743
return tasks
756744

757745

746+
def create_mod_wsgi_tasks():
747+
tasks = []
748+
for (test, topology), python in zip_cycle(
749+
product(["standalone", "embedded-mode"], ["standalone", "replica_set"]), CPYTHONS
750+
):
751+
if test == "standalone":
752+
task_name = "mod-wsgi-"
753+
else:
754+
task_name = "mod-wsgi-embedded-mode-"
755+
task_name += topology.replace("_", "-")
756+
task_name = get_task_name(task_name, python=python)
757+
server_vars = dict(TOPOLOGY=topology, PYTHON_VERSION=python)
758+
server_func = FunctionCall(func="run server", vars=server_vars)
759+
vars = dict(TEST_NAME="mod_wsgi", SUB_TEST_NAME=test.split("-")[0], PYTHON_VERSION=python)
760+
test_func = FunctionCall(func="run tests", vars=vars)
761+
tags = ["mod_wsgi"]
762+
commands = [server_func, test_func]
763+
tasks.append(EvgTask(name=task_name, tags=tags, commands=commands))
764+
return tasks
765+
766+
758767
def _create_ocsp_tasks(algo, variant, server_type, base_task_name):
759768
tasks = []
760769
file_name = f"{algo}-basic-tls-ocsp-{variant}.json"

0 commit comments

Comments
 (0)