Skip to content

Commit 2224a0b

Browse files
committed
update variants
1 parent f6704c3 commit 2224a0b

File tree

2 files changed

+126
-33
lines changed

2 files changed

+126
-33
lines changed

.evergreen/config.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3249,6 +3249,99 @@ buildvariants:
32493249
AUTH: auth
32503250
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
32513251

3252+
# PyOpenSSL tests.
3253+
- name: pyopenssl-macos-py3.9
3254+
tasks:
3255+
- name: .replica_set
3256+
- name: .7.0
3257+
display_name: PyOpenSSL macOS py3.9
3258+
run_on:
3259+
- macos-14
3260+
batchtime: 10080
3261+
expansions:
3262+
AUTH: noauth
3263+
test_pyopenssl: "true"
3264+
SSL: ssl
3265+
PYTHON_BINARY: /Library/Frameworks/Python.Framework/Versions/3.9/bin/python3
3266+
- name: pyopenssl-rhel8-py3.10
3267+
tasks:
3268+
- name: .replica_set
3269+
- name: .7.0
3270+
display_name: PyOpenSSL RHEL8 py3.10
3271+
run_on:
3272+
- rhel87-small
3273+
batchtime: 10080
3274+
expansions:
3275+
AUTH: auth
3276+
test_pyopenssl: "true"
3277+
SSL: ssl
3278+
PYTHON_BINARY: /opt/python/3.10/bin/python3
3279+
- name: pyopenssl-rhel8-py3.11
3280+
tasks:
3281+
- name: .replica_set
3282+
- name: .7.0
3283+
display_name: PyOpenSSL RHEL8 py3.11
3284+
run_on:
3285+
- rhel87-small
3286+
batchtime: 10080
3287+
expansions:
3288+
AUTH: auth
3289+
test_pyopenssl: "true"
3290+
SSL: ssl
3291+
PYTHON_BINARY: /opt/python/3.11/bin/python3
3292+
- name: pyopenssl-rhel8-py3.12
3293+
tasks:
3294+
- name: .replica_set
3295+
- name: .7.0
3296+
display_name: PyOpenSSL RHEL8 py3.12
3297+
run_on:
3298+
- rhel87-small
3299+
batchtime: 10080
3300+
expansions:
3301+
AUTH: auth
3302+
test_pyopenssl: "true"
3303+
SSL: ssl
3304+
PYTHON_BINARY: /opt/python/3.12/bin/python3
3305+
- name: pyopenssl-win64-py3.13
3306+
tasks:
3307+
- name: .replica_set
3308+
- name: .7.0
3309+
display_name: PyOpenSSL Win64 py3.13
3310+
run_on:
3311+
- windows-64-vsMulti-small
3312+
batchtime: 10080
3313+
expansions:
3314+
AUTH: auth
3315+
test_pyopenssl: "true"
3316+
SSL: ssl
3317+
PYTHON_BINARY: C:/python/Python313/python.exe
3318+
- name: pyopenssl-rhel8-pypy3.9
3319+
tasks:
3320+
- name: .replica_set
3321+
- name: .7.0
3322+
display_name: PyOpenSSL RHEL8 pypy3.9
3323+
run_on:
3324+
- rhel87-small
3325+
batchtime: 10080
3326+
expansions:
3327+
AUTH: auth
3328+
test_pyopenssl: "true"
3329+
SSL: ssl
3330+
PYTHON_BINARY: /opt/python/pypy3.9/bin/python3
3331+
- name: pyopenssl-rhel8-pypy3.10
3332+
tasks:
3333+
- name: .replica_set
3334+
- name: .7.0
3335+
display_name: PyOpenSSL RHEL8 pypy3.10
3336+
run_on:
3337+
- rhel87-small
3338+
batchtime: 10080
3339+
expansions:
3340+
AUTH: auth
3341+
test_pyopenssl: "true"
3342+
SSL: ssl
3343+
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
3344+
32523345
- matrix_name: "tests-fips"
32533346
matrix_spec:
32543347
platform:

.evergreen/scripts/generate_config.py

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -345,38 +345,6 @@ def create_load_balancer_variants():
345345
return variants
346346

347347

348-
def create_pyopenssl_variants():
349-
base_name = "PyOpenSSL"
350-
batchtime = BATCHTIME_WEEK
351-
base_expansions = dict(test_pyopenssl="true", SSL="ssl")
352-
variants = []
353-
354-
for python in ALL_PYTHONS:
355-
# Only test "noauth" with min python.
356-
auth = "noauth" if python == CPYTHONS[0] else "auth"
357-
if python == CPYTHONS[0]:
358-
host = "macos"
359-
elif python == CPYTHONS[-1]:
360-
host = "win64"
361-
else:
362-
host = "rhel8"
363-
expansions = dict(AUTH=auth)
364-
expansions.update(base_expansions)
365-
366-
display_name = get_display_name(base_name, host, python=python)
367-
variant = create_variant(
368-
[".replica_set", ".7.0"],
369-
display_name,
370-
python=python,
371-
host=host,
372-
expansions=expansions,
373-
batchtime=batchtime,
374-
)
375-
variants.append(variant)
376-
377-
return variants
378-
379-
380348
def create_compression_variants():
381349
# Compression tests - standalone versions of each server, across python versions, with and without c extensions.
382350
# PyPy interpreters are always tested without extensions.
@@ -437,10 +405,42 @@ def create_enterprise_auth_variants():
437405
return variants
438406

439407

408+
def create_pyopenssl_variants():
409+
base_name = "PyOpenSSL"
410+
batchtime = BATCHTIME_WEEK
411+
base_expansions = dict(test_pyopenssl="true", SSL="ssl")
412+
variants = []
413+
414+
for python in ALL_PYTHONS:
415+
# Only test "noauth" with min python.
416+
auth = "noauth" if python == CPYTHONS[0] else "auth"
417+
if python == CPYTHONS[0]:
418+
host = "macos"
419+
elif python == CPYTHONS[-1]:
420+
host = "win64"
421+
else:
422+
host = "rhel8"
423+
expansions = dict(AUTH=auth)
424+
expansions.update(base_expansions)
425+
426+
display_name = get_display_name(base_name, host, python=python)
427+
variant = create_variant(
428+
[".replica_set", ".7.0"],
429+
display_name,
430+
python=python,
431+
host=host,
432+
expansions=expansions,
433+
batchtime=batchtime,
434+
)
435+
variants.append(variant)
436+
437+
return variants
438+
439+
440440
##################
441441
# Generate Config
442442
##################
443443

444-
variants = create_enterprise_auth_variants()
444+
variants = create_pyopenssl_variants()
445445
# print(len(variants))
446446
generate_yaml(variants=variants)

0 commit comments

Comments
 (0)