Skip to content

Commit 4220abf

Browse files
committed
PYTHON-4872 Use shrub.py to generate encryption tasks
1 parent 8034bae commit 4220abf

File tree

2 files changed

+305
-92
lines changed

2 files changed

+305
-92
lines changed

.evergreen/config.yml

Lines changed: 241 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,32 +2322,6 @@ axes:
23222322
variables:
23232323
COVERAGE: "coverage"
23242324

2325-
# Run encryption tests?
2326-
- id: encryption
2327-
display_name: "Encryption"
2328-
values:
2329-
- id: "encryption"
2330-
display_name: "Encryption"
2331-
tags: ["encryption_tag"]
2332-
variables:
2333-
test_encryption: true
2334-
batchtime: 10080 # 7 days
2335-
- id: "encryption_pyopenssl"
2336-
display_name: "Encryption PyOpenSSL"
2337-
tags: ["encryption_tag"]
2338-
variables:
2339-
test_encryption: true
2340-
test_encryption_pyopenssl: true
2341-
batchtime: 10080 # 7 days
2342-
# The path to crypt_shared is stored in the $CRYPT_SHARED_LIB_PATH expansion.
2343-
- id: "encryption_crypt_shared"
2344-
display_name: "Encryption shared lib"
2345-
tags: ["encryption_tag"]
2346-
variables:
2347-
test_encryption: true
2348-
test_crypt_shared: true
2349-
batchtime: 10080 # 7 days
2350-
23512325
# Run pyopenssl tests?
23522326
- id: pyopenssl
23532327
display_name: "PyOpenSSL"
@@ -2864,6 +2838,247 @@ buildvariants:
28642838
PYTHON_BINARY: C:/python/32/Python39/python.exe
28652839
SKIP_CSOT_TESTS: "true"
28662840

2841+
# Encryption tests.
2842+
- name: encryption-rhel8-py3.9-auth-ssl
2843+
tasks:
2844+
- name: .latest .replica_set
2845+
display_name: Encryption RHEL8 py3.9 Auth SSL
2846+
run_on:
2847+
- rhel87-small
2848+
batchtime: 10080
2849+
expansions:
2850+
TEST_ENCRYPTION: "true"
2851+
AUTH: auth
2852+
SSL: ssl
2853+
PYTHON_BINARY: /opt/python/3.9/bin/python3
2854+
tags: [encryption_tag]
2855+
- name: encryption-crypt_shared-rhel8-py3.9-auth-ssl
2856+
tasks:
2857+
- name: .latest .replica_set
2858+
display_name: Encryption crypt_shared RHEL8 py3.9 Auth SSL
2859+
run_on:
2860+
- rhel87-small
2861+
batchtime: 10080
2862+
expansions:
2863+
TEST_ENCRYPTION: "true"
2864+
AUTH: auth
2865+
SSL: ssl
2866+
TEST_CRYPT_SHARED: "true"
2867+
PYTHON_BINARY: /opt/python/3.9/bin/python3
2868+
tags: [encryption_tag]
2869+
- name: encryption-pyopenssl-rhel8-py3.9-auth-ssl
2870+
tasks:
2871+
- name: .latest .replica_set
2872+
display_name: Encryption PyOpenSSL RHEL8 py3.9 Auth SSL
2873+
run_on:
2874+
- rhel87-small
2875+
batchtime: 10080
2876+
expansions:
2877+
TEST_ENCRYPTION: "true"
2878+
TEST_ENCRYPTION_PYOPENSSL: "true"
2879+
AUTH: auth
2880+
SSL: ssl
2881+
PYTHON_BINARY: /opt/python/3.9/bin/python3
2882+
tags: [encryption_tag]
2883+
- name: encryption-rhel8-py3.13-auth-nossl
2884+
tasks:
2885+
- name: .latest .replica_set
2886+
display_name: Encryption RHEL8 py3.13 Auth NoSSL
2887+
run_on:
2888+
- rhel87-small
2889+
batchtime: 10080
2890+
expansions:
2891+
TEST_ENCRYPTION: "true"
2892+
AUTH: auth
2893+
SSL: nossl
2894+
PYTHON_BINARY: /opt/python/3.13/bin/python3
2895+
tags: [encryption_tag]
2896+
- name: encryption-crypt_shared-rhel8-py3.13-auth-nossl
2897+
tasks:
2898+
- name: .latest .replica_set
2899+
display_name: Encryption crypt_shared RHEL8 py3.13 Auth NoSSL
2900+
run_on:
2901+
- rhel87-small
2902+
batchtime: 10080
2903+
expansions:
2904+
TEST_ENCRYPTION: "true"
2905+
AUTH: auth
2906+
SSL: nossl
2907+
TEST_CRYPT_SHARED: "true"
2908+
PYTHON_BINARY: /opt/python/3.13/bin/python3
2909+
tags: [encryption_tag]
2910+
- name: encryption-pyopenssl-rhel8-py3.13-auth-nossl
2911+
tasks:
2912+
- name: .latest .replica_set
2913+
display_name: Encryption PyOpenSSL RHEL8 py3.13 Auth NoSSL
2914+
run_on:
2915+
- rhel87-small
2916+
batchtime: 10080
2917+
expansions:
2918+
TEST_ENCRYPTION: "true"
2919+
TEST_ENCRYPTION_PYOPENSSL: "true"
2920+
AUTH: auth
2921+
SSL: nossl
2922+
PYTHON_BINARY: /opt/python/3.13/bin/python3
2923+
tags: [encryption_tag]
2924+
- name: encryption-rhel8-pypy3.10-auth-ssl
2925+
tasks:
2926+
- name: .latest .replica_set
2927+
display_name: Encryption RHEL8 pypy3.10 Auth SSL
2928+
run_on:
2929+
- rhel87-small
2930+
batchtime: 10080
2931+
expansions:
2932+
TEST_ENCRYPTION: "true"
2933+
AUTH: auth
2934+
SSL: ssl
2935+
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
2936+
tags: [encryption_tag]
2937+
- name: encryption-crypt_shared-rhel8-pypy3.10-auth-ssl
2938+
tasks:
2939+
- name: .latest .replica_set
2940+
display_name: Encryption crypt_shared RHEL8 pypy3.10 Auth SSL
2941+
run_on:
2942+
- rhel87-small
2943+
batchtime: 10080
2944+
expansions:
2945+
TEST_ENCRYPTION: "true"
2946+
AUTH: auth
2947+
SSL: ssl
2948+
TEST_CRYPT_SHARED: "true"
2949+
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
2950+
tags: [encryption_tag]
2951+
- name: encryption-pyopenssl-rhel8-pypy3.10-auth-ssl
2952+
tasks:
2953+
- name: .latest .replica_set
2954+
display_name: Encryption PyOpenSSL RHEL8 pypy3.10 Auth SSL
2955+
run_on:
2956+
- rhel87-small
2957+
batchtime: 10080
2958+
expansions:
2959+
TEST_ENCRYPTION: "true"
2960+
TEST_ENCRYPTION_PYOPENSSL: "true"
2961+
AUTH: auth
2962+
SSL: ssl
2963+
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
2964+
tags: [encryption_tag]
2965+
- name: encryption-win64-py3.9-auth-ssl
2966+
tasks:
2967+
- name: .latest .replica_set
2968+
display_name: Encryption Win64 py3.9 Auth SSL
2969+
run_on:
2970+
- windows-64-vsMulti-small
2971+
batchtime: 10080
2972+
expansions:
2973+
TEST_ENCRYPTION: "true"
2974+
AUTH: auth
2975+
SSL: ssl
2976+
PYTHON_BINARY: C:/python/Python39/python.exe
2977+
SKIP_CSOT_TESTS: "true"
2978+
tags: [encryption_tag]
2979+
- name: encryption-crypt_shared-win64-py3.9-auth-ssl
2980+
tasks:
2981+
- name: .latest .replica_set
2982+
display_name: Encryption crypt_shared Win64 py3.9 Auth SSL
2983+
run_on:
2984+
- windows-64-vsMulti-small
2985+
batchtime: 10080
2986+
expansions:
2987+
TEST_ENCRYPTION: "true"
2988+
AUTH: auth
2989+
SSL: ssl
2990+
TEST_CRYPT_SHARED: "true"
2991+
PYTHON_BINARY: C:/python/Python39/python.exe
2992+
SKIP_CSOT_TESTS: "true"
2993+
tags: [encryption_tag]
2994+
- name: encryption-win64-py3.13-auth-nossl
2995+
tasks:
2996+
- name: .latest .replica_set
2997+
display_name: Encryption Win64 py3.13 Auth NoSSL
2998+
run_on:
2999+
- windows-64-vsMulti-small
3000+
batchtime: 10080
3001+
expansions:
3002+
TEST_ENCRYPTION: "true"
3003+
AUTH: auth
3004+
SSL: nossl
3005+
PYTHON_BINARY: C:/python/Python313/python.exe
3006+
SKIP_CSOT_TESTS: "true"
3007+
tags: [encryption_tag]
3008+
- name: encryption-crypt_shared-win64-py3.13-auth-nossl
3009+
tasks:
3010+
- name: .latest .replica_set
3011+
display_name: Encryption crypt_shared Win64 py3.13 Auth NoSSL
3012+
run_on:
3013+
- windows-64-vsMulti-small
3014+
batchtime: 10080
3015+
expansions:
3016+
TEST_ENCRYPTION: "true"
3017+
AUTH: auth
3018+
SSL: nossl
3019+
TEST_CRYPT_SHARED: "true"
3020+
PYTHON_BINARY: C:/python/Python313/python.exe
3021+
SKIP_CSOT_TESTS: "true"
3022+
tags: [encryption_tag]
3023+
- name: encryption-macos-py3.9-auth-ssl
3024+
tasks:
3025+
- name: .latest .replica_set
3026+
display_name: Encryption macOS py3.9 Auth SSL
3027+
run_on:
3028+
- macos-14
3029+
batchtime: 10080
3030+
expansions:
3031+
TEST_ENCRYPTION: "true"
3032+
AUTH: auth
3033+
SSL: ssl
3034+
PYTHON_BINARY: /Library/Frameworks/Python.Framework/Versions/3.9/bin/python3
3035+
SKIP_CSOT_TESTS: "true"
3036+
tags: [encryption_tag]
3037+
- name: encryption-crypt_shared-macos-py3.9-auth-ssl
3038+
tasks:
3039+
- name: .latest .replica_set
3040+
display_name: Encryption crypt_shared macOS py3.9 Auth SSL
3041+
run_on:
3042+
- macos-14
3043+
batchtime: 10080
3044+
expansions:
3045+
TEST_ENCRYPTION: "true"
3046+
AUTH: auth
3047+
SSL: ssl
3048+
TEST_CRYPT_SHARED: "true"
3049+
PYTHON_BINARY: /Library/Frameworks/Python.Framework/Versions/3.9/bin/python3
3050+
SKIP_CSOT_TESTS: "true"
3051+
tags: [encryption_tag]
3052+
- name: encryption-macos-py3.13-auth-nossl
3053+
tasks:
3054+
- name: .latest .replica_set
3055+
display_name: Encryption macOS py3.13 Auth NoSSL
3056+
run_on:
3057+
- macos-14
3058+
batchtime: 10080
3059+
expansions:
3060+
TEST_ENCRYPTION: "true"
3061+
AUTH: auth
3062+
SSL: nossl
3063+
PYTHON_BINARY: /Library/Frameworks/Python.Framework/Versions/3.13/bin/python3
3064+
SKIP_CSOT_TESTS: "true"
3065+
tags: [encryption_tag]
3066+
- name: encryption-crypt_shared-macos-py3.13-auth-nossl
3067+
tasks:
3068+
- name: .latest .replica_set
3069+
display_name: Encryption crypt_shared macOS py3.13 Auth NoSSL
3070+
run_on:
3071+
- macos-14
3072+
batchtime: 10080
3073+
expansions:
3074+
TEST_ENCRYPTION: "true"
3075+
AUTH: auth
3076+
SSL: nossl
3077+
TEST_CRYPT_SHARED: "true"
3078+
PYTHON_BINARY: /Library/Frameworks/Python.Framework/Versions/3.13/bin/python3
3079+
SKIP_CSOT_TESTS: "true"
3080+
tags: [encryption_tag]
3081+
28673082
- matrix_name: "tests-fips"
28683083
matrix_spec:
28693084
platform:
@@ -2874,33 +3089,6 @@ buildvariants:
28743089
tasks:
28753090
- "test-fips-standalone"
28763091

2877-
- matrix_name: "test-macos-encryption"
2878-
matrix_spec:
2879-
platform:
2880-
- macos
2881-
auth: "auth"
2882-
ssl: "nossl"
2883-
encryption: "*"
2884-
display_name: "${encryption} ${platform} ${auth} ${ssl}"
2885-
tasks: "test-latest-replica_set"
2886-
rules:
2887-
- if:
2888-
encryption: ["encryption", "encryption_crypt_shared"]
2889-
platform: macos
2890-
auth: "auth"
2891-
ssl: "nossl"
2892-
then:
2893-
add_tasks: &encryption-server-versions
2894-
- ".rapid"
2895-
- ".latest"
2896-
- ".8.0"
2897-
- ".7.0"
2898-
- ".6.0"
2899-
- ".5.0"
2900-
- ".4.4"
2901-
- ".4.2"
2902-
- ".4.0"
2903-
29043092
# Test one server version with zSeries, POWER8, and ARM.
29053093
- matrix_name: "test-different-cpu-architectures"
29063094
matrix_spec:
@@ -2954,26 +3142,6 @@ buildvariants:
29543142
tasks:
29553143
- '.replica_set'
29563144

2957-
- matrix_name: "tests-python-version-rhel8-test-encryption"
2958-
matrix_spec:
2959-
platform: rhel8
2960-
python-version: "*"
2961-
auth-ssl: noauth-nossl
2962-
# TODO: dependency error for 'coverage-report' task:
2963-
# dependency tests-python-version-rhel62-test-encryption_.../test-2.6-standalone is not present in the project config
2964-
# coverage: "*"
2965-
encryption: "*"
2966-
display_name: "${encryption} ${python-version} ${platform} ${auth-ssl}"
2967-
tasks: "test-latest-replica_set"
2968-
rules:
2969-
- if:
2970-
encryption: ["encryption", "encryption_crypt_shared"]
2971-
platform: rhel8
2972-
auth-ssl: noauth-nossl
2973-
python-version: "*"
2974-
then:
2975-
add_tasks: *encryption-server-versions
2976-
29773145
- matrix_name: "tests-python-version-rhel8-without-c-extensions"
29783146
matrix_spec:
29793147
platform: rhel8
@@ -3057,23 +3225,6 @@ buildvariants:
30573225
tasks:
30583226
- ".5.0"
30593227

3060-
- matrix_name: "tests-windows-encryption"
3061-
matrix_spec:
3062-
platform: windows
3063-
python-version-windows: "*"
3064-
auth-ssl: "*"
3065-
encryption: "*"
3066-
display_name: "${encryption} ${platform} ${python-version-windows} ${auth-ssl}"
3067-
tasks: "test-latest-replica_set"
3068-
rules:
3069-
- if:
3070-
encryption: ["encryption", "encryption_crypt_shared"]
3071-
platform: windows
3072-
python-version-windows: "*"
3073-
auth-ssl: "*"
3074-
then:
3075-
add_tasks: *encryption-server-versions
3076-
30773228
# Storage engine tests on RHEL 8.4 (x86_64) with Python 3.9.
30783229
- matrix_name: "tests-storage-engines"
30793230
matrix_spec:

0 commit comments

Comments
 (0)